@@ -64,30 +64,37 @@ class SupportedStream:
64
64
65
65
SUPPORTED_STREAMS : Dict [str , SupportedStream ] = {
66
66
"english" : SupportedStream (
67
- url = "https://stream.live.vc.bbcmedia.co.uk/bbc_world_service" ,
68
- # pylint: disable=locally-disabled, line-too-long
69
- # url="https://a.files.bbci.co.uk/media/live/manifesto/audio/simulcast/hls/uk/high/cfs/bbc_world_service.m3u8" ,
67
+ url = os . getenv (
68
+ "STREAM_URL_EN" , "https://stream.live.vc.bbcmedia.co.uk/bbc_world_service"
69
+ ) ,
70
70
language = "en" ,
71
71
translation_languages = ["fr" , "de" , "ja" , "ko" , "es" ],
72
72
),
73
73
"german" : SupportedStream (
74
- # pylint: disable=locally-disabled, line-too-long
75
- url = "https://icecast.ndr.de/ndr/ndrinfo/niedersachsen/mp3/128/stream.mp3?1680704013057&aggregator=web" ,
74
+ url = os .getenv (
75
+ "STREAM_URL_DE" ,
76
+ # pylint: disable=locally-disabled, line-too-long
77
+ "https://icecast.ndr.de/ndr/ndrinfo/niedersachsen/mp3/128/stream.mp3?1680704013057&aggregator=web" ,
78
+ ),
76
79
language = "de" ,
77
80
translation_languages = ["en" ],
78
81
),
79
82
"french" : SupportedStream (
80
- url = "https://icecast.radiofrance.fr/franceinter-midfi.mp3" ,
83
+ url = os .getenv (
84
+ "STREAM_URL_FR" , "https://icecast.radiofrance.fr/franceinter-midfi.mp3"
85
+ ),
81
86
language = "fr" ,
82
87
translation_languages = ["en" ],
83
88
),
84
89
"spanish" : SupportedStream (
85
- url = "https://25493.live.streamtheworld.com/CADENASERAAC_SC" ,
90
+ url = os .getenv (
91
+ "STREAM_URL_ES" , "https://25493.live.streamtheworld.com/CADENASERAAC_SC"
92
+ ),
86
93
language = "es" ,
87
94
translation_languages = ["en" ],
88
95
),
89
96
"korean" : SupportedStream (
90
- url = " http://fmt01.egihosting.com:9468/" ,
97
+ url = os . getenv ( "STREAM_URL_KO" , " http://fmt01.egihosting.com:9468/") ,
91
98
language = "ko" ,
92
99
translation_languages = ["en" ],
93
100
),
0 commit comments