更新重名skip
更新重名skip
This commit is contained in:
parent
5a6361897a
commit
fb666feec5
@ -34,10 +34,13 @@ def moveMovies(fromPath):
|
|||||||
movieFiles = movieFiles + [os.path.join(dirpath, f)
|
movieFiles = movieFiles + [os.path.join(dirpath, f)
|
||||||
for dirpath, dirnames, files in os.walk(fromPath)
|
for dirpath, dirnames, files in os.walk(fromPath)
|
||||||
for f in fnmatch.filter(files, '*.' + fm)]
|
for f in fnmatch.filter(files, '*.' + fm)]
|
||||||
print(movieFiles)
|
|
||||||
for movie in movieFiles:
|
for movie in movieFiles:
|
||||||
print("Move file " + movie)
|
movieName = movie.split('/')[-1]
|
||||||
shutil.move(movie, os.path.curdir)
|
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():
|
def UpdateCheck():
|
||||||
if UpdateCheckSwitch() == '1':
|
if UpdateCheckSwitch() == '1':
|
||||||
html2 = get_html('https://raw.githubusercontent.com/yoshiko2/AV_Data_Capture/master/update_check.json')
|
html2 = get_html('https://raw.githubusercontent.com/yoshiko2/AV_Data_Capture/master/update_check.json')
|
||||||
|
Loading…
Reference in New Issue
Block a user