Private GIT
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SickRage-1
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-1
Commits
c043f93e
Commit
c043f93e
authored
Dec 14, 2015
by
miigotu
Browse files
Options
Downloads
Plain Diff
Merge pull request #470 from SickRage/subs_fix6
Show user that subtitle limit was reached
parents
d55e2a05
25bbefec
No related branches found
No related tags found
Loading
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
sickbeard/subtitles.py
+5
-4
5 additions, 4 deletions
sickbeard/subtitles.py
with
5 additions
and
4 deletions
sickbeard/subtitles.py
+
5
−
4
View file @
c043f93e
...
...
@@ -464,9 +464,6 @@ class SubtitlesFinder(object):
%
(
ep_to_sub
[
'
show_name
'
],
ep_to_sub
[
'
season
'
],
ep_to_sub
[
'
episode
'
]),
logger
.
DEBUG
)
continue
logger
.
log
(
u
"
%s S%02dE%02d doesn
'
t have all needed subtitles
"
%
(
ep_to_sub
[
'
show_name
'
],
ep_to_sub
[
'
season
'
],
ep_to_sub
[
'
episode
'
]),
logger
.
DEBUG
)
try
:
try
:
lastsearched
=
datetime
.
datetime
.
strptime
(
ep_to_sub
[
'
lastsearch
'
],
dateTimeFormat
)
...
...
@@ -478,7 +475,7 @@ class SubtitlesFinder(object):
(
ep_to_sub
[
'
airdate_daydiff
'
]
<=
7
and
ep_to_sub
[
'
searchcount
'
]
<
7
and
now
-
lastsearched
>
datetime
.
timedelta
(
hours
=
rules
[
'
new
'
][
ep_to_sub
[
'
searchcount
'
]]))):
logger
.
log
(
u
'
Started subtitles search for %s S%02dE%02d
'
logger
.
log
(
u
'
Started
missed
subtitles search for %s S%02dE%02d
'
%
(
ep_to_sub
[
'
show_name
'
],
ep_to_sub
[
'
season
'
],
ep_to_sub
[
'
episode
'
]),
logger
.
INFO
)
show_object
=
Show
.
find
(
sickbeard
.
showList
,
int
(
ep_to_sub
[
'
showid
'
]))
...
...
@@ -507,6 +504,10 @@ class SubtitlesFinder(object):
logger
.
log
(
u
'
Downloaded %s subtitles for %s S%02dE%02d
'
%
(
'
,
'
.
join
(
new_subtitles
),
ep_to_sub
[
'
show_name
'
],
ep_to_sub
[
"
season
"
],
ep_to_sub
[
"
episode
"
]))
else
:
logger
.
log
(
u
"
Subtitle search limit reached for %s S%02dE%02d
"
%
(
ep_to_sub
[
'
show_name
'
],
ep_to_sub
[
'
season
'
],
ep_to_sub
[
'
episode
'
]),
logger
.
INFO
)
except
Exception
as
error
:
logger
.
log
(
u
'
Error while searching subtitles for %s S%02dE%02d. Error: %r
'
%
(
ep_to_sub
[
'
show_name
'
],
ep_to_sub
[
'
season
'
],
ep_to_sub
[
'
episode
'
],
...
...
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