rename vars to avoid confusion

This commit is contained in:
Rijul-A 2026-04-19 13:51:56 +00:00
commit 301e6f2087
No known key found for this signature in database
GPG key ID: A723947698B3680C

View file

@ -121,9 +121,9 @@ class Events(object):
is_current = params["id"] in playing_file
else:
queue = json.loads(window("jellyfin_play.json") or "[]")
for item in queue:
if item.get("Path") == playing_file:
if item.get("Id") == params["id"]:
for p_item in queue:
if p_item.get("Path") == playing_file:
if p_item.get("Id") == params["id"]:
is_current = True
break
if is_current: