Welcome to our forums! Please take a few moments to read through our Community Guidelines (also conveniently linked in the header at the top of each page). There, you'll find guidelines on conduct, tips on getting the help you may be searching for, and more!

[REL] Trailer Addict Metadata Agent

Pip LongrunPip Longrun Posts: 139Members ✭✭✭
edited May 22 in Plex Channel Plugins

Trailer Addict

image

What is Trailer Addict?

Trailer Addict is a metadata agent for Plex Media Server that tries to find trailers, interviews and behind the scenes videos for your movie library.

Requirements

A Plex movie library with the Plex Movie agent or The Movie Database agent set as primary agent.

How do I install Trailer Addict?

You can install Trailer Addict:

After installation:

  1. Activate the agent in Settings > Server > Agents.
  2. Use the Refresh All option on your library to let the agent collect and add trailers.

Where do I download Trailer Addict?

If you want to install the agent manually or if you are interested in the source code, you can download the latest copy of the agent from Github: releases

Limitations and Known Issues

  • Due to not being able to grab certain data directly I had to build a small API that converts IMDb ids to Trailer Addict ids. This API is still a bit slow due to a number of http requests it has to do. Lots of requests are cached, so the more the agent gets used, the faster it will become.
  • The source website does not offer preview images for the videos.

Where do I report issues?

Create an issue on Github and add as much information as possible:

  • Plex Media Server version
  • Primary agent and order of any secondary agents
  • Log files, com.plexapp.agents.traileraddict.log

image

«134

Comments

  • blaqcloudblaqcloud Posts: 130Members ✭✭

    AWESOME!!! Thank Very Much!

  • Pip LongrunPip Longrun Posts: 139Members ✭✭✭
    edited January 27

    Update

    v1.2 has been released:

    • Update regular expression to find the video files.
  • Pip LongrunPip Longrun Posts: 139Members ✭✭✭
    edited January 27

    Update

    I have updated the backend code that is used by this agent to search for matches. It should find a lot more matches than before.

  • drag0nb0xdrag0nb0x Posts: 42Members ✭✭

    Does this work on the roku devices? Also does this require a plex pass?

  • Pip LongrunPip Longrun Posts: 139Members ✭✭✭

    @drag0nb0x said:
    Does this work on the roku devices?

    To be honest, I don't know, but it adds extras just like other extra providing agents, so this agent is not doing anything special.

    @drag0nb0x said:
    Also does this require a plex pass?

    Nope, this agent does not require a Plex Pass.

  • drag0nb0xdrag0nb0x Posts: 42Members ✭✭

    Ok ill add it to my server in a bit and test to see if it works ok roku for ya.

  • Pip LongrunPip Longrun Posts: 139Members ✭✭✭

    Update

    v1.3 has been released:

    • Fix video playback.
  • drag0nb0xdrag0nb0x Posts: 42Members ✭✭

    How do i set as primary agent? Cause under both plex movie and imdb i put those at the top and nothing and tried putting trailer addict at the top and got nothing. And this is on roku and web

  • Pip LongrunPip Longrun Posts: 139Members ✭✭✭

    Update

    v1.4 has been released:

    • Remove extra type for music video.
  • Pip LongrunPip Longrun Posts: 139Members ✭✭✭

    @drag0nb0x said:
    How do i set as primary agent? Cause under both plex movie and imdb i put those at the top and nothing and tried putting trailer addict at the top and got nothing. And this is on roku and web

    Hi!
    Make sure you have the latest version (1.4 at this moment) of the agent. Install it and restart PMS (just to be sure the new agent is picked up). In the web client go into Settings > Server > Agents. Select Movies > Plex Movie or The Movie Database.

    Activate the Trailer Addict agent. The agent adds trailers, it does not override anything, so it does not really matter where it is listed.

    Go to your movie library and use the Refresh All option to let the new agent grab data for you:

    1.jpg 48.7K
    2.jpg 8.7K
  • drag0nb0xdrag0nb0x Posts: 42Members ✭✭

    Ok so i had everything set up right but i didnt do the refresh all forgot about that , i remember now i had to do that when i installed subzero for my subs lol . I will grab thew newest version and try that as last night i only had the v 1.3. Ill po st back in a bit

  • drag0nb0xdrag0nb0x Posts: 42Members ✭✭

    Ok shows up in webapp just fine and shows up in the roku app on my roku 4 and roku 2 xs , it also shows up in the android app on my s5 and shield tablet. I can test the roku stick in a bit but thx alot for this everythkng seems to be working great

  • Nik3shNik3sh Posts: 29Members ✭✭
    edited January 29

    Great plugin works with android TV, android mobile, ps4, Samsung TV 2016 and chrome. Most of the trailers are in the extra section and not as an icon on the menu bar, only 4 of my 60 movies have the icon on the menu bar, Is there any reason for this? Only on android mobile the trailers are separate from extras.

    PS. figured the above out had to untuck the Plex movies agent trailers and extras (Plex pass only) then refreshed all, now I get the trailer icon.

  • Pip LongrunPip Longrun Posts: 139Members ✭✭✭

    Update

    I continue to work on my backend code. I have switched some API calls over to certain paid APIs in the hopes that the results and response times will get a little bit better.

  • Pip LongrunPip Longrun Posts: 139Members ✭✭✭

    Update

    TA is currently having problems and videos do not work. Videos are still added by this agent, but playback does not work at this moment.

  • dsummitt@gmail.comdsummitt@gmail.com Posts: 17Members ✭✭
    edited February 10

    @Pip Longrun
    I noticed I've been having issues for a while now with this old plug-in and found that it seems to have some development going on again. I downloaded the 1.6 version today and loaded it to my plug-ins folder. I then installed the latest Plex server and rebooted the actual windows 7 PC. it's showing checked in the agents like it was before and I'm running a refresh all in the movie library. Looking at the logs it doesn't seem to be failing, but it's not pulling anything down for the stuff that didn't have trailers already in. here is a snippet of the log where it processes two movies and does nothing and then the third movie it processes a lot of stuff, but the things it's processing it had already done previously when the plug in was working.

    More Details: Agent is 3rd in the list under Movies-Plex Movie. It's Local Media Assets, Plex Movie, Trailer addict. Then under the Movie Database. It's 4th. Local Media - The Movie database - The Plex Movie - Trailer Addict.

    It's Windows 7 server. plex server version Version 1.3.4.3285

    2017-02-09 19:31:08,690 (1134) : INFO (agentkit:946) - Searching for matches for {'id': '14487', 'guid': 'com.plexapp.agents.imdb://tt0163025?lang=en', 'force': True, 'primary_agent': 'com.plexapp.agents.imdb', 'parentID': None}
    2017-02-09 19:31:08,706 (1134) : DEBUG (networking:166) - Requesting 'http://127.0.0.1:32400/library/metadata/14487/tree'
    2017-02-09 19:31:08,737 (1134) : DEBUG (model:32) - Loading model with GUID com.plexapp.agents.imdb://tt0163025?lang=en
    2017-02-09 19:31:08,737 (1134) : DEBUG (model:234) - Deserializing from C:\Users\Derek\AppData\Local\Plex Media Server\Metadata\Movies\7\26d168294d0020ef4516ea8ce6c432e1a9cddf7.bundle\Contents\com.plexapp.agents.imdb\Info.xml
    2017-02-09 19:31:08,799 (1134) : DEBUG (networking:166) - Requesting 'https://tadata.me/imdb2ta/?imdb_id=tt0163025'
    2017-02-09 19:31:09,049 (1134) : DEBUG (runtime:88) - Sending packed state data (113 bytes)
    2017-02-09 19:31:09,049 (1134) : DEBUG (runtime:924) - Response: [200] str, 320 bytes
    2017-02-09 19:31:09,065 (142c) : DEBUG (runtime:717) - Handling request GET /:/plugins/com.plexapp.agents.traileraddict/messaging/function/X0FnZW50S2l0OkVyYXNlTWV0YWRhdGE_/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMgpzNQpNb3ZpZXMxMAptZWRpYV90eXBlczQzCmNvbS5wbGV4YXBwLmFnZW50cy5pbWRiOi8vdHQwMTYzMDI1P2xhbmc9ZW5zNApndWlkcjAK
    2017-02-09 19:31:09,065 (142c) : DEBUG (runtime:49) - Received packed state data (80 bytes)
    2017-02-09 19:31:09,065 (142c) : DEBUG (runtime:814) - Found route matching /:/plugins/com.plexapp.agents.traileraddict/messaging/function/X0FnZW50S2l0OkVyYXNlTWV0YWRhdGE_/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMgpzNQpNb3ZpZXMxMAptZWRpYV90eXBlczQzCmNvbS5wbGV4YXBwLmFnZW50cy5pbWRiOi8vdHQwMTYzMDI1P2xhbmc9ZW5zNApndWlkcjAK
    2017-02-09 19:31:09,065 (142c) : DEBUG (runtime:88) - Sending packed state data (113 bytes)
    2017-02-09 19:31:09,065 (142c) : DEBUG (runtime:924) - Response: [200] str, 16 bytes
    2017-02-09 19:31:15,180 (100c) : DEBUG (runtime:717) - Handling request GET /:/plugins/com.plexapp.agents.traileraddict/messaging/function/X0FnZW50S2l0OlNlYXJjaA__/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoyCmRpY3QKZGljdAo2CnMyCmVuczQKbGFuZ2IwczYKbWFudWFsYjBzNwpwcmltYXJ5aTAKczcKdmVyc2lvbnIxCnM2Cmt3YXJnc3M1Ck1vdmllczEwCm1lZGlhX3R5cGU1Cm5zOApwYXJlbnRJRHM0Mwpjb20ucGxleGFwcC5hZ2VudHMuaW1kYjovL3R0MDM2OTYxMD9sYW5nPWVuczQKZ3VpZGIxczUKZm9yY2VzMjMKY29tLnBsZXhhcHAuYWdlbnRzLmltZGJzMTMKcHJpbWFyeV9hZ2VudHM1CjE1Mjc5czIKaWRyMAo_
    2017-02-09 19:31:15,180 (100c) : DEBUG (runtime:49) - Received packed state data (80 bytes)
    2017-02-09 19:31:15,180 (100c) : DEBUG (runtime:814) - Found route matching /:/plugins/com.plexapp.agents.traileraddict/messaging/function/X0FnZW50S2l0OlNlYXJjaA__/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoyCmRpY3QKZGljdAo2CnMyCmVuczQKbGFuZ2IwczYKbWFudWFsYjBzNwpwcmltYXJ5aTAKczcKdmVyc2lvbnIxCnM2Cmt3YXJnc3M1Ck1vdmllczEwCm1lZGlhX3R5cGU1Cm5zOApwYXJlbnRJRHM0Mwpjb20ucGxleGFwcC5hZ2VudHMuaW1kYjovL3R0MDM2OTYxMD9sYW5nPWVuczQKZ3VpZGIxczUKZm9yY2VzMjMKY29tLnBsZXhhcHAuYWdlbnRzLmltZGJzMTMKcHJpbWFyeV9hZ2VudHM1CjE1Mjc5czIKaWRyMAo_

    2017-02-09 19:31:15,180 (100c) : INFO (agentkit:946) - Searching for matches for {'id': '15279', 'guid': 'com.plexapp.agents.imdb://tt0369610?lang=en', 'force': True, 'primary_agent': 'com.plexapp.agents.imdb', 'parentID': None}
    2017-02-09 19:31:15,180 (100c) : DEBUG (networking:166) - Requesting 'http://127.0.0.1:32400/library/metadata/15279/tree'
    2017-02-09 19:31:15,180 (100c) : DEBUG (model:32) - Loading model with GUID com.plexapp.agents.imdb://tt0369610?lang=en
    2017-02-09 19:31:15,180 (100c) : DEBUG (model:234) - Deserializing from C:\Users\Derek\AppData\Local\Plex Media Server\Metadata\Movies\1\5337641e5a8cd285ff272bb8e1d3d72ae4fc77d.bundle\Contents\com.plexapp.agents.imdb\Info.xml
    2017-02-09 19:31:15,226 (100c) : INFO (logkit:16) - *** We've already got a Trailer Addict id: 20363 ***
    2017-02-09 19:31:15,226 (100c) : DEBUG (runtime:88) - Sending packed state data (113 bytes)
    2017-02-09 19:31:15,226 (100c) : DEBUG (runtime:924) - Response: [200] str, 608 bytes
    2017-02-09 19:31:15,257 (1224) : DEBUG (runtime:717) - Handling request GET /:/plugins/com.plexapp.agents.traileraddict/messaging/function/X0FnZW50S2l0OlVwZGF0ZU1ldGFkYXRh/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMTAKczIKZW5zNApsYW5nYjFzNQpmb3JjZWIwczgKcGVyaW9kaWNzNQoxNTI3OXM0CmRiaWRpMApzNwp2ZXJzaW9ubnMxMApwYXJlbnRHVUlEbnM4CnBhcmVudElEczUKTW92aWVzMTAKbWVkaWFfdHlwZXM0Mwpjb20ucGxleGFwcC5hZ2VudHMuaW1kYjovL3R0MDM2OTYxMD9sYW5nPWVuczQKZ3VpZHM5CnR0MDM2OTYxMHMyCmlkcjAK
    2017-02-09 19:31:15,257 (1224) : DEBUG (runtime:49) - Received packed state data (572 bytes)
    2017-02-09 19:31:15,257 (1224) : DEBUG (runtime:814) - Found route matching /:/plugins/com.plexapp.agents.traileraddict/messaging/function/X0FnZW50S2l0OlVwZGF0ZU1ldGFkYXRh/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMTAKczIKZW5zNApsYW5nYjFzNQpmb3JjZWIwczgKcGVyaW9kaWNzNQoxNTI3OXM0CmRiaWRpMApzNwp2ZXJzaW9ubnMxMApwYXJlbnRHVUlEbnM4CnBhcmVudElEczUKTW92aWVzMTAKbWVkaWFfdHlwZXM0Mwpjb20ucGxleGFwcC5hZ2VudHMuaW1kYjovL3R0MDM2OTYxMD9sYW5nPWVuczQKZ3VpZHM5CnR0MDM2OTYxMHMyCmlkcjAK
    2017-02-09 19:31:15,257 (1224) : DEBUG (model:32) - Loading model with GUID com.plexapp.agents.imdb://tt0369610?lang=en
    2017-02-09 19:31:15,257 (1224) : DEBUG (model:234) - Deserializing from C:\Users\Derek\AppData\Local\Plex Media Server\Metadata\Movies\1\5337641e5a8cd285ff272bb8e1d3d72ae4fc77d.bundle\Contents\com.plexapp.agents.traileraddict\Info.xml
    2017-02-09 19:31:15,257 (1224) : DEBUG (networking:166) - Requesting 'http://127.0.0.1:32400/library/metadata/15279/tree'
    2017-02-09 19:31:15,273 (1224) : DEBUG (networking:166) - Requesting 'https://www.traileraddict.com/ajax/film_popular.php'
    2017-02-09 19:31:17,427 (1224) : DEBUG (services:616) - Found a service matching 'ta://jurassic-world/trailer' - Trailer Addict (com.plexapp.agents.traileraddict)
    2017-02-09 19:31:17,427 (1224) : DEBUG (runtime:49) - Received packed state data (572 bytes)
    2017-02-09 19:31:17,427 (1224) : DEBUG (runtime:49) - Received packed state data (572 bytes)
    2017-02-09 19:31:17,427 (1224) : DEBUG (runtime:49) - Received packed state data (572 bytes)
    2017-02-09 19:31:17,427 (1224) : DEBUG (services:616) - Found a service matching 'ta://jurassic-world/trailer' - Trailer Addict (com.plexapp.agents.traileraddict)
    2017-02-09 19:31:17,441 (1224) : DEBUG (runtime:49) - Received packed state data (572 bytes)
    2017-02-09 19:31:17,441 (1224) : DEBUG (runtime:49) - Received packed state data (572 bytes)
    2017-02-09 19:31:17,441 (1224) : DEBUG (services:616) - Found a service matching 'ta://jurassic-world/trailer' - Trailer Addict (com.plexapp.agents.traileraddict)
    2017-02-09 19:31:17,441 (1224) : DEBUG (runtime:49) - Received packed state data (572 bytes)
    2017-02-09 19:31:17,441 (1224) : DEBUG (services:616) - Found a service matching 'ta://jurassic-world/theatrical-trailer' - Trailer Addict (com.plexapp.agents.traileraddict)
    2017-02-09 19:31:17,441 (1224) : DEBUG (runtime:49) - Received packed state data (572 bytes)
    2017-02-09 19:31:17,441 (1224) : DEBUG (runtime:49) - Received packed state data (572 bytes)
    2017-02-09 19:31:17,441 (1224) : DEBUG (runtime:49) - Received packed state data (572 bytes)
    2017-02-09 19:31:17,441 (1224) : DEBUG (services:616) - Found a service matching 'ta://jurassic-world/theatrical-trailer' - Trailer Addict (com.plexapp.agents.traileraddict)
    2017-02-09 19:31:17,457 (1224) : DEBUG (runtime:49) - Received packed state data (572 bytes)
    2017-02-09 19:31:17,457 (1224) : DEBUG (runtime:49) - Received packed state data (572 bytes)
    2017-02-09 19:31:17,457 (1224) : DEBUG (services:616) - Found a service matching 'ta://jurassic-world/theatrical-trailer' - Trailer Addict (com.plexapp.agents.traileraddict)
    2017-02-09 19:31:17,457 (1224) : DEBUG (runtime:49) - Received packed state data (572 bytes)
    2017-02-09 19:31:17,457 (1224) : DEBUG (services:616) - Found a service matching 'ta://jurassic-world/featurette-classic-jurassic-crew' - Trailer Addict (com.plexapp.agents.traileraddict)
    2017-02-09 19:31:17,457 (1224) : DEBUG (runtime:49) - Received packed state data (572 bytes)
    2017-02-09 19:31:17,457 (1224) : DEBUG (runtime:49) - Received packed state data (572 bytes)
    2017-02-09 19:31:17,457 (1224) : DEBUG (runtime:49) - Received packed state data (572 bytes)

    ... skipping all the other video's it found and processed

    2017-02-09 19:31:17,676 (1224) : DEBUG (runtime:924) - Response: [200] str, 16 bytes
    2017-02-09 19:31:27,957 (db8) : DEBUG (runtime:717) - Handling request GET /:/plugins/com.plexapp.agents.traileraddict/messaging/function/X0FnZW50S2l0OlNlYXJjaA__/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoyCmRpY3QKZGljdAo2CnMyCmVuczQKbGFuZ2IwczYKbWFudWFsYjBzNwpwcmltYXJ5aTAKczcKdmVyc2lvbnIxCnM2Cmt3YXJnc3M1Ck1vdmllczEwCm1lZGlhX3R5cGU1Cm5zOApwYXJlbnRJRHM0Mwpjb20ucGxleGFwcC5hZ2VudHMuaW1kYjovL3R0Mjk4MDQ3Mj9sYW5nPWVuczQKZ3VpZGIxczUKZm9yY2VzMjMKY29tLnBsZXhhcHAuYWdlbnRzLmltZGJzMTMKcHJpbWFyeV9hZ2VudHM1CjE0MjkwczIKaWRyMAo_
    2017-02-09 19:31:27,971 (db8) : DEBUG (runtime:49) - Received packed state data (80 bytes)
    2017-02-09 19:31:27,971 (db8) : DEBUG (runtime:814) - Found route matching /:/plugins/com.plexapp.agents.traileraddict/messaging/function/X0FnZW50S2l0OlNlYXJjaA__/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoyCmRpY3QKZGljdAo2CnMyCmVuczQKbGFuZ2IwczYKbWFudWFsYjBzNwpwcmltYXJ5aTAKczcKdmVyc2lvbnIxCnM2Cmt3YXJnc3M1Ck1vdmllczEwCm1lZGlhX3R5cGU1Cm5zOApwYXJlbnRJRHM0Mwpjb20ucGxleGFwcC5hZ2VudHMuaW1kYjovL3R0Mjk4MDQ3Mj9sYW5nPWVuczQKZ3VpZGIxczUKZm9yY2VzMjMKY29tLnBsZXhhcHAuYWdlbnRzLmltZGJzMTMKcHJpbWFyeV9hZ2VudHM1CjE0MjkwczIKaWRyMAo_

    I'm attaching the log from when the server first started up and the plugin was loaded so you can see everything. The first couple of movies do this exact same behavior in the log even thought the above snippet is of another movie section I copied into this.

  • dsummitt@gmail.comdsummitt@gmail.com Posts: 17Members ✭✭

    @Pip Longrun said:

    Update

    TA is currently having problems and videos do not work. Videos are still added by this agent, but playback does not work at this moment.

    I've been a long time user of this plug in and having issues again. I found this new thread and see that someone has taken over the development which I'm glad to hear. I've downloaded the latest v1.6 and installed it on my plex windows 7 server running plex Version 1.3.4.3285. I rebooted the PC after the new plex install and plugin install. I've got it checked in the agents section and I've forced a refresh in the movie section by using refresh all. In the logs I can see it's matching on IMDB ID's and running through a process, but then never does anything on trail addict. I see can the trailers on the TA website. All the trailers that have been matched during the previous plug-ins show being matched because they already have a trailer addict ID and then go through the processing. I've uploaded the log.

  • Pip LongrunPip Longrun Posts: 139Members ✭✭✭
    edited February 11

    @dsummitt@gmail.com I do not see any real errors in your log file, but I noticed that in my code I do just skip over requests to my API that fail, without any warning written to the log file. I have now added some log statements so we can see if a request to my API fails. Please download version 1.7, refresh your movie library again and see if something comes up in the log file.

    Edit: btw, not every video on Trailer Addict will be added to Plex. There is some filtering taking place.

  • Pip LongrunPip Longrun Posts: 139Members ✭✭✭

    Update

    I have updated the backend code that is used by this agent to search for matches. To get fewer mismatches (especially for movie sequels with a number in the title) the release year has to match the search result within a 1 year difference.

  • jscottdouglasjscottdouglas Posts: 48Members, Plex Pass Plex Pass
    edited February 25

    is this plugin still not working every trailer seems to give me play back errors on plextv and on the actual media url.

    2017-02-24 19:24:44,350 (7f41f4ff9700) : DEBUG (networking:161) - Fetching 'https://www.traileraddict.com/collide-2016/trailer' from the HTTP cache

    51 2017-02-24 19:24:44,361 (7f41f4ff9700) : DEBUG (networking:166) - Requesting 'https://v.traileraddict.com/112741'

    52 2017-02-24 19:24:44,635 (7f41f4ff9700) : INFO (ServiceCode:36) - Regex failed...

    53 2017-02-24 19:24:44,636 (7f41f4ff9700) : DEBUG (runtime:88) - Sending packed state data (113 bytes)

    54 2017-02-24 19:24:44,636 (7f41f4ff9700) : DEBUG (runtime:924) - Response: [404] NoneType, 0 bytes

    55 2017-02-24 19:24:57,053 (7f41f4ff9700) : DEBUG (runtime:717) - Handling request GET /:/plugins/com.plexapp.agents.traileraddict/messaging/function/X0FnZW50S2l0OlNlYXJjaA__/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoyCmRpY3QKZGljdAo2CnMyCmVuczQKbGFuZ2IwczYKbWFudWFsYjBzNwpwcmltYXJ5aTAKczcKdmVyc2lvbnIxCnM2Cmt3YXJnc3M1Ck1vdmllczEwCm1lZGlhX3R5cGU1Cm5zOApwYXJlbnRJRHM0Mwpjb20ucGxleGFwcC5hZ2VudHMuaW1kYjovL3R0MjEyNjIzNT9sYW5nPWVuczQKZ3VpZGIxczUKZm9yY2VzMjMKY29tLnBsZXhhcHAuYWdlbnRzLmltZGJzMTMKcHJpbWFyeV9hZ2VudHMzCjYzOHMyCmlkcjAK

    56

«134
Sign In or Register to comment.