AniDB metadata agent
So after lots of hassle and suffering I've finished my first metadata agent - in this case for AniDB.net and specifically it's UDP API. The API uses a hash function to uniquely identify every video file that it has information about, and the hashing function needs to read the file fully so it's not very fast. Also, AniDB has a limitation on the number of API calls per time unit, so everything is done sequentially. This means that if you have a large set of movies/tv-shows it will take some time to get all the metadata.
- Uses AniDB.net and it's UDP API (read more at http://wiki.anidb.net/w/UDP_API_Definition)
- Based on an existing client called adba (read more at https://github.com/lad1337/adba), that has been heavily modified to work in Plex's restricted runtime and with some additional functions
- Requires an AniDB.net account - make sure you set your AniDB username and password in the agent preferences and then restart the server
- Supports both movies and tv-shows
- Tries to locate titles in the following language order [English, Romaji, Kanji] (this is currently not configurable)
- OpenSubtitles can be enabled as secondary agent
A few gotcha's:
- Search is done firstly by file hash (file must match the released files that AniDB lists) and secondly by name (name must exactly match that which is registered on AniDB). You can also search by aid (AniDB id) by specifying "aid:XXX" as name in the custom search dialog under "Fix incorrect match".
- If you have a multi-season tv-show, you should either keep them as separate shows or use absolute numbering, as AniDB has no notion of seasons, just shows. For example, you should avoid a season 2 folder with episode no 1 - that will be overwritten with metadata for season 1 ep 1
1. Install Unsupported Appstore from http://forums.plexapp.com/index.php/topic/25523-unsupported-appstore/ and download AniDB agent through there.
2. Download and unzip the attached file in your Plug-ins folder and you should be good to go.
I've tested it successfully on Windows 7, OSX Lion and Linux (Debian Wheezy), but if you have any problems let me know.
- Added title language selection in preferences. Default is English.
Version 12 (only as a fallback):
- Added handling of specials. See http://wiki.plexapp.com/index.php/PlexNine_PMS_Naming_Guide#Specials for info on file structure.