Removed archives from accepted filetypes
This commit is contained in:
@@ -22,9 +22,6 @@ from utils import sanitize, refine
|
|||||||
logging.basicConfig(filename=env.logfile, level=logging.INFO)
|
logging.basicConfig(filename=env.logfile, level=logging.INFO)
|
||||||
|
|
||||||
|
|
||||||
#: Supported archive extensions
|
|
||||||
ARCHIVE_EXTENSIONS = ('.rar',)
|
|
||||||
|
|
||||||
def search_external_subtitles(path, directory=None):
|
def search_external_subtitles(path, directory=None):
|
||||||
dirpath, filename = os.path.split(path)
|
dirpath, filename = os.path.split(path)
|
||||||
dirpath = dirpath or '.'
|
dirpath = dirpath or '.'
|
||||||
@@ -128,7 +125,8 @@ def scan_videos(path):
|
|||||||
# scan for videos
|
# scan for videos
|
||||||
for filename in filenames:
|
for filename in filenames:
|
||||||
# filter on videos and archives
|
# filter on videos and archives
|
||||||
if not (filename.endswith(VIDEO_EXTENSIONS) or filename.endswith(ARCHIVE_EXTENSIONS)):
|
if not (filename.endswith(VIDEO_EXTENSIONS)):
|
||||||
|
logging.debug('Skipping non-video file %s', filename)
|
||||||
continue
|
continue
|
||||||
|
|
||||||
# skip hidden files
|
# skip hidden files
|
||||||
|
|||||||
Reference in New Issue
Block a user