Skip to content

Commit

Permalink
[stitcher] clean podcast URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
remitamine committed Jan 4, 2021
1 parent e88c9ef commit a563c97
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion youtube_dl/extractor/stitcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from ..compat import compat_str
from ..utils import (
clean_html,
clean_podcast_url,
ExtractorError,
int_or_none,
str_or_none,
Expand Down Expand Up @@ -43,7 +44,7 @@ def _extract_episode(self, episode, audio_url, show_info):
'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')),
Expand Down

0 comments on commit a563c97

Please sign in to comment.