fix
authorRadek Czajka <rczajka@rczajka.pl>
Fri, 5 Jun 2020 11:57:04 +0000 (13:57 +0200)
committerRadek Czajka <rczajka@rczajka.pl>
Fri, 5 Jun 2020 11:57:04 +0000 (13:57 +0200)
src/youtube/models.py

index b1abda9..5fe3c2b 100644 (file)
@@ -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
         )