I hope this hasnt been done before more smoothly as then it’s kindof wasted but atleast I havnt found any thread for it.
I was getting really annoyed at the fact that the wikipedia agent fetched useless facts about the production, rather than the plot in the field for plot.
All movie articles I checked on wikipedia, was always the first section used, so the modifications for making it fetch this section
Open C:\Users%Username%\AppData\Local\Plex Media Server\Plug-ins\Wikipedia.bundle\Contents\Code_init_.py
Now there’s just 5 things to change.
if page.find("’’’’’") != -1: -> if page.find("==") != -1:
Add this code just before class WikipediaAgent(Agent.Movies):
Ok, and it's done. The wikipedia agent will now fetch the full plot summary, and as long as the language of wikipedia you use still have plot as the first section it will work for your language as well. If no sections exist (such as if the article is only a stub), then no summary will be fetched and it will go on to next service rather than fetching the imo useless information that the original use. If you dont want to edit anything just use the attached file and place it in the same place. I post changes done to it as a way to edit future versions of this script.
Please do tell if you encounter any problems with the changes made or if you have any suggestions for improvement to this (improvements to this function... Not improvements to the agent in general).
1) The agent will update itself and replace anything you have edited with defaults every so often
2) Why don't you simply change the agent order so it gets this info from other locations? Put moviepostersdb at the top and themoviesdb 2nd - doing so will fill these fields before it even gets to looking for them from wikipedia.
1. I know it will. Which just means I'll have to redo the changes every so often as well. I could make some new agent out of it if I knew how but for now, I dont. Perhaps in the future I will do that.
2. As a comparison, TMDB summary for Star Wars Episode IV. 2 Sentences. The summary from wikipedia. 24 sentences over 5 paragraphs. It's 1200% the amount of content. I certainly know what I prefer.
Well not so much that Im advicing others about anything. Im just showing a way to make the current wikipedia agent fetch that area instead. Though I've just now found a movie that did not work. But that's due to a formatting error on wikipedia. Gonna try and see if I cant figure out how to fix that.
Created a new bundle out of it so it now identifies as its own agent that doesnt get overwritten by updates. Just download and extract to the plugin dir, then you can configure it as the normal wikipedia agent.