mirror of
https://github.com/Free-TV/IPTV.git
synced 2026-09-24 19:17:14 +02:00
Generate playlist
This commit is contained in:
@@ -29,6 +29,7 @@ if __name__ == "__main__":
|
||||
continue
|
||||
with open(filename) as markup_file:
|
||||
group = filename.replace(".md", "").title()
|
||||
print("Generating %s" % group)
|
||||
for line in markup_file:
|
||||
if "<h1>" in line.lower() and "</h1>" in line.lower():
|
||||
group = re.sub('<[^<>]+>', '', line.strip())
|
||||
|
||||
Reference in New Issue
Block a user