[ALPHA] Wrestling Metadata Agent

Hi Guys,

I'm trying to get this plugin working on a Ubuntu server, though I'm getting errors when Plex runs the TVRage agent, and the agent's log (com.plexapp.agents.tvrage.log) says that the python script has errors. I've attached the log. 

Any thoughts?

Log: http://pastebin.com/vTtJnQzb

Hello again!
Does anyone know how to add WWE NXT Pay-per-views or Special Events, such as arRival or Takeover inside the NXT TV Show library?

On TV Rage they appear in this format:

S08 - #1 NXT ArRIVAL (LIVE)
S08 - #3 NXT Takeover (LIVE)

Thanks in advance! :)

Hello again!
Does anyone know how to add WWE NXT Pay-per-views or Special Events, such as arRival or Takeover inside the NXT TV Show library?

On TV Rage they appear in this format:

S08 - #1 NXT ArRIVAL (LIVE)
S08 - #3 NXT Takeover (LIVE)

Thanks in advance! :)

Unfortunately, I don't think Plex does a good job (if any) handling specials, especially in-season. You might want to take the initiative on TVRage and edit http://www.tvrage.com/shows/id-41006 to be an NXT Specials show page with a format similar to the WWE Pay-Per Views show page (http://www.tvrage.com/WWE_Pay-Per-View). Then you would just do it as episodes of that show, which maybe isn't the most ideal solution, but it should work.

Hey man I really want to thank you for making this agent. I don't use it for wrestling shows at all, though. It's really good for japanese superhero shows because TVRage actually categorizes them correctly.

I can't make this plugin working. I select "wrestling" as agent for the Wrestling library, (in the folder Wrestling there is a structure "Wresling/WWE Pay-per-view on WWE Network/Season 01" and i can't see the files. No file are detected.

If i create the same library as personal media, I can watch correctly files. What i did wrong?

I can't get this to work. I've dropped the bundle in the folder, but it doesn't seem to be activated. What am I doing wrong?

wrong permissions, i guess.

finally, i found out that this Agent is already forked by sander1 to the original TVRage-Agent: https://github.com/plexinc-agents/TVRage.bundle

if anyone also searched for this.

wrong permissions, i guess.

finally, i found out that this Agent is already forked by sander1 to the original TVRage-Agent: https://github.com/plexinc-agents/TVRage.bundle

if anyone also searched for this.    

Correct, it went full circle from the original wrestling agent to BrutoZ (i think that's his handle) added more functionality to become a real TVRage plugin (artwork etc) where it was then adopted by sanders/plex inc official agents. Unfortunately it doesn't work and hasn't for a few months. There are more discussions on this in the forums if you search for "TVRage" but the short of it is this- when you add the tvrage bundle, it seems to work fine. However you later realize it's removed from PMS the next time you reboot. I followed this topic for a awhile and tried to resolve it myself but no one has been able to come up with a fix as of yet (at least the last I checked a couple weeks ago). You're better off using the original wrestling agent and adding the artwork manually as it at least works.

TVRagePlus.bundle.zip (121 KB)

I've modified this agent to pull in banner art from TVDB, where available, and fixed a few bugs.  It now works for me as a general TVRage agent, particularly for Star Wars Rebels, where the current Plex TVRage agent (and its branches) from https://github.com/plexinc-agents/TVRage.bundle didn't.

attachicon.gifTVRagePlus.bundle.zip

I've modified this agent to pull in banner art from TVDB, where available, and fixed a few bugs.  It now works for me as a general TVRage agent, particularly for Star Wars Rebels, where the current Plex TVRage agent (and its branches) from https://github.com/plexinc-agents/TVRage.bundle didn't.

very cool, I'll give it a shot. thanks for the efforts

hi guys, this seems to be exactly what i've been lookin for.

could you please give me some pointers how to install either tvrageplus.bundle or tvrage.bundle on a synology diskstation nas.

you wouln't have to start on square one, i know how to access my nas with telnet or ssh, and know the basics on a linux system.

thanks in advance.

attachicon.gifTVRagePlus.bundle.zip

I've modified this agent to pull in banner art from TVDB, where available, and fixed a few bugs.  It now works for me as a general TVRage agent, particularly for Star Wars Rebels, where the current Plex TVRage agent (and its branches) from https://github.com/plexinc-agents/TVRage.bundle didn't.

Looks like there's a bug somewhere, it crashes. From the log:

2015-01-18 18:20:43,334 (243c) :  DEBUG (networking:172) - Requesting 'http://thetvdb.com/banners/seasons/73141-2.jpg'2015-01-18 18:21:03,357 (243c) :  CRITICAL (core:572) - Exception in the update function of agent named 'TVRagePlus', called with guid 'com.plexapp.agents.tvrageplus://2594?lang=en' (most recent call last):  File "D:\PlexData\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 "D:\PlexData\Plex Media Server\Plug-ins\TVRagePlus.bundle\Contents\Code\__init__.py", line 141, in update
    metadata.seasons[banner_season].banners[banner_url] = Proxy.Media(HTTP.Request(banner_url), banner_sort)
  File "D:\PlexData\Plex Media Server\Plug-ins\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\modelling\attributes.py", line 537, in __setitem__
    MapObject.__setitem__(self, name, value)
  File "D:\PlexData\Plex Media Server\Plug-ins\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\modelling\attributes.py", line 353, in __setitem__
    obj._setcontent(value)
  File "D:\PlexData\Plex Media Server\Plug-ins\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\modelling\attributes.py", line 440, in _setcontent
    DataObject._setcontent(self, content._data)
  File "D:\PlexData\Plex Media Server\Plug-ins\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\modelling\attributes.py", line 222, in _setcontent
    self._data = str(content)
  File "D:\PlexData\Plex Media Server\Plug-ins\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\components
etworking.py", line 247, in __str__
    self.load()
  File "D:\PlexData\Plex Media Server\Plug-ins\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\components
etworking.py", line 187, in load
    f = self._opener.open(req, timeout=self._timeout)
  File "C:\Program Files (x86)\Plex\Plex Media Server\python27.zip\urllib2.py", line 404, in open
    response = self._open(req, data)
  File "C:\Program Files (x86)\Plex\Plex Media Server\python27.zip\urllib2.py", line 422, in _open
    '_open', req)
  File "C:\Program Files (x86)\Plex\Plex Media Server\python27.zip\urllib2.py", line 382, in _call_chain
    result = func(*args)
  File "C:\Program Files (x86)\Plex\Plex Media Server\python27.zip\urllib2.py", line 1214, in http_open
    return self.do_open(httplib.HTTPConnection, req)
  File "C:\Program Files (x86)\Plex\Plex Media Server\python27.zip\urllib2.py", line 1187, in do_open
    r = h.getresponse(buffering=True)
  File "C:\Program Files (x86)\Plex\Plex Media Server\python27.zip\httplib.py", line 1045, in getresponse
    response.begin()
  File "C:\Program Files (x86)\Plex\Plex Media Server\python27.zip\httplib.py", line 409, in begin
    version, status, reason = self._read_status()
  File "C:\Program Files (x86)\Plex\Plex Media Server\python27.zip\httplib.py", line 365, in _read_status
    line = self.fp.readline(_MAXLINE + 1)
  File "C:\Program Files (x86)\Plex\Plex Media Server\python27.zip\socket.py", line 476, in readline
    data = self._sock.recv(self._rbufsize)
timeout: timed out

2015-01-18 18:21:03,461 (243c) :  DEBUG (model:225) - Serializing to D:\PlexData\Plex Media Server\Metadata\TV Shows\3\ceea69b3a37903c585b8abced12b16b4b33e2eb.bundle\Contents\com.plexapp.agents.tvrageplus\Info.xml
2015-01-18 18:21:03,467 (243c) :  DEBUG (runtime:918) - Response: [200] str, 16 bytes

It stops processing after this.

Hmm, looks like it's a problem with thetvdb.com, nevermind my post above.

Though timeouts might have to be handled better :)

EDIT: Nope, after fixing the timeouts there's still no episode data being fetched and the log file (com.plexapp.agents.tvrageplus.log) is void of information regarding the request being made at all.

When changing the agent on a library and requesting metadata update, literally nothing happens. 

EDIT 2:

I dug into this some more. When I could get the plugin to work, it seemed to die on line 138, due to timeout. Since I didn't know exactly what the code does, I simply replaced the following line

metadata.seasons[banner_season].posters[banner_url] = Proxy.Media(HTTP.Request(banner_url), banner_sort)

with

Log("Test")

After this, the episodes got their names and thumbnails got downloaded.

I think this might be specific to American Dad, but I'm leaving the information here just in case someone else is having the same issues.

Hello All,

I haven't seen this question asked, but forgive me if I've overlooked it.

How are you guys adding the library? I am adding the Raw episodes and PPVs to the appropriate library the same way I do other things I download, but Plex isn't picking up the media unless I add it as a Home Video, and then there is no organization to the structure, it just throws everything into one unorganized pile.

I've re-added the library with different settings, no luck.

Any help would be awesome.

sigh

On standard Plex Movie settings I get some PPV images pulling through but not all of them, I've tried changing the names of Fastlane, MITB & TLC but nothing pulls through. The 'Wrestling' settings on a TV Show doesn't work for me and it end up not recognizing anything. (I'm not fazed by Raw or Smackdown eps, these I delete & it's just PPV I keep) - any thoughts what I can try to have all images generate?

WWE_Standard.png

As long as the WWE PPV's are added as a 'movies' library, it will get all of all of its metadata from themoviedb.org: http://i.imgur.com/WXfBjMi.png

Cheers

Great I came right with this.

If you are looking to only have all PPV's correctly linked in Plex (and don't care much for the Raw & Smackdown eps) then this will work.

Notice how my previous image missed detail on Fastlane, MITB & TLC...

Afterwards:

WWE_Standard_Fixed.png

Steps in fixing incomplete PPV - so if you are only interested in PPV and not the actual episodes leading up to the PPV:

  1. On my PC I created a WWE folder (within this folder I place all my lose individual Raw & Smackdown eps which I don’t bring into Plex, as I only want to have my main PPV’s in Plex) then within this folder I place a PPV folder.
  2. You create a new Movie library in Plex; under advanced settings you select standard Plex Movie Scanner & under Agent you select The Movie Database.
  3. Then in order to get the correct name for my PPV’s that weren’t pulling through I used Google & The Movie Database to get the exact name format of the missing PPV’s

Getting_WWE_Info.png

4.    I then copy the exact name as it appears (you can see that in this example Fastlane’s year was in brackets () )

Moviedb.png

5.  Then just force a refresh on your WWE library

 

 

Apologies if this isn't anyone's requirement & the main issue is getting the Raw & Smackdown in. (I find that I hardly ever re-watch them so no point in having them in plex)

Great I came right with this.

If you are looking to only have all PPV's correctly linked in Plex (and don't care much for the Raw & Smackdown eps) then this will work.

Notice how my previous image missed detail on Fastlane, MITB & TLC...

Afterwards:

WWE_Standard_Fixed.png

Steps in fixing incomplete PPV - so if you are only interested in PPV and not the actual episodes leading up to the PPV:

  1. On my PC I created a WWE folder (within this folder I place all my lose individual Raw & Smackdown eps which I don’t bring into Plex, as I only want to have my main PPV’s in Plex) then within this folder I place a PPV folder.
  2. You create a new Movie library in Plex; under advanced settings you select standard Plex Movie Scanner & under Agent you select The Movie Database.
  3. Then in order to get the correct name for my PPV’s that weren’t pulling through I used Google & The Movie Database to get the exact name format of the missing PPV’s

Getting_WWE_Info.png

4.    I then copy the exact name as it appears (you can see that in this example Fastlane’s year was in brackets () )

Moviedb.png

5.  Then just force a refresh on your WWE library

 

 

Apologies if this isn't anyone's requirement & the main issue is getting the Raw & Smackdown in. (I find that I hardly ever re-watch them so no point in having them in plex)

Yea the TMDB is the only agent (I know of) that will properly tag sporting events. It's not always the greatest metadata, but it has artwork and a brief synopsis which is much better than having nothing. There's a TVrage bundle that also carries these events but the naming convention requires you to set it up as a tv show, with seasons etc. Listing them individually, under 'movies' as you mentioned seems to get it done. Hopefully at some point there will be a decent sports api we can use to create an agent.

I am trying to wrap my head around this, I want Plex to recognize Raw/Smackdown/TNA/NXT/UFC etc right...  but I want to keep an easy way of naming the episodes, UFC is easy because its UFC 186. UFC 187 etc.

I recently started renaming my WWE stuff to something easier to read and keep in order so that people at my house can watch it all in order, so I currently have it like this
2015-06-01 - WWE Raw 720p HDTV

2015-05-14 - WWE Smackdown 720p HDTV

2015-05-31 - WWE Elimination Chamber 720p WED-DL

Now is this addon (which I dont even know how to install) going to still work for me?

I am trying to wrap my head around this, I want Plex to recognize Raw/Smackdown/TNA/NXT/UFC etc right...  but I want to keep an easy way of naming the episodes, UFC is easy because its UFC 186. UFC 187 etc.

I recently started renaming my WWE stuff to something easier to read and keep in order so that people at my house can watch it all in order, so I currently have it like this
2015-06-01 - WWE Raw 720p HDTV

2015-05-14 - WWE Smackdown 720p HDTV

2015-05-31 - WWE Elimination Chamber 720p WED-DL

Now is this addon (which I dont even know how to install) going to still work for me?

If you want them setup as stand alone events, set the section up as a movie section and use TMDB. If you want it setup as a series, you can use the tvrage plugin. You would need to set them up as seasons, like they have listed in tvrage: 2015/UFC PPV/UFC 187 etc