1
0
Fork 0
mirror of https://github.com/evilhero/mylar synced 2025-02-20 21:16:51 +00:00

IMP: added local domain bypass for search

This commit is contained in:
evilhero 2016-12-20 11:48:37 -05:00
parent 64658f2201
commit 81142d5d2d

View file

@ -603,7 +603,8 @@ def NZB_SEARCH(ComicName, IssueNumber, ComicYear, SeriesYear, Publisher, IssueDa
else:
hnc = host_newznab_fix
if hnc[:3] == '10.' or hnc[:4] == '172.' or hnc[:4] == '192.' or hnc.startswith('localhost'):
if any([hnc[:3] == '10.', hnc[:4] == '172.', hnc[:4] == '192.', hnc.startswith('localhost'), name_newznab[-6:] != '#local']):
logger.info('LOCAL BYPASS ENABLED FOR ' + name_newznab)
localbypass = True
if localbypass == False: