aboutsummaryrefslogtreecommitdiffstats
path: root/youtube/local_playlist.py
blob: 057555ac39557599dd4dd92f6f9717141e34a094 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
import os.path
import json

playlists_directory = os.path.normpath("data/playlists")

def add_to_playlist(name, video_info_list):
    with open(os.path.join(playlists_directory, name), "a", encoding='utf-8') as file:
        for info in video_info_list:
            file.write(info + "\n")
        
        
def get_playlist_page(name):
    pass