|
|
|
@ -8,6 +8,7 @@ from subliminal import *
|
|
|
|
|
import pycountry
|
|
|
|
|
import sqlite3
|
|
|
|
|
import ast
|
|
|
|
|
import sys
|
|
|
|
|
|
|
|
|
|
from get_general_settings import *
|
|
|
|
|
|
|
|
|
@ -109,7 +110,7 @@ def full_scan_subtitles():
|
|
|
|
|
c_db.close()
|
|
|
|
|
|
|
|
|
|
for episode in episodes:
|
|
|
|
|
store_subtitles(path_replace(episode[0]).encode('string_escape'))
|
|
|
|
|
store_subtitles(path_replace(episode[0]).encode(sys.getfilesystemencoding()))
|
|
|
|
|
|
|
|
|
|
def series_scan_subtitles(no):
|
|
|
|
|
conn_db = sqlite3.connect(os.path.join(os.path.dirname(__file__), 'data/db/bazarr.db'))
|
|
|
|
@ -118,7 +119,7 @@ def series_scan_subtitles(no):
|
|
|
|
|
c_db.close()
|
|
|
|
|
|
|
|
|
|
for episode in episodes:
|
|
|
|
|
store_subtitles(path_replace(episode[0]).encode('string_escape'))
|
|
|
|
|
store_subtitles(path_replace(episode[0]).encode(sys.getfilesystemencoding()))
|
|
|
|
|
|
|
|
|
|
list_missing_subtitles(no)
|
|
|
|
|
|
|
|
|
@ -129,4 +130,4 @@ def new_scan_subtitles():
|
|
|
|
|
c_db.close()
|
|
|
|
|
|
|
|
|
|
for episode in episodes:
|
|
|
|
|
store_subtitles(path_replace(episode[0]).encode('string_escape'))
|
|
|
|
|
store_subtitles(path_replace(episode[0]).encode(sys.getfilesystemencoding()))
|
|
|
|
|