[UPDATE] List time restrictions for remote files

This commit is contained in:
Muntashir Al-Islam 2021-07-20 17:18:31 +06:00
parent e610038e65
commit f9abbd2e44
1 changed files with 6 additions and 0 deletions

View File

@ -81,6 +81,12 @@ def parse_list(content, trusted=False):
continue continue
name = matches.group(1) name = matches.group(1)
names.add(name) names.add(name)
try:
time_restriction = matches.group(2)
if time_restriction:
time_restrictions[name] = time_restriction
except IndexError as e:
pass
return names, time_restrictions return names, time_restrictions