Skip to content

Instantly share code, notes, and snippets.

@ungeskriptet
Created September 27, 2025 18:43
Show Gist options
  • Select an option

  • Save ungeskriptet/ab7970d508f4a3a8bdffeb10f4ec2a5a to your computer and use it in GitHub Desktop.

Select an option

Save ungeskriptet/ab7970d508f4a3a8bdffeb10f4ec2a5a to your computer and use it in GitHub Desktop.
Convert ITGmania favorites.txt to Project Outfox Stats.xml
#!/usr/bin/env python3
# Convert ITGmania favorites.txt to Project Outfox Stats.xml
# Usage: itg2outfoxfavorites.py <path to favorites.txt>
import sys
with open(sys.argv[1], 'r') as f:
lines = f.readlines()
counter = 0
for line in lines:
if not all(["---" in line, "Favorites" in line]):
print(f"<{counter}>/Songs/{line.rstrip()}/</{counter}>")
counter += 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment