pull/26/head
Louis Vézina 7 years ago
parent ee3ca1add6
commit 5d1aacddd1

@ -1,6 +1,3 @@
# coding: utf-8
from __future__ import unicode_literals
bazarr_version = '0.1.4' bazarr_version = '0.1.4'
from bottle import route, run, template, static_file, request, redirect from bottle import route, run, template, static_file, request, redirect

@ -1,6 +1,3 @@
# coding: utf-8
from __future__ import unicode_literals
from get_general_settings import * from get_general_settings import *
import os import os

@ -1,6 +1,3 @@
# coding: utf-8
from __future__ import unicode_literals
import os import os
import sqlite3 import sqlite3
import requests import requests

@ -1,6 +1,3 @@
# coding: utf-8
from __future__ import unicode_literals
import sqlite3 import sqlite3
import os import os
import ast import ast

@ -1,6 +1,3 @@
# coding: utf-8
from __future__ import unicode_literals
import sqlite3 import sqlite3
import pycountry import pycountry
import os import os

@ -1,6 +1,3 @@
# coding: utf-8
from __future__ import unicode_literals
import sqlite3 import sqlite3
import os import os
from subliminal import * from subliminal import *

@ -1,6 +1,3 @@
# coding: utf-8
from __future__ import unicode_literals
import os import os
import sqlite3 import sqlite3
import requests import requests

@ -1,6 +1,3 @@
# coding: utf-8
from __future__ import unicode_literals
import sqlite3 import sqlite3
import os import os
import ast import ast

@ -1,6 +1,3 @@
# coding: utf-8
from __future__ import unicode_literals
import os import os
import sqlite3 import sqlite3
import ast import ast

@ -1,6 +1,3 @@
# coding: utf-8
from __future__ import unicode_literals
import os import os
import sqlite3 import sqlite3

@ -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(unicode(file)): if os.path.exists(file):
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,8 +35,7 @@ def list_subtitles(file):
def store_subtitles(file): def store_subtitles(file):
languages = [] languages = []
actual_subtitles = [] actual_subtitles = []
print type(file) if os.path.exists(file):
if os.path.exists(unicode(file)):
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:

@ -1,6 +1,3 @@
# coding: utf-8
from __future__ import unicode_literals
from get_general_settings import * from get_general_settings import *
from get_series import * from get_series import *
from get_episodes import * from get_episodes import *

@ -1,6 +1,3 @@
# coding: utf-8
from __future__ import unicode_literals
import os import os
import sqlite3 import sqlite3
import time import time

Loading…
Cancel
Save