Skip to content

Commit

Permalink
Update kemono-dl.py
Browse files Browse the repository at this point in the history
fore requires cookies for --favorite-users and --favorite-posts
  • Loading branch information
AlphaSlayer1964 authored Oct 13, 2021
1 parent faa073d commit 10b3a8a
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions kemono-dl.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand All @@ -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(",")
Expand Down

0 comments on commit 10b3a8a

Please sign in to comment.