-
-
Notifications
You must be signed in to change notification settings - Fork 123
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
MangaDex auto-updater? #24
Comments
This is indeed in the roadmap. Unfortunately, I had to relocate due to the coronavirus outbreak so I am struggling to find time to work on new features lately. I will keep this issue open and keep you updated. |
Fantastic! Stay safe and healthy, friend. :) |
I accidentally opened another issue as I didn't see this one while searching, so here are some thoughts I had in the other thread on how to getting these marked as "to download" right Describe the solution you'd like
Additional context |
I am returning to this issue, and I think the flow for this could be:
The personal RSS link can be accessed without MangaDex credentials, so I think this is the easiest way. Any input is welcome! |
Hmm, it looks like you can't do pagination with the RSS feed, so it only lists the latest 100 chapters. According to the devs on Discord, to get the older items you would have to use the API (https://api.mangadex.org/v2/user/me/followed-updates), which requires authentication :( |
FTFY |
@flying-sausages lol. The reason why I don't want authentication is that it doesn't make sense to have a shared MangaDex account for all users on a Mango server, so we can't just ask the admin to put their credentials in the config file. We will have to prompt each user to enter their username/password, and I can't think of a user-friendly way to do so. Storing credentials is another problem. MangaDex doesn't have API tokens so we will have to log users in with their username and password. I am not sure if we should just store the plain passwords in DB. |
You could probably fake a login, store the cookie and then save that. Present it as "connect to MD" and slap a big warning that cookies expire after 365 days |
@flying-sausages Oh that's a great idea! I might just do that. Thanks! |
If i might add to the login thing, i dont think the majority of users would mind storing an account name and password in plain text. This is an open source project so the code can be easily checked and it is an optional feature, so they could always just not use it :) Mangadex at some point might add api tokens so this feature could just be advertised as a beta until they do so. |
In the case of auto-downloads, you can use the API without being logged in (except for x-rated stuff) if you know the id of the manga.. I made an entire vue app to do this and link back to mango, by making a request to get all chapters for that manga id and then work "some magic" to decide what's what and then queue up downloads of new chapters. So why not save the mangadex id and periodically do the search based on that. I wish I knew crystal.. |
@fabiopbx It's less efficient that way. If you have 1000 manga downloaded from MangaDex, we would have to send 1000 requests to For everyone following this, I have in fact already implemented the subscription/update features in the |
That does make sense, I never did look into what the But yh shame this whole hacking scene is happening :( Been looking at the plugins to see if I can add some other sites... I take it the auto-download is mangadex only then ? |
@fabiopbx Yes, currently the advanced features (e.g., search manga by search terms and auto-update) are only available for MD. I do wish to move these features to plugins, so we can decouple from MD and just maintain it as a plugin. In this way we don't have to update the main app every time there's an API change, which it's likely to happen after they recover the site. But this requires some work and I need to find the time to do it. |
@fabiopbx If you or anyone wanna help, we could start by brainstorming and designing the new version of plugin API (preferably in a new issue). The current version is documented at https://github.com/hkalexling/mango-plugins/wiki/Development-Guideline, and it only has the basic features. After we finalize the design I will implement it into the main app. |
@hkalexling Hello, I just managed to get the mangadex plugin working with very basic functionality, at least it can download, looking at the dev plugin docs are the v2 plugin methods already in Mango? |
@fabiopbx Thanks for your effort! Unfortunately the v2 system is still WIP in the |
I'm gonna sneak in that if you feel like tinkering a bit, I have my Mango-Companion that I use to auto-download chapters from a decent selection of sites(also the updated mangadex), or plug them into mango with a plugin. But I'm not too sure about how complicated it is for others to set up, since so far (afaik) only I use it on my local nas. It also has some goodies like optionally sending a message into a Discord channel after it is done downloading new chapters. |
@tr7zw i would really like to use your creation, but my level of coding and building is not high enough.. |
@lucasmenno I can quickly look into it spitting out builds downloadable via github, give me a second. |
Alright. Thank you <3 |
Email alerts and I was on Github at the same time looking for something else 😅 |
@lucasmenno Ok done, fixed one issue and turns out mangatx might be blocking the Github IPs, so the build was failing there. Now when clicking on the latest build there is an artifacts button (https://github.com/tr7zw/Mango-Companion/actions/runs/1518234563) to get the jar. Other than that, Java 8+ and the Github readme should be all required :D. |
Okay, got it working and downloading now. My server is blocking something (maybe the port, even when its 127.0.0.1) but my homeserver through zerotier got it working right away. just need to figure out the way of automatically searching for new chapters. |
Bestcase contact me on the Mango Discord, then I can help better :D. But the tldr is to just add the URL of the manga to the config.json. |
For anyone who wants the plugin to download from the new mangadex api using the builtin download manager, I got it into a PR so you guys can have it :) : getmango/mango-plugins#19 |
Is this solved after v0.26.0? The Subscription Manager is there, though for MangaDex it always says "No subscriptions found." even though I've added subscriptions and can see them in |
@melyux can confirm the auto download works, though it seems they don’t always show in the list, a refresh or so sometimes works. But they do auto update. |
@melyux Yeah it should work. Make sure you are selecting the correct plugin in the dropdown. If it's still not working you can create a separate issue or discussion thread. |
Closing this as the feature is now available. |
Would it be possible to keep the downloaded manga IDs in a table, and then scan the MangaDex site once a day to check for updates, and automatically download the updated chapters using the same criteria chosen originally? Maybe a checkbox for "Keep Updated" in the download manager?
The text was updated successfully, but these errors were encountered: