Fix typo, import loads from json

This commit is contained in:
likeitneverwentaway
2016-10-08 01:55:55 +02:00
committed by GitHub
parent 31a99a908a
commit 42294d261d

View File

@@ -25,6 +25,7 @@ import datetime
import subprocess
import unicodedata
import urlparse
from json import loads
import os
import re
@@ -1812,7 +1813,7 @@ def searchTorrent(album, new=False, losslessOnly=False, albumlength=None,
# Tracker search
req = request.request_content(providerurl, headers=headers_auth)
req = json.loads(req)
req = loads(req)
total = req['total']
# Process feed
@@ -1849,7 +1850,6 @@ def searchTorrent(album, new=False, losslessOnly=False, albumlength=None,
logger.error("Error converting magnet link: %s" % str(e))
return
# attempt to verify that this isn't a substring result
# when looking for "Foo - Foo" we don't want "Foobar"
# this should be less of an issue when it isn't a self-titled album so we'll only check vs artist