From 10b3a8a1a9d53f5c88eca7add324570358f7d948 Mon Sep 17 00:00:00 2001 From: AplhaSlayer1964 <62714929+AplhaSlayer1964@users.noreply.github.com> Date: Wed, 13 Oct 2021 00:35:25 -0400 Subject: [PATCH] Update kemono-dl.py fore requires cookies for --favorite-users and --favorite-posts --- kemono-dl.py | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/kemono-dl.py b/kemono-dl.py index ae9edb7..ae974ae 100644 --- a/kemono-dl.py +++ b/kemono-dl.py @@ -413,7 +413,7 @@ def get_favorite_users(): extract_link('https://kemono.party/{service}/user/{id}'.format(**favorite_user)) return except: - print('Error getting favorite users. Session might have expired, login to kemono.party then get cookies.txt') + print('Error getting favorite users. Session might have expired, relog into kemono.party and get a new cookies.txt') return def get_favorite_posts(): @@ -433,16 +433,22 @@ def get_favorite_posts(): extract_link('https://kemono.party/{service}/user/{user}/post/{id}'.format(**favorite_post)) return except: - print('Error getting favorite posts. Session might have expired, login to kemono.party then get cookies.txt') + print('Error getting favorite posts. Session might have expired, relog into kemono.party and get a new cookies.txt') return def main(): if args['favorite_users']: - get_favorite_users() + if not args['cookies']: + print('You must pass a cookies.txt with your login session') + else: + get_favorite_users() if args['favorite_posts']: - get_favorite_posts() + if not args['cookies']: + print('You must pass a cookies.txt with your login session') + else: + get_favorite_posts() if args['links']: links = args['links'].split(",")