mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-11-25 19:52:11 +00:00
[stitcher] clean podcast URLs
This commit is contained in:
parent
e88c9ef62a
commit
a563c97c5c
1 changed files with 2 additions and 1 deletions
|
@ -4,6 +4,7 @@ from .common import InfoExtractor
|
||||||
from ..compat import compat_str
|
from ..compat import compat_str
|
||||||
from ..utils import (
|
from ..utils import (
|
||||||
clean_html,
|
clean_html,
|
||||||
|
clean_podcast_url,
|
||||||
ExtractorError,
|
ExtractorError,
|
||||||
int_or_none,
|
int_or_none,
|
||||||
str_or_none,
|
str_or_none,
|
||||||
|
@ -43,7 +44,7 @@ class StitcherBaseIE(InfoExtractor):
|
||||||
'title': episode['title'].strip(),
|
'title': episode['title'].strip(),
|
||||||
'description': self._extract_description(episode),
|
'description': self._extract_description(episode),
|
||||||
'duration': int_or_none(episode.get('duration')),
|
'duration': int_or_none(episode.get('duration')),
|
||||||
'url': audio_url,
|
'url': clean_podcast_url(audio_url),
|
||||||
'vcodec': 'none',
|
'vcodec': 'none',
|
||||||
'timestamp': int_or_none(episode.get('date_published')),
|
'timestamp': int_or_none(episode.get('date_published')),
|
||||||
'season_number': int_or_none(episode.get('season')),
|
'season_number': int_or_none(episode.get('season')),
|
||||||
|
|
Loading…
Reference in a new issue