Skip to main content

Script to play Czech Television (Česká televize) streams in custom player.

Project description

Script to play Czech Television (Česká televize) streams in custom video player.

Installation

Directly using pip:

pip install televize

Dependencies

  • python >=3.5

  • Any player which supports internet playlists. mpv is used by default.

  • Other dependencies are listed in requirements.txt.

Usage

televize live 24  # CT24
televize live D  # CT:D
televize live sport  # CT-sport
televize ivysilani http://www.ceskatelevize.cz/ivysilani/11276561613-kosmo/
televize ivysilani http://www.ceskatelevize.cz/porady/11276561613-kosmo/215512121020005-triumf

Complete usage is printed using –help argument:

televize --help

macOS

To open stream in a native player on macOS (e.g. VLC), use –player command open -a APP –args. For example:

televize --player "open -a VLC --args" live 24

Recommendations

A reload script https://github.com/4e6/mpv-reload is highly recommended for mpv.

Acknowledgement

Based on Perl scripts televize and ctstream from Petr Písař (http://xpisar.wz.cz).

Changelog

0.6.0 (2021-04-23)

  • Support python 3.6-3.9.

  • Restore certificate verification.

  • Update README.

  • Update settings for tests, static checks and CI.

  • Resolve various warnings.

0.5

  • Fix after ceskatelevize.cz switched to HTTPS.

  • Fix PyPI description by using ReST for readme and changelog.

0.4

  • Fix pypi upload

0.3

  • Add support for “pořady” URLs.

  • Fix live streams after CT update in April.

0.2

  • Add –quality argument to select stream quality.

  • Better exception handling.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

televize-0.6.0.tar.gz (15.6 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page