From 39d15247e891100bba76104be89929dc8174881e Mon Sep 17 00:00:00 2001 From: Nathan Thomas Date: Mon, 16 Aug 2021 13:08:28 -0700 Subject: [PATCH] Make YoutubeVideo comply with Media ABC --- streamrip/media.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/streamrip/media.py b/streamrip/media.py index 91a1771..5f09b2e 100644 --- a/streamrip/media.py +++ b/streamrip/media.py @@ -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