AlphaSlayer1964 / kemono-dl

A simple kemono.party downloader using python.
499 stars 81 forks source link

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

Open itsaferbie opened 1 year ago

itsaferbie commented 1 year ago

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

afterdelight commented 1 year ago

use this fork https://github.com/L4cache/kemono-dl/commit/c0dd751be4cba57de0f5168bba8cd905614e08c3

itsaferbie commented 1 year ago

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 commented 1 year ago

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.