1
0
mirror of https://codeberg.org/polarisfm/youtube-dl synced 2024-11-26 10:24:33 +01:00

[libraryofcongress] better title if national jukebox

This commit is contained in:
user706 2018-12-29 00:35:04 +01:00
parent 6a4d1f3672
commit 40e2cbd86c

View File

@ -83,8 +83,9 @@ class LibraryOfCongressIE(InfoExtractor):
derivative = data['derivatives'][0]
media_url = derivative['derivativeUrl']
title = derivative.get('shortName') or data.get('shortName') or self._og_search_title(
webpage)
title = derivative.get('shortName')
if (not title) or (title == "128 Bit Derivative"):
title = data.get('shortName') or self._og_search_title(webpage)
# Following algorithm was extracted from setAVSource js function
# found in webpage