Layendan / Layendanimator

Anime Viewing app for Desktop
GNU General Public License v3.0
96 stars 5 forks source link

[Q&A] Add sources #39

Closed MisterPur closed 3 months ago

MisterPur commented 3 months ago

How do I add as source Aniwave. I see nothing that talks about that

Layendan commented 3 months ago

I technically haven't implemented that part yet. It is possible to add sources but the feature is not built enough to handle a full fledged scraper.

If you have experience with coding and/or have access to hosting a server then it would be possible. Otherwise, not yet.

Shouri14 commented 1 month ago

Hey @Layendan, Can you please point to the place where settings file is located in mac ? (Trying to add new sources in code) Thank you.

Layendan commented 1 month ago

Hey @Layendan, Can you please point to the place where settings file is located in mac ? (Trying to add new sources in code) Thank you.

Currently user data is loaded in https://github.com/Layendan/Layendanimator/blob/master/src/lib/model/settings.ts with sources being implemented here https://github.com/Layendan/Layendanimator/blob/master/src/lib/model/source.ts you can use this as a base for creating a new source: KickAssAnime.json (You can get it by right clicking kickassanime on the left side and choosing export source)

These get ran basically as just eval, but missing a few APIs which makes scraping a bit harder (what I really wanted to fix before working on other stuff). So currently I just have a scraper API hosted online and am calling that API through normal fetches inside the app. @Shouri14