mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2025-08-23 06:35:51 -07:00
[pr0gramm]: add video_id to title
This commit is contained in:
parent
6f375d98b6
commit
6f19abb3be
1 changed files with 6 additions and 3 deletions
|
@ -18,7 +18,7 @@ class Pr0grammStaticIE(InfoExtractor):
|
||||||
'info_dict': {
|
'info_dict': {
|
||||||
'id': '5466437',
|
'id': '5466437',
|
||||||
'ext': 'mp4',
|
'ext': 'mp4',
|
||||||
'title': 'pr0gramm',
|
'title': 'pr0gramm - 5466437',
|
||||||
'uploader': 'g11st',
|
'uploader': 'g11st',
|
||||||
'upload_date': '20221221',
|
'upload_date': '20221221',
|
||||||
}
|
}
|
||||||
|
@ -56,7 +56,7 @@ class Pr0grammStaticIE(InfoExtractor):
|
||||||
|
|
||||||
return merge_dicts({
|
return merge_dicts({
|
||||||
'id': video_id,
|
'id': video_id,
|
||||||
'title': 'pr0gramm', # Posts don't have titles. The id seems to be postfixed by yt-dl automatically.
|
'title': 'pr0gramm - %s' % video_id,
|
||||||
'uploader': uploader,
|
'uploader': uploader,
|
||||||
'upload_date': uploadTimestr
|
'upload_date': uploadTimestr
|
||||||
}, media_info)
|
}, media_info)
|
||||||
|
@ -76,12 +76,15 @@ class Pr0grammIE(InfoExtractor):
|
||||||
'info_dict': {
|
'info_dict': {
|
||||||
'id': '5466437',
|
'id': '5466437',
|
||||||
'ext': 'mp4',
|
'ext': 'mp4',
|
||||||
'title': 'pr0gramm',
|
'title': 'pr0gramm - 5466437',
|
||||||
'uploader': 'g11st',
|
'uploader': 'g11st',
|
||||||
'upload_date': '20221221',
|
'upload_date': '20221221',
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
def _generic_title():
|
||||||
|
return "oof"
|
||||||
|
|
||||||
def _real_extract(self, url):
|
def _real_extract(self, url):
|
||||||
video_id = self._match_id(url)
|
video_id = self._match_id(url)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue