I could not figure out how to get it to assign actors to tv series episodes, so it matches them as movies, not a tv show episode.
Kink does not list genres for shoots, so no genres are assigned.
Kink.com episode search by actor name doesn't really work, so the matching works by episode id - the only requirement is that the filename begins with the numeric shoot id from kink.com
Is anyone using this? I've done a lot of improvements on this the last few days. If there's any interest in it, I'd be happy to share it. In that case I would want to add a few more checks and comments here and there, though⦠;)
Removed/updated some legacy code that would cause warnings in the logfile
The site (e.g. DeviceBondage or Hogtied) is now set as the "movie studio", previously it would always just be "Kink.com". This allows for awesome sorting/grouping by site.
The title is no longer in the format "$sitename - $episodeid", but now actually also retrieved from the shoot info in the website. The episode ID is still appended in brackets for easy reference. Additionally, the tagline is set to "sitename - $episodeid". Example screenshot.
Instead of just fetching one of the images as the movie poster, it now is a] fetching all available images, and b]Ā fetches them in the highest quality possible. The one image that the shoot site is using as their primary/showcase picture is set as the poster, the other images are set as "art", so they'll be used as backdrops.
Genres were completely removed as there are none stated on the website. I might come back to this and do some keyword extraction on the summary to try and find out possible genres.
In addition to actors, the director of an episode is now also added automatically.
That's all for now, it should work very reliable, I've tested it on a few hundred files from many different sites.
Filenames have to begin with the episode ID! The files must not be in subdirectories.
I think especially the subdirectories thing can be worked around, but for now it has to be this way.
I'm hoping to be able to extend the functionality to some related/similar sites that don't belong to kink.com in the coming days (e.g. hardtied, infernal restraints).Ā These do not use shoot IDs and are thus harder to process, but I've got an idea how to do it.
Please let me know how it works for you. If you have problems, please also let me know the shoot ID so I can try to reproduce the problem.
If you have any ideas on what could still be improved, I'd love to hear it. Currently I don't really see any info from the website that is not yet used in some way, but maybe you can think of something.
@matrixagents: nice work, can you send a pull request with your changes, I'll merge them back in :)
You got it! :) Let me know if that works for you, I've had to include the readme as well it seems.
Do you have any idea about assigning actors to episodes, does that work now? I was not able to get it to work in my original code.
Sadly not, TV show agents are still a miracle to me in general. I might have another look some time, but for now I'm more than happy enough with the solution to use the website as studio and distinguish that way.
Regarding my announcement of trying to get other sites not from the Kink empire to work as well: in theory it's working, it's very hard to find a good identifier, though. Currently I'm trying parsing Google results for the filename and a little magic, but the accuracy is about 50 to 70 percent at best, I'm not really happy with that recognition rate. If a file is correctly recognized, the metadata is grabbed perfectly fine, however they all don't offer actor names in a parsable way, which lessens the value of the metadata quite a bit in my opinion.
Looks like you duplicated a lot of my private fixes. I also sent some pull requests to the plex server project itself for other metadata scraping oddness i discovered along the way.Ā Ill have to look up my code & see if I have any improvements I can make a pull request to your repo for.
As for other metadata agents, I'm going to write a meta agent that can fall call on the various ones already available... that and I'm slowly inching towards building my own MetaData DB... I know its overkill, but I need an excuse to play more with Neo4j.
@developers: any news on the merging of both bundles? Somehow I can only use the bundle from the AppStore - the one with genres isnāt working. Any chance of updating the scraper in the store? Thanks!
You got it! :) Let me know if that works for you, I've had to include the readme as well it seems.
Sadly not, TV show agents are still a miracle to me in general. I might have another look some time, but for now I'm more than happy enough with the solution to use the website as studio and distinguish that way.
Regarding my announcement of trying to get other sites not from the Kink empire to work as well: in theory it's working, it's very hard to find a good identifier, though. Currently I'm trying parsing Google results for the filename and a little magic, but the accuracy is about 50 to 70 percent at best, I'm not really happy with that recognition rate. If a file is correctly recognized, the metadata is grabbed perfectly fine, however they all don't offer actor names in a parsable way, which lessens the value of the metadata quite a bit in my opinion.
Oh man, I'm so sorry, I haven't been back to the forum in almost a year, completely forgot to check. Thanks for the pull request, I've merged your changes and bumped the version number so that everyone using the app store should get the improvements.
Looks like you duplicated a lot of my private fixes. I also sent some pull requests to the plex server project itself for other metadata scraping oddness i discovered along the way. Ill have to look up my code & see if I have any improvements I can make a pull request to your repo for.
As for other metadata agents, I'm going to write a meta agent that can fall call on the various ones already available... that and I'm slowly inching towards building my own MetaData DB... I know its overkill, but I need an excuse to play more with Neo4j.
I was using the version the matrixagent did. Ā Once you bumped the version number I got updated to your new version.... which doesn't work. Ā Most/all movies I tried will throw an exception like this:
2014-10-07 07:21:23,200 (1ac4) : DEBUG (networking:167) - Fetching 'http://www.kinkondemand.com/kod/shoot/36045' from the HTTP cache
2014-10-07 07:21:23,230 (1ac4) : CRITICAL (core:572) - Exception in the update function of agent named 'Kink.com', called with guid 'com.plexapp.agents.kink://36045?lang=en' (most recent call last):
File "C:\Users\Foobar\AppData\Local\Plex Media Server\Plug-ins\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\api\agentkit.py", line 981, in _update
agent.update(obj, media, lang)
File "C:\Users\Foobar\AppData\Local\Plex Media Server\Plug-ins\Kink.bundle\Contents\Code\__init__.py", line 51, in update
metadata.genres = series
File "C:\Users\Foobar\AppData\Local\Plex Media Server\Plug-ins\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\modelling\attributes.py", line 31, in __setattr__
self._attributes[name]._setcontent(value)
File "C:\Users\Foobar\AppData\Local\Plex Media Server\Plug-ins\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\modelling\attributes.py", line 631, in _setcontent
ContainerObject._setcontent(self, content)
File "C:\Users\Foobar\AppData\Local\Plex Media Server\Plug-ins\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\modelling\attributes.py", line 244, in _setcontent
raise Framework.exceptions.FrameworkException("Container-type attributes can't be assigned directly.")
FrameworkException: Container-type attributes can't be assigned directly.
Commenting out lines 51 and 52 fixes this problem. Ā (Series doesn't work, and director is already handled by the last code block.)
Iāve extended the functionality of the plugin to work with intersec sites. Itās far from perfect! The filenames have to be of a certain format. But for me itās working.
Just wanted to inform you that I used your code for the kink.com stuff.
Donāt know but maybe the plugin is good enough to merge it with yours.
This stopped working a few weeks ago, due to changes on the kink.com site. Any help fixing it would be greatly appreciated. Iām not savvy enough in python to get it done.
Iām working on a new agent which supports all the Kink.com and Intersec websites.
Unlike the existing Kink/Intersec agents, the new agent doesnāt require you to rename the file with the episode id. Just copy the file to the right Plex folder and the agent will find the correct metadata for it. (It finds metadata based on website, date, episode ID, and title/model information derived from the filename, which is almost always sufficient to get an accurate match.)
The agent is designed to be extensible, making it easy to add other websites going forward.
This does not seem to do anything for me. I have my library in folders named according to the plug-in documentation and filenames all include the shoot ID (I did a lot of work in the old days too). The agent runs but no metadata is entered for my files. I tried creating a whole new library with no luck. There are no errors, it just doesnāt do anything. Manually searching for these videos on kink.com/shoot/##### (or #### as appropriate) works just fine. Not sure what is failing.
I have a couple of questions:
Is this meant to work with the Movie or Video scanner or both?
How do I troubleshoot this / view search results?
Iām using Plex Media Server v1.3.3.3148 (PlexPass) on Windows Server 2008 R2 Standard x64.
Nice catch. Did you test out the latter? My vote would be to change the matcher because renaming the files seems like a PITA⦠however, it would also match the Year or any other 4 digits that the filename might have⦠so curious if you made that change and if it was an issue?