fix: They updated the channel URL
This commit is contained in:
parent
bfd02fb1be
commit
4af39b1e04
@ -361,8 +361,7 @@ help - Gebe diese Hilfe aus'''
|
|||||||
log.info('Requesting search channels')
|
log.info('Requesting search channels')
|
||||||
req = requests.get(MiscDataSources.channels())
|
req = requests.get(MiscDataSources.channels())
|
||||||
channels = json.loads(req.text)
|
channels = json.loads(req.text)
|
||||||
self._channels = list(map(lambda key: channels[key].get('NAME', ''),
|
self._channels = [channels[key].get('NAME', '') for key in channels]
|
||||||
channels.keys()))
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
with open(self._channel_file, 'w') as channel_file:
|
with open(self._channel_file, 'w') as channel_file:
|
||||||
|
@ -53,7 +53,7 @@ class MiscDataSources:
|
|||||||
'''
|
'''
|
||||||
These are the valid names to retrieve warnings for
|
These are the valid names to retrieve warnings for
|
||||||
'''
|
'''
|
||||||
return 'https://warnung.bund.de/assets/json/suche_channel.json'
|
return 'https://warnung.bund.de/assets/json/converted_gemeinden.json'
|
||||||
|
|
||||||
def sources_from_config(config):
|
def sources_from_config(config):
|
||||||
sources = []
|
sources = []
|
||||||
|
Loading…
Reference in New Issue
Block a user