diff --git a/lib/svtplay_dl/utils/getmedia.py b/lib/svtplay_dl/utils/getmedia.py index 6e7fe2a..07934f2 100644 --- a/lib/svtplay_dl/utils/getmedia.py +++ b/lib/svtplay_dl/utils/getmedia.py @@ -102,7 +102,9 @@ def get_one_media(stream): streams = stream.get() try: for i in streams: - if not exclude(stream.config, formatname(i.output, stream.config)): + if isinstance(i, Exception): + error.append(i) + elif not exclude(stream.config, formatname(i.output, stream.config)): if isinstance(i, VideoRetriever): if stream.config.get("preferred"): if stream.config.get("preferred").lower() == i.name: @@ -111,8 +113,6 @@ def get_one_media(stream): videos.append(i) if isinstance(i, subtitle): subs.append(i) - if isinstance(i, Exception): - error.append(i) except Exception as e: if stream.config.get("verbose"): raise