mirror of
https://github.com/krateng/maloja.git
synced 2023-08-10 21:12:55 +03:00
Reverted previous design change to fix bug, need to rethink concept
This commit is contained in:
@ -173,24 +173,26 @@ def KeySplit(keys,forceTrack=False,forceArtist=False):
|
|||||||
|
|
||||||
# 2
|
# 2
|
||||||
resultkeys2 = {}
|
resultkeys2 = {}
|
||||||
if "since" in keys: resultkeys2["since"] = uri_to_internal(keys.get("since"))
|
if "since" in keys: resultkeys2["since"] = keys.get("since")
|
||||||
elif "from" in keys: resultkeys2["since"] = uri_to_internal(keys.get("from"))
|
elif "from" in keys: resultkeys2["since"] = keys.get("from")
|
||||||
elif "start" in keys: resultkeys2["since"] = uri_to_internal(keys.get("start"))
|
elif "start" in keys: resultkeys2["since"] = keys.get("start")
|
||||||
#
|
#
|
||||||
if "to" in keys: resultkeys2["to"] = uri_to_internal(keys.get("to"))
|
if "to" in keys: resultkeys2["to"] = keys.get("to")
|
||||||
elif "until" in keys: resultkeys2["to"] = uri_to_internal(keys.get("until"))
|
elif "until" in keys: resultkeys2["to"] = keys.get("until")
|
||||||
elif "end" in keys: resultkeys2["to"] = uri_to_internal(keys.get("end"))
|
elif "end" in keys: resultkeys2["to"] = keys.get("end")
|
||||||
#
|
#
|
||||||
if "since" in resultkeys2 and "to" in resultkeys2 and resultkeys2["since"] == resultkeys2["to"]:
|
if "since" in resultkeys2 and "to" in resultkeys2 and resultkeys2["since"] == resultkeys2["to"]:
|
||||||
resultkeys2["within"] = resultkeys2["since"]
|
resultkeys2["within"] = resultkeys2["since"]
|
||||||
del resultkeys2["since"]
|
del resultkeys2["since"]
|
||||||
del resultkeys2["to"]
|
del resultkeys2["to"]
|
||||||
#
|
#
|
||||||
if "in" in keys: resultkeys2["within"] = uri_to_internal(keys.get("in"))
|
if "in" in keys: resultkeys2["within"] = keys.get("in")
|
||||||
elif "within" in keys: resultkeys2["within"] = uri_to_internal(keys.get("within"))
|
elif "within" in keys: resultkeys2["within"] = keys.get("within")
|
||||||
elif "during" in keys: resultkeys2["within"] = uri_to_internal(keys.get("during"))
|
elif "during" in keys: resultkeys2["within"] = keys.get("during")
|
||||||
if "within" in resultkeys2:
|
if "within" in resultkeys2:
|
||||||
|
if "since" in resultkeys2:
|
||||||
del resultkeys2["since"]
|
del resultkeys2["since"]
|
||||||
|
if "to" in resultkeys2:
|
||||||
del resultkeys2["to"]
|
del resultkeys2["to"]
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user