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
68c5d65d
Commit
68c5d65d
authored
Apr 20, 2015
by
Alexandre Beloin
Browse files
Options
Downloads
Patches
Plain Diff
T411: Catch invalid data, log, and continue
parent
1ebdc682
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
sickbeard/providers/t411.py
+14
-12
14 additions, 12 deletions
sickbeard/providers/t411.py
with
14 additions
and
12 deletions
sickbeard/providers/t411.py
+
14
−
12
View file @
68c5d65d
...
@@ -182,7 +182,7 @@ class T411Provider(generic.TorrentProvider):
...
@@ -182,7 +182,7 @@ class T411Provider(generic.TorrentProvider):
if
len
(
torrents
)
>
0
:
if
len
(
torrents
)
>
0
:
for
torrent
in
torrents
:
for
torrent
in
torrents
:
try
:
torrent_name
=
torrent
[
'
name
'
]
torrent_name
=
torrent
[
'
name
'
]
torrent_id
=
torrent
[
'
id
'
]
torrent_id
=
torrent
[
'
id
'
]
torrent_download_url
=
(
self
.
urls
[
'
download
'
]
%
torrent_id
).
encode
(
'
utf8
'
)
torrent_download_url
=
(
self
.
urls
[
'
download
'
]
%
torrent_id
).
encode
(
'
utf8
'
)
...
@@ -194,7 +194,9 @@ class T411Provider(generic.TorrentProvider):
...
@@ -194,7 +194,9 @@ class T411Provider(generic.TorrentProvider):
logger
.
log
(
u
"
Found result:
"
+
torrent_name
+
"
(
"
+
torrent_download_url
+
"
)
"
,
logger
.
log
(
u
"
Found result:
"
+
torrent_name
+
"
(
"
+
torrent_download_url
+
"
)
"
,
logger
.
DEBUG
)
logger
.
DEBUG
)
items
[
mode
].
append
(
item
)
items
[
mode
].
append
(
item
)
except
Exception
as
e
:
logger
.
log
(
u
"
Invalid torrent data, skipping results: {0}
"
.
format
(
str
(
torrent
)),
logger
.
DEBUG
)
continue
else
:
else
:
logger
.
log
(
u
"
The Data returned from
"
+
self
.
name
+
"
do not contains any torrent
"
,
logger
.
log
(
u
"
The Data returned from
"
+
self
.
name
+
"
do not contains any torrent
"
,
logger
.
WARNING
)
logger
.
WARNING
)
...
...
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