mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-05-13 16:35:43 -05:00
[extractor/generic] Keep RSS webpage URL unsmuggled
This commit is contained in:
parent
2a81c0d577
commit
7748ed1eef
1 changed files with 3 additions and 3 deletions
|
@ -2203,15 +2203,14 @@ def _extract_rss(self, url, video_id, doc):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
guid = try_call(lambda: it.find('guid').text)
|
guid = try_call(lambda: it.find('guid').text)
|
||||||
if guid:
|
next_url_new = smuggle_url(next_url, {'force_videoid': guid}) if guid else next_url
|
||||||
next_url = smuggle_url(next_url, {'force_videoid': guid})
|
|
||||||
|
|
||||||
def itunes(key):
|
def itunes(key):
|
||||||
return xpath_text(it, xpath_with_ns(f'./itunes:{key}', NS_MAP), default=None)
|
return xpath_text(it, xpath_with_ns(f'./itunes:{key}', NS_MAP), default=None)
|
||||||
|
|
||||||
entries.append({
|
entries.append({
|
||||||
'_type': 'url_transparent',
|
'_type': 'url_transparent',
|
||||||
'url': next_url,
|
'url': next_url_new,
|
||||||
'title': try_call(lambda: it.find('title').text),
|
'title': try_call(lambda: it.find('title').text),
|
||||||
'description': xpath_text(it, 'description', default=None),
|
'description': xpath_text(it, 'description', default=None),
|
||||||
'uploader': xpath_text(it, 'author', default=None),
|
'uploader': xpath_text(it, 'author', default=None),
|
||||||
|
@ -2222,6 +2221,7 @@ def itunes(key):
|
||||||
'episode_number': int_or_none(itunes('episode')),
|
'episode_number': int_or_none(itunes('episode')),
|
||||||
'season_number': int_or_none(itunes('season')),
|
'season_number': int_or_none(itunes('season')),
|
||||||
'age_limit': {'true': 18, 'yes': 18, 'false': 0, 'no': 0}.get((itunes('explicit') or '').lower()),
|
'age_limit': {'true': 18, 'yes': 18, 'false': 0, 'no': 0}.get((itunes('explicit') or '').lower()),
|
||||||
|
'webpage_url': next_url,
|
||||||
})
|
})
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
Loading…
Reference in a new issue