Fix path for invidual playlists

pull/317/head
KAMI 2023-03-14 06:21:22 +01:00 committed by GitHub
parent 76cdc36690
commit 94e4769207
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ def main():
if filename == "README.md" or not filename.endswith(".md"):
continue
with open(filename, encoding='utf-8') as markup_file:
file_country = os.path.join(dir_playlists, "playlist_" + filename[:-3:] + ".m3u8")
file_country = os.path.join("..", dir_playlists, "playlist_" + filename[:-3:] + ".m3u8")
playlist_country = open(file_country, "w", encoding='utf-8')
playlist_country.write(head_playlist)
group = filename.replace(".md", "").title()