更新重名skip

更新重名skip
This commit is contained in:
ninjadogz 2019-10-27 17:35:24 +09:00
parent 5a6361897a
commit fb666feec5

View File

@ -34,10 +34,13 @@ def moveMovies(fromPath):
movieFiles = movieFiles + [os.path.join(dirpath, f)
for dirpath, dirnames, files in os.walk(fromPath)
for f in fnmatch.filter(files, '*.' + fm)]
print(movieFiles)
for movie in movieFiles:
print("Move file " + movie)
shutil.move(movie, os.path.curdir)
movieName = movie.split('/')[-1]
print("Move file " + movieName)
if (os.path.exists(os.path.curdir + '/' + movieName)):
print(movieName + "exists, skip.")
else:
shutil.move(movie, os.path.curdir)
def UpdateCheck():
if UpdateCheckSwitch() == '1':
html2 = get_html('https://raw.githubusercontent.com/yoshiko2/AV_Data_Capture/master/update_check.json')