better watched state log output

This commit is contained in:
simon 2023-01-14 08:51:10 +07:00
parent 37e173a5cc
commit d6a861118f
No known key found for this signature in database
GPG Key ID: 2C15AA5E89985DD4
1 changed files with 1 additions and 1 deletions

View File

@ -20,6 +20,7 @@ class WatchState:
def change(self):
"""change watched state of item(s)"""
print(f"{self.youtube_id}: change watched state to {self.is_watched}")
url_type = self._dedect_type()
if url_type == "video":
self.change_vid_state()
@ -33,7 +34,6 @@ class WatchState:
def _dedect_type(self):
"""find youtube id type"""
print(self.youtube_id)
url_process = Parser(self.youtube_id).parse()
url_type = url_process[0]["type"]
return url_type