NX-DB is a custom database for Nintendo Switch, containing information about games, DLC, updates, and other content.
The project is organized as follows:
base/: Contains JSON files for base gamesdlc/: Contains JSON files for downloadable content (DLC)update/: Contains JSON files for game updatesretro/: Contains JSON files for retro gamesmerge.py: Script to merge all JSON files into a single databasenewcontent.py: Script to add or update entries in the database
The merge.py script combines all JSON files from different directories into a single fulldb.json file. It traverses the following directories:
- base
- dlc
- update
- retro
The newcontent.py script allows adding new entries or updating existing entries in the database. It offers the following features:
- Adding new games, DLC, or updates
- Updating existing information
- Storing data in the appropriate directory (base, dlc, update)
To create the fulldb.json file containing all data:
python merge.pyTo add or update entries in the database:
python newcontent.pyFollow the on-screen instructions to enter the required information.
Each entry in the database contains the following fields:
id: Unique identifier of the game/contentname: Name of the game/contentdescription(optional): Description of the game/contentpublisher(optional): Publisher of the gameregion(optional): Region of the gamereleaseDate: Release date in YYYYMMDD formatsize(optional): Size of the game/content in bytesversion: Version of the game/content
This script combines all individual JSON files into a single fulldb.json file. It performs the following actions:
- Traverses the specified directories (base, dlc, update, forwarder)
- Reads each JSON file in these directories
- Combines the data into a single dictionary
- Writes the combined data to fulldb.json
This script facilitates the addition and updating of content in the database. It provides the following functionality:
- Allows selection of content type (base, DLC, update)
- Prompts for game ID
- If the game exists, allows updating its information
- If the game doesn't exist, allows entering new game details
- Saves the new or updated information to the appropriate JSON file
Contributions to NX-DB are welcome. Feel free to submit pull requests or open issues to suggest improvements or report bugs.
- Fork the repository
- Create a new branch for your feature (git checkout -b feature/AmazingFeature)
- Commit your changes (git commit -m 'Add some AmazingFeature')
- Push to the branch (git push origin feature/AmazingFeature)
- Open a Pull Request
- Thanks to all contributors who have helped build and maintain this database
- Nintendo Switch community for their support and input
This project is not affiliated with or endorsed by Nintendo. All game names, brands, and registered trademarks belong to their respective owners.