nrk-tv-downloader
nrk-tv-downloader copied to clipboard
Lightweight bash utility to easily download content from nrk-tv, radio and super.
nrk-tv-downloader
Lightweight bash utility to easily download content from nrk-tv, radio and super.
About
This is just another simple shell-script that downloads programs from nrk-tv. It also supports nrk-radio and nrk-super.
This script has nothing to do with NRK!
Install
git clone https://github.com/odinuge/nrk-tv-downloader --recursive
Subtitles
To download subtitles you need tt-to-subrip. To get it, you have to clone this repo with the --recursive
flag, or execute the following (inside this repo):
git submodule update --init --recursive
Usage
$ ./nrk-tv-downloader.sh
Usage: ./nrk-tv-downloader.sh <OPTION>... [PROGRAM_URL(s)]...
Options:
-a download all episodes, in all seasons.
-s download all episodes in season
-n skip files that exists
-d dry run - list what is possible to download
-u do not download subtitles
-e episode mode - format episodes as Series.name.SXXEXX.mp4
-f create series and season number folders for episodes (use together with -e)
-q will ask you to select quality
-t target directory for downloaded files (e.g. /mnt/media/TV - no trailing slash)
-h print this
For updates see <https://github.com/odinuge/nrk-tv-downloader>
Example:
$ ./nrk-tv-downloader.sh -s "url"
Code style
The source code (nrk-tv-downloader.sh
) is formatted with shfmt. To format the code, run:
$ shfmt -l -w nrk-tv-downloader.sh
Requirements
This script requires bash, rev, cut, grep, sed, gawk, printf, curl, ffmpeg/avconv and jq.
License
MIT © Odin Ugedal