fix: They updated the channel URL

This commit is contained in:
PapaTutuWawa 2021-03-07 15:33:52 +01:00
parent bfd02fb1be
commit 4af39b1e04
2 changed files with 2 additions and 3 deletions

View File

@ -361,8 +361,7 @@ help - Gebe diese Hilfe aus'''
log.info('Requesting search channels')
req = requests.get(MiscDataSources.channels())
channels = json.loads(req.text)
self._channels = list(map(lambda key: channels[key].get('NAME', ''),
channels.keys()))
self._channels = [channels[key].get('NAME', '') for key in channels]
try:
with open(self._channel_file, 'w') as channel_file:

View File

@ -53,7 +53,7 @@ class MiscDataSources:
'''
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):
sources = []