Private GIT

Skip to content
Snippets Groups Projects
Commit 70ca0ef5 authored by miigotu's avatar miigotu
Browse files

Merge pull request #701 from SickRage/more-provider-shnazz

Fix case of provider and provider cache class names
parents 23929b29 52ca7703
No related branches found
No related tags found
No related merge requests found
......@@ -27,7 +27,7 @@ from sickrage.helper.common import convert_size
from sickrage.providers.torrent.TorrentProvider import TorrentProvider
class BTDIGGProvider(TorrentProvider):
class BTDiggProvider(TorrentProvider):
def __init__(self):
TorrentProvider.__init__(self, "BTDigg")
......@@ -138,4 +138,4 @@ class BTDiggCache(tvcache.TVCache):
search_params = {'RSS': ['x264', 'x264.HDTV', '720.HDTV.x264']}
return {'entries': self.provider.search(search_params)}
provider = BTDIGGProvider()
provider = BTDiggProvider()
......@@ -24,7 +24,7 @@ from sickrage.helper.common import convert_size
from sickrage.providers.torrent.TorrentProvider import TorrentProvider
class HD4FREEProvider(TorrentProvider): # pylint: disable=too-many-instance-attributes
class HD4FreeProvider(TorrentProvider): # pylint: disable=too-many-instance-attributes
def __init__(self):
TorrentProvider.__init__(self, "HD4Free")
......@@ -32,7 +32,7 @@ class HD4FREEProvider(TorrentProvider): # pylint: disable=too-many-instance-att
self.public = True
self.url = 'https://hd4free.xyz'
self.ratio = 0
self.cache = HD4FREECache(self)
self.cache = HD4FreeCache(self)
self.minseed, self.minleech = 2 * [None]
self.username = None
self.api_key = None
......@@ -117,7 +117,7 @@ class HD4FREEProvider(TorrentProvider): # pylint: disable=too-many-instance-att
return self.ratio
class HD4FREECache(tvcache.TVCache):
class HD4FreeCache(tvcache.TVCache):
def __init__(self, provider_obj):
tvcache.TVCache.__init__(self, provider_obj)
......@@ -130,4 +130,4 @@ class HD4FREECache(tvcache.TVCache):
search_params = {'RSS': ['']}
return {'entries': self.provider.search(search_params)}
provider = HD4FREEProvider()
provider = HD4FreeProvider()
......@@ -30,7 +30,7 @@ from sickrage.helper.common import try_int, convert_size
from sickrage.providers.torrent.TorrentProvider import TorrentProvider
class KATProvider(TorrentProvider): # pylint: disable=too-many-instance-attributes
class KatProvider(TorrentProvider): # pylint: disable=too-many-instance-attributes
def __init__(self):
TorrentProvider.__init__(self, "KickAssTorrents")
......@@ -60,7 +60,7 @@ class KATProvider(TorrentProvider): # pylint: disable=too-many-instance-attribut
'category': 'tv'
}
self.cache = KATCache(self)
self.cache = KatCache(self)
def search(self, search_strings, age=0, ep_obj=None): # pylint: disable=too-many-branches, too-many-locals, too-many-statements
results = []
......@@ -157,7 +157,7 @@ class KATProvider(TorrentProvider): # pylint: disable=too-many-instance-attribut
return self.ratio
class KATCache(tvcache.TVCache):
class KatCache(tvcache.TVCache):
def __init__(self, provider_obj):
tvcache.TVCache.__init__(self, provider_obj)
......@@ -169,4 +169,4 @@ class KATCache(tvcache.TVCache):
search_params = {'RSS': ['tv', 'anime']}
return {'entries': self.provider.search(search_params)}
provider = KATProvider()
provider = KatProvider()
......@@ -26,7 +26,7 @@ from sickrage.helper.common import try_int, convert_size
from sickrage.providers.torrent.TorrentProvider import TorrentProvider
class TORRENTPROJECTProvider(TorrentProvider):
class TorrentProjectProvider(TorrentProvider):
def __init__(self):
TorrentProvider.__init__(self, "TorrentProject")
......@@ -121,4 +121,4 @@ class TorrentProjectCache(tvcache.TVCache):
search_params = {'RSS': ['0day']}
return {'entries': self.provider.search(search_params)}
provider = TORRENTPROJECTProvider()
provider = TorrentProjectProvider()
......@@ -28,7 +28,7 @@ from sickrage.helper.common import convert_size
from sickrage.providers.torrent.TorrentProvider import TorrentProvider
class TORRENTZProvider(TorrentProvider): # pylint: disable=too-many-instance-attributes
class TorrentzProvider(TorrentProvider): # pylint: disable=too-many-instance-attributes
def __init__(self):
......@@ -38,7 +38,7 @@ class TORRENTZProvider(TorrentProvider): # pylint: disable=too-many-instance-at
self.ratio = None
self.minseed = None
self.minleech = None
self.cache = TORRENTZCache(self)
self.cache = TorrentzCache(self)
self.headers.update({'User-Agent': USER_AGENT})
self.urls = {'verified': 'https://torrentz.eu/feed_verified',
'feed': 'https://torrentz.eu/feed',
......@@ -106,7 +106,7 @@ class TORRENTZProvider(TorrentProvider): # pylint: disable=too-many-instance-at
return results
class TORRENTZCache(tvcache.TVCache):
class TorrentzCache(tvcache.TVCache):
def __init__(self, provider_obj):
......@@ -118,4 +118,4 @@ class TORRENTZCache(tvcache.TVCache):
def _getRSSData(self):
return {'entries': self.provider.search({'RSS': ['']})}
provider = TORRENTZProvider()
provider = TorrentzProvider()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment