Private GIT
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CouchPotatoServer
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
CouchPotatoServer
Commits
4fe9f9e4
Commit
4fe9f9e4
authored
Jan 13, 2013
by
Ruud
Browse files
Options
Downloads
Patches
Plain Diff
Log subtitle search
parent
71b22345
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
couchpotato/core/plugins/subtitle/main.py
+2
-0
2 additions, 0 deletions
couchpotato/core/plugins/subtitle/main.py
with
2 additions
and
0 deletions
couchpotato/core/plugins/subtitle/main.py
+
2
−
0
View file @
4fe9f9e4
...
@@ -49,6 +49,7 @@ class Subtitle(Plugin):
...
@@ -49,6 +49,7 @@ class Subtitle(Plugin):
available_languages
=
sum
(
group
[
'
subtitle_language
'
].
itervalues
(),
[])
available_languages
=
sum
(
group
[
'
subtitle_language
'
].
itervalues
(),
[])
downloaded
=
[]
downloaded
=
[]
files
=
[
toUnicode
(
x
)
for
x
in
group
[
'
files
'
][
'
movie
'
]]
files
=
[
toUnicode
(
x
)
for
x
in
group
[
'
files
'
][
'
movie
'
]]
log
.
debug
(
'
Searching for subtitles for: %s
'
,
files
)
for
lang
in
self
.
getLanguages
():
for
lang
in
self
.
getLanguages
():
if
lang
not
in
available_languages
:
if
lang
not
in
available_languages
:
...
@@ -57,6 +58,7 @@ class Subtitle(Plugin):
...
@@ -57,6 +58,7 @@ class Subtitle(Plugin):
downloaded
.
extend
(
download
[
subtitle
])
downloaded
.
extend
(
download
[
subtitle
])
for
d_sub
in
downloaded
:
for
d_sub
in
downloaded
:
log
.
info
(
'
Found subtitle (%s): %s
'
,
(
d_sub
.
language
.
alpha2
,
files
))
group
[
'
files
'
][
'
subtitle
'
].
add
(
d_sub
.
path
)
group
[
'
files
'
][
'
subtitle
'
].
add
(
d_sub
.
path
)
group
[
'
subtitle_language
'
][
d_sub
.
path
]
=
[
d_sub
.
language
.
alpha2
]
group
[
'
subtitle_language
'
][
d_sub
.
path
]
=
[
d_sub
.
language
.
alpha2
]
...
...
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