summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xAntennaPodDbFixer.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/AntennaPodDbFixer.py b/AntennaPodDbFixer.py
index b506ba6..840ee03 100755
--- a/AntennaPodDbFixer.py
+++ b/AntennaPodDbFixer.py
@@ -45,15 +45,15 @@ else:
if not os.path.isfile(emptyFilePath):
print("If needed, you can download old app versions on F-Droid and export an empty database.")
emptyFilePath = input("Enter file path to an EMPTY AntennaPod database with the same version: ")
- emptyVersion = subprocess.run(
- ["sqlite3", emptyFilePath, "PRAGMA user_version;"],
- capture_output=True,
- text=True
- ).stdout.strip()
- print("Empty file version: " + emptyVersion)
- if corruptedVersion != emptyVersion:
- print("Error: Application version differs between database files.", file=sys.stderr)
- exit(1)
+emptyVersion = subprocess.run(
+ ["sqlite3", emptyFilePath, "PRAGMA user_version;"],
+ capture_output=True,
+ text=True
+ ).stdout.strip()
+print("Empty file version: " + emptyVersion)
+if corruptedVersion != emptyVersion:
+ print("Error: Application version differs between database files.", file=sys.stderr)
+ exit(1)
print()
repairedFilePath = inputFilePath + "-repaired.db"