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

Small fixes for Wattpad. #1137

Merged
merged 2 commits into from
Dec 31, 2024
Merged

Small fixes for Wattpad. #1137

merged 2 commits into from
Dec 31, 2024

Conversation

dbhmw
Copy link
Contributor

@dbhmw dbhmw commented Dec 28, 2024

The categories weren't fetching due to the outdated link returning error and bringing down the tags with it.

Added fallback dict for CATEGORY_DEFs in the case of error. If the comment is correct this shouldn't be a problem in the long run

WattpadComAdapter.CATEGORY_DEFs was moved from the __init__ to the extractChapterUrlsAndMetadata because I couldn't figure out how to mock get_request in pytest in that context.

rating will be set to mature if present.

The dateUpdated is set to the date of the last modification, but now there is an option to change it to the date of the last posted chapter.

Added the date for the chapter's posting and modification.

fanficfare/adapters/adapter_wattpadcom.py Show resolved Hide resolved
fanficfare/adapters/adapter_wattpadcom.py Show resolved Hide resolved
fanficfare/adapters/adapter_inkbunnynet.py Outdated Show resolved Hide resolved
@JimmXinu JimmXinu merged commit 816bbdf into JimmXinu:main Dec 31, 2024
@dbhmw dbhmw deleted the WattpadFix branch January 1, 2025 20:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants