aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBricio <216170+Bricio@users.noreply.github.com>2022-02-11 20:32:58 -0300
committerGitHub <noreply@github.com>2022-02-11 15:32:58 -0800
commit2068a603182f8d32d3068231ed1fb91951b53687 (patch)
tree716bb157150c8124e7118f5f5112b6427e546dde
parent1ce9a3cb49b209ccb999d4fb97851f60d51dabd3 (diff)
downloadhypervideo-pre-2068a603182f8d32d3068231ed1fb91951b53687.tar.lz
hypervideo-pre-2068a603182f8d32d3068231ed1fb91951b53687.tar.xz
hypervideo-pre-2068a603182f8d32d3068231ed1fb91951b53687.zip
[generic] Set rss `guid` as video id (#2741)
Closes #2424 Authored by: Bricio
-rw-r--r--yt_dlp/extractor/generic.py18
1 files changed, 17 insertions, 1 deletions
diff --git a/yt_dlp/extractor/generic.py b/yt_dlp/extractor/generic.py
index f723d1e8c..baedd7948 100644
--- a/yt_dlp/extractor/generic.py
+++ b/yt_dlp/extractor/generic.py
@@ -213,7 +213,7 @@ class GenericIE(InfoExtractor):
{
'url': 'http://phihag.de/2014/youtube-dl/rss2.xml',
'info_dict': {
- 'id': 'http://phihag.de/2014/youtube-dl/rss2.xml',
+ 'id': 'https://phihag.de/2014/youtube-dl/rss2.xml',
'title': 'Zero Punctuation',
'description': 're:.*groundbreaking video review series.*'
},
@@ -258,6 +258,9 @@ class GenericIE(InfoExtractor):
'episode_number': 1,
'season_number': 1,
'age_limit': 0,
+ 'season': 'Season 1',
+ 'direct': True,
+ 'episode': 'Episode 1',
},
}],
'params': {
@@ -274,6 +277,16 @@ class GenericIE(InfoExtractor):
},
'playlist_mincount': 100,
},
+ # RSS feed with guid
+ {
+ 'url': 'https://www.omnycontent.com/d/playlist/a7b4f8fe-59d9-4afc-a79a-a90101378abf/bf2c1d80-3656-4449-9d00-a903004e8f84/efbff746-e7c1-463a-9d80-a903004e8f8f/podcast.rss',
+ 'info_dict': {
+ 'id': 'https://www.omnycontent.com/d/playlist/a7b4f8fe-59d9-4afc-a79a-a90101378abf/bf2c1d80-3656-4449-9d00-a903004e8f84/efbff746-e7c1-463a-9d80-a903004e8f8f/podcast.rss',
+ 'description': 'md5:be809a44b63b0c56fb485caf68685520',
+ 'title': 'The Little Red Podcast',
+ },
+ 'playlist_mincount': 76,
+ },
# SMIL from http://videolectures.net/promogram_igor_mekjavic_eng
{
'url': 'http://videolectures.net/promogram_igor_mekjavic_eng/video/1/smil.xml',
@@ -2518,6 +2531,9 @@ class GenericIE(InfoExtractor):
if not next_url:
continue
+ if it.find('guid').text is not None:
+ next_url = smuggle_url(next_url, {'force_videoid': it.find('guid').text})
+
def itunes(key):
return xpath_text(
it, xpath_with_ns('./itunes:%s' % key, NS_MAP),