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

dateafter command not work #179

Open
holdfind opened this issue Jan 30, 2023 · 2 comments
Open

dateafter command not work #179

holdfind opened this issue Jan 30, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@holdfind
Copy link

holdfind commented Jan 30, 2023

Version

Version: kemono-dl 2022.04.27

Your Command

python kemono-dl.py --cookies "kemono.party_cookies.txt" --links https://kemono.party/fantia/user/238688 --dateafter 20221118

Description of bug

When I try the "dateafter" command, it show error.
If I remove "dateafter", it can download the content

How To Reproduce

No idea.

Error messages and tracebacks

<!-- Please include any error messages or tacebacks. -->
INFO:Downloading posts from kemono.party.party | fantia | 霜月しも | 238688
ERROR:Unable to get posts for https://kemono.party/fantia/user/238688
Traceback (most recent call last):
  File "D:\kemono-dl-main\src\main.py", line 665, in start_download
    self.get_post(url)
  File "D:\kemono-dl-main\src\main.py", line 162, in get_post
    post = self.clean_post(post, user, site)
  File "D:\kemono-dl-main\src\main.py", line 297, 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 is empty for this error

@holdfind holdfind added the bug Something isn't working label Jan 30, 2023
@Ovear
Copy link

Ovear commented Jan 30, 2023

Hi,
Try my fork should work.

https://github.com/ovear/kemono-dl

@holdfind
Copy link
Author

holdfind commented Feb 9, 2023

Hi, Try my fork should work.

https://github.com/ovear/kemono-dl

It work now
Thank very much

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

3 participants
@Ovear @holdfind and others