aboutsummaryrefslogtreecommitdiffstats
path: root/youtube/accounts.py
diff options
context:
space:
mode:
authorJames Taylor <user234683@users.noreply.github.com>2018-12-25 00:43:49 -0800
committerJames Taylor <user234683@users.noreply.github.com>2018-12-25 00:43:49 -0800
commitfef272af4f05c9ba8104fb58f03ae06624219357 (patch)
tree34265e98f5403cab74b49e8c4d0f93db66965856 /youtube/accounts.py
parent5ffe9a4030db19a22b329da8d0c5f6bfed5cc6d3 (diff)
downloadyt-local-fef272af4f05c9ba8104fb58f03ae06624219357.tar.lz
yt-local-fef272af4f05c9ba8104fb58f03ae06624219357.tar.xz
yt-local-fef272af4f05c9ba8104fb58f03ae06624219357.zip
Use new cookiejar system for comment posting
Diffstat (limited to 'youtube/accounts.py')
-rw-r--r--youtube/accounts.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/youtube/accounts.py b/youtube/accounts.py
index 53b3d49..3ed4bed 100644
--- a/youtube/accounts.py
+++ b/youtube/accounts.py
@@ -35,6 +35,9 @@ def cookie_jar_from_lwp_str(lwp_str):
cookie_jar._really_load(self, io.StringIO(lwp_str), "", False, False)
return cookie_jar
+def account_cookie_jar(username):
+ return cookie_jar_from_lwp_str(accounts[username]['cookies'])
+
# ---------------------------------
# Code ported from youtube-dl
# ---------------------------------