Private GIT
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SickRage
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
SickRage
Commits
28e0525a
Commit
28e0525a
authored
Apr 16, 2015
by
Fernando
Browse files
Options
Downloads
Plain Diff
Merge pull request #1783 from Thraxis/FIX#1123-patch-1
Update Plex.py
parents
5d82d299
dc71f72c
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
sickbeard/notifiers/plex.py
+5
-5
5 additions, 5 deletions
sickbeard/notifiers/plex.py
with
5 additions
and
5 deletions
sickbeard/notifiers/plex.py
+
5
−
5
View file @
28e0525a
...
...
@@ -207,10 +207,10 @@ class PLEXNotifier:
token_arg
=
'
?X-Plex-Token=
'
+
token
except
urllib2
.
URLError
as
e
:
logger
.
log
(
u
'
PLEX: Error fetching credentials from from plex.tv for user %s: %s
'
%
(
username
,
ex
(
e
)),
logger
.
MESSAGE
)
logger
.
log
(
u
'
PLEX: Error fetching credentials from from plex.tv for user %s: %s
'
%
(
username
,
ex
(
e
)),
logger
.
DEBUG
)
except
(
ValueError
,
IndexError
)
as
e
:
logger
.
log
(
u
'
PLEX: Error parsing plex.tv response:
'
+
ex
(
e
),
logger
.
MESSAGE
)
logger
.
log
(
u
'
PLEX: Error parsing plex.tv response:
'
+
ex
(
e
),
logger
.
DEBUG
)
file_location
=
''
if
None
is
ep_obj
else
ep_obj
.
location
host_list
=
[
x
.
strip
()
for
x
in
host
.
split
(
'
,
'
)]
...
...
@@ -230,7 +230,7 @@ class PLEXNotifier:
sections
=
media_container
.
findall
(
'
.//Directory
'
)
if
not
sections
:
logger
.
log
(
u
'
PLEX: Plex Media Server not running on:
'
+
cur_host
,
logger
.
MESSAGE
)
logger
.
log
(
u
'
PLEX: Plex Media Server not running on:
'
+
cur_host
,
logger
.
DEBUG
)
hosts_failed
.
append
(
cur_host
)
continue
...
...
@@ -264,9 +264,9 @@ class PLEXNotifier:
hosts_failed
.
append
(
cur_host
)
if
len
(
hosts_match
):
logger
.
log
(
u
'
PLEX: Updating hosts where TV section paths match the downloaded show:
'
+
'
,
'
.
join
(
set
(
host_list
)),
logger
.
MESSAGE
)
logger
.
log
(
u
'
PLEX: Updating hosts where TV section paths match the downloaded show:
'
+
'
,
'
.
join
(
set
(
host_list
)),
logger
.
DEBUG
)
else
:
logger
.
log
(
u
'
PLEX: Updating all hosts with TV sections:
'
+
'
,
'
.
join
(
set
(
host_list
)),
logger
.
MESSAGE
)
logger
.
log
(
u
'
PLEX: Updating all hosts with TV sections:
'
+
'
,
'
.
join
(
set
(
host_list
)),
logger
.
DEBUG
)
return
(
'
,
'
.
join
(
set
(
hosts_failed
)),
None
)[
not
len
(
hosts_failed
)]
...
...
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