mirror of
https://github.com/morpheus65535/bazarr
synced 2024-12-25 17:17:12 +00:00
Test
This commit is contained in:
parent
2efc13f848
commit
5026af8203
2 changed files with 4 additions and 8 deletions
|
@ -9,7 +9,7 @@ RUN apt-get update
|
|||
RUN apt-get install -y build-essential python-dev python-pip python-setuptools libjpeg-dev zlib1g-dev git libgit2-dev libffi-dev
|
||||
|
||||
# Get application source from Github
|
||||
RUN git clone -b master --single-branch https://github.com/morpheus65535/bazarr.git /bazarr
|
||||
RUN git clone -b development --single-branch https://github.com/morpheus65535/bazarr.git /bazarr
|
||||
|
||||
VOLUME /bazarr/data
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ from get_general_settings import *
|
|||
def list_subtitles(file):
|
||||
languages = []
|
||||
actual_subtitles = []
|
||||
if os.path.exists(file):
|
||||
if os.path.exists(file.encode('utf-8')):
|
||||
if os.path.splitext(file)[1] == '.mkv':
|
||||
try:
|
||||
with open(file, 'rb') as f:
|
||||
|
@ -35,7 +35,7 @@ def list_subtitles(file):
|
|||
def store_subtitles(file):
|
||||
languages = []
|
||||
actual_subtitles = []
|
||||
if os.path.exists(file):
|
||||
if os.path.exists(file.encode('utf-8')):
|
||||
if os.path.splitext(file)[1] == '.mkv':
|
||||
try:
|
||||
with open(file, 'rb') as f:
|
||||
|
@ -125,8 +125,4 @@ def new_scan_subtitles():
|
|||
c_db.close()
|
||||
|
||||
for episode in episodes:
|
||||
store_subtitles(path_replace(episode[0]))
|
||||
|
||||
#full_scan_subtitles()
|
||||
#new_scan_subtitles()
|
||||
#list_missing_subtitles()
|
||||
store_subtitles(path_replace(episode[0]))
|
Loading…
Reference in a new issue