mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-13 23:02:34 +00:00
[utils] clean_podcast_url: Handle protocol in redirect URL
Closes #7430
This commit is contained in:
parent
f393bbe724
commit
91302ed349
1 changed files with 2 additions and 1 deletions
|
@ -5113,7 +5113,7 @@ def format_field(obj, field=None, template='%s', ignore=NO_DEFAULT, default='',
|
||||||
|
|
||||||
|
|
||||||
def clean_podcast_url(url):
|
def clean_podcast_url(url):
|
||||||
return re.sub(r'''(?x)
|
url = re.sub(r'''(?x)
|
||||||
(?:
|
(?:
|
||||||
(?:
|
(?:
|
||||||
chtbl\.com/track|
|
chtbl\.com/track|
|
||||||
|
@ -5127,6 +5127,7 @@ def clean_podcast_url(url):
|
||||||
st\.fm # https://podsights.com/docs/
|
st\.fm # https://podsights.com/docs/
|
||||||
)/e
|
)/e
|
||||||
)/''', '', url)
|
)/''', '', url)
|
||||||
|
return re.sub(r'^\w+://(\w+://)', r'\1', url)
|
||||||
|
|
||||||
|
|
||||||
_HEX_TABLE = '0123456789abcdef'
|
_HEX_TABLE = '0123456789abcdef'
|
||||||
|
|
Loading…
Reference in a new issue