aboutsummaryrefslogtreecommitdiffstats
path: root/youtube/watch_later.py
diff options
context:
space:
mode:
authorJames Taylor <user234683@users.noreply.github.com>2018-06-30 23:34:46 -0700
committerJames Taylor <user234683@tutanota.com>2018-06-30 23:34:46 -0700
commit98157bf1bf1223ffa7556d2d21cfac6f07675f9d (patch)
tree9863e438deec87bb309a435c0f4cb0eb0e455dcc /youtube/watch_later.py
downloadyt-local-98157bf1bf1223ffa7556d2d21cfac6f07675f9d.tar.lz
yt-local-98157bf1bf1223ffa7556d2d21cfac6f07675f9d.tar.xz
yt-local-98157bf1bf1223ffa7556d2d21cfac6f07675f9d.zip
initial commit
Diffstat (limited to 'youtube/watch_later.py')
-rw-r--r--youtube/watch_later.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/youtube/watch_later.py b/youtube/watch_later.py
new file mode 100644
index 0000000..126fb6e
--- /dev/null
+++ b/youtube/watch_later.py
@@ -0,0 +1,11 @@
+import os.path
+import json
+watch_later_file = os.path.normpath("youtube/watch_later.txt")
+def add_to_watch_later(video_info_list):
+ with open(watch_later_file, "a", encoding='utf-8') as file:
+ for info in video_info_list:
+ file.write(info + "\n")
+
+
+def get_watch_later_page():
+ pass \ No newline at end of file