From 73594a90ce59bbbe51faa4c0263f3e8ccedde27b Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Fri, 5 Jun 2020 13:57:04 +0200 Subject: [PATCH] fix --- src/youtube/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ) -- 2.20.1