better lines start

This commit is contained in:
MarkusHackspacher 2018-03-17 10:27:12 +01:00
parent 41f07738ff
commit a72a5bbb21
1 changed files with 2 additions and 1 deletions

View File

@ -269,7 +269,8 @@ class PodcastEpisode(PodcastModelObject):
return title
# "#001: Title" -> "001: Title"
if (not self.parent._common_prefix and
if (
not self.parent._common_prefix and
re.match('^#\d+: ', self.title) and
len(self.title)-1 > LEFTOVER_MIN):
return self.title[1:]