[gpEdit v1.01]
- Fixed critical bug which incorrectly tagged all vanilla media regardless of whether an edit existed.
This commit is contained in:
+4
-3
@@ -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\\"
|
||||
|
||||
Reference in New Issue
Block a user