mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2025-08-23 06:35:51 -07:00
[pr0gramm]: add uploader to title, if set
This commit is contained in:
parent
893adc41d6
commit
5a2b28cd6e
1 changed files with 4 additions and 3 deletions
|
@ -10,6 +10,7 @@ from ..utils import (
|
||||||
|
|
||||||
|
|
||||||
class Pr0grammStaticIE(InfoExtractor):
|
class Pr0grammStaticIE(InfoExtractor):
|
||||||
|
# Possible urls:
|
||||||
# https://pr0gramm.com/static/5466437
|
# https://pr0gramm.com/static/5466437
|
||||||
_VALID_URL = r'https?://pr0gramm\.com/static/(?P<id>[0-9]+)'
|
_VALID_URL = r'https?://pr0gramm\.com/static/(?P<id>[0-9]+)'
|
||||||
_TEST = {
|
_TEST = {
|
||||||
|
@ -18,7 +19,7 @@ class Pr0grammStaticIE(InfoExtractor):
|
||||||
'info_dict': {
|
'info_dict': {
|
||||||
'id': '5466437',
|
'id': '5466437',
|
||||||
'ext': 'mp4',
|
'ext': 'mp4',
|
||||||
'title': 'pr0gramm - 5466437',
|
'title': 'pr0gramm-5466437 by g11st',
|
||||||
'uploader': 'g11st',
|
'uploader': 'g11st',
|
||||||
'upload_date': '20221221',
|
'upload_date': '20221221',
|
||||||
}
|
}
|
||||||
|
@ -56,7 +57,7 @@ class Pr0grammStaticIE(InfoExtractor):
|
||||||
|
|
||||||
return merge_dicts({
|
return merge_dicts({
|
||||||
'id': video_id,
|
'id': video_id,
|
||||||
'title': 'pr0gramm - %s' % video_id,
|
'title': 'pr0gramm-%s%s' % (video_id, (' by ' + uploader) if uploader else ''),
|
||||||
'uploader': uploader,
|
'uploader': uploader,
|
||||||
'upload_date': uploadTimestr
|
'upload_date': uploadTimestr
|
||||||
}, media_info)
|
}, media_info)
|
||||||
|
@ -86,7 +87,7 @@ class Pr0grammIE(InfoExtractor):
|
||||||
'info_dict': {
|
'info_dict': {
|
||||||
'id': '5466437',
|
'id': '5466437',
|
||||||
'ext': 'mp4',
|
'ext': 'mp4',
|
||||||
'title': 'pr0gramm - 5466437',
|
'title': 'pr0gramm-5466437 by g11st',
|
||||||
'uploader': 'g11st',
|
'uploader': 'g11st',
|
||||||
'upload_date': '20221221',
|
'upload_date': '20221221',
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue