diff options
author | Remita Amine <remitamine@gmail.com> | 2021-01-04 00:53:58 +0100 |
---|---|---|
committer | Remita Amine <remitamine@gmail.com> | 2021-01-04 01:14:26 +0100 |
commit | 0e96b4b5ce79a5f5c990247f6260da40f7d71a7c (patch) | |
tree | 25dd5004d009df9fd178a39e3c39b9aab2fc73f2 | |
parent | a563c97c5cddf55f8989ed7ea8314ef78e30107f (diff) |
[acast] clean podcast URLs
-rw-r--r-- | youtube_dl/extractor/acast.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/youtube_dl/extractor/acast.py b/youtube_dl/extractor/acast.py index 60378db1b..b9355a2c8 100644 --- a/youtube_dl/extractor/acast.py +++ b/youtube_dl/extractor/acast.py @@ -6,6 +6,7 @@ import re from .common import InfoExtractor from ..utils import ( clean_html, + clean_podcast_url, int_or_none, parse_iso8601, ) @@ -17,7 +18,7 @@ class ACastBaseIE(InfoExtractor): info = { 'id': episode['id'], 'display_id': episode.get('episodeUrl'), - 'url': episode['url'], + 'url': clean_podcast_url(episode['url']), 'title': title, 'description': clean_html(episode.get('description') or episode.get('summary')), 'thumbnail': episode.get('image'), |