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
64ad5fb6
Commit
64ad5fb6
authored
Apr 22, 2012
by
Ruud
Browse files
Options
Downloads
Patches
Plain Diff
Don't limit CouchPotato api requests
parent
7c25f406
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
couchpotato/core/providers/movie/couchpotatoapi/main.py
+4
-3
4 additions, 3 deletions
couchpotato/core/providers/movie/couchpotatoapi/main.py
with
4 additions
and
3 deletions
couchpotato/core/providers/movie/couchpotatoapi/main.py
+
4
−
3
View file @
64ad5fb6
...
...
@@ -12,7 +12,8 @@ log = CPLog(__name__)
class
CouchPotatoApi
(
MovieProvider
):
apiUrl
=
'
http://couchpota.to/api/%s/
'
api_url
=
'
http://couchpota.to/api/%s/
'
http_time_between_calls
=
0
def
__init__
(
self
):
#addApiView('movie.suggest', self.suggestView)
...
...
@@ -29,7 +30,7 @@ class CouchPotatoApi(MovieProvider):
try
:
headers
=
{
'
X-CP-Version
'
:
fireEvent
(
'
app.version
'
,
single
=
True
)}
data
=
self
.
urlopen
((
self
.
api
U
rl
%
(
'
eta
'
))
+
(
identifier
+
'
/
'
),
headers
=
headers
)
data
=
self
.
urlopen
((
self
.
api
_u
rl
%
(
'
eta
'
))
+
(
identifier
+
'
/
'
),
headers
=
headers
)
dates
=
json
.
loads
(
data
)
log
.
debug
(
'
Found ETA for %s: %s
'
%
(
identifier
,
dates
))
return
dates
...
...
@@ -40,7 +41,7 @@ class CouchPotatoApi(MovieProvider):
def
suggest
(
self
,
movies
=
[],
ignore
=
[]):
try
:
data
=
self
.
urlopen
((
self
.
api
U
rl
%
(
'
suggest
'
))
+
'
,
'
.
join
(
movies
)
+
'
/
'
+
'
,
'
.
join
(
ignore
)
+
'
/
'
)
data
=
self
.
urlopen
((
self
.
api
_u
rl
%
(
'
suggest
'
))
+
'
,
'
.
join
(
movies
)
+
'
/
'
+
'
,
'
.
join
(
ignore
)
+
'
/
'
)
suggestions
=
json
.
loads
(
data
)
log
.
info
(
'
Found Suggestions for %s
'
%
(
suggestions
))
except
Exception
,
e
:
...
...
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