mirror of
https://github.com/nathom/streamrip.git
synced 2025-05-13 14:44:49 -04:00
Make YoutubeVideo comply with Media ABC
This commit is contained in:
parent
733aadae04
commit
39d15247e8
1 changed files with 6 additions and 0 deletions
|
@ -1002,6 +1002,12 @@ class YoutubeVideo(Media):
|
|||
"""
|
||||
pass
|
||||
|
||||
def convert(self, *args, **kwargs):
|
||||
raise NotImplementedError
|
||||
|
||||
def __repr__(self, *args, **kwargs):
|
||||
return f"YoutubeVideo({self.url})"
|
||||
|
||||
def __bool__(self):
|
||||
"""Return True."""
|
||||
return True
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue