From 277db7582f7d4ada88bf5449d31080f0e905c3b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Louis=20V=C3=A9zina?= <5130500+morpheus65535@users.noreply.github.com> Date: Fri, 27 Oct 2017 22:18:16 -0400 Subject: [PATCH] Test --- check_update.py | 8 ++++++++ get_general_settings.py | 7 ++++--- requirements.txt | 1 + 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/check_update.py b/check_update.py index e69de29bb..e19847719 100644 --- a/check_update.py +++ b/check_update.py @@ -0,0 +1,8 @@ +from get_general_settings import * + +import git + +g = git.cmd.Git(os.path.dirname(__file__)) +g.pull('origin ' + branch + '--dry-run') + +print g \ No newline at end of file diff --git a/get_general_settings.py b/get_general_settings.py index 911dbcd75..7602255c5 100644 --- a/get_general_settings.py +++ b/get_general_settings.py @@ -22,6 +22,9 @@ if general_settings[3] is None: path_mappings = [] else: path_mappings = ast.literal_eval(general_settings[3]) +log_level = general_settings[4] +branch = general_settings[5] +automatic = general_settings[6] def path_replace(path): for path_mapping in path_mappings: @@ -47,6 +50,4 @@ def path_replace_reverse(path): if '\\' in path: path = path.replace('\\', '/') - return path - -#print path_replace_reverse(r'\\\\serveur\\media\\Series TV\\Vikings\\Season 03\\Vikings.S03E01.720p.HDTV.x264-KILLERS.mkv') + return path \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index ac2749d18..dc15cd1e0 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,6 +4,7 @@ bottle bottle-fdsend dogpile.cache enzyme +gitpython Pillow py-pretty pycountry