mirror of
https://github.com/rembo10/headphones.git
synced 2026-05-02 09:49:36 +01:00
Merge pull request #577 from ErnstHaagsman/master
Minor bugfix in searcher.py
This commit is contained in:
@@ -672,7 +672,7 @@ def searchTorrent(albumid=None, new=False, losslessOnly=False):
|
|||||||
logger.info('%s is larger than the maxsize, the wrong format or has to little seeders for this category, skipping. (Size: %i bytes, Seeders: %i, Format: %s)' % (title, size, int(seeders), rightformat))
|
logger.info('%s is larger than the maxsize, the wrong format or has to little seeders for this category, skipping. (Size: %i bytes, Seeders: %i, Format: %s)' % (title, size, int(seeders), rightformat))
|
||||||
|
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
logger.error(u"An unknown error occured trying to parse the feed: %s" % e)
|
logger.error(u"An unknown error occured in the KAT parser: %s" % e)
|
||||||
|
|
||||||
|
|
||||||
if headphones.ISOHUNT:
|
if headphones.ISOHUNT:
|
||||||
@@ -738,14 +738,14 @@ def searchTorrent(albumid=None, new=False, losslessOnly=False):
|
|||||||
rightformat = False
|
rightformat = False
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
rightformat = False
|
rightformat = False
|
||||||
if rightformat == True and size < maxsize and minimumseeders < seeders:
|
if rightformat == True and size < maxsize and minimumseeders < seeds:
|
||||||
resultlist.append((title, size, url, provider))
|
resultlist.append((title, size, url, provider))
|
||||||
logger.info('Found %s. Size: %s' % (title, helpers.bytes_to_mb(size)))
|
logger.info('Found %s. Size: %s' % (title, helpers.bytes_to_mb(size)))
|
||||||
else:
|
else:
|
||||||
logger.info('%s is larger than the maxsize, the wrong format or has to little seeders for this category, skipping. (Size: %i bytes, Seeders: %i, Format: %s)' % (title, size, int(seeders), rightformat))
|
logger.info('%s is larger than the maxsize, the wrong format or has to little seeders for this category, skipping. (Size: %i bytes, Seeders: %i, Format: %s)' % (title, size, int(seeds), rightformat))
|
||||||
|
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
logger.error(u"An unknown error occured trying to parse the feed: %s" % e)
|
logger.error(u"An unknown error occured in the ISOhunt parser: %s" % e)
|
||||||
|
|
||||||
if headphones.MININOVA:
|
if headphones.MININOVA:
|
||||||
provider = "Mininova"
|
provider = "Mininova"
|
||||||
@@ -805,14 +805,14 @@ def searchTorrent(albumid=None, new=False, losslessOnly=False):
|
|||||||
rightformat = False
|
rightformat = False
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
rightformat = False
|
rightformat = False
|
||||||
if rightformat == True and size < maxsize and minimumseeders < seeders:
|
if rightformat == True and size < maxsize and minimumseeders < seeds:
|
||||||
resultlist.append((title, size, url, provider))
|
resultlist.append((title, size, url, provider))
|
||||||
logger.info('Found %s. Size: %s' % (title, helpers.bytes_to_mb(size)))
|
logger.info('Found %s. Size: %s' % (title, helpers.bytes_to_mb(size)))
|
||||||
else:
|
else:
|
||||||
logger.info('%s is larger than the maxsize, the wrong format or has to little seeders for this category, skipping. (Size: %i bytes, Seeders: %i, Format: %s)' % (title, size, int(seeders), rightformat))
|
logger.info('%s is larger than the maxsize, the wrong format or has to little seeders for this category, skipping. (Size: %i bytes, Seeders: %i, Format: %s)' % (title, size, int(seeds), rightformat))
|
||||||
|
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
logger.error(u"An unknown error occured trying to parse the feed: %s" % e)
|
logger.error(u"An unknown error occured in the MiniNova Parser: %s" % e)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user