From fef272af4f05c9ba8104fb58f03ae06624219357 Mon Sep 17 00:00:00 2001 From: James Taylor Date: Tue, 25 Dec 2018 00:43:49 -0800 Subject: Use new cookiejar system for comment posting --- youtube/accounts.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'youtube/accounts.py') 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 # --------------------------------- -- cgit v1.2.3