From 6f19abb3be1e7a48a94bbcf49c86fae2300e4e9c Mon Sep 17 00:00:00 2001 From: Leonetienne Date: Thu, 12 Jan 2023 22:24:06 +0100 Subject: [PATCH] [pr0gramm]: add video_id to title --- youtube_dl/extractor/pr0gramm.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/youtube_dl/extractor/pr0gramm.py b/youtube_dl/extractor/pr0gramm.py index f750c977c..350134f3f 100644 --- a/youtube_dl/extractor/pr0gramm.py +++ b/youtube_dl/extractor/pr0gramm.py @@ -18,7 +18,7 @@ class Pr0grammStaticIE(InfoExtractor): 'info_dict': { 'id': '5466437', 'ext': 'mp4', - 'title': 'pr0gramm', + 'title': 'pr0gramm - 5466437', 'uploader': 'g11st', 'upload_date': '20221221', } @@ -56,7 +56,7 @@ class Pr0grammStaticIE(InfoExtractor): return merge_dicts({ '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, 'upload_date': uploadTimestr }, media_info) @@ -76,12 +76,15 @@ class Pr0grammIE(InfoExtractor): 'info_dict': { 'id': '5466437', 'ext': 'mp4', - 'title': 'pr0gramm', + 'title': 'pr0gramm - 5466437', 'uploader': 'g11st', 'upload_date': '20221221', } } + def _generic_title(): + return "oof" + def _real_extract(self, url): video_id = self._match_id(url)