summary refs log tree commit diff
diff options
context:
space:
mode:
authorRemita Amine <remitamine@gmail.com>2021-01-04 00:53:32 +0100
committerRemita Amine <remitamine@gmail.com>2021-01-04 01:14:25 +0100
commita563c97c5cddf55f8989ed7ea8314ef78e30107f (patch)
tree259de1d12e8fc020b1cea5a6fede41fe5b6b533d
parente88c9ef62a4a26cc77370b741a4244d298c7d45a (diff)
downloadyoutube-dl-a563c97c5cddf55f8989ed7ea8314ef78e30107f.tar.gz
youtube-dl-a563c97c5cddf55f8989ed7ea8314ef78e30107f.tar.xz
youtube-dl-a563c97c5cddf55f8989ed7ea8314ef78e30107f.zip
[stitcher] clean podcast URLs
-rw-r--r--youtube_dl/extractor/stitcher.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/youtube_dl/extractor/stitcher.py b/youtube_dl/extractor/stitcher.py
index 3dd0d3b5f..822782507 100644
--- a/youtube_dl/extractor/stitcher.py
+++ b/youtube_dl/extractor/stitcher.py
@@ -4,6 +4,7 @@ from .common import InfoExtractor
 from ..compat import compat_str
 from ..utils import (
     clean_html,
+    clean_podcast_url,
     ExtractorError,
     int_or_none,
     str_or_none,
@@ -43,7 +44,7 @@ class StitcherBaseIE(InfoExtractor):
             'title': episode['title'].strip(),
             'description': self._extract_description(episode),
             'duration': int_or_none(episode.get('duration')),
-            'url': audio_url,
+            'url': clean_podcast_url(audio_url),
             'vcodec': 'none',
             'timestamp': int_or_none(episode.get('date_published')),
             'season_number': int_or_none(episode.get('season')),