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.
This commit is contained in:
Christiaan Baartse 2016-11-11 19:59:31 +01:00
parent bc40b3a5ba
commit c70d7032be

View File

@ -854,6 +854,7 @@ class YoutubeDL(object):
'webpage_url': ie_result['webpage_url'], 'webpage_url': ie_result['webpage_url'],
'webpage_url_basename': url_basename(ie_result['webpage_url']), 'webpage_url_basename': url_basename(ie_result['webpage_url']),
'extractor_key': ie_result['extractor_key'], 'extractor_key': ie_result['extractor_key'],
'alt_title': entry.get('title'),
} }
reason = self._match_entry(entry, incomplete=True) reason = self._match_entry(entry, incomplete=True)