Giter VIP home page Giter VIP logo

nopaystation_scripts's Introduction

nopaystation_scripts

A linux bash script collection which downloads nopaystation PS Vita stuff. There are four Scripts. One to download all *.tsv files of NoPayStation. The other three are for downloading games, updates or all DLC of a PS Vita game.

Requirements

  • bash
  • curl
  • pkg2zip
  • latest mktorrent

To compile+install mktorrent

$ git clone https://github.com/Rudde/mktorrent.git
$ cd mktorrent/ && PREFIX=$HOME make
$ PREFIX=$HOME make install
$ rm -rf ~/mktorrent

Make sure that executable bit is set on the scripts.

$ chmod +x download*.sh

Script examples

download_game.sh

With this script you can download a PS Vita game. The first parameter is the path to your *.tsv file and the second is the game's media ID. It places the *.zip file in the current directory. For example:

$ ./download_game.sh /home/tux/Downloads/UPDATE.tsv PCSE00986

I can recommend this Site for searching media IDs.

download_update.sh

With this script you can download all available PS Vita game updates. The first parameter is the path to your *.tsv file and the second is the game's media ID. It places the files in a created directory from the current working directory named $MEDIAID_update. For example:

$ ./download_update.sh /home/tux/Downloads/GAME.tsv PCSE00986

download_dlc.sh

This script downloads every DLC found for a specific media ID with available zRIF key. It places the files in a created directory from the current working directory named $MEDIAID_dlc. For example:

$ ./download_dlc.sh /home/tux/Downloads/DLC.tsv PCSE00986

Every DLC is placed in a created directory named like the media id relative to the current directory.

download_tsv.sh

It downloads every *.tsv file from NoPayStation.com and creates a tar archive with the current date for it.

$ ./download_tsv.sh /path/to/the/output_directory

If you don't add the output directory as the first parameter, it uses the current working directory.

download2torrent.sh

Requirements:

  • pkg2zip with the patch written above in the requirements

This script downloads the game, every update and dlc found for a specific media ID with available zRIF key. It puts the DLC and the Updates in a dedicated folder named like the generated zip and creates a torrent for the game, updates and dlc folders. In fact it uses the three scripts from above combine them to share them easily via BitTorrent. You need to have download_game.sh, download_update.sh, download_dlc.sh in your $PATH variable to get it working. Either you can symlink them to /home/$YOURUSER/bin/ or copy them to /usr/local/bin/.

If you want to do some additional steps after running download2torrent.sh, you can add a post script named download2torrent_post.sh to the directory where you run download2torrent.sh from the command line. It has to be executable to run. download2torrent.sh runs the post script with the game name as the first parameter. You can handle the parameter with the variable $1 in your (bash) script.

For example:

$ ./download2torrent.sh PCSE00986 http://announce.url /path/to/directory/containing/the/tsv/files

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.