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
52efb6f4
Commit
52efb6f4
authored
May 11, 2014
by
echel0n
Browse files
Options
Downloads
Patches
Plain Diff
Added incomplete indexer <-> scene mapping check
parent
48b4abff
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
gui/slick/interfaces/default/displayShow.tmpl
+1
-1
1 addition, 1 deletion
gui/slick/interfaces/default/displayShow.tmpl
sickbeard/providers/generic.py
+10
-8
10 additions, 8 deletions
sickbeard/providers/generic.py
sickbeard/scene_numbering.py
+13
-0
13 additions, 0 deletions
sickbeard/scene_numbering.py
with
24 additions
and
9 deletions
gui/slick/interfaces/default/displayShow.tmpl
+
1
−
1
View file @
52efb6f4
...
...
@@ -247,7 +247,7 @@
#if (epResult["season"], epResult["episode"]) in $xem_numbering:
#set ($dfltSeas, $dfltEpis) = $xem_numbering[(epResult["season"], epResult["episode"])]
#else
#set ($dfltSeas, $dfltEpis) = (
epResult["season"], epResult["episode"]
)
#set ($dfltSeas, $dfltEpis) = (
0,0
)
#end if
#if (epResult["season"], epResult["episode"]) in $scene_numbering:
#set ($scSeas, $scEpis) = $scene_numbering[(epResult["season"], epResult["episode"])]
...
...
This diff is collapsed.
Click to expand it.
sickbeard/providers/generic.py
+
10
−
8
View file @
52efb6f4
...
...
@@ -240,10 +240,15 @@ class GenericProvider:
# self.cache.updateCache()
for
epObj
in
episodes
:
#cacheResult = self.cache.searchCache(epObj, manualSearch)
#if len(cacheResult):
# results.update(cacheResult)
# continue
cacheResult
=
self
.
cache
.
searchCache
(
epObj
,
manualSearch
)
if
len
(
cacheResult
):
results
.
update
(
cacheResult
)
continue
if
not
epObj
.
show
.
air_by_date
:
if
epObj
.
scene_season
==
0
or
epObj
.
scene_episode
==
0
:
logger
.
log
(
u
"
Incomplete Indexer <-> Scene mapping detected for
"
+
epObj
.
prettyName
()
+
"
, skipping search!
"
)
continue
if
seasonSearch
:
for
curString
in
self
.
_get_season_search_strings
(
epObj
):
...
...
@@ -274,9 +279,6 @@ class GenericProvider:
# parse the file name
try
:
myParser
=
NameParser
(
False
)
if
ep_obj
.
season
==
ep_obj
.
scene_season
and
ep_obj
.
episode
==
ep_obj
.
scene_episode
:
parse_result
=
myParser
.
parse
(
title
)
else
:
parse_result
=
myParser
.
parse
(
title
).
convert
()
except
InvalidNameException
:
logger
.
log
(
u
"
Unable to parse the filename
"
+
title
+
"
into a valid episode
"
,
logger
.
WARNING
)
...
...
This diff is collapsed.
Click to expand it.
sickbeard/scene_numbering.py
+
13
−
0
View file @
52efb6f4
...
...
@@ -185,11 +185,24 @@ def find_xem_numbering(indexer_id, indexer, season, episode):
_xem_refresh
(
indexer_id
,
indexer
)
cacheDB
=
db
.
DBConnection
(
'
cache.db
'
)
myDB
=
db
.
DBConnection
()
rows
=
cacheDB
.
select
(
"
SELECT scene_season, scene_episode FROM xem_numbering WHERE indexer = ? and indexer_id = ? and season = ? and episode = ?
"
,
[
indexer
,
indexer_id
,
season
,
episode
])
scene_seasons
=
cacheDB
.
select
(
"
SELECT COUNT(DISTINCT scene_season) as count FROM xem_numbering WHERE indexer = ? and indexer_id = ?
"
,
[
indexer
,
indexer_id
])
indexer_seasons
=
myDB
.
select
(
"
SELECT COUNT(DISTINCT season) as count FROM tv_episodes WHERE indexer = ? and showid = ?
"
,
[
indexer
,
indexer_id
])
if
rows
:
return
(
int
(
rows
[
0
][
"
scene_season
"
]),
int
(
rows
[
0
][
"
scene_episode
"
]))
elif
int
(
scene_seasons
[
0
][
"
count
"
])
>
0
and
int
(
indexer_seasons
[
0
][
"
count
"
])
>
int
(
scene_seasons
[
0
][
"
count
"
]):
return
(
0
,
0
)
else
:
return
None
...
...
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