[gpEdit v1.01]

- Fixed critical bug which incorrectly tagged all vanilla media regardless of whether an edit existed.
This commit is contained in:
2020-11-14 20:52:57 +00:00
parent 41ab67cd7f
commit b47f82ef06
+4 -3
View File
@@ -1,4 +1,4 @@
# gpsEdit Version 1.0
# gpsEdit Version 1.01
import glob
import os.path
@@ -13,18 +13,19 @@ file_move_cnt = 0
def build_media():
global media_list
media_list = glob.glob(media_dir + "*", recursive=True)
media_list = glob.glob(media_dir + "*", recursive=False)
def build_vanilla_media():
global vanilla_media_list, media_list
for x in media_list:
c_file = str(x).replace("-edited", "")
if os.path.isfile(c_file):
if os.path.isfile(c_file) and x != c_file:
if not vanilla_media_list.__contains__(c_file):
vanilla_media_list.append(c_file)
def move_vanilla_media():
global media_dir, vanilla_media_list, file_move_cnt
dest_dir = media_dir + "_VanillaMedia\\"