[Release] MyAnimeList.net Metadata Agent

Plex wont recognize your Agent.

# chown plex:plex -R "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins"
does not help.

# pwd
/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins
# ls -la
drwxr-xr-x  4 plex plex 4096 Apr 25 19:55 .
drwxrwxrwx 11 plex plex 4096 Apr 25 19:55 ..
drwxr-xr-x  3 plex plex 4096 Apr 24 21:54 Hama.bundle
drwxr-xr-x  3 plex plex 4096 Apr 25 19:51 MyAnimeList.bundle

1st screen: only your agent in Plug-ins folder. (standard setup)

2nd screen: with hama agent. (HamaTV found)

Does anyone have any ideas how to fix it?
Sry for my English.

Directory tree:
# tree "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/MyAnimeList.bundle" /var/lib/plexmediaserver/Library/Application\ Support/Plex\ Media\ Server/Plug-ins/MyAnimeList.bundle └── Contents ├── Code │   └── __init__.py ├── DefaultPrefs.json ├── Info.plist └── Resources └── attribution.png

@yozenpl
What does your directory structure look like under: /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/MyAnimeList.bundle

In the past I messed up and had the plug-in nested in an extra MyAnimeList.bundle directory causing the plug-in not to be found.

I suggest you check your log files (/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Logs). I believe the ‘Plex Media Server.log’ will contain any error when loading Plex plug-is, but it could be one of the other logs. This will help you narrow down the problem.

@EZarnosky said:
@yozenpl
What does your directory structure look like under: /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/MyAnimeList.bundle
Check post above.

I found:
# zgrep -i MyAnime * Plex Media Server.log:Apr 25, 2016 21:37:29 [0x7fd6b2bff700] WARN - Request for plug-in [net.fribbtastic.coding.plex.myanimelist] but it doesn't exist. Plex Media Server.log:Apr 25, 2016 21:37:30 [0x7fd6ac7ff700] ERROR - Timeout or error reading status line from plug-in pipe [net.fribbtastic.coding.plex.myanimelist], we're killing it. Plex Media Server.log:Apr 25, 2016 21:37:30 [0x7fd6ac7ff700] ERROR - Error received reading configuration for net.fribbtastic.coding.plex.myanimelist

Where can I download “net.fribbtastic.coding.plex.myanimelist”? :smiley:

You can get the latest plug-in from Daraku’s website - coding.fribbtastic.net/projects/myanimelistagent/. I suggest downloading the latest from his website and replace the version you have.

I have the latest plug-in.


This file contains MyAnimeList.bundle only.

@yozenpl
I don’t really know why my agent doesn’t show in your agents list, I personally don’t use linux as operating system on my server. Things that could interfere: Server doesn’t have permission (maybe not the owner oder chown problems?), Did you restart the server and tried again? can you attach your com.plexapp.agents.log file please, another user here had the same issue and there was the exception stack trace. Additional to this do you have any kind of adblocker in use? The other user here had.

@EZarnosky
Thank you for reporting this and I’m sorry for taking this long to reply, I will look into it when I am back home.

Permissions are the same for your agent and Hama agent. I checked plex in different web browser without AdBlock and nothing happened.
As you can see below I don’t have com.plexapp.agents.log file for myanimelist (plex was reinstalled 2 days ago.)

# ls -la drwxr-xr-x 2 plex plex 4096 Apr 26 07:25 . drwxr-xr-x 3 plex plex 4096 Apr 24 21:55 .. -rw-r--r-- 1 plex plex 13987 Apr 24 21:17 com.plexapp.agents.fanarttv.log -rw-r--r-- 1 plex plex 12639 Apr 24 20:55 com.plexapp.agents.fanarttv.log.1 -rw-r--r-- 1 plex plex 10381 Apr 25 19:55 com.plexapp.agents.hama.log -rw-r--r-- 1 plex plex 2991 Apr 25 19:55 com.plexapp.agents.hama.log.1 -rw-r--r-- 1 plex plex 10841 Apr 25 19:48 com.plexapp.agents.hama.log.2 -rw-r--r-- 1 plex plex 11301 Apr 25 19:43 com.plexapp.agents.hama.log.3 -rw-r--r-- 1 plex plex 12981 Apr 24 21:58 com.plexapp.agents.hama.log.4 -rw-r--r-- 1 plex plex 10415 Apr 24 21:55 com.plexapp.agents.hama.log.5 -rw-r--r-- 1 plex plex 7661 Apr 24 20:55 com.plexapp.agents.htbackdrops.log -rw-r--r-- 1 plex plex 6904 Apr 25 21:39 com.plexapp.agents.imdb.log -rw-r--r-- 1 plex plex 6444 Apr 25 19:50 com.plexapp.agents.imdb.log.1 -rw-r--r-- 1 plex plex 98054 Apr 25 07:29 com.plexapp.agents.imdb.log.2 -rw-r--r-- 1 plex plex 95090 Apr 25 07:26 com.plexapp.agents.imdb.log.3 -rw-r--r-- 1 plex plex 584218 Apr 24 23:01 com.plexapp.agents.imdb.log.4 -rw-r--r-- 1 plex plex 1047989 Apr 24 22:47 com.plexapp.agents.imdb.log.5 -rw-r--r-- 1 plex plex 7742 Apr 24 20:55 com.plexapp.agents.lastfm.log -rw-r--r-- 1 plex plex 475605 Apr 26 02:31 com.plexapp.agents.localmedia.log -rw-r--r-- 1 plex plex 785407 Apr 25 21:40 com.plexapp.agents.localmedia.log.1 -rw-r--r-- 1 plex plex 18635 Apr 25 20:56 com.plexapp.agents.localmedia.log.2 -rw-r--r-- 1 plex plex 281031 Apr 25 20:44 com.plexapp.agents.localmedia.log.3 -rw-r--r-- 1 plex plex 20048 Apr 25 19:48 com.plexapp.agents.localmedia.log.4 -rw-r--r-- 1 plex plex 19106 Apr 25 19:42 com.plexapp.agents.localmedia.log.5 -rw-r--r-- 1 plex plex 5312 Apr 24 20:55 com.plexapp.agents.lyricfind.log -rw-r--r-- 1 plex plex 96575 Apr 25 07:29 com.plexapp.agents.movieposterdb.log -rw-r--r-- 1 plex plex 121481 Apr 25 07:26 com.plexapp.agents.movieposterdb.log.1 -rw-r--r-- 1 plex plex 70875 Apr 24 23:01 com.plexapp.agents.movieposterdb.log.2 -rw-r--r-- 1 plex plex 1045397 Apr 24 23:00 com.plexapp.agents.movieposterdb.log.3 -rw-r--r-- 1 plex plex 1045699 Apr 24 22:56 com.plexapp.agents.movieposterdb.log.4 -rw-r--r-- 1 plex plex 38502 Apr 24 21:48 com.plexapp.agents.movieposterdb.log.5 -rw-r--r-- 1 plex plex 618106 Apr 25 21:41 com.plexapp.agents.none.log -rw-r--r-- 1 plex plex 121873 Apr 25 20:36 com.plexapp.agents.none.log.1 -rw-r--r-- 1 plex plex 15293 Apr 25 19:30 com.plexapp.agents.none.log.2 -rw-r--r-- 1 plex plex 998908 Apr 25 19:29 com.plexapp.agents.none.log.3 -rw-r--r-- 1 plex plex 1048545 Apr 25 19:24 com.plexapp.agents.none.log.4 -rw-r--r-- 1 plex plex 602823 Apr 25 14:55 com.plexapp.agents.none.log.5 -rw-r--r-- 1 plex plex 7237 Apr 24 20:55 com.plexapp.agents.opensubtitles.log -rw-r--r-- 1 plex plex 8170 Apr 24 20:55 com.plexapp.agents.plexmusic.log -rw-r--r-- 1 plex plex 69805 Apr 24 21:22 com.plexapp.agents.plexthememusic.log -rw-r--r-- 1 plex plex 5276 Apr 24 20:55 com.plexapp.agents.plexthememusic.log.1 -rw-r--r-- 1 plex plex 9282 Apr 25 20:56 com.plexapp.agents.themoviedb.log -rw-r--r-- 1 plex plex 9282 Apr 25 19:52 com.plexapp.agents.themoviedb.log.1 -rw-r--r-- 1 plex plex 164479 Apr 25 19:20 com.plexapp.agents.themoviedb.log.2 -rw-r--r-- 1 plex plex 127172 Apr 25 07:29 com.plexapp.agents.themoviedb.log.3 -rw-r--r-- 1 plex plex 240236 Apr 25 07:26 com.plexapp.agents.themoviedb.log.4 -rw-r--r-- 1 plex plex 88464 Apr 25 00:13 com.plexapp.agents.themoviedb.log.5 -rw-r--r-- 1 plex plex 6906 Apr 25 20:36 com.plexapp.agents.thetvdb.log -rw-r--r-- 1 plex plex 5976 Apr 25 19:30 com.plexapp.agents.thetvdb.log.1 -rw-r--r-- 1 plex plex 296204 Apr 25 19:21 com.plexapp.agents.thetvdb.log.2 -rw-r--r-- 1 plex plex 79669 Apr 25 00:12 com.plexapp.agents.thetvdb.log.3 -rw-r--r-- 1 plex plex 6441 Apr 24 22:06 com.plexapp.agents.thetvdb.log.4 -rw-r--r-- 1 plex plex 146665 Apr 24 21:44 com.plexapp.agents.thetvdb.log.5 -rw-r--r-- 1 plex plex 7303 Apr 24 20:55 com.plexapp.agents.vevo.log -rw-r--r-- 1 plex plex 51884 Apr 26 07:27 com.plexapp.system.log -rw-r--r-- 1 plex plex 672304 Apr 26 07:24 com.plexapp.system.log.1 -rw-r--r-- 1 plex plex 1048303 Apr 25 21:40 com.plexapp.system.log.2 -rw-r--r-- 1 plex plex 34418 Apr 25 21:37 com.plexapp.system.log.3 -rw-r--r-- 1 plex plex 28205 Apr 25 21:06 com.plexapp.system.log.4 -rw-r--r-- 1 plex plex 53466 Apr 25 20:58 com.plexapp.system.log.5

@EZarnosky said:
I am having a bunch of issue matching old anime series with the MAL agent.

Here are a few that are not matching:
Groove Adventure Rave
Gasaraki
Gate Keepers
Ai Yori Aoshi (only shows later seasons)
Galaxy Angel
Galaxy Angel Z
Gad Guard

Attached is my log file of when I tried to match them. Let me know f you can help or what else I need to do to get you the right info.

(I did clear my cache)

This is fixed, Problem was that myanimelist added a little hyperlink to their search results where you can watch the preview or episode video. so the name was then parsed “Groove Adventure Rave Watch Promotional video” this resulted in a missmatch of under 80%. you need to clear your cache by the way :slight_smile:

@yozenpl
I’m at a loss here, I use windows myself because of this problem that linux is kind of picky in that regard. permissions looks good, structure too. What kind of Plex are you using normal linux or NAS or even unraid?

@Daraku
Yay, i love new features, until they break things that work
 still getting no match on Ai Yori Aoshi, Gad Guard & Galaxy Angel. It seems to see Gate keepers now. Really annoying that it matches to " Watch episode video, but not the series itself.

It does match Groove adventure Rave now, but nothing downloads, no metadata or art work.

Any way to filter out the “Watch Promotional video” matches?

@yozenpl
You might want to try doing a chmod -R 777 on the MAL bundle. Give it all permissions. If that works then maybe something in the bundle needs a right that is not set. (later reset the permissions of course)

@EZarnosky
Okay need to take another look at that. What do you mean by “filter Promotional video”? like add this as as some kind of trailer to plex?

Edit: Works again, it was absolutely my fault because I used an old database connection config and didn’t changed it to the live database.

@Daraku
sorry I meant to filter them out of the results. I don’t care to see them. But I imagine others might like to have a feature added to have them as a trailer in plex.

I was about to say still no luck, but then I remembered to clear my cache :slight_smile:

As always your dedication to this is great, thanks.

EDIT: Spoke a little to soon about everything being fixed. It matches Ichigo 100% and Ichigo 100% Special 2. But no metadata or art work downloads. Just a uneducated guess, but could this be because the % is a special character?

@EZarnosky said:
EDIT: Spoke a little to soon about everything being fixed. It matches Ichigo 100% and Ichigo 100% Special 2. But no metadata or art work downloads. Just a uneducated guess, but could this be because the % is a special character?

geez, that was some bugfixing. The problem was that I took the title and placed it into the url. which was okay so far. but Ichigo 100% episode and picture Url looked different(expected: Ichigo 100% (Strawberry 100%) - MyAnimeList.net 100%/episodes but it was http://myanimelist.net/anime/248/Ichigo_100/episode) now I just get the url of the links of Episodes and Pictures. Should work now

BUT. I ran into another problem which I hope is now reduced in its appearance. HTTP Error 429 - Too many requests. I looked at my Live API and had this A LOT, but I can’t really fix that without reworking the API with a different request handling model (only response from Database and use a queue which every X seconds requests the data). This rework would reduce if not eliminate this error. But on the other hand would cripple the usability of every user (number of anime multiplied by the number of seconds equals a hell of a lot waiting). So I will keep it this way and will just ignore the 429 error.

What this all means: Yes there will be times you won’t get data, but this could be the reason that Myanimelist is refusing my connections. Be patient a day or two, and then try to get the metadata again.

I can only imagine your headaches trying to build your own api for a site that makes backend changes a to their stuff without notice to make their own broken api work better.

Plex can grab the metadata and images fine now. Should I see anything else I will let you know. I appreciate the bug fixing.

@EZarnosky said:
I can only imagine your headaches trying to build your own api for a site that makes backend changes a to their stuff without notice to make their own broken api work better.

security updates are necessary but the site could be more, futuristic?! Like all data is on one site, all backed by an API which provides the Data in XML or JSON format, Access to the api is restricted with agents or user or whatever. then I wouldn’t need to parse 3 different side +1 site for every 100 episodes then I wouldn’t need to parse pages at all and I would retire the API because I wouldn’t need it. For One piece with 700++ Episodes are 8 Page requests
 this is to much but there is no alternative, api of myanimelist is probably from last century with probably no one working on it. At least they update their site and make it only look futuristic.

I sometimes wonder if I should switch to Hummingbird


@Daraku
I wasn’t sure what hummingbird was, but then I did google search and saw this https://www.npmjs.com/package/ani-up seems someone wrote a wrapper 2 years ago. very definately outdated though.

You mention that you are hitting multiple site when you scrape. I thought you removed theTVDB.com scrapping due to issues with their site. Are you hitting anidb.net for anything? might be interesting to somehow include that information in the metadata, they seem to have a lot more accurate episode names and sometimes episode summaries.

The problem is with myanimelist that the informations are all spread out on different MAL-webpages like /Bleach, /Bleach/episode or /Bleach/pics, these are single websites that need to be requested and parsed individially and each 100 episodes has their own page as well and that is why I need to make this many requests and run into the “Too many requests” error.

TheTVDB is still present and provides the backgrounds, banners and additional covers for the anime but I shrunk it down because myanimelist already provides the episodes so, actually I don’t really bother, when there are images missing because the name isn’t matching.

I’m not parsing any data from anidb because there is already a agent (HAMA) which does that. yeah there is a lot of stuff there but as I don’t use anidb myself because I just don’t understand their website (too many information).

What Hummingbird is concerned they have a nice website, as far as I could tell a good API (maybe I write the agent for that, since the prototype someone wrote was based on my agent for MAL) and you can import your animelist from your MAL account into hummingbird which is a cool feature. But to do that I would need to write the agent for hummingbird which would take a few weeks but after that I would completely switch to it and wouldn’t use MAL anymore. And after the work I put into my API I don’t really know if I want to do that.

Unfortunately, this plugin isn’t loading on Windows with latest plex server. No idea what it is from the logs, but same general error that yozenpl posted (above).

Just installed the plugin and I can’t get it to work, it doesn’t show in agent lists.
Cleared cache and data, it still doesn’t show.
Using anidb meanwhile, but it’s not that good.

@void.pointer said:
Unfortunately, this plugin isn’t loading on Windows with latest plex server. No idea what it is from the logs, but same general error that yozenpl posted (above).

I need the logs, please attach them to your post (how to find your logs, and select the net.fribbtastic.coding.plex.myanimelist.log file) if possible attache the myanimelist and server log file

@Roshri said:
Just installed the plugin and I can’t get it to work, it doesn’t show in agent lists.
Cleared cache and data, it still doesn’t show.
Using anidb meanwhile, but it’s not that good.

might be a stupid question but did you restart the server? And see my response to void.pointer above and please attache your log file (myanimelist and server) so that I can take a look. Otherwise it’s just a guessing game.