aboutsummaryrefslogtreecommitdiffstats
path: root/youtube/local_playlist.py
diff options
context:
space:
mode:
Diffstat (limited to 'youtube/local_playlist.py')
-rw-r--r--youtube/local_playlist.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/youtube/local_playlist.py b/youtube/local_playlist.py
new file mode 100644
index 0000000..057555a
--- /dev/null
+++ b/youtube/local_playlist.py
@@ -0,0 +1,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 \ No newline at end of file