mirror of
https://github.com/rembo10/headphones.git
synced 2026-05-08 20:59:25 +01:00
Replace eval() with json.loads() for nzbsrus
This commit is contained in:
@@ -348,7 +348,7 @@ def searchNZB(albumid=None, new=False, losslessOnly=False):
|
||||
|
||||
if data:
|
||||
|
||||
d = eval(data.replace('null','None'))
|
||||
d = json.loads(data.replace('null','None'))
|
||||
|
||||
if d['matches'] <= 0:
|
||||
logger.info(u"No results found from NZBsRus for %s" % term)
|
||||
|
||||
Reference in New Issue
Block a user