Xavier-Lam / JAV.bundle

A plex agent for Japanese porn videos. It collects data from JavLibrary, AVEntertainments and some studio's official sites.
MIT License
101 stars 9 forks source link

English language metadata #3

Open pplusp opened 1 year ago

pplusp commented 1 year ago

I've got this agent installed, and tested it on a couple 1Pondo releases. It works great, but I realised the metadata it scrapes from is www.1pondo.tv, which pulls all the relevant data from the Japanese website. Is there a way to pull from en.1pondo.tv to scrape English language results?

I know the metadata supplied on the English site is significantly reduced, but it would be valuable to have the option to at least get whatever titles and cast information the studios may supply.

Xavier-Lam commented 1 year ago

Hello pplusp, this agent was designed to be compatible with multi languages, but I haven't implemented it and I have no plan to implement any other languages metadata recently. If you are familiar with python, it is rather simple to implement getting metadata in another language, all you need to do is add some code to each agent inside Contents/Code/agents folder to check what language's metadata you are looking for and return the correct data. You can get current language by achieving self.lang attribute in each agent, then according to the value to crawling different urls or finding the correct HTML element. Because the structure of json or HTML response are very similar in different languages, you would spend most of your time on debugging your code. I would be very appreciated if you could implement the English metadata, then you can create a pull request, I would merge your code into this repository. If you are not a python programmer, I'm afraid you have to wait someone else to implement the English metadata, this project initially was designed to arrange my own library, I don't want to spend too much time on it.