pull/26/head
Louis Vézina 7 years ago
parent 2efc13f848
commit 5026af8203

@ -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 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 # 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 VOLUME /bazarr/data

@ -11,7 +11,7 @@ from get_general_settings import *
def list_subtitles(file): def list_subtitles(file):
languages = [] languages = []
actual_subtitles = [] actual_subtitles = []
if os.path.exists(file): if os.path.exists(file.encode('utf-8')):
if os.path.splitext(file)[1] == '.mkv': if os.path.splitext(file)[1] == '.mkv':
try: try:
with open(file, 'rb') as f: with open(file, 'rb') as f:
@ -35,7 +35,7 @@ def list_subtitles(file):
def store_subtitles(file): def store_subtitles(file):
languages = [] languages = []
actual_subtitles = [] actual_subtitles = []
if os.path.exists(file): if os.path.exists(file.encode('utf-8')):
if os.path.splitext(file)[1] == '.mkv': if os.path.splitext(file)[1] == '.mkv':
try: try:
with open(file, 'rb') as f: with open(file, 'rb') as f:
@ -126,7 +126,3 @@ def new_scan_subtitles():
for episode in episodes: for episode in episodes:
store_subtitles(path_replace(episode[0])) store_subtitles(path_replace(episode[0]))
#full_scan_subtitles()
#new_scan_subtitles()
#list_missing_subtitles()

Loading…
Cancel
Save