Skip to content
This repository has been archived by the owner on Aug 12, 2023. It is now read-only.
/ yle-areena-cli Public archive

Yle Areena CLI

Notifications You must be signed in to change notification settings

raspi/yle-areena-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

yle-areena-cli

GitHub All Releases GitHub release (latest by date) GitHub tag (latest by date)

Yle Areena API CLI. See developer web site.

Cache for API JSON fils is written to .cache directory.

Use for example yle-dl-docker to download episodes.

Usage examples

List episodes (1-4555656 = Das Boot):

% python main.py episodes 1-4555656

List episodes (1-4555656 = Das Boot) for season 1:

% python main.py episodes 1-4555656 --season 1-4553280

List seasons (1-4555656 = Das Boot):

% python main.py seasons 1-4555656

List categories (such as comedy, drama, ..):

% python main.py categories

Search for series (comedy, not for children):

% python main.py search-series --category 5-136 --ignore 5-258,5-259

Show info for program (1-50534749 = Docventures: BLEED OUT):

% python main.py program 1-50534749

Search series programs (1-4555656 = Das Boot):

% python main.py search-programs --series 1-4555656

Search for program(s) by name:

% python main.py search-programs -q docventures

Search for program by id (1-50534749 = Docventures: BLEED OUT):

% python main.py search-programs --id 1-50534749

Setup

Get Yle Areena API key from Yle's site.

% cp config.json.dist config.json
% $EDITOR config.json
% python main.py --help

Requirements

Development

Make new release:

./mkrel.sh <version>

For example:

./mkrel.sh 1.2.3