Private GIT
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CouchPotatoServer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
vlbox
CouchPotatoServer
Commits
05b294c2
Commit
05b294c2
authored
Apr 28, 2012
by
Ruud
Browse files
Options
Downloads
Patches
Plain Diff
Make sure KAT downloads the correct torrent. fixes #166
parent
121cb3c7
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
couchpotato/core/providers/base.py
+6
-2
6 additions, 2 deletions
couchpotato/core/providers/base.py
couchpotato/core/providers/torrent/kickasstorrents/main.py
+1
-0
1 addition, 0 deletions
couchpotato/core/providers/torrent/kickasstorrents/main.py
with
7 additions
and
2 deletions
couchpotato/core/providers/base.py
+
6
−
2
View file @
05b294c2
...
@@ -65,7 +65,11 @@ class YarrProvider(Provider):
...
@@ -65,7 +65,11 @@ class YarrProvider(Provider):
def
belongsTo
(
self
,
url
,
host
=
None
):
def
belongsTo
(
self
,
url
,
host
=
None
):
try
:
try
:
hostname
=
urlparse
(
url
).
hostname
hostname
=
urlparse
(
url
).
hostname
download_url
=
host
if
host
else
self
.
urls
[
'
download
'
]
if
host
and
hostname
in
host
:
return
self
else
:
for
url_type
in
self
.
urls
:
download_url
=
self
.
urls
[
url_type
]
if
hostname
in
download_url
:
if
hostname
in
download_url
:
return
self
return
self
except
:
except
:
...
...
This diff is collapsed.
Click to expand it.
couchpotato/core/providers/torrent/kickasstorrents/main.py
+
1
−
0
View file @
05b294c2
...
@@ -17,6 +17,7 @@ class KickAssTorrents(TorrentProvider):
...
@@ -17,6 +17,7 @@ class KickAssTorrents(TorrentProvider):
'
test
'
:
'
http://www.kat.ph/
'
,
'
test
'
:
'
http://www.kat.ph/
'
,
'
detail
'
:
'
http://www.kat.ph/%s-t%s.html
'
,
'
detail
'
:
'
http://www.kat.ph/%s-t%s.html
'
,
'
search
'
:
'
http://www.kat.ph/%s-i%s/
'
,
'
search
'
:
'
http://www.kat.ph/%s-i%s/
'
,
'
download
'
:
'
http://torcache.net/
'
,
}
}
cat_ids
=
[
cat_ids
=
[
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment