Giter Site home page Giter Site logo

ibm9100 / cdnsp Goto Github PK

View Code? Open in Web Editor NEW

This project forked from analogman151/cdnsp

1.0 1.0 0.0 1.08 MB

Python3 script to connect to Nintendo CDN and print title info, download titles, and create NSP files

License: The Unlicense

Python 100.00%

cdnsp's Introduction

CDNSP

Python3 script to connect to Nintendo CDN and print title info, download titles, and create NSP files

Configure CDNSPconfig.json before use.
For Windows paths, be sure to use double backspaces: C:\\Users\\Desktop\\...
Currently includes hactool binaries for macOS and Windows.
Supply your own keys.txt file filled with Switch keys.

usage: CDNSP.py [-h] [-i TID [TID ...]] [-g TID-VER-TKEY [TID-VER-TKEY ...]]
                [-s VER [VER ...]] [-r]

optional arguments:
  -h, --help                          show this help message and exit
  -i TID [TID ...]                    print info about a title:
                                         - name from shogun
                                         - available updates from versionlist
  -g TID-VER-TKEY [TID-VER-TKEY ...]  download games/updates/DLC's:
                                         - titlekey argument is optional
                                         - format TitleID-Version(-Titlekey)
                                         - update TitleID's are the same as the base game's,
                                           with the three last digits replaced with '800'
                                         - version is 0 for base games, multiple of 65536 (0x10000) for updates
  -s VER [VER ...]                    download system updates:
                                         - version is computed as follows (credit goes to SocraticBliss):
                                         - X.Y.Z-B (all decimal integers)
                                           => VER = X*67108864 + Y*1048576 + Z*65536 + B
                                                 (= X*0x4000000 + Y*0x100000 + Z*0x10000 + B)
                                         - 0 will download the lastest update
  -r                                  repack the downloaded games to nsp format
                                         - for non-update titles, titlekey is required to generate tik
                                         - will generate/download cert, tik and cnmt.xml

Requirements:

  • requests
  • tqdm
  • pyopenssl

Features:

  • Obtain and display base game info when downloading a game, update or DLC (name, size, available updates)
  • Iterate through multiple regions (starting with prefered region in config file) to find title info
  • Name NSP file with the format: Title Name [TYPE][TITLE ID] where type is either GAME, UPDATE or DLC. Name is restricted to 64 characters, including extension.
  • Strips tItle names of special characters

cdnsp's People

Stargazers

 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.