X-Git-Url: https://git.mdrn.pl/audio.git/blobdiff_plain/3c7adf8af63a913089eb5ec736443ea0c59a8d68..refs/heads/master:/src/youtube/models.py?ds=sidebyside diff --git a/src/youtube/models.py b/src/youtube/models.py index 76a02b9..35899b6 100644 --- a/src/youtube/models.py +++ b/src/youtube/models.py @@ -243,7 +243,7 @@ class ThumbnailTemplate(models.Model): { "author": ', '.join((a['name'] for a in audiobook.book['authors'])), "title": title, - "part": (audiobook.youtube_volume or audiobook.part_name).strip(), + "part": (audiobook.youtube_volume or audiobook.part_name).strip() if audiobook.youtube_volume_count > 1 else '', }, lambda name: Font.objects.get(name=name).truetype.path )