-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
A central database of all channels is very useful, and opens up the possibility to fall back when web scraping fails. It also makes it possible to start adding audio streams, or studio translations.
- Loading branch information
Showing
13 changed files
with
351 additions
and
160 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,215 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
# GNU General Public License v3.0 (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) | ||
|
||
from __future__ import absolute_import, division, unicode_literals | ||
|
||
# Fallback list of categories so we don't depend on web scraping only | ||
CATEGORIES = [ | ||
dict(name='Audiodescriptie', id='met-audiodescriptie'), | ||
dict(name='Cultuur', id='cultuur'), | ||
dict(name='Docu', id='docu'), | ||
dict(name='Entertainment', id='entertainment'), | ||
dict(name='Films', id='films'), | ||
dict(name='Human interest', id='human-interest'), | ||
dict(name='Humor', id='humor'), | ||
dict(name='Kinderen', id='voor-kinderen'), | ||
dict(name='Koken', id='koken'), | ||
dict(name='Lifestyle', id='lifestyle'), | ||
dict(name='Muziek', id='muziek'), | ||
dict(name='Nieuws en actua', id='nieuws-en-actua'), | ||
dict(name='Series', id='series'), | ||
dict(name='Sport', id='sport'), | ||
dict(name='Talkshows', id='talkshows'), | ||
dict(name='Vlaamse Gebarentaal', id='met-gebarentaal'), | ||
dict(name='Wetenschap en natuur', id='wetenschap-en-natuur'), | ||
] | ||
|
||
CHANNELS = { | ||
'een': dict( | ||
id='O8', | ||
type='tv', | ||
name='Eén', | ||
tagline='', | ||
studio='Een', | ||
website='https://een.be/', | ||
live_stream='https://www.vrt.be/vrtnu/kanalen/een/', | ||
|
||
), | ||
'canvas': dict( | ||
id='1H', | ||
type='tv', | ||
name='Canvas', | ||
tagline='', | ||
studio='Canvas', | ||
website='https://canvas.be/', | ||
live_stream='https://www.vrt.be/vrtnu/kanalen/canvas/', | ||
), | ||
'ketnet': dict( | ||
id='O9', | ||
type='tv', | ||
name='Ketnet', | ||
tagline='', | ||
studio='Ketnet', | ||
website='https://ketnet.be/', | ||
live_stream='https://www.vrt.be/vrtnu/kanalen/ketnet/', | ||
), | ||
'ketnet-jr': dict( | ||
id='1H', | ||
type='tv', | ||
name='Ketnet Junior', | ||
tagline='', | ||
studio='Ketnet Junior', | ||
website='https://ketnet.be/', | ||
), | ||
'radio1': dict( | ||
id='11', | ||
type='radio', | ||
name='Radio 1', | ||
tagline='Altijd Benieuwd', | ||
studio='Radio 1', | ||
hls_128='https://live-radio-cf-vrt.akamaized.net/groupb/live/47303075-8243-434b-8199-2e62cf4dd97a/live.isml/.m3u8', | ||
mpeg_dash_128='https://live-radio-cf-vrt.akamaized.net/groupb/live/47303075-8243-434b-8199-2e62cf4dd97a/live.isml/.mpd', | ||
mp3_128='http://icecast.vrtcdn.be/radio1-high.mp3', | ||
mp3_64='http://icecast.vrtcdn.be/radio1-mid.mp3', | ||
aac_128='http://icecast.vrtcdn.be/radio1.aac', | ||
), | ||
'radio2': dict( | ||
id='24', | ||
type='radio', | ||
name='Radio 2', | ||
tagline='De grootste familie', | ||
studio='Radio 2', | ||
hls_128='https://live-radio-cf-vrt.akamaized.net/groupb/live/93a8a402-9008-4a97-b473-bc107be7524d/live.isml/.m3u8', | ||
mpeg_dash_128='https://live-radio-cf-vrt.akamaized.net/groupb/live/93a8a402-9008-4a97-b473-bc107be7524d/live.isml/.mpd', | ||
mp3_128='http://icecast.vrtcdn.be/ra2ovl-high.mp3', | ||
mp3_64='http://icecast.vrtcdn.be/ra2ovl-mid.mp3', | ||
aac_128='http://icecast.vrtcdn.be/ra2ovl.aac', | ||
), | ||
'klara': dict( | ||
id='31', | ||
type='radio', | ||
tagline='Blijf verwonderd', | ||
name='Klara', | ||
studio='Klara', | ||
hls_128='https://live-radio-cf-vrt.akamaized.net/groupa/live/a9f36fda-cb3c-4b4e-9405-a5bba55654c0/live.isml/.m3u8', | ||
mpeg_dash_128='https://live-radio-cf-vrt.akamaized.net/groupa/live/a9f36fda-cb3c-4b4e-9405-a5bba55654c0/live.isml/.mpd', | ||
mp3_128='http://icecast.vrtcdn.be/klara-high.mp3', | ||
mp3_64='http://icecast.vrtcdn.be/klara-mid.mp3', | ||
aac_128='http://icecast.vrtcdn.be/klara.aac', | ||
), | ||
'klara-continuo': dict( | ||
id='32', | ||
type='radio', | ||
tagline='Non-stop klassieke muziek', | ||
name='Klara Continuo', | ||
studio='Klara Continuo', | ||
hls_128='https://live-radio-cf-vrt.akamaized.net/groupa/live/0d06dbbe-92d4-4cfe-a0b3-ccc6b7a32ec4/live.isml/.m3u8', | ||
mpeg_dash_128='https://live-radio-cf-vrt.akamaized.net/groupa/live/0d06dbbe-92d4-4cfe-a0b3-ccc6b7a32ec4/live.isml/.mpd', | ||
mp3_128='http://icecast.vrtcdn.be/klaracontinuo-high.mp3', | ||
mp3_64='http://icecast.vrtcdn.be/klaracontinuo-mid.mp3', | ||
aac_128='http://icecast.vrtcdn.be/klaracontinuo.aac', | ||
), | ||
'stubru': dict( | ||
id='41', | ||
type='radio', | ||
name='Studio Brussel', | ||
tagline='Life is Music', | ||
studio='Studio Brussel', | ||
website='https://stubru.be/', | ||
hls_128='https://live-radio-cf-vrt.akamaized.net/groupc/live/f404f0f3-3917-40fd-80b6-a152761072fe/live.isml/.m3u8', | ||
mpeg_dash_128='https://live-radio-cf-vrt.akamaized.net/groupc/live/f404f0f3-3917-40fd-80b6-a152761072fe/live.isml/.mpd', | ||
mp3_128='http://icecast.vrtcdn.be/stubru-high.mp3', | ||
mp3_64='http://icecast.vrtcdn.be/stubru-mid.mp3', | ||
aac_128='http://icecast.vrtcdn.be/stubru.aac', | ||
), | ||
'de-tijdloze': dict( | ||
id='44', | ||
type='radio', | ||
name='De Tijdloze', | ||
tagline='Altijd en overal de beste Tijdloze muziek', | ||
studio='Studio Brussel', | ||
website='https://stubru.be/', | ||
hls_128='https://live-radio-cf-vrt.akamaized.net/groupc/live/582109ca-1e71-4330-93fc-e9affee94d7d/live.isml/.m3u8', | ||
mpeg_dash_128='https://live-radio-cf-vrt.akamaized.net/groupc/live/582109ca-1e71-4330-93fc-e9affee94d7d/live.isml/.mpd', | ||
mp3_128='http://icecast.vrtcdn.be/stubru_tijdloze-high.mp3', | ||
mp3_64='http://icecast.vrtcdn.be/stubru_tijdloze-mid.mp3', | ||
aac_128='http://icecast.vrtcdn.be/stubru_tijdloze.aac', | ||
), | ||
'mnm': dict( | ||
id='55', | ||
type='radio', | ||
name='MNM', | ||
tagline='Music and More', | ||
studio='MNM', | ||
website='https://mnm.be/', | ||
hls_128='https://live-radio-cf-vrt.akamaized.net/groupa/live/68dc3b80-040e-4a75-a394-72f3bb7aff9a/live.isml/.m3u8', | ||
mpeg_dash_128='https://live-radio-cf-vrt.akamaized.net/groupa/live/68dc3b80-040e-4a75-a394-72f3bb7aff9a/live.isml/.mpd', | ||
mp3_128='http://icecast.vrtcdn.be/mnm-high.mp3', | ||
mp3_64='http://icecast.vrtcdn.be/mnm-mid.mp3', | ||
aac_128='http://icecast.vrtcdn.be/mnm.aac', | ||
), | ||
'mnm-hits': dict( | ||
id='56', | ||
type='radio', | ||
name='MNM Hits', | ||
tagline='Music and More - The Hits', | ||
studio='MNM', | ||
website='http://mnm.be/', | ||
hls_128='https://live-radio-cf-vrt.akamaized.net/groupb/live/35dd91de-0352-4865-8632-17e5af8dc6ba/live.isml/.m3u8', | ||
mpeg_dash_128='https://live-radio-cf-vrt.akamaized.net/groupb/live/35dd91de-0352-4865-8632-17e5af8dc6ba/live.isml/.mpd', | ||
mp3_128='http://icecast.vrtcdn.be/mnm_hits-high.mp3', | ||
mp3_64='http://icecast.vrtcdn.be/mnm_hits-mid.mp3', | ||
aac_128='http://icecast.vrtcdn.be/mnm_hits.aac', | ||
), | ||
'mnm-urbanice': dict( | ||
id='57', | ||
type='radio', | ||
name='MNM UrbaNice', | ||
tagline='De Online Urban Stream van MNM', | ||
studio='MNM', | ||
website='https://mnm.be/', | ||
hls_128='https://live-radio-cf-vrt.akamaized.net/groupa/live/da0b681c-73db-4c9e-af32-7921591d3fbd/live.isml/.m3u8', | ||
mpeg_dash_128='https://live-radio-cf-vrt.akamaized.net/groupa/live/da0b681c-73db-4c9e-af32-7921591d3fbd/live.isml/.mpd', | ||
mp3_128='http://icecast.vrtcdn.be/mnm_urb-high.mp3', | ||
mp3_64='http://icecast.vrtcdn.be/mnm_urb-mid.mp3', | ||
aac_128='http://icecast.vrtcdn.be/mnm_urb.aac', | ||
), | ||
'ketnet-hits': dict( | ||
id='O3', | ||
type='radio', | ||
name='Ketnet Hits', | ||
tagline='De hipste, de coolste én de plezantste hits op een rijtje', | ||
studio='Ketnet', | ||
website='https://ketnet.be/', | ||
hls_128='https://live-radio-cf-vrt.akamaized.net/groupa/live/014a9eea-af85-4da6-aab2-c472ca8d0149/live.isml/.m3u8', | ||
mpeg_dash_128='https://live-radio-cf-vrt.akamaized.net/groupa/live/014a9eea-af85-4da6-aab2-c472ca8d0149/live.isml/.mpd', | ||
mp3_128='http://icecast.vrtcdn.be/ketnetradio-high.mp3', | ||
mp3_64='http://icecast.vrtcdn.be/ketnetradio-mid.mp3', | ||
aac_128='http://icecast.vrtcdn.be/ketnetradio.aac', | ||
), | ||
'vrtnws': dict( | ||
id='13', | ||
type='radio', | ||
name='VRT NWS', | ||
tagline='Ieder moment het meest recente nieuws', | ||
studio='VRT NWS', | ||
website='https://www.vrtnieuws.be/', | ||
hls_128='https://ondemand-radio-cf-vrt.akamaized.net/audioonly/content/fixed/11_11niws-snip_hi.mp4/.m3u8', | ||
mpeg_dash_128='https://ondemand-radio-cf-vrt.akamaized.net/audioonly/content/fixed/11_11niws-snip_hi.mp4/.mpd', | ||
mp3_128='https://progressive-audio.lwc.vrtcdn.be/content/fixed/11_11niws-snip_hi.mp3', | ||
), | ||
'vrt-event': dict( | ||
id='71', | ||
type='radio', | ||
name='VRT Event', | ||
tagline='', | ||
studio='VRT', | ||
website='https://vrt.be/', | ||
hls_128='https://live-radio-cf-vrt.akamaized.net/groupa/live/779d53fc-9472-4fe8-b62a-1d38c5878c60/live.isml/.m3u8', | ||
mpeg_dash_128='https://live-radio-cf-vrt.akamaized.net/groupa/live/779d53fc-9472-4fe8-b62a-1d38c5878c60/live.isml/.mpd', | ||
mp3_128='http://icecast.vrtcdn.be/vrtevent-high.mp3', | ||
mp3_64='http://icecast.vrtcdn.be/vrtevent-mid.mp3', | ||
aac_128='http://icecast.vrtcdn.be/vrtevent.aac', | ||
), | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,3 +14,4 @@ | |
LISTING_TVGUIDE = 'listingtvguide' | ||
|
||
PLAY = 'play' | ||
PLAY_RADIO = 'play_radio' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.