diff options
Diffstat (limited to 'youtube/accounts.py')
-rw-r--r-- | youtube/accounts.py | 3 |
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 # --------------------------------- |