From db29bbde6945639406d761812549e46fc724daa3 Mon Sep 17 00:00:00 2001 From: Kevin Midboe Date: Sun, 5 Mar 2017 16:35:29 +0100 Subject: [PATCH] Changed so that if no subs are found empty string is returned, and changed the directory for shows --- findStray.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/findStray.py b/findStray.py index 6c45f8b..a5cb3a2 100755 --- a/findStray.py +++ b/findStray.py @@ -10,7 +10,7 @@ from fuzzywuzzy import process from langdetect import detect from pprint import pprint -showDir = '/Volumes/media/tv/' +showDir = '/media/hdd1/tv/' dbPath = 'shows.db' mediaExtensions = ['mkv', 'mp4', 'avi'] subExtensions = ['srt'] @@ -24,7 +24,7 @@ def removeUploader(mediaItem): uploader, ext = match.group(0).split('.') return uploader - return subtitles + return '' def getLanguage(path, subtitles): f = open(path + subtitles, 'r', encoding= 'ISO-8859-15') @@ -147,4 +147,4 @@ def findStray(): if __name__ == '__main__': - findStray() \ No newline at end of file + findStray()