Update channels list

Remove archived channels
This commit is contained in:
Mickael 2019-06-22 14:11:52 +02:00
parent 15b2d21c8a
commit 4854f09568
2 changed files with 5 additions and 1 deletions

File diff suppressed because one or more lines are too long

View File

@ -40,6 +40,10 @@ while True:
totalChannels = channels['total']
for channel in channels['channels']:
print("{}".format(channel['name']))
if ('archived' in channel) and channel['archived']:
continue
if channel['name'].find('cohorte') != -1:
if 'description' in channel:
m = re.findall(r'#([\w-]+)', channel['description'])