Browse Source

Merge pull request #1 from CouchPotato/develop

merge Develop
pull/7168/head
jwvanderbeck 8 years ago
committed by GitHub
parent
commit
0bed4f1efe
  1. 14
      couchpotato/core/media/_base/providers/torrent/iptorrents.py
  2. 5
      couchpotato/core/media/_base/providers/torrent/kickasstorrents.py
  3. 2
      couchpotato/core/media/movie/providers/automation/base.py
  4. 8
      couchpotato/core/media/movie/providers/torrent/iptorrents.py
  5. 2
      couchpotato/core/media/movie/providers/torrent/passthepopcorn.py
  6. 2
      couchpotato/templates/login.html

14
couchpotato/core/media/_base/providers/torrent/iptorrents.py

@ -14,11 +14,11 @@ log = CPLog(__name__)
class Base(TorrentProvider):
urls = {
'test': 'https://iptorrents.eu/',
'base_url': 'https://iptorrents.eu',
'login': 'https://iptorrents.eu/take_login.php',
'login_check': 'https://iptorrents.eu/oldinbox.php',
'search': 'https://iptorrents.eu/t?%s%%s&q=%s&qf=ti#torrents&p=%%d',
'test': 'https://iptorrents.com/',
'base_url': 'https://iptorrents.com',
'login': 'https://iptorrents.com/take_login.php',
'login_check': 'https://iptorrents.com/oldinbox.php',
'search': 'https://iptorrents.com/t?%s%%s&q=%s&qf=ti#torrents&p=%%d',
}
http_time_between_calls = 1 # Seconds
@ -36,6 +36,8 @@ class Base(TorrentProvider):
log.warning('Unable to find category ids for identifier "%s"', quality.get('identifier'))
return None
query = query.replace('"', '')
return self.urls['search'] % ("&".join(("%d=" % x) for x in cat_ids), tryUrlencode(query).replace('%', '%%'))
def _searchOnTitle(self, title, media, quality, results):
@ -121,7 +123,7 @@ config = [{
'tab': 'searcher',
'list': 'torrent_providers',
'name': 'IPTorrents',
'description': '<a href="https://iptorrents.eu" target="_blank">IPTorrents</a>',
'description': '<a href="https://iptorrents.com" target="_blank">IPTorrents</a>',
'wizard': True,
'icon': 'iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABRklEQVR42qWQO0vDUBiG8zeKY3EqQUtNO7g0J6ZJ1+ifKIIFQXAqDYKCyaaYxM3udrZLHdRFhXrZ6liCW6mubfk874EESgqaeOCF7/Y8hEh41aq6yZi2nyZgBGya9XKtZs4No05pAkZV2YbEmyMMsoSxLQeC46wCTdPPY4HruPQyGIhF97qLWsS78Miydn4XdK46NJ9OsQAYBzMIMf8MQ9wtCnTdWCaIDx/u7uljOIQEe0hiIWPamSTLay3+RxOCSPI9+RJAo7Er9r2bnqjBFAqyK+VyK4f5/Cr5ni8OFKVCz49PFI5GdNvvU7ttE1M1zMU+8AMqFksEhrMnQsBDzqmDAwzx2ehRLwT7yyCI+vSC99c3mozH1NxrJgWWtR1BOECfEJSVCm6WCzJGCA7+IWhBsM4zywDPwEp4vCjx2DzBH2ODAfsDb33Ps6dQwJgAAAAASUVORK5CYII=',
'options': [

5
couchpotato/core/media/_base/providers/torrent/kickasstorrents.py

@ -30,6 +30,11 @@ class Base(TorrentMagnetProvider):
cat_backup_id = None
proxy_list = [
'http://flowtorrent.com',
'http://katcr.to/span',
'http://dx-torrente.com',
'https://kickass.unblocked.vip',
'https://katcr.co',
'https://kat.how',
'https://kickass.cd',
'https://kickass.unlockproject.online',

2
couchpotato/core/media/movie/providers/automation/base.py

@ -45,7 +45,7 @@ class Automation(AutomationBase):
def search(self, name, year = None, imdb_only = False):
cache_name = name.decode('utf-8').encode('ascii', 'ignore')
cache_name = name.decode('utf-8', 'ignore').encode('ascii', 'ignore')
prop_name = 'automation.cached.%s.%s' % (cache_name, year)
cached_imdb = Env.prop(prop_name, default = False)
if cached_imdb and imdb_only:

8
couchpotato/core/media/movie/providers/torrent/iptorrents.py

@ -11,12 +11,12 @@ class IPTorrents(MovieProvider, Base):
cat_ids = [
([87], ['3d']),
([48], ['720p', '1080p']),
([89], ['bd50']),
([96], ['cam', 'ts', 'tc', 'r5', 'scr']),
([48, 20, 90], ['brrip']),
([48], ['720p', '1080p']),
([48, 20], ['brrip']),
([7, 77], ['dvdrip']),
([6], ['dvdr'])
([6], ['dvdr']),
([96], ['cam', 'ts', 'tc', 'r5', 'scr']),
]
def buildUrl(self, title, media, quality):

2
couchpotato/core/media/movie/providers/torrent/passthepopcorn.py

@ -10,6 +10,7 @@ autoload = 'PassThePopcorn'
class PassThePopcorn(MovieProvider, Base):
quality_search_params = {
'2160p': {'resolution': '4K'},
'bd50': {'media': 'Blu-ray', 'format': 'BD50'},
'1080p': {'resolution': '1080p'},
'720p': {'resolution': '720p'},
@ -24,6 +25,7 @@ class PassThePopcorn(MovieProvider, Base):
}
post_search_filters = {
'2160p': {'Resolution': ['4K']},
'bd50': {'Codec': ['BD50']},
'1080p': {'Resolution': ['1080p']},
'720p': {'Resolution': ['720p']},

2
couchpotato/templates/login.html

@ -25,7 +25,7 @@
<body class="page login">
<form action="" method="post">
<h1>CouchPotato</h1>
<div class="ctrlHolder"><input class="username" name="username" type="text" placeholder="Username" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" /></div>
<div class="ctrlHolder"><input class="username" name="username" type="text" placeholder="Username" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" autofocus="autofocus" /></div>
<div class="ctrlHolder"><input class="password" name="password" type="password" placeholder="Password" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" /></div>
<div class="ctrlHolder">
<label class="remember_me" title="for 30 days"><input id="remember_me" name="remember_me" type="checkbox" value="1" checked="checked" /> Remember me</label>

Loading…
Cancel
Save