better watched state log output
This commit is contained in:
parent
37e173a5cc
commit
d6a861118f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue