[reactor] update and improve

- split 'tags' into a list
- parse 'date' into a datetime object
- fix webm/mp4 URLs
This commit is contained in:
Mike Fährmann
2019-05-09 22:50:25 +02:00
parent b0e85a42e3
commit b1db194c14
2 changed files with 15 additions and 15 deletions

View File

@@ -50,10 +50,9 @@ class MetadataPP(PostProcessor):
return
if not isinstance(tags, list):
for separator in (" :: ", ", ", " "):
taglist = tags.split(separator)
if len(taglist) >= len(tags) / 16:
break
taglist = tags.split(", ")
if len(taglist) < len(tags) / 16:
taglist = tags.split(" ")
tags = taglist
file.write("\n".join(tags))