can your issues be related to what @alex.holliz said:
One thing I have noticed, is that Data18 appears to be limiting the search hits to their domain. I can repro this by doing a refresh, seeing if it failed, then attempting the same search on Data18’s website. Not much that can be done about that.
I stumble uppon the same behavior from time to time, the plugin doesn’t seem to find a match (neither by title nor by id) and when I try a search on the website there is a error stating that I’ve made to many search for the time being.
Thanks for pointing that out. It was my first check. However I could search the web for titles without a problem. It seems like they have disabled the search for numbers as stated above. Maybe somebody could created a workaround since you can fill the URL manually http://www.data18.com/content/XXXXXXX and get a result.
I have in the title for my movies this format
1119264 Mp4
I have tried to edit the init.py file adding this
def search(self, results, media, lang):
Log('Data18 Version : ’ + VERSION_NO)
Log(‘SEARCH**’)
title = re.sub(‘Mp4’, ‘’, media.name)
title = media.name
content_id = False
However it did not provide the result. Since I have 100’s of files like this it would be good to add a small hack to remove the Mp4 and have them match automatically again. What did I do wrong ?
Hello, I am having an issue with the Data18 bundle where I have a folder title like this 1149928 with the movie within. When I scan the movie into plex, it returns a blank name. There is a blank item to click on, and when you click on the movie it has a link to the data18 page, but no actor or poster.
Today data18-content.bundle has stopped to match anything. Does anybody have this issue as well?
Here is the entry from log:
"2016-10-19 15:56:50,549 (707ff460) : DEBUG (runtime:717) - Handling request GET /:/plugins/com.plexapp.agents.data18-content/messaging/function/X0FnZW50S2l0OlNlYXJjaA__/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoyCmRpY3QKZGljdAo2CnMyCmVuczQKbGFuZ2IwczYKbWFudWFsYjFzNwpwcmltYXJ5aTAKczcKdmVyc2lvbnIxCnM2Cmt3YXJnc3M1Ck1vdmllczEwCm1lZGlhX3R5cGU2CnMxNgo4Y2MyNjE5NzNkYmZlNjE1czE3Cm9wZW5TdWJ0aXRsZXNIYXNoczcKMTE2NzI4MHM0Cm5hbWVzNTQKJTJGbW50JTJGQ29udGVudDIlMkZTdGFybGV0cyUyRjExNjcyODAlMkYxMTY3MjgwJTJFbXA0czgKZmlsZW5hbWVzNDAKNTUwNGQzOTAwZDI2MDc1NDQyYjgyYzBjMDBjYjg2NWQwZmU5ZDljN3M4CnBsZXhIYXNoczcKMjI3MjMyMHM4CmR1cmF0aW9uczQKNTA0OXMyCmlkcjAK
2016-10-19 15:56:50,562 (707ff460) : DEBUG (runtime:49) - Received packed state data (80 bytes)
2016-10-19 15:56:50,579 (707ff460) : DEBUG (runtime:814) - Found route matching /:/plugins/com.plexapp.agents.data18-content/messaging/function/X0FnZW50S2l0OlNlYXJjaA__/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoyCmRpY3QKZGljdAo2CnMyCmVuczQKbGFuZ2IwczYKbWFudWFsYjFzNwpwcmltYXJ5aTAKczcKdmVyc2lvbnIxCnM2Cmt3YXJnc3M1Ck1vdmllczEwCm1lZGlhX3R5cGU2CnMxNgo4Y2MyNjE5NzNkYmZlNjE1czE3Cm9wZW5TdWJ0aXRsZXNIYXNoczcKMTE2NzI4MHM0Cm5hbWVzNTQKJTJGbW50JTJGQ29udGVudDIlMkZTdGFybGV0cyUyRjExNjcyODAlMkYxMTY3MjgwJTJFbXA0czgKZmlsZW5hbWVzNDAKNTUwNGQzOTAwZDI2MDc1NDQyYjgyYzBjMDBjYjg2NWQwZmU5ZDljN3M4CnBsZXhIYXNoczcKMjI3MjMyMHM4CmR1cmF0aW9uczQKNTA0OXMyCmlkcjAK
2016-10-19 15:56:50,586 (707ff460) : INFO (agentkit:946) - Searching for matches for {‘openSubtitlesHash’: ‘8cc261973dbfe615’, ‘name’: ‘1167280’, ‘filename’: ‘%2Fmnt%2FContent2%2FStarlets%2F1167280%2F1167280%2Emp4’, ‘plexHash’: ‘5504d3900d26075442b82c0c00cb865d0fe9d9c7’, ‘duration’: ‘2272320’, ‘id’: ‘5049’}
2016-10-19 15:56:50,593 (707ff460) : DEBUG (networking:166) - Requesting ‘http://127.0.0.1:32400/library/metadata/5049/tree’
2016-10-19 15:56:50,664 (707ff460) : INFO (init:264) - Data18 Version : 1.2016.06.30.2
2016-10-19 15:56:50,667 (707ff460) : INFO (init:265) - SEARCH**
2016-10-19 15:56:50,671 (707ff460) : INFO (init:270) - Media.name is numeric
2016-10-19 15:56:50,762 (707ff460) : DEBUG (networking:161) - Fetching ‘http://www.data18.com/content/1167280’ from the HTTP cache
2016-10-19 15:56:50,859 (707ff460) : CRITICAL (agentkit:1003) - Exception in the search function of agent named ‘Data18-Content’, called with keyword arguments {‘openSubtitlesHash’: ‘8cc261973dbfe615’, ‘name’: ‘1167280’, ‘filename’: ‘%2Fmnt%2FContent2%2FStarlets%2F1167280%2F1167280%2Emp4’, ‘plexHash’: ‘5504d3900d26075442b82c0c00cb865d0fe9d9c7’, ‘duration’: ‘2272320’, ‘id’: ‘5049’} (most recent call last):
File “/usr/lib/plexmediaserver/Resources/Plug-ins-d34b464/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/api/agentkit.py”, line 996, in _search
agent.search(*f_args, **f_kwargs)
File “/home/pi/Library/Application Support/Plex Media Server/Plug-ins/Data18-Content.bundle/Contents/Code/init.py”, line 279, in search
title = parse_document_title(html)
File “/home/pi/Library/Application Support/Plex Media Server/Plug-ins/Data18-Content.bundle/Contents/Code/init.py”, line 115, in parse_document_title
return html.xpath(’//div/h1/text()’)[0].strip()
File “/usr/lib/plexmediaserver/Resources/Plug-ins-d34b464/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/code/sandbox.py”, line 108, in getitem = lambda x, y: x.getitem(y),
IndexError: list index out of range
It looks like that Data18 does not accept the number 1167280 as search anymore. This is a real… real shame. If anybody has a good idea @chidychi@RyoSaeba75 would be great. I have about 900 titles now with just the number.
I’ve got no issue on this part of the agent even with your movie id. So no clue where your issue is coming from. Did you try to delete and re-add the agent to your media server? The only differences I have in my version of the agent vs the one avalailabe here are only différence in the grabbing datas part not in the search one. And it work flawlessy, except for the limited number of search by data18
About the sample of code you showed us, you should delete
title = media.name
You’re setting the title that you will search back to it’s previous state (with 'Mp4" in it).
Hi
i don’t know where is the problema, but today with the last update of linux plex media server , with the correct ID , nothing comes up. only the % of matching.
Data18 seems to have add another security (other than the capping on the number of requests by amount of time).
From time to time when I go to data19 website, I prompted with [imgur.com/vJp5k0J](this screen), after clicking the website work again as the agent.
Another thing, every request made by the agent to data18’s website is cached for 24h, even when the website show this warning, or return an “number of request excedeed”, or any other errors. You can delete the plugin cache ( Plug-in Support/Caches/com.plexapp.agents.data18-content) or wait 24 hours to try again.
There also seems to be an change in the search result page, that’s why some titles appears blank and others doesn’t appears at all
Lines 12 & 13
XP_SCENE_LINK = ‘’.join([‘//div[contains(@class,“bscene”)]’,
‘//p//a[contains(@href,“content”)]’])
needs to be changed to
XP_SCENE_LINK = ‘//div[contains(@class,“contenedor”)]/div/p[2]/a’
is there a way to also capture the name of an Actress (it is 99% female) which is under “DEV” in Data18. The name are shown on the like you can see here http://www.data18.com/content/1167346
Lana Rhoades is the actress but the agent does not pull the name through. Would be great! Thanks!