Skip to content
This repository has been archived by the owner on Sep 20, 2022. It is now read-only.
/ nrk-tv-cli Public archive

📺 Command line client for interacting with TV programs from the Norwegian Broadcasting Corporation (NRK)

License

Notifications You must be signed in to change notification settings

Starefossen/nrk-tv-cli

Repository files navigation

NRK TV CLI

Build status NPM downloads NPM version Node version Dependency status

Command line client (CLI) for interacting with TV programs from the Norwegian Broadcasting Corporation (NRK) built on top of the open source package nrk for Node.js.

Install

This program requires Node.js v4 or later installed. ImageMagick is used to render thumbnail images inside the terminal.

$ npm install nrk-tv-cli

Features

  • Search through all of NRK TV
  • List episodes for TV series
  • List episode details
    • Render thumbnail image
    • Nice tabular layout view
  • Download episode m3u8 playlist
  • Output JSON

Usage

$ nrk-tv-cli --help

Usage: nrk-tv-cli <command> [options]

command     
  version      show package versions
  search       Search all of NRK TV
  episodes     List series episodes
  episode      Get series episode

Options:
   -x, --no-geo-block   Only show items without geo-block
   -a, --avaiable       Only show items which are avaiable
   -v, --verbose        Output verbose information
   -J, --json           Output as JSON

Command line client for interacting with TV programs from the Norwegian Broadcasting Corporation (NRK)

Search

$ nrk-tv-cli search --help

Usage: nrk-tv-cli search <query> [options]

query     Search query string

Options:
   -x, --no-geo-block   Only show items without geo-block
   -a, --avaiable       Only show items which are avaiable
   -v, --verbose        Output verbose information
   -J, --json           Output as JSON
   -t, --type           Restrict results to given program types

Search all of NRK TV

Episodes

$ nrk-tv-cli episodes --help

Usage: nrk-tv-cli episodes <id> [options]

id     Series id to get episodes for

Options:
   -x, --no-geo-block   Only show items without geo-block
   -a, --avaiable       Only show items which are avaiable
   -v, --verbose        Output verbose information
   -J, --json           Output as JSON
   -s, --season         Limit episodes to given season
   --only-seasons       Only list seasons and no episodes

List series episodes

Episode

$ nrk-tv-cli episode --help

Usage: nrk-tv-cli episode <id> [options]

id     Episode ID to get details for

Options:
   -x, --no-geo-block   Only show items without geo-block
   -a, --avaiable       Only show items which are avaiable
   -v, --verbose        Output verbose information
   -J, --json           Output as JSON
   --show-image         Show episode image
   --save-m3u PATH      Save m3u playlist files to PATH

Get series episode

Legal

NRK is a registered trademark of the Norwegian Broadcast Corporation which is not affiliated with this product. Content from NRK APIs may be copyrighted.

About

📺 Command line client for interacting with TV programs from the Norwegian Broadcasting Corporation (NRK)

Resources

License

Stars

Watchers

Forks

Packages

No packages published