Generate playlist

This commit is contained in:
Free TV
2021-05-24 12:43:58 +01:00
parent 1376178488
commit ca21cf9de3
4 changed files with 97 additions and 59 deletions
+1
View File
@@ -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())