Loading daemon/kodi_scan +2 −0 Original line number Diff line number Diff line Loading @@ -25,6 +25,7 @@ def scan(library=None): headers=headers, data=json.dumps(audio_request_data).encode(), ) # pylint: disable-next=consider-using-with urllib.request.urlopen(req) # nosec elif library == "video": req = urllib.request.Request( Loading @@ -32,6 +33,7 @@ def scan(library=None): headers=headers, data=json.dumps(video_request_data).encode(), ) # pylint: disable-next=consider-using-with urllib.request.urlopen(req) # nosec else: scan("video") Loading Loading
daemon/kodi_scan +2 −0 Original line number Diff line number Diff line Loading @@ -25,6 +25,7 @@ def scan(library=None): headers=headers, data=json.dumps(audio_request_data).encode(), ) # pylint: disable-next=consider-using-with urllib.request.urlopen(req) # nosec elif library == "video": req = urllib.request.Request( Loading @@ -32,6 +33,7 @@ def scan(library=None): headers=headers, data=json.dumps(video_request_data).encode(), ) # pylint: disable-next=consider-using-with urllib.request.urlopen(req) # nosec else: scan("video") Loading