mirror of
https://github.com/rembo10/headphones.git
synced 2026-05-02 09:49:36 +01:00
Fix typo, import loads from json
This commit is contained in:
committed by
GitHub
parent
31a99a908a
commit
42294d261d
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user