projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e88c9ef
)
[stitcher] clean podcast URLs
author
Remita Amine
<remitamine@gmail.com>
Sun, 3 Jan 2021 23:53:32 +0000
(
00:53
+0100)
committer
Remita Amine
<remitamine@gmail.com>
Mon, 4 Jan 2021 00:14:25 +0000
(
01:14
+0100)
youtube_dl/extractor/stitcher.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/stitcher.py
b/youtube_dl/extractor/stitcher.py
index 3dd0d3b5f6a8182ad69d17a7d831d72e6c522ed4..8227825070be16efcca38465c57af507dcd58414 100644
(file)
--- 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')),