Fix line formatting
This commit is contained in:
parent
8c6689796c
commit
d076426bf7
@ -102,6 +102,7 @@ if __name__ == "__main__":
|
|||||||
# Delete the episode artwork image file
|
# Delete the episode artwork image file
|
||||||
os.remove(os.path.join(episode_folder, filename))
|
os.remove(os.path.join(episode_folder, filename))
|
||||||
|
|
||||||
|
# Unlock the summary so it will get updated on refresh
|
||||||
episode.edit(**{'summary.locked': 0})
|
episode.edit(**{'summary.locked': 0})
|
||||||
continue
|
continue
|
||||||
|
|
||||||
@ -122,8 +123,11 @@ if __name__ == "__main__":
|
|||||||
shutil.copyfileobj(blurred_artwork, f)
|
shutil.copyfileobj(blurred_artwork, f)
|
||||||
|
|
||||||
if opts.summary_prefix and not episode.summary.startswith(opts.summary_prefix):
|
if opts.summary_prefix and not episode.summary.startswith(opts.summary_prefix):
|
||||||
# Use a zero-width space for blank lines
|
# Use a zero-width space (\u200b) for blank lines
|
||||||
episode.edit(**{'summary.value': opts.summary_prefix + '\n\u200b\n' + episode.summary, 'summary.locked': 1})
|
episode.edit(**{
|
||||||
|
'summary.value': opts.summary_prefix + '\n\u200b\n' + episode.summary,
|
||||||
|
'summary.locked': 1
|
||||||
|
})
|
||||||
|
|
||||||
# Refresh metadata for the episode
|
# Refresh metadata for the episode
|
||||||
episode.refresh()
|
episode.refresh()
|
||||||
|
Loading…
Reference in New Issue
Block a user