From: Radek Czajka Date: Fri, 5 Jun 2020 11:56:23 +0000 (+0200) Subject: Use youtube volume name on thumbnails. X-Git-Url: https://git.mdrn.pl/audio.git/commitdiff_plain/a183348d000329cb699570f151c98c88d751fff9?ds=inline;hp=33c35cad796de192573ef8cb377e9c9dd0b11a68 Use youtube volume name on thumbnails. --- diff --git a/src/youtube/models.py b/src/youtube/models.py index 777b77a..b1abda9 100644 --- a/src/youtube/models.py +++ b/src/youtube/models.py @@ -191,7 +191,7 @@ class YouTube(models.Model): { "author": ', '.join((a['name'] for a in audiobook.book['authors'])), "title": audiobook.book['title'], - "part": audiobook.part_name, + "part": audiobook.youtube_volume or audiobook.part_name, }, lambda name: Font.objects.get(name=name).truetype.path )