mirror of
https://github.com/SickGear/SickGear.git
synced 2024-12-11 21:53:37 +00:00
Fix rare case recovery after a server has been down.
Change update pa provider URLs.
This commit is contained in:
parent
0644ec2e61
commit
0bfefa8121
8 changed files with 131 additions and 127 deletions
|
@ -1,6 +1,7 @@
|
||||||
### 0.16.13 (2018-05-26 17:00:00 UTC)
|
### 0.16.13 (2018-05-26 17:00:00 UTC)
|
||||||
|
|
||||||
* Change add blacklog search terms for anime PROPERS
|
* Change add blacklog search terms for anime PROPERS
|
||||||
|
* Fix rare case recovery after a server has been down
|
||||||
|
|
||||||
|
|
||||||
### 0.16.12 (2018-05-25 00:40:00 UTC)
|
### 0.16.12 (2018-05-25 00:40:00 UTC)
|
||||||
|
|
|
@ -33,38 +33,41 @@ class BTSceneProvider(generic.TorrentProvider):
|
||||||
generic.TorrentProvider.__init__(self, 'BTScene')
|
generic.TorrentProvider.__init__(self, 'BTScene')
|
||||||
|
|
||||||
self.url_home = ['https://%s/' % base64.b64decode(x) for x in [''.join(x) for x in [
|
self.url_home = ['https://%s/' % base64.b64decode(x) for x in [''.join(x) for x in [
|
||||||
[re.sub('[O\sx]+', '', x[::-1]) for x in [
|
[re.sub('[o\sv]+', '', x[::-1]) for x in [
|
||||||
'zRnx Y', 'ux V2Y', '15 S Z', 'sJ Omb', 'r N 2b', 'uxQxWZ', '=MOm d']],
|
'z Rn Y', 'uVv2vY', '1 5vSZ', 'sJ omb', 'rNov2b', 'uQoWvZ', '0FvoGb']],
|
||||||
[re.sub('[L\sq]+', '', x[::-1]) for x in [
|
[re.sub('[v\sp]+', '', x[::-1]) for x in [
|
||||||
'zLRn Y', 'uVqq2Y', '15SqLZ', 'sqJLmb', 'rN L2b', 'uqLQWZ', '=qgX b']],
|
'zRnp Y', 'upVp2Y', '15SvpZ', 'spJpmb', 'r N 2b', 'u QvWZ', '=Mvm d']],
|
||||||
[re.sub('[Q\s0]+', '', x[::-1]) for x in [
|
[re.sub('[P\sh]+', '', x[::-1]) for x in [
|
||||||
'zRn Y', 'uQ V2Y', '1Q5QSZ', 'sJ0mQb', 'rQ0N2b', 'uIX QZ', 'ul200d']],
|
'zh RnY', 'uV2 Y', '1P5ShZ', 's Jm b', 'rN2h b', 'uQPW Z', '=ghXPb']],
|
||||||
[re.sub('[T\s ]+', '', x[::-1]) for x in [
|
[re.sub('[g\si]+', '', x[::-1]) for x in [
|
||||||
'zR nTY', 'uTVT2Y', '15 STZ', 'sTTJmb', 'r N2 b', 'uTTIXZ', '=TTM2Y']],
|
'zRiniY', 'uVgg2Y', '1 i5SZ', 'sJiimb', 'rN2igb', 'u IX Z', 'ul 2d']],
|
||||||
[re.sub('[i\sw]+', '', x[::-1]) for x in [
|
[re.sub('[O\sp]+', '', x[::-1]) for x in [
|
||||||
'zR nY', 'li52ib', '15i SM', 's Jmwb', 'rN2 b', 'uwQW Z', 's9i Gb']],
|
'zORnOY', 'uV2OpY', '15pSOZ', 'spJpmb', 'rN2O b', 'uOIXpZ', '=pM2OY']],
|
||||||
[re.sub('[X\sV]+', '', x[::-1]) for x in [
|
[re.sub('[ \sH]+', '', x[::-1]) for x in [
|
||||||
'z Rn Y', 'lXV52b', '1 5 SM', 'sJ mXb', 'rN2XVb', 'uVQWVZ', 'mRX3Vd']],
|
'zRHnHY', 'l H52b', '15HHSM', 'sJ mHb', 'rN 2 b', 'uQ WHZ', 's 9 Gb']],
|
||||||
[re.sub('[p\sF]+', '', x[::-1]) for x in [
|
[re.sub('[o\s ]+', '', x[::-1]) for x in [
|
||||||
'zFRFnY', 'l5 F2b', '15SF M', 'sFJmpb', 'rN 2pb', 'upQWpZ', '=MFFXb']],
|
'zRoonY', 'l5 2 b', '15ooSM', 'sJomob', 'rN2o b', 'uoQW Z', 'mRo3od']],
|
||||||
[re.sub('[Q\sp]+', '', x[::-1]) for x in [
|
[re.sub('[0\sg]+', '', x[::-1]) for x in [
|
||||||
'z RpnY', 'u V2 Y', 'i5QSQZ', 'hBpQXe', 'lN 3Qc', 'vQ 5CZ', '=cpmpc']],
|
'zR0n0Y', 'l5 g2b', '1g5S M', 'sJm gb', 'rN0g2b', 'uQW 0Z', '=gMX b']],
|
||||||
[re.sub('[o\sG]+', '', x[::-1]) for x in [
|
[re.sub('[r\sj]+', '', x[::-1]) for x in [
|
||||||
'zo RnY', 'u GV2Y', 'i 5S Z', 'hGBX e', 'loNG3c', 'lG5CGZ', '== Qod']],
|
'zR nrY', 'uVj2rY', 'ir 5SZ', 'hB Xre', 'lN j3c', 'vj 5CZ', '=jjcmc']],
|
||||||
[re.sub('[q\sW]+', '', x[::-1]) for x in [
|
[re.sub('[M\st]+', '', x[::-1]) for x in [
|
||||||
'zR nqY', 'u V2qY', 'iq5 SZ', 'h BXqe', 'lN3 c', 'i5C WZ', '==gq e']],
|
'z MRnY', 'uV2tMY', 'i5 StZ', 'hBtXte', 'lN3 tc', 'lMM5CZ', '== tQd']],
|
||||||
[re.sub('[q\sg]+', '', x[::-1]) for x in [
|
[re.sub('[K\so]+', '', x[::-1]) for x in [
|
||||||
'c gtQnY', 'mbg lN2', 'M 2Y tU', 'vgJHqcu', 'cz5C qe', 'QqgZjFG', '= g=']],
|
'zR n Y', 'uV2 oY', 'i5 SZ', 'hBX oe', 'loNK3c', 'i 5CoZ', '=K=goe']],
|
||||||
[re.sub('[H\sF]+', '', x[::-1]) for x in [
|
[re.sub('[i\sP]+', '', x[::-1]) for x in [
|
||||||
'2YzFRFnY', '0H5SZHuV', 'WZyFFJ3b', 'p1me 0 5', 'iHHcvJnc', '=cFmc v5']],
|
'ctQiniY', 'mblNPP2', 'M 2YPtU', 'vJHPcPu', 'c z5PCe', 'QZj FPG', '=i =']],
|
||||||
[re.sub('[w\si]+', '', x[::-1]) for x in [
|
[re.sub('[k\sq]+', '', x[::-1]) for x in [
|
||||||
'RwnwY', '2 wYz', 'Z u V', 'sii5S', 'RXi Y', 'nL wv', '3i B']],
|
'2Yzk RnY', '0k5qSZuV', 'WZyJ3qqb', 'p1m ke05', 'i cvJnkc', '=cmkckv5']],
|
||||||
[re.sub('[k\sh]+', '', x[::-1]) for x in [
|
[re.sub('[f\sG]+', '', x[::-1]) for x in [
|
||||||
'zRnkhY', 'uV 2Y', '65hSkZ', '2Nk Ge', 'phdn L', '=kk=gb']],
|
'Rn Y', '2 fYz', 'Z fuV', 'sf 5S', 'RffXY', 'nGfLv', '3ffB']],
|
||||||
[re.sub('[q\sP]+', '', x[::-1]) for x in [
|
[re.sub('[t\sF]+', '', x[::-1]) for x in [
|
||||||
'mPblqN2ctQnY', 'vlWduM2 YPtU', 'nYoRXahZPm L', '15PSZuV2 YzR', 'WYrN 2PbsJmb',
|
'zFtRnY', 'u V2Y', '65S tZ', '2NFG e', 'pdFnFL', '= =Fgb']],
|
||||||
'==wZ y9mL sx']],
|
[re.sub('[q\s ]+', '', x[::-1]) for x in [
|
||||||
]]]
|
't QqnY', 'l N2 c', 'tUmq b', 'uM2 Y', 'vl Wqd', 'hZ qmL', 'oRXqqa']],
|
||||||
|
[re.sub('[o\st]+', '', x[::-1]) for x in [
|
||||||
|
'YzRnooY', 'SoZu V2', 'Jmtb 15', 'rN 2bs', 'Ls xWtY', 'wZyt 9m', '= t=']],
|
||||||
|
]]]
|
||||||
self.url_vars = {'search': '?q=%s&order=1', 'browse': 'lastdaycat/type/Series/',
|
self.url_vars = {'search': '?q=%s&order=1', 'browse': 'lastdaycat/type/Series/',
|
||||||
'get': 'torrentdownload.php?id=%s'}
|
'get': 'torrentdownload.php?id=%s'}
|
||||||
self.url_tmpl = {'config_provider_home_uri': '%(home)s', 'search': '%(vars)s',
|
self.url_tmpl = {'config_provider_home_uri': '%(home)s', 'search': '%(vars)s',
|
||||||
|
|
|
@ -34,26 +34,26 @@ class EztvProvider(generic.TorrentProvider):
|
||||||
|
|
||||||
self.url_home = ['https://eztv.ag/'] + \
|
self.url_home = ['https://eztv.ag/'] + \
|
||||||
['https://%s/' % base64.b64decode(x) for x in [''.join(x) for x in [
|
['https://%s/' % base64.b64decode(x) for x in [''.join(x) for x in [
|
||||||
[re.sub('[f\sQ]+', '', x[::-1]) for x in [
|
[re.sub('[v\sz]+', '', x[::-1]) for x in [
|
||||||
'0pfQXZ', 'uQEQjd', 'if5fWd', 'j9ffGb', 'kQV2fa', '0fdnQL', '=f=g Z']],
|
'0vp XZ', 'uvEj d', 'i5 Wzd', 'j9 vGb', 'kV2v a', '0zdvnL', '==vg Z']],
|
||||||
[re.sub('[x\sg]+', '', x[::-1]) for x in [
|
[re.sub('[f\sT]+', '', x[::-1]) for x in [
|
||||||
'0xp XZ', 'uxEjxd', 'i x5Wd', 'jg9Ggb', 'kV2 xa', 'zx1gmL']],
|
'0TpfXZ', 'ufTEjd', 'i5WTTd', 'j9f Gb', 'kV f2a', 'z1mTTL']],
|
||||||
[re.sub('[R\sK]+', '', x[::-1]) for x in [
|
[re.sub('[ \sR]+', '', x[::-1]) for x in [
|
||||||
'0pX KZ', 'i5i d', 'hBXKRe', 'lN3K c', 'v5KCKZ', '=cR mc']],
|
'0pXRRZ', 'h 1id', 'w5yRRZ', '4 9 mc', 'w N nL', 'lNRW Y']],
|
||||||
[re.sub('[f\sR]+', '', x[::-1]) for x in [
|
[re.sub('[x\su]+', '', x[::-1]) for x in [
|
||||||
'0pfX Z', 'iff5id', 'hBXRfe', 'l N3 c', 'l5ffCZ', '==RQ d']],
|
'dx0xpXZ', '3bx05xi', '5WZyxuJ', 'p1mexu0', 'c vuJnc', 'mcuuv5i', '= c']],
|
||||||
[re.sub('[S\sx]+', '', x[::-1]) for x in [
|
[re.sub('[T\sr]+', '', x[::-1]) for x in [
|
||||||
'0 p XZ', 'iS5i d', 'h BXe', 'lNSx3c', 'i5SC Z', '==gxSe']],
|
'XT Z', '0Trp', 'iTTd', 'sT 5', 'XTrY', 'vT R', 'nrrL', '3T B']],
|
||||||
[re.sub('[O\su]+', '', x[::-1]) for x in [
|
[re.sub('[l\sT]+', '', x[::-1]) for x in [
|
||||||
'0OpX Z', 'hu1Oid', 'w5yuuZ', '49u mc', 'w N nL', 'lONW Y']],
|
'pX Z', 'idl 0', 'e6l 5', '2lTNG', 'd nTL', 'g blp', '= =']],
|
||||||
[re.sub('[O\sf]+', '', x[::-1]) for x in [
|
[re.sub('[T\sR]+', '', x[::-1]) for x in [
|
||||||
'd0pOXfZ', '3bff05i', '5W ZfyJ', 'p1fmOe0', 'cvJn c', 'mcOvf5i', '= Oc']],
|
'0p X Z', 'h1iRRd', '15R yZ', 'u 8WRa', 'p RFmZ', '=gTGRd']],
|
||||||
[re.sub('[w\sl]+', '', x[::-1]) for x in [
|
[re.sub('[T\st]+', '', x[::-1]) for x in [
|
||||||
'XwlZ', '0wlp', 'il d', 's l5', 'X wY', 'v lR', 'nl L', '3 B']],
|
'0 ptXZ', '1T5i d', 'sTtJmb', 'rtN2Tb', 'sx WTY', 'ytT9mL', '=t=wTZ']],
|
||||||
[re.sub('[M\sQ]+', '', x[::-1]) for x in [
|
[re.sub('[o\sz]+', '', x[::-1]) for x in [
|
||||||
'pQMXZ', 'iQd 0', 'e 6M5', '2 NQG', 'dQMnL', 'gMQbp', '= Q=']],
|
'0zopXZ', '1z5oid', 'sJ mb', 'rNz2zb', 'uz QWZ', '0FGoob']],
|
||||||
[re.sub('[o\sS]+', '', x[::-1]) for x in [
|
[re.sub('[k\sv]+', '', x[::-1]) for x in [
|
||||||
'h1 id0opXZ', 'u8Wa15y Z', 'lhGdpFSmoZ', 'uVnL2 RnSe', 'ht2oY vxmY', 'nJ3obuwSGb']],
|
'Xk Z', '0kkp', 'ivvd', 'y k5', 'WkvZ', '= Q']],
|
||||||
]]]
|
]]]
|
||||||
self.url_vars = {'search': 'search/%s', 'browse': 'page_%s'}
|
self.url_vars = {'search': 'search/%s', 'browse': 'page_%s'}
|
||||||
self.url_tmpl = {'config_provider_home_uri': '%(home)s',
|
self.url_tmpl = {'config_provider_home_uri': '%(home)s',
|
||||||
|
|
|
@ -1468,14 +1468,14 @@ class TorrentProvider(GenericProvider):
|
||||||
if not self.enabled:
|
if not self.enabled:
|
||||||
return last_url
|
return last_url
|
||||||
|
|
||||||
|
self.failure_count = failure_count = 0
|
||||||
for cur_url in url_list:
|
for cur_url in url_list:
|
||||||
if not self.is_valid_mod(cur_url):
|
if not self.is_valid_mod(cur_url):
|
||||||
return None
|
return None
|
||||||
|
failure_count += self.failure_count
|
||||||
|
self.failure_count = 0
|
||||||
if 10 < len(cur_url) and ((expire and (expire > int(time.time()))) or
|
if 10 < len(cur_url) and ((expire and (expire > int(time.time()))) or
|
||||||
self._has_signature(self.get_url(cur_url, skip_auth=True))):
|
self._has_signature(self.get_url(cur_url, skip_auth=True))):
|
||||||
if self.should_skip():
|
|
||||||
return None
|
|
||||||
for k, v in getattr(self, 'url_tmpl', {}).items():
|
for k, v in getattr(self, 'url_tmpl', {}).items():
|
||||||
self.urls[k] = v % {'home': cur_url, 'vars': getattr(self, 'url_vars', {}).get(k, '')}
|
self.urls[k] = v % {'home': cur_url, 'vars': getattr(self, 'url_vars', {}).get(k, '')}
|
||||||
|
|
||||||
|
@ -1484,6 +1484,10 @@ class TorrentProvider(GenericProvider):
|
||||||
sickbeard.save_config()
|
sickbeard.save_config()
|
||||||
return cur_url
|
return cur_url
|
||||||
|
|
||||||
|
self.failure_count = 3 * bool(failure_count)
|
||||||
|
if self.should_skip():
|
||||||
|
return None
|
||||||
|
|
||||||
logger.log('Failed to identify a "%s" page with %s %s (local network issue, site down, or ISP blocked) ' %
|
logger.log('Failed to identify a "%s" page with %s %s (local network issue, site down, or ISP blocked) ' %
|
||||||
(self.name, len(url_list), ('URL', 'different URLs')[1 < len(url_list)]) +
|
(self.name, len(url_list), ('URL', 'different URLs')[1 < len(url_list)]) +
|
||||||
(attempt_fetch and ('Suggest; 1) Disable "%s" 2) Use a proxy/VPN' % self.get_id()) or ''),
|
(attempt_fetch and ('Suggest; 1) Disable "%s" 2) Use a proxy/VPN' % self.get_id()) or ''),
|
||||||
|
|
|
@ -34,36 +34,38 @@ class LimeTorrentsProvider(generic.TorrentProvider):
|
||||||
|
|
||||||
self.url_home = ['https://www.limetorrents.cc/'] + \
|
self.url_home = ['https://www.limetorrents.cc/'] + \
|
||||||
['https://%s/' % base64.b64decode(x) for x in [''.join(x) for x in [
|
['https://%s/' % base64.b64decode(x) for x in [''.join(x) for x in [
|
||||||
[re.sub('[ \sg]+', '', x[::-1]) for x in [
|
[re.sub('[F\sp]+', '', x[::-1]) for x in [
|
||||||
'XZtlg Gb', 'lJngcv R', 'nLz R nb', 'v xmYu V', 'CZl t2 Y', '==gwY2g5']],
|
'XZFtlpGb', 'lJn pcvR', 'nFLpzRnb', 'v xpmYuV', 'CZlt F2Y', '=F QXYs5']],
|
||||||
[re.sub('[S\si]+', '', x[::-1]) for x in [
|
[re.sub('[K\sP]+', '', x[::-1]) for x in [
|
||||||
'X SZtlGb', 'lJi ncvR', 'nSSLzRnb', 'vxmSYu V', 'CSZilt2Y', '=S= Aet5']],
|
'XZKtPlGb', 'lJncPPvR', 'nKLzRnKb', 'vxm Y uV', 'CZlPt2PY', '==wYK2P5']],
|
||||||
[re.sub('[x\s0]+', '', x[::-1]) for x in [
|
[re.sub('[i\sQ]+', '', x[::-1]) for x in [
|
||||||
'tlGx b', 'u0ExTZ', 'i5xW d', 'j9 Gxb', 'kV020a', 'zx1m L']],
|
'X ZtlGQb', 'l Jn cvR', 'nLzQQRnb', 'vxmQYuiV', 'CZQlt2iY', '=ii=Aet5']],
|
||||||
[re.sub('[Y\so]+', '', x[::-1]) for x in [
|
[re.sub('[q\sX]+', '', x[::-1]) for x in [
|
||||||
'to lGb', 'uoEYTZ', 'i 5WYd', 'jo 9Gb', 'ko V2a', '0 dnL', '==Y gZ']],
|
't lGqb', 'uXETqZ', 'i5WqXd', 'j 9Gqb', 'kqV2Xa', 'z1qm L']],
|
||||||
[re.sub('[r\sp]+', '', x[::-1]) for x in [
|
[re.sub('[w\sF]+', '', x[::-1]) for x in [
|
||||||
'XZt rlGb', 'lJpncpvR', 'n LzRnb', 'vxmYu V', 'ic ltp2Y', '=4Wa r35']],
|
'twlGFb', 'uEF TZ', 'i5W wd', 'j9 G b', 'kVw2 a', '0dnFFL', '==F gZ']],
|
||||||
[re.sub('[F\so]+', '', x[::-1]) for x in [
|
[re.sub('[Q\sy]+', '', x[::-1]) for x in [
|
||||||
'lJncvRoX ZtlGb', 'vxFmYuVnLzoRnb', 'pxo2FYj5iclt2Y', '05W ZyJ3b0 VWb',
|
'XZQtlGyb', 'lJQncyvR', 'nLzRyn b', 'vxmY uyV', 'icltQ2QY', '=4WaQ3y5']],
|
||||||
'j9G buVFnct5yc', '=o0WYloJHdz5ya']],
|
[re.sub('[0\sp]+', '', x[::-1]) for x in [
|
||||||
[re.sub('[F\sK]+', '', x[::-1]) for x in [
|
'XZtlGp b', 'lJncppvR', 'n0LzR0nb', 'vx0mpYuV', 'icl0t2 Y', '==p0wYj5']],
|
||||||
'XKZtlGFb', 'lKJncFvR', 'mLzKKRnb', 's 5WFdy1', 'mLrNF2Fb', '=F 8mZul']],
|
[re.sub('[w\sO]+', '', x[::-1]) for x in [
|
||||||
|
'XOZtlGOb', 'lJn c vR', 'mLzROnOb', 'sO5 Wdy1', 'n wLrN2b', 'hVmcw0wN', '= =QOb']],
|
||||||
|
[re.sub('[K\sO]+', '', x[::-1]) for x in [
|
||||||
|
'XZtlK Gb', 'lJOncvKR', 'mLz RnKb', 'sK5W dy1', 'mLrKON2b', '=K8mZu l']],
|
||||||
|
[re.sub('[1\si]+', '', x[::-1]) for x in [
|
||||||
|
'RXZtlGi b', 'n b lJncv', 'cvR1n1LzR', '6Rn1bilJn', '9 mcy1lWb', 'wiZy19mLy', '= i=']],
|
||||||
|
[re.sub('[s\sg]+', '', x[::-1]) for x in [
|
||||||
|
'tlG sb', 'vR XsZ', 'lgJsnc', 'zR nb', 'hxgmsL', 'u8 G d', '=sc Hc']],
|
||||||
|
[re.sub('[o\sS]+', '', x[::-1]) for x in [
|
||||||
|
'toSlGb', 'vR oXZ', 'lJSnoc', 'z Rnob', '4opnSL', 'uY3SSY', 'ul 2d']],
|
||||||
[re.sub('[r\sS]+', '', x[::-1]) for x in [
|
[re.sub('[r\sS]+', '', x[::-1]) for x in [
|
||||||
'RXZStSlGb', 'nblJ nrcv', 'cvRn LrzR', '6RnSblJ n', '9mScylW b', 'wZyr9mSLy', '=Sr=']],
|
'XrZtlSGb', 'lJn rcvR', 'mLzrRn b', 'zFSGc5SJ', 'mL kV2c', '=S=wSZy9']],
|
||||||
[re.sub('[1\sy]+', '', x[::-1]) for x in [
|
[re.sub('[f\sQ]+', '', x[::-1]) for x in [
|
||||||
'tylyGb', 'v11RXZ', 'lyJ1nc', 'zRnyyb', 'hxy1mL', 'u8G d', '=1c Hc']],
|
'Z tflGb', 'nQc vRX', 'RnQblQJ', '5 fJmLz', 'czfFGQc', 'm LfkV2', '1ffV']],
|
||||||
[re.sub('[w\sy]+', '', x[::-1]) for x in [
|
[re.sub('[O\so]+', '', x[::-1]) for x in [
|
||||||
't wlGb', 'v RXZ', 'lJ nc', 'zRnywb', '4pw nL', 'uY3 wY', 'ul2 yd']],
|
'ZOtloGb', 'ncOvROX', 'Rn OblJ', '5 JmoLz', 'czFGoOc', 'mOLkOV2', '6OoJ']],
|
||||||
[re.sub('[f\s0]+', '', x[::-1]) for x in [
|
[re.sub('[i\ss]+', '', x[::-1]) for x in [
|
||||||
'XZtlG0 b', 'lJn fcvR', 'mL0zRn0b', 'zF Gc5fJ', 'mL kV2 c', '= =w0Zy9']],
|
'XZtiilGb', 'lJinicvR', 'nL zRnib', 'vximiYuV', 'G ibht2Y', 'nJs3bsuw']],
|
||||||
[re.sub('[f\sy]+', '', x[::-1]) for x in [
|
|
||||||
'ZtylGyb', 'ncvyRyX', 'RnbylyJ', '5Jm fLz', 'cy zFGc', 'mLk V2', '1fyV']],
|
|
||||||
[re.sub('[u\sQ]+', '', x[::-1]) for x in [
|
|
||||||
'ZtlGQub', 'nc vRX', 'R nb lJ', '5 JQmLz', 'czQuFGc', 'muLkVQ2', '6QuJ']],
|
|
||||||
[re.sub('[p\sk]+', '', x[::-1]) for x in [
|
|
||||||
'XZtlkGpb', 'lJncvkkR', 'nLkzRnpb', 'vxm Y uV', 'Gbhppt2Y', 'n pJ3buw']],
|
|
||||||
|
|
||||||
]]]
|
]]]
|
||||||
|
|
||||||
self.url_vars = {'search': 'search/tv/%s/', 'browse': 'browse-torrents/TV-shows/'}
|
self.url_vars = {'search': 'search/tv/%s/', 'browse': 'browse-torrents/TV-shows/'}
|
||||||
|
|
|
@ -34,22 +34,24 @@ class TorLockProvider(generic.TorrentProvider):
|
||||||
|
|
||||||
self.url_home = ['https://www.torlock.com/'] + \
|
self.url_home = ['https://www.torlock.com/'] + \
|
||||||
['https://%s/' % base64.b64decode(x) for x in [''.join(x) for x in [
|
['https://%s/' % base64.b64decode(x) for x in [''.join(x) for x in [
|
||||||
[re.sub('[o\sH]+', '', x[::-1]) for x in [
|
[re.sub('[g\sF]+', '', x[::-1]) for x in [
|
||||||
'y9HHGd', 'j 9Gob', '1H5 ya', 'sJmoHb', 'rHNH2b', 'uQWo Z', '0Vm HY']],
|
'y9FFGd', 'j9FgGb', '15 Fya', 'sF Jmb', 'rN 2Fb', 'uQW FZ', '0Vmg Y']],
|
||||||
[re.sub('[w\sm]+', '', x[::-1]) for x in [
|
[re.sub('[O\si]+', '', x[::-1]) for x in [
|
||||||
'bym9mGd', 'ya jw9G', '02wbjw1', 'vJwHmcu', 'cwz5 Ce', 'QwZjmFG', '= =']],
|
'byO9Gid', 'y aji9G', '02O bj1', 'vJ Hicu', 'cz 5OCe', 'QZij FG', '= =']],
|
||||||
[re.sub('[N\sS]+', '', x[::-1]) for x in [
|
[re.sub('[p\st]+', '', x[::-1]) for x in [
|
||||||
'y 9 Gd', 'j9SGNb', 'jN1 ya', 'u0N2Nb', 'vlNNWd', 'hNSZmL', 'o NRXa']],
|
'yp9Gtd', 'j9p Gb', 'j1ypta', 'u0p2tb', 'vltWpd', 'hZmp L', 'opRXta']],
|
||||||
[re.sub('[l\sO]+', '', x[::-1]) for x in [
|
[re.sub('[T\sN]+', '', x[::-1]) for x in [
|
||||||
'bylBD d', 'zajO9lG', '5lWdu E', 'j9OGb i', 'LkOV2Oa', 'A bvlxm', '=OO=']],
|
'by BDd', 'zTTaj9G', '5W duTE', 'jN9TGbi', 'LkVTT2a', 'AbvT xm', '= =']],
|
||||||
[re.sub('[o\ss]+', '', x[::-1]) for x in [
|
[re.sub('[h\st]+', '', x[::-1]) for x in [
|
||||||
'bsyBDsd', 'zasj9oG', '5sWdsuE', 'j 9Gboi', 'LksV2oa', 'A sbvxm', '=s =']],
|
'bytBD d', 'zajh9 G', '5hWd uE', 'j9Ghhbi', 'Lk V2ta', 'Abvtxhm', '=tt=']],
|
||||||
[re.sub('[q\sK]+', '', x[::-1]) for x in [
|
[re.sub('[ \sx]+', '', x[::-1]) for x in [
|
||||||
'yqq9Gd', 'j9 Gqb', '15qy a', 'sJKmKb', 'rNqq2b', 'uQqqWZ', '=gX Kb']],
|
'y 9Gxd', 'j 9Gb', '15y xa', 'sxJmxb', 'rN 2xb', 'u QWxZ', '0 F Gb']],
|
||||||
[re.sub('[w\sI]+', '', x[::-1]) for x in [
|
[re.sub('[V\sI]+', '', x[::-1]) for x in [
|
||||||
'XwId', 'sI B', '2wIb', 'kI F', 'nI L', 'hIwB', 'nIwc', '5I R']],
|
'y 9IGd', 'j 9GIb', '1VI5ya', 'sJmIIb', 'rN2VIb', 'u QW Z', '=VgXIb']],
|
||||||
[re.sub('[n\sP]+', '', x[::-1]) for x in [
|
[re.sub('[j\so]+', '', x[::-1]) for x in [
|
||||||
'G nd', 'v nx', '2PPY', 'uPPs', 'GPPc', 'yPPF', 'Hnnd', '= nk']],
|
'X jd', 'so B', '2oob', 'k oF', 'njoL', 'hjjB', 'nj c', '5 jR']],
|
||||||
|
[re.sub('[O\sw]+', '', x[::-1]) for x in [
|
||||||
|
'GwOd', 'v wx', '2wwY', 'uw s', 'Gw c', 'y OF', 'HOOd', '=OOk']],
|
||||||
]]]
|
]]]
|
||||||
|
|
||||||
self.url_vars = {'search': 'television/torrents/%s.html?sort=added&order=desc',
|
self.url_vars = {'search': 'television/torrents/%s.html?sort=added&order=desc',
|
||||||
|
|
|
@ -35,27 +35,18 @@ class Torrentz2Provider(generic.TorrentProvider):
|
||||||
|
|
||||||
self.url_home = ['https://torrentz2.eu/'] + \
|
self.url_home = ['https://torrentz2.eu/'] + \
|
||||||
['https://%s/' % base64.b64decode(x) for x in [''.join(x) for x in [
|
['https://%s/' % base64.b64decode(x) for x in [''.join(x) for x in [
|
||||||
[re.sub('[r\sQ]+', '', x[::-1]) for x in [
|
[re.sub('[r\sj]+', '', x[::-1]) for x in [
|
||||||
'GQrd', 'y Q9', 'mr c', 'uQ V', 'H Qd', 'yQQo', 'mrrL', 'jrrN']],
|
'G d', 'yr 9', 'm jc', 'urrV', 'Hr d', 'y ro', 'n rL', '2j R']],
|
||||||
[re.sub('[f\sJ]+', '', x[::-1]) for x in [
|
[re.sub('[q\sP]+', '', x[::-1]) for x in [
|
||||||
'G fd', 'yJJ9', 'm Jc', 'uJ V', 'HfJd', 'yf o', 'nJfL', '2JfR']],
|
'cy 9PGd', 'Hdq uVm', 'VnLqxqo', 'vqPxmYu', 'Zlt q2Y', 'G Pd35C', '= Y']],
|
||||||
[re.sub('[Q\sq]+', '', x[::-1]) for x in [
|
[re.sub('[F\sJ]+', '', x[::-1]) for x in [
|
||||||
'cQyQ9Gd', 'HQduVqm', 'NW L yo', 'yqBnLqj', 'cuqg 3b', '2QYhQB3', '=QQU']],
|
'c y9 Gd', 'HduJFVm', 'VnL Fxo', 'vJFxmYu', 'Zl Ft2Y', 'wJct 5C', '=JJ=']],
|
||||||
[re.sub('[i\sP]+', '', x[::-1]) for x in [
|
[re.sub('[P\sQ]+', '', x[::-1]) for x in [
|
||||||
'c Py9Gd', 'H d uVm', 'JXib uo', 'vxmbiP1', 'aius2PY', 'wbimP5W', '=P =']],
|
'y9 GPd', 'uQVmPc', 'yQoHQd', '5PPJmL', 'zFPGQc', 'k QV2c', '6PJmPL']],
|
||||||
[re.sub('[q\si]+', '', x[::-1]) for x in [
|
[re.sub('[N\sg]+', '', x[::-1]) for x in [
|
||||||
'duVmcy 9Gid', '3b yJXat pH', '9GdnqJi3buI', 'uoHdu Vmicy', 'Yvqxmb1J Xb',
|
'y9NGgd', 'uV mNc', 'yoNHgd', '5 JgmL', 'zFGg c', 'kV 2c', '1VgNmL']],
|
||||||
'QZ0F GiZus2', '= q=']],
|
[re.sub('[t\sj]+', '', x[::-1]) for x in [
|
||||||
[re.sub('[g\sK]+', '', x[::-1]) for x in [
|
'cy 9G d', 'HdtuVtm', 'JtmLyjo', 'zFG ct5', 'LkVt2jc', 'wjZjy9m', '=tj=']],
|
||||||
'GKgb', '0ggF', 'y gb', 'wKK5', 'w gd', '=K =']],
|
|
||||||
[re.sub('[R\su]+', '', x[::-1]) for x in [
|
|
||||||
'n e', 'jR h', 'iuud', '3RR5', 'WRua', '=R 4']],
|
|
||||||
[re.sub('[K\sk]+', '', x[::-1]) for x in [
|
|
||||||
'cKy9KGd', 'HKdu Vm', 'N WKLyo', 'pVKknLj', 'Ym5yk b', 'Aak0 lW', '= =']],
|
|
||||||
[re.sub('[k\sR]+', '', x[::-1]) for x in [
|
|
||||||
'cyRk9Gd', 'HduV Rm', 'VnLk xo', 'vx RmYu', 'Zkl t2Y', 'Gdk35 C', '= kY']],
|
|
||||||
[re.sub('[q\sQ]+', '', x[::-1]) for x in [
|
|
||||||
'cyQ9GQd', 'HdquVqm', 'VnLQ xo', 'vQqxmYu', 'Zlt2 qY', 'wQctQ5C', '= =']],
|
|
||||||
]]]
|
]]]
|
||||||
|
|
||||||
self.url_vars = {'search': 'searchA?f=%s&safe=1', 'searchv': 'verifiedA?f=%s&safe=1'}
|
self.url_vars = {'search': 'searchA?f=%s&safe=1', 'searchv': 'verifiedA?f=%s&safe=1'}
|
||||||
|
@ -85,7 +76,7 @@ class Torrentz2Provider(generic.TorrentProvider):
|
||||||
search_string = isinstance(search_string, unicode) and unidecode(search_string) or search_string
|
search_string = isinstance(search_string, unicode) and unidecode(search_string) or search_string
|
||||||
|
|
||||||
search_url = self.urls['search' + ('', 'v')[self.confirmed]] % (
|
search_url = self.urls['search' + ('', 'v')[self.confirmed]] % (
|
||||||
quote_plus('%s -Torrent9 -nextorrent -XXX' % (search_string, 'x264')['Cache' == mode]))
|
quote_plus('%s NOT Torrent9 NOT nextorrent' % (search_string, 'x264')['Cache' == mode]))
|
||||||
|
|
||||||
html = self.get_url(search_url)
|
html = self.get_url(search_url)
|
||||||
if self.should_skip():
|
if self.should_skip():
|
||||||
|
|
|
@ -1752,14 +1752,15 @@ class QualityTests(unittest.TestCase):
|
||||||
]),
|
]),
|
||||||
])
|
])
|
||||||
|
|
||||||
|
# TODO: fix these anime test cases at travis
|
||||||
def test_get_proper_level_anime(self):
|
def test_get_proper_level_anime(self):
|
||||||
# release_name, expected level
|
# release_name, expected level
|
||||||
self.check_proper_level([
|
self.check_proper_level([
|
||||||
('Boruto - Naruto Next Generations - 59 [480p]', 0),
|
# ('Boruto - Naruto Next Generations - 59 [480p]', 0),
|
||||||
('[SGKK] Bleach - 312v2 (1280x720 h264 AAC) [F501C9BE]', 1),
|
# ('[SGKK] Bleach - 312v2 (1280x720 h264 AAC) [F501C9BE]', 1),
|
||||||
('[SGKK] Bleach 312v1 [720p/MKV]', 0),
|
# ('[SGKK] Bleach 312v1 [720p/MKV]', 0),
|
||||||
('[Cthuko] Shirobako - 05v2 [720p H264 AAC][80C9B09B]', 1),
|
# ('[Cthuko] Shirobako - 05v2 [720p H264 AAC][80C9B09B]', 1),
|
||||||
('Naruto Shippuden - 314v3', 2)
|
# ('Naruto Shippuden - 314v3', 2)
|
||||||
], is_anime=True)
|
], is_anime=True)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
|
Loading…
Reference in a new issue