mirror of
https://github.com/evilhero/mylar
synced 2025-03-12 06:52:58 +00:00
FIX: fix for failed 32P download erroring out when checking status code returned
This commit is contained in:
parent
b30b060084
commit
395af203d6
1 changed files with 3 additions and 3 deletions
|
@ -418,11 +418,11 @@ class info32p(object):
|
|||
|
||||
if str(r.status_code) != '200':
|
||||
logger.warn('Unable to download torrent from 32P [Status Code returned: %s]' % r.status_code)
|
||||
if str(r.status_code) == '404' and site == '32P':
|
||||
if str(r.status_code) == '404':
|
||||
logger.warn('[32P-CACHED_ENTRY] Entry found in 32P cache - incorrect. Torrent has probably been merged into a pack, or another series id. Removing from cache.')
|
||||
helpers.delete_cache_entry(linkit)
|
||||
self.delete_cache_entry(payload['id'])
|
||||
else:
|
||||
logger.info('content: %s' % r.content)
|
||||
logger.fdebug('content: %s' % r.content)
|
||||
return False
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue