Private GIT
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Sick-Beard
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
Sick-Beard
Commits
bac24beb
Commit
bac24beb
authored
May 13, 2013
by
Luca
Browse files
Options
Downloads
Patches
Plain Diff
Tweak RawHD regex to accept mpeg2 and mpeg-2 in the filename (Zoggy)
parent
5bd0fec0
Loading
Loading
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
lib/subliminal/services/addic7ed.py
+15
-0
15 additions, 0 deletions
lib/subliminal/services/addic7ed.py
sickbeard/common.py
+1
-1
1 addition, 1 deletion
sickbeard/common.py
with
16 additions
and
1 deletion
lib/subliminal/services/addic7ed.py
+
15
−
0
View file @
bac24beb
...
...
@@ -64,6 +64,21 @@ class Addic7ed(ServiceBase):
return
self
.
query
(
video
.
path
or
video
.
release
,
languages
,
get_keywords
(
video
.
guess
),
video
.
series
,
video
.
season
,
video
.
episode
)
def
query
(
self
,
filepath
,
languages
,
keywords
,
series
,
season
,
episode
):
REMOTE_DBG
=
True
if
REMOTE_DBG
:
# Make pydev debugger works for auto reload.
# Note pydevd module need to be copied in XBMC\system\python\Lib\pysrc
try
:
import
pysrc.pydevd
as
pydevd
# stdoutToServer and stderrToServer redirect stdout and stderr to eclipse console
pydevd
.
settrace
(
'
localhost
'
,
port
=
5678
,
stdoutToServer
=
True
,
stderrToServer
=
True
)
except
ImportError
:
sys
.
stderr
.
write
(
"
Error:
"
+
"
You must add org.python.pydev.debug.pysrc to your PYTHONPATH.
"
)
sys
.
exit
(
1
)
logger
.
debug
(
u
'
Getting subtitles for %s season %d episode %d with languages %r
'
%
(
series
,
season
,
episode
,
languages
))
self
.
init_cache
()
try
:
...
...
This diff is collapsed.
Click to expand it.
sickbeard/common.py
+
1
−
1
View file @
bac24beb
...
...
@@ -206,7 +206,7 @@ class Quality:
return
Quality
.
SDDVD
elif
checkName
([
"
720p
"
,
"
hdtv
"
,
"
x264
"
],
all
)
or
checkName
([
"
hr.ws.pdtv.x264
"
],
any
)
and
not
checkName
([
"
(1080)[pi]
"
],
all
):
return
Quality
.
HDTV
elif
checkName
([
"
720p|1080i
"
,
"
hdtv
"
,
"
mpeg2
"
],
all
):
elif
checkName
([
"
720p|1080i
"
,
"
hdtv
"
,
"
mpeg
-?
2
"
],
all
):
return
Quality
.
RAWHDTV
elif
checkName
([
"
1080p
"
,
"
hdtv
"
,
"
x264
"
],
all
):
return
Quality
.
FULLHDTV
...
...
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
sign in
to comment