diff --git a/Gamez.db b/Gamez.db index 90cb3ce..904b05e 100644 Binary files a/Gamez.db and b/Gamez.db differ diff --git a/lib/Constants.py b/lib/Constants.py index 33233af..ba3bcda 100644 --- a/lib/Constants.py +++ b/lib/Constants.py @@ -1,2 +1,2 @@ def VersionNumber(): - return "1.1.14.0" + return "1.1.15.0" diff --git a/lib/Constants.pyc b/lib/Constants.pyc index 95734ed..e802157 100644 Binary files a/lib/Constants.pyc and b/lib/Constants.pyc differ diff --git a/lib/DBFunctions.py b/lib/DBFunctions.py index c87b0c9..fd0377d 100644 --- a/lib/DBFunctions.py +++ b/lib/DBFunctions.py @@ -531,6 +531,16 @@ def CheckForSameGame(game_name): else: return True +def UpdateStatusForFolderProcessing(game_name,system,status): + db_path = os.path.join(os.path.abspath(""),"Gamez.db") + sql = "update requested_games set status='" + status + "' where game_name='" + game_name + "' and system='" + system + "'" + connection = sqlite3.connect(db_path) + cursor = connection.cursor() + cursor.execute(sql) + connection.commit() + cursor.close() + return + def ApiGetGamesFromTerm(term,system): db_path = os.path.join(os.path.abspath(""),"Gamez.db") sql = "SELECT GAME_NAME,SYSTEM,COVER FROM GAMES where game_name like '%" + term.replace("'","''") + "%' AND SYSTEM LIKE '%" + system + "%' ORDER BY GAME_NAME ASC" diff --git a/lib/DBFunctions.pyc b/lib/DBFunctions.pyc index 8a04bf3..605edcf 100644 Binary files a/lib/DBFunctions.pyc and b/lib/DBFunctions.pyc differ diff --git a/lib/FolderFunctions.py b/lib/FolderFunctions.py index 30abdfe..33e8338 100644 --- a/lib/FolderFunctions.py +++ b/lib/FolderFunctions.py @@ -127,7 +127,13 @@ def ProcessFolder(folderPath): dest = destPath + os.sep + newFileName src = subdir + os.sep + file LogEvent("Moving File " + src + " to " + dest) - shutil.move(src,dest) + try: + shutil.move(src,dest) + #Update status to wanted + if(game_name <> "" and system <> ""): + UpdateStatusForFolderProcessing(game_name,system,'Downloaded') + except: + LogEvent("Error Moving File") LogEvent(game_name + " Processed Successfully") else: LogEvent("Destination Folder Not Set") diff --git a/lib/FolderFunctions.pyc b/lib/FolderFunctions.pyc index 2eea56a..8f4fbe3 100644 Binary files a/lib/FolderFunctions.pyc and b/lib/FolderFunctions.pyc differ