mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-05 15:38:19 +08:00
fix datestr \n
This commit is contained in:
@@ -682,6 +682,7 @@ class TorrentSpider:
|
|||||||
elif method_name == "replace" and isinstance(args, list):
|
elif method_name == "replace" and isinstance(args, list):
|
||||||
text = text.replace(r"%s" % args[0], r"%s" % args[-1])
|
text = text.replace(r"%s" % args[0], r"%s" % args[-1])
|
||||||
elif method_name == "dateparse" and isinstance(args, str):
|
elif method_name == "dateparse" and isinstance(args, str):
|
||||||
|
text = text.replace("\n", " ").strip()
|
||||||
text = datetime.datetime.strptime(text, r"%s" % args)
|
text = datetime.datetime.strptime(text, r"%s" % args)
|
||||||
elif method_name == "strip":
|
elif method_name == "strip":
|
||||||
text = text.strip()
|
text = text.strip()
|
||||||
|
|||||||
Reference in New Issue
Block a user