diff --git a/src/you_get/common.py b/src/you_get/common.py index a772fe28..409af750 100755 --- a/src/you_get/common.py +++ b/src/you_get/common.py @@ -1118,8 +1118,10 @@ def url_to_module(url): if location is None: from .extractors import embed return embed, url - else: + elif location != url: return url_to_module(location) + else: + raise NotImplementedError(url) def any_download(url, **kwargs): m, url = url_to_module(url)