From c70d7032be9d006cd4f5a77b652e2457ad8e36bd Mon Sep 17 00:00:00 2001 From: Christiaan Baartse Date: Fri, 11 Nov 2016 19:59:31 +0100 Subject: [PATCH] When downloading an RSS feed the title of the item in the feed cannot be used Instead of the title of the item in the RSS feed the name of the file is used. In the feed I am parsing those file names are a random hash which is not useful. To fix this add the RSS feed item title as a default alt_title. --- youtube_dl/YoutubeDL.py | 1 + 1 file changed, 1 insertion(+) diff --git a/youtube_dl/YoutubeDL.py b/youtube_dl/YoutubeDL.py index 53f20ac2c..5474e40b2 100755 --- a/youtube_dl/YoutubeDL.py +++ b/youtube_dl/YoutubeDL.py @@ -854,6 +854,7 @@ class YoutubeDL(object): 'webpage_url': ie_result['webpage_url'], 'webpage_url_basename': url_basename(ie_result['webpage_url']), 'extractor_key': ie_result['extractor_key'], + 'alt_title': entry.get('title'), } reason = self._match_entry(entry, incomplete=True)