-
Notifications
You must be signed in to change notification settings - Fork 19
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
suggestion to improve HDoujin ergonomics #317
Comments
@HDoujinDownloader What do u think about it? |
There are a few things you're able to do right now:
Maybe you have another idea in mind to make adding new sites easier for people without programming experience. I'm definitely open to suggestions. |
What I am suggesting is that the way you add new websites to Hdoujin, the program does it automatically. What is your opinion? So users who don't know anything about programming can send the link to a kind of "search bar" and the program will automatically start the process to add it. I am well aware that this could take a long time. The general idea is that Hdoujin does the work automatically with a detection and orchestration system to make everything faster. However, you as a programmer will know better than me how to add a way to add new websites to Hdouji autonomously. @HDoujinDownloader |
It isn't black magic, there isn't any way to add website automatically unless you buy a PC that can "think". |
The best that can be done is creating a "generic" LUA script as fallback, like the "generic extractor" of yt-dlp. |
@ale5000-git And how would that help users who know absolutely nothing about programming? Could you send an example? What I'm looking for is a simple and effective way to add websites to Hdoujin without knowing programming. For example, you add the URL of the website you want to add and HDoujin converts it into a Lua file that will then be detected like the rest of the pages in the repository. In case some websites fail, it will show you a solution or tell you how to modify the URL to make it valid. At least that's one way I see possible. |
The generic script would make the program work with any website that isn't too much complicated without any manual change but as said it won't be perfect. |
@ale5000-git I think a tutorial on the official website would also work "how to add websites to Hdoujin" the tutorial would be in the bar so whenever you need it you just have to go to the website and watch it. Squidy made some tutorials for Flaresolverr, but they are not in the bar so they are somewhat difficult to find if you don't look hard. |
In every case even when there is a tutorial, it would only cover the HDoujinDownloader specific things. |
There is some support for generic Lua modules: You can set the domain to The reason this isn't really taken advantage of yet is because I need to improve caching to make the retries more efficient. I'm working on that right now though, so this is something that I'm going to start using soon. |
@HDoujinDownloader My idea is something like this? So the developer can change to go up and down, specific modules will have number near 1 instead generic modules will have maybe number near 999. |
Matching modules are first ordered by repository priority, then by the time they were last updated. If there are any explicit matches, those modules are always chosen over a generic match. If there are no explicit matches and multiple generic matches, all generic modules are tried until one of them produces a valid result. Generic modules can also choose to pass a URL off to the next one if they want to. So, generic modules already have lowest priority. I think this is a good way of handling it without having to manually specify priority. |
Generic module support has now matured, and should be fully ready for use. You can see an example of what this looks like with the changes I made in 31df992. |
Honestly, it's annoying when websites go down and appear with a new domain and Hdoujin can't detect them. I think it would be great if a system or a way was developed where users could add any website (related to mangas, manhwas and manhuas). In addition, the administration would take off an extra burden and they would not have to worry about time and adding each website and could focus on developing other things. The thing is, a lot of pages tend to fall out and then Hdoujin doesn't detect them or Hdoujin detects them but shows "N/A" in the chapter section. It's also a hassle to have to send all your favorite pages all the time. It's a good suggestion for both parties. I'm not a programmer and I don't know how much time it takes for you, so I shouldn't require you to take time out of your daily life because you're human too. I await a response, thank you.
The text was updated successfully, but these errors were encountered: