Skip to content

This application is able to interface with tou.tv service. You may list emissions, get information on episodes or download episodes.

Notifications You must be signed in to change notification settings

alexandrevez/Tou.tv-console-application

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 

Repository files navigation

This is a tou.tv console application.

You may list episodes, get information on shows or download shows.

Usage

$ ./toutv-cli.py --help

Example

Searching

$ ./toutv-cli.py search bourassa
Query:
    bourassa
Results:
    Episode:
        Les Cris de la baie James revendiquent leurs droits
[...]

Listing all shows

$ ./toutv-cli.py list
[...]
1597224814 - Campus
2157713779 - Physique ou chimie
2166270270 - Pour ne pas les oublier
[...]

Listing all episodes from 'Physique ou chimie'

$ ./toutv-cli.py list 2157713779
Title:
    Physique ou chimie
Episodes:
    2161200777 - Égoïsme raisonnable
    2172164238 - La vie en cadeau
    [...]

Getting more info about a show

$ ./toutv-cli.py info 2157713779 2161200777
Title:
    Égoïsme raisonnable     (S01E09)
Date aired:
    20111028
Description
    Ruth hérite d’une grosse somme d’argent provenant de l’assurance-vie de ses parents. On découvre que
    Joy est victime de racket.
Available bitrate:
    390000 bit/s
    490000 bit/s
    790000 bit/s
    1190000 bit/s

Downloading an emission

$ ./toutv-cli.py fetch -d ~/tou.tv --quality MAX 2157713779 2161200777
Emission and episode:
        Physique ou chimie - Égoïsme raisonnable        (S01E09)
Fetching video with bitrate 1190000 bit/s
Downloading 312 segments...
[ ##                                                                 ] 2%

$ ls ~/tou.tv/
Physique ou chimie-Égoïsme raisonnable.ts

$ mplayer ~/tou.tv/Physique\ ou\ chimie-Égoïsme\ raisonnable.ts

Downloading for the Wii

You may want to download shows and watch them on the Wii using WiiMC for example. The best
bitrate is around 800000 bit/s else you may experience lagging when playing the show.
Note that default option `AVERAGE` quality should get you a show playable on the Wii without
problem.

To specify the bitrate, first get the available bitrate by running `info` on your show:
$ ./toutv-cli.py info 2157713779 2161200777
[...]
Available bitrate:
    390000 bit/s
    490000 bit/s
    790000 bit/s
    1190000 bit/s

You can then select the bitrate around 80000 bit/s, which is 79000 bit/s:
$ ./toutv-cli.py fetch --bitrate 790000 2157713779 2161200777
Emission and episode:
    Physique ou chimie - Égoïsme raisonnable        (S01E09)
Fetching video with bitrate 790000 bit/s
Downloading 312 segments...
[                                                                    ] 0%

In case of a problem

Try to delete the cache by removing the file named ".toutv_cache" in the same directory where you run toutv-cli.py.

$ rm .toutv_cache

Dependencies:

Bugs

Contact Benjamin Vanheuverzwijn [email protected]

Thanks

  • Thanks to Marc-Etienne M. Leveille
  • Thanks to Simon Marchi

About

This application is able to interface with tou.tv service. You may list emissions, get information on episodes or download episodes.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%