[utils] clean_podcast_url: Handle protocol in redirect URL

Closes #7430
This commit is contained in:
pukkandan 2023-06-26 16:19:49 +05:30
parent f393bbe724
commit 91302ed349
No known key found for this signature in database
GPG key ID: 7EEE9E1E817D0A39

View file

@ -5113,7 +5113,7 @@ def format_field(obj, field=None, template='%s', ignore=NO_DEFAULT, default='',
def clean_podcast_url(url):
return re.sub(r'''(?x)
url = re.sub(r'''(?x)
(?:
(?:
chtbl\.com/track|
@ -5127,6 +5127,7 @@ def clean_podcast_url(url):
st\.fm # https://podsights.com/docs/
)/e
)/''', '', url)
return re.sub(r'^\w+://(\w+://)', r'\1', url)
_HEX_TABLE = '0123456789abcdef'