Get MPEG-DASH streams from ČT
usage: ctstream.py [-h] [-t] [-n] [-r] channel
Get MPEG-DASH stream URLs from ČT
positional arguments:
channel Channel ID
options:
-h, --help show this help message and exit
-t, --timeshift Get timeshift stream
-n, --newline Print newline after stream URL
-r, --traceback Print traceback on error
python ctstream.py 1
python ctstream.py 1 -t
1: ČT1
2: ČT2
3: ČT24
4: ČT sport
6: ČT :D / art
from ctstream import get_stream_url
get_stream_url("1")
get_stream_url("1", "main")
get_stream_url("1", "timeshift")
from ctstream import get_playlist_url
get_playlist_url("1")
- Get client playlist URL
https://www.ceskatelevize.cz/ivysilani/ajax/get-client-playlist/
- Get stream URL from playlist
https://www.ceskatelevize.cz/ivysilani/client-playlist/?key=<key>
Send GraphQL query to https://api.ceskatelevize.cz/graphql/
:
query LiveBroadcastFind {
liveBroadcastFind {
id
current {
assignedToChannel {
channelName
}
}
}
}
See LICENSE for license information.