mirror of
https://github.com/rembo10/headphones.git
synced 2026-05-06 19:59:44 +01:00
Remove the validator, since it returns a dict on error and a list on results. Validator always expected a dict
This commit is contained in:
@@ -537,8 +537,7 @@ def searchNZB(album, new=False, losslessOnly=False):
|
||||
|
||||
data = request.request_json(
|
||||
url='http://api.omgwtfnzbs.org/json/',
|
||||
params=params, headers=headers,
|
||||
validator=lambda x: type(x) == dict
|
||||
params=params, headers=headers
|
||||
)
|
||||
|
||||
# Parse response
|
||||
|
||||
Reference in New Issue
Block a user