diff --git a/headphones/albumart.py b/headphones/albumart.py index c35658da..3d0ff7fc 100644 --- a/headphones/albumart.py +++ b/headphones/albumart.py @@ -152,7 +152,6 @@ def getartwork(artwork_path): break elif maxwidth and img_width > maxwidth: # Downsize using proxy service to max width - logger.info("Artwork is greater than the maximum width, downsizing using proxy service") artwork_path = '{0}?{1}'.format('http://images.weserv.nl/', urlencode({ 'url': artwork_path.replace('http://', ''), 'w': maxwidth, @@ -163,6 +162,7 @@ def getartwork(artwork_path): for chunk in r.iter_content(chunk_size=1024): artwork += chunk r.close() + logger.info("Artwork is greater than the maximum width, downsized using proxy service") break resp.close() @@ -186,4 +186,4 @@ def getCachedArt(albumid): return else: with open(artwork_path, "r") as fp: - return fp.read() \ No newline at end of file + return fp.read() diff --git a/headphones/qbittorrent.py b/headphones/qbittorrent.py index b058fa71..48dadf48 100644 --- a/headphones/qbittorrent.py +++ b/headphones/qbittorrent.py @@ -17,7 +17,6 @@ import urllib import urllib2 import cookielib import json -import os import time import mimetypes import random diff --git a/headphones/searcher.py b/headphones/searcher.py index 2c2feb51..eddf54c0 100644 --- a/headphones/searcher.py +++ b/headphones/searcher.py @@ -1437,8 +1437,8 @@ def searchTorrent(album, new=False, losslessOnly=False, albumlength=None, query_items.extend(['format:(%s)' % format, 'size:[0 TO %d]' % maxsize]) - # (25/03/2017 Waffles back up after 5 months, all torrents have no seeders, remove for now) - #'-seeders:0']) # cut out dead torrents + # (25/03/2017 Waffles back up after 5 months, all torrents currently have no seeders, remove for now) + # '-seeders:0']) cut out dead torrents if bitrate: query_items.append('bitrate:"%s"' % bitrate)