mirror of
https://github.com/soimort/you-get.git
synced 2025-03-13 03:17:44 +03:00
[common] fix infinite redirecting
This commit is contained in:
parent
c3ac87a7a1
commit
e075433563
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user