X-Git-Url: https://git.mdrn.pl/audio.git/blobdiff_plain/a183348d000329cb699570f151c98c88d751fff9..7a728f387a0969d0ca4cfc7b7877bf4fa255eef9:/src/youtube/models.py?ds=sidebyside diff --git a/src/youtube/models.py b/src/youtube/models.py index b1abda9..5fe3c2b 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.youtube_volume or audiobook.part_name, + "part": (audiobook.youtube_volume or audiobook.part_name).strip(), }, lambda name: Font.objects.get(name=name).truetype.path )