mirror of
https://github.com/SickGear/SickGear.git
synced 2025-01-05 17:43:37 +00:00
Add DrunkenSlug usenet provider and fix PiSexy torrent provider.
This commit is contained in:
parent
8f45337a5a
commit
3ea006912d
4 changed files with 30 additions and 2 deletions
|
@ -1,4 +1,10 @@
|
|||
### 0.14.6 (2018-03-05 15:40:00 UTC)
|
||||
### 0.14.7 (2018-03-12 21:30:00 UTC)
|
||||
|
||||
Add DrunkenSlug usenet provider
|
||||
Fix PiSexy torrent provider
|
||||
|
||||
|
||||
### 0.14.6 (2018-03-05 15:40:00 UTC)
|
||||
|
||||
Fix config/notifications Trakt "inactive" status not displayed when it should be
|
||||
Fix saving multiple account "Update collection" selection at config/notifications Trakt
|
||||
|
|
BIN
gui/slick/images/providers/drunkenslug.png
Normal file
BIN
gui/slick/images/providers/drunkenslug.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 890 B |
|
@ -252,6 +252,7 @@ def getDefaultNewznabProviders():
|
|||
return '!!!'.join(['Sick Beard Index|http://lolo.sickbeard.com/|0|5030,5040|0|eponly|0|0|0',
|
||||
'NZBgeek|https://api.nzbgeek.info/||5030,5040|0|eponly|0|0|0',
|
||||
'NZBs.org|https://nzbs.org/||5030,5040|0|eponly|0|0|0',
|
||||
'DrunkenSlug|https://api.drunkenslug.com/||5030,5040|0|eponly|0|0|0',
|
||||
])
|
||||
|
||||
|
||||
|
|
|
@ -51,7 +51,7 @@ class PiSexyProvider(generic.TorrentProvider):
|
|||
items = {'Cache': [], 'Season': [], 'Episode': [], 'Propers': []}
|
||||
|
||||
rc = dict((k, re.compile('(?i)' + v)) for (k, v) in {
|
||||
'info': 'download', 'get': 'download', 'valid_cat': 'cat=(?:0|50[12])', 'filter': 'free',
|
||||
'info': 'download', 'get': 'info.php\?id', 'valid_cat': 'cat=(?:0|50[12])', 'filter': 'free',
|
||||
'title': r'Download\s([^\s]+).*', 'seeders': r'(^\d+)', 'leechers': r'(\d+)$'}.items())
|
||||
for mode in search_params.keys():
|
||||
for search_string in search_params[mode]:
|
||||
|
@ -109,5 +109,26 @@ class PiSexyProvider(generic.TorrentProvider):
|
|||
|
||||
return results
|
||||
|
||||
def get_data(self, url):
|
||||
result = None
|
||||
html = self.get_url(url, timeout=90)
|
||||
if self.should_skip():
|
||||
return result
|
||||
|
||||
try:
|
||||
result = self._link(re.findall('(?i)"([^"]*?download\.php[^"]+?&(?!pimp)[^"]*)"', html)[0])
|
||||
except IndexError:
|
||||
logger.log('Failed no torrent in response', logger.DEBUG)
|
||||
return result
|
||||
|
||||
def get_result(self, episodes, url):
|
||||
result = None
|
||||
|
||||
if url:
|
||||
result = super(PiSexyProvider, self).get_result(episodes, url)
|
||||
result.get_data_func = self.get_data
|
||||
|
||||
return result
|
||||
|
||||
|
||||
provider = PiSexyProvider()
|
||||
|
|
Loading…
Reference in a new issue