This commit is contained in:
Louis Vézina 2017-10-27 22:18:16 -04:00
parent 121b95df09
commit 277db7582f
3 changed files with 13 additions and 3 deletions

View File

@ -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

View File

@ -22,6 +22,9 @@ if general_settings[3] is None:
path_mappings = [] path_mappings = []
else: else:
path_mappings = ast.literal_eval(general_settings[3]) 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): def path_replace(path):
for path_mapping in path_mappings: for path_mapping in path_mappings:
@ -47,6 +50,4 @@ def path_replace_reverse(path):
if '\\' in path: if '\\' in path:
path = path.replace('\\', '/') path = path.replace('\\', '/')
return path return path
#print path_replace_reverse(r'\\\\serveur\\media\\Series TV\\Vikings\\Season 03\\Vikings.S03E01.720p.HDTV.x264-KILLERS.mkv')

View File

@ -4,6 +4,7 @@ bottle
bottle-fdsend bottle-fdsend
dogpile.cache dogpile.cache
enzyme enzyme
gitpython
Pillow Pillow
py-pretty py-pretty
pycountry pycountry