Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR: Unable to get favorite users from kemono.party #137

Open
itsaferbie opened this issue Sep 18, 2022 · 3 comments
Open

ERROR: Unable to get favorite users from kemono.party #137

itsaferbie opened this issue Sep 18, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@itsaferbie
Copy link

Version

Version: 2022.04.27

Your Command

python kemono-dl.py --cookies "kemono.party_cookies.txt" --dirname-pattern "X:\smol\Kemono\{service}\{username} [{user_id}]" --filename-pattern "[{published}] [{id}] {title}\[{index}]_{filename}.{ext}" --inline-filename-pattern "[{published}] [{id}] {title}\inline\[{index}]_{filename}.{ext}" --kemono-fav-users all

Description of bug

No download begins, throws error for not finding favorite users.

How To Reproduce

Open command prompt in folder for python script, put in command above.

Error messages and tracebacks

ERROR:Unable to get favorite users from kemono.party
Traceback (most recent call last):
  File "X:\smol\kemono-dl\src\main.py", line 630, in start_download
    self.get_favorites('kemono.party', 'artist', self.k_fav_users)
  File "X:\smol\kemono-dl\src\main.py", line 126, in get_favorites
    self.get_post(f"https://{domain}/{favorite['service']}/user/{favorite['id']}")
  File "X:\smol\kemono-dl\src\main.py", line 161, in get_post
    post = self.clean_post(post, user, site)
  File "X:\smol\kemono-dl\src\main.py", line 329, in clean_post
    new_post['post_variables']['user_updated'] = datetime.datetime.strptime(user['updated'], r'%a, %d %b %Y %H:%M:%S %Z').strftime(self.date_strf_pattern) if user['updated'] else None
TypeError: strptime() argument 1 must be str, not float

Additional comments

debug.log

@itsaferbie itsaferbie added the bug Something isn't working label Sep 18, 2022
@afterdelight
Copy link

use this fork
L4cache@c0dd751

@itsaferbie
Copy link
Author

itsaferbie commented Sep 19, 2022

I tried their fork earlier, but it gave me an error for --dirname-pattern.

But using this fork worked: Fork

I'll try theirs again tomorrow and see how it works, since it is late.

@afterdelight
Copy link

afterdelight commented Sep 19, 2022

yeah he updated and merged his fork with the other fork.
i tried it and it worked.
here is my fork with both fork combined and added some stuff and utf-8 support to make stuff easier
https://github.com/rum416/kemono-dl
but beware it has different folder structure, different args option and different archive structure.

Ovear added a commit to Ovear/kemono-dl that referenced this issue Sep 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants