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
eb29a797
Commit
eb29a797
authored
Jul 10, 2015
by
Dustyn Gibson
Browse files
Options
Downloads
Plain Diff
Merge branch 'hotfix-2031' into develop
parents
48139914
d8bf0b83
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/helpers.py
+2
-7
2 additions, 7 deletions
sickbeard/helpers.py
with
2 additions
and
7 deletions
sickbeard/helpers.py
+
2
−
7
View file @
eb29a797
...
...
@@ -42,8 +42,6 @@ import operator
from
contextlib
import
closing
import
sickbeard
import
subliminal
import
babelfish
import
adba
import
requests
...
...
@@ -59,7 +57,7 @@ from sickbeard import db
from
sickbeard
import
encodingKludge
as
ek
from
sickbeard
import
notifiers
from
sickbeard
import
clients
from
sickbeard.subtitles
import
isValidLanguage
from
lib.cachecontrol
import
CacheControl
,
caches
from
itertools
import
izip
,
cycle
...
...
@@ -519,11 +517,8 @@ def rename_ep_file(cur_path, new_path, old_path_length=0):
sublang
=
os
.
path
.
splitext
(
cur_file_name
)[
1
][
1
:]
# Check if the language extracted from filename is a valid language
try
:
language
=
babelfish
.
language
.
Language
(
sublang
,
strict
=
True
)
if
isValidLanguage
(
sublang
):
cur_file_ext
=
'
.
'
+
sublang
+
cur_file_ext
except
ValueError
:
pass
# put the extension on the incoming file
new_path
+=
cur_file_ext
...
...
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