Use beta branch hama it auto create agent folders so need scanner file and agent bundle.
When you create a library do you see the scanner and agent? If so permissions are OK
That should help give proper rights:
DiskStation> chmod o+rwxst /volume1/Plex/
DiskStation> chmod u+rwxst /volume1/Plex/
@ZeroQI I have a couple of weird things to report. First i copied and pasted those 2 commands you gave me into putty logged in as admin and i got permission denied. I tried again with root and same thing. So i scanned my anime anyway without the permissions using the beta branch as you instructed and success! My library has posters now even though permissions were denied. And another thing is that in the advanced tab the scanner drop down has disappeared. Its no longer available i just have Agent drop down to choose from. Donāt know if thatās something i should be concerned about seeing as how its working regardless. But here is what i am concerned with. I have a combination of 123 anime series and movies in their respected folders properly named using filebot and anidb names. They were picked up by Plex before with the master branch when posters werenāt working and now that i switched to the beta branch and posters are working they went from 123 to 115. I cant tell what was removed. How can i bring back what was removed? Also i dont like the naming. I had already named everything with filebot so plex wouldnt have to rename stuff and i got the japanese names of anime so instead of Fatal Fury i have Battle Fighters Garou and instead of Gundam Wing i have Shin Kidou Senki Gundam Wing. How can i make hama use the names i already have in the folder and episodes? And last but not least I have movies from series in thier own folders. I did this so it would show up seperate from the series. Example 14 Dragonball Z movies are in thier own folders. I dont want them to show up in the Dragonball Z series. 5 Saint Seiya Movies are in the Saint Seiya Series. How do i make everything show up seperated? In regular TV shows when theres a mistake like that i easily fix it by clicking split apart but anime doesnt have that option.
@theyavin right issue for scanner file. See https://forums.plex.tv/discussion/301673/permission-issue
Maybe it merged series together ?
Do not use a metadata if you complain it changes the titles⦠Thatās the main fonction.
You have nothing to do to show them separate, but they need to be at your library root in their server, same as the other series
Did you put the movies inside the series folder? if so that wonāt work too wellā¦
@ZeroQI Well i want metadata because i want synopsis, plot, art etc. I figured out how to get the names the way i want so i donāt have a problem with that anymore. And i discovered that the anime that disappeared didnāt actually disappear it was just merged incorrectly with other anime. Like Street Fighter II: The Animated Movie was merged with Street Fighter Alpha: The Animation. Some of the merged ones give me the option to split apart when i click the 3 dots but others donāt. How do i separate the ones that donāt have the split apart option? All my anime are in a root folder called Anime which houses my anime series as well as anime movies. All series and movies/OVAs are in their own folder named correctly using filebot and anidb. Example : So i donāt have Dragon Ball Z movies inside the Dragon Ball Z series. All movies are outside the series folder. So 13 movies are 13 folders named with movie title and year in brackets ( Dragon Ball Z Dead Zone (1989), Dragon Ball Z Resurrection āFā (2015) and the 14th folder would be the series Dragon Ball Z folder with all 291 episodes. Should i make a anime series folder apart from my anime movies folder? I thought with hama i could have both anime movies and anime shows in one library. Googling having Anime Series and Movies in one library is what led me to hama. Just want to make it clear that i donāt have any complaints. I just want to know how to separate incorrectly merged anime. Then all my problems would be resolved and i will be good to go. PS love your work. 20 Euros Donated.
@theyavin Thanks for the donation, much appreciated.
I do not decide from the agent what gets split or not but the situation does.
if the guid is the same, the serie regroup. I think if you match manually you can split them back but unsureā¦
You can have movies with series that is why i made HAMA and the scanner as no other tool exist for that. Do not split movies and series, there is no reason to.
The movie titles may not match anidb and it would match series and regroup possibly.
Try to add " [abidb-xxxxx]" with xxxxx being the anidbid, or an anidb.id file with the anidbid number in it, and it will match perfectly, but may not rescan if created after scanning due to plex caching not rescanning if the folder didnāt changeā¦
Work in progress:
- Agent modification to have multiple AniDB XML files for multiple seasons anime, even the ones with defaultseason āaā in scudlee mapping file. I got the idea to use the absolute index field to map back tvdb season/ep to absolute numbering. This will make meta source selection work as a=smooth as butter if all go well.
- did code to have movies of series using their own artwork first, need to check if works
- Scanner. Need to go back from the main scanner branch and re-add the grouping folder support without tags and plexignore support.
Just released a new Beta version
- Now One piece (and other defaultseason=āaā series) can pull AniDB data for episodes in seasons folders, before season one eps data was duplicated for other seasons if using Anidb and even had TVDB issues if sereis in absolute mode in ScudLeeās animelist for the defaultseason.
- Implemented multi AniDB xml loading as well, need testing but multi season anime should work as expected
- Changed logging display, per series logging file located in agent data folders. (one log for scanner, filelist, search, update) that should make both troubleshooting and understanding how the agent work a breeze since it tells you which metadata source have the filed you didnāt put in the selection.
- if upgrading, the settings do not change so might have to do a revert to default command if issues pop up for users upgrading
https://github.com/ZeroQI/Hama.bundle/commit/3ef1c511fb13358f45d10752bcc9f539f0743a8e
Please report any issue. once all is stable i will commit the beta branch to the main branch, especially since it automatically creates the folders for the agent posters
Hi @ZeroQI I have a problem when try to add anime in monogatari series. I happened to me with the following season
Nekomonogatari (Kuro): Tsubasa Family
Hanamonogatari: Suruga Devil
Tsukimonogatari: Yotsugi Doll
The first and second episodes are pointed toward a recap and another movie? Not sure where it comes from. For example with Nekomonogatari (Kuro): Tsubasa Family
But itās different on anidb.net
Agent logs in com.plexapp.agents.hama/DataItems/_Logs:
Library: 'no valid X-Plex-Token.id', root: '/storage/Anime/TV Series', path: 'Hanamonogatari [anidb-10046]', dirs: '0', subdirs: '[]', files: '7', Scan date: 2018-02-25 17:54:43
=============================================================================================================================================================
Hanamonogatari [anidb-10046]/[Coalgirls]_Hanamonogatari_01_(1920x1080_Blu-ray_FLAC)_[2651229A].mkv
Hanamonogatari [anidb-10046]/[Coalgirls]_Hanamonogatari_02_(1920x1080_Blu-ray_FLAC)_[88C83F38].mkv
Hanamonogatari [anidb-10046]/[Coalgirls]_Hanamonogatari_03_(1920x1080_Blu-ray_FLAC)_[8EA770C7].mkv
Hanamonogatari [anidb-10046]/[Coalgirls]_Hanamonogatari_04_(1920x1080_Blu-ray_FLAC)_[52E7F116].mkv
Hanamonogatari [anidb-10046]/[Coalgirls]_Hanamonogatari_05_(1920x1080_Blu-ray_FLAC)_[C53ED3F1].mkv
Hanamonogatari [anidb-10046]/[Coalgirls]_Hanamonogatari_ED_(1920x1080_Blu-ray_FLAC)_[6D0CA8FF].mkv
Hanamonogatari [anidb-10046]/[Coalgirls]_Hanamonogatari_OP_(1920x1080_Blu-ray_FLAC)_[5BC718F7].mkv
-------------------------------------------------------------------------------------------------------------------------------------------------------------
"Hanamonogatari [anidb-10046]" s0001e001 "10"
"Hanamonogatari [anidb-10046]" s0001e002 "10"
"Hanamonogatari [anidb-10046]" s0001e003 "10"
"Hanamonogatari [anidb-10046]" s0001e004 "10"
"Hanamonogatari [anidb-10046]" s0001e005 "10"
"Hanamonogatari [anidb-10046]" s0000e151 "7" "Ending 1"
"Hanamonogatari [anidb-10046]" s0000e101 "6" "Opening 1"
---
Library: 'no valid X-Plex-Token.id', root: '/storage/Anime/TV Series', path: 'Nekomonogatari [anidb-9453]', dirs: '0', subdirs: '[]', files: '8', Scan date: 2018-02-25 16:42:32
=============================================================================================================================================================
Nekomonogatari [anidb-9453]/[Coalgirls]_Nekomonogatari_01_(1920x1080_Blu-ray_FLAC)_[5DEC5B88].mkv
Nekomonogatari [anidb-9453]/[Coalgirls]_Nekomonogatari_02_(1920x1080_Blu-ray_FLAC)_[EF7839D9].mkv
Nekomonogatari [anidb-9453]/[Coalgirls]_Nekomonogatari_03_(1920x1080_Blu-ray_FLAC)_[9C0A49B3].mkv
Nekomonogatari [anidb-9453]/[Coalgirls]_Nekomonogatari_04_(1920x1080_Blu-ray_FLAC)_[31994705].mkv
Nekomonogatari [anidb-9453]/[Coalgirls]_Nekomonogatari_ED1_(1920x1080_Blu-ray_FLAC)_[90375C44].mkv
Nekomonogatari [anidb-9453]/[Coalgirls]_Nekomonogatari_ED2_(1920x1080_Blu-ray_FLAC)_[F1A2CF39].mkv
Nekomonogatari [anidb-9453]/[Coalgirls]_Nekomonogatari_OP_(1920x1080_Blu-ray_FLAC)_[7F7E706B].mkv
Nekomonogatari [anidb-9453]/[Coalgirls]_Nekomonogatari_Playall_NoOPED_(1920x1080_Blu-ray_FLAC)_[5CE0D2C0].mkv
-------------------------------------------------------------------------------------------------------------------------------------------------------------
"Nekomonogatari [anidb-9453]" s0001e001 "10"
"Nekomonogatari [anidb-9453]" s0001e002 "10"
"Nekomonogatari [anidb-9453]" s0001e003 "10"
"Nekomonogatari [anidb-9453]" s0001e004 "10"
"Nekomonogatari [anidb-9453]" s0000e151 "7" "Ending 1"
"Nekomonogatari [anidb-9453]" s0000e152 "7" "Ending 2"
"Nekomonogatari [anidb-9453]" s0000e101 "6" "Opening 1"
"Nekomonogatari [anidb-9453]" s0000e501
--
Library: 'no valid X-Plex-Token.id', root: '/storage/Anime/TV Series', path: 'Tsukimonogatari [anidb-10891]', dirs: '0', subdirs: '[]', files: '8', Scan date: 2018-02-25 16:42:32
=============================================================================================================================================================
Tsukimonogatari [anidb-10891]/[Coalgirls]_Tsukimonogatari_01_(1920x1080_Blu-ray_FLAC)_[28C653A4].mkv
Tsukimonogatari [anidb-10891]/[Coalgirls]_Tsukimonogatari_02_(1920x1080_Blu-ray_FLAC)_[D5F97B17].mkv
Tsukimonogatari [anidb-10891]/[Coalgirls]_Tsukimonogatari_03_(1920x1080_Blu-ray_FLAC)_[7152298A].mkv
Tsukimonogatari [anidb-10891]/[Coalgirls]_Tsukimonogatari_04_(1920x1080_Blu-ray_FLAC)_[ACDA2D7D].mkv
Tsukimonogatari [anidb-10891]/[Coalgirls]_Tsukimonogatari_ED_(1920x1080_Blu-ray_FLAC)_[24350233].mkv
Tsukimonogatari [anidb-10891]/[Coalgirls]_Tsukimonogatari_OP_(1920x1080_Blu-ray_FLAC)_[2D05E60D].mkv
Tsukimonogatari [anidb-10891]/[Coalgirls]_Tuskimonogatari_Playall_(1920x1080_Blu-ray_FLAC).mkv
Tsukimonogatari [anidb-10891]/[Coalgirls]_Tuskimonogatari_Playall_NoOPED_(1920x1080_Blu-ray_FLAC).mkv
-------------------------------------------------------------------------------------------------------------------------------------------------------------
"Tsukimonogatari [anidb-10891]" s0001e001 "10"
"Tsukimonogatari [anidb-10891]" s0001e002 "10"
"Tsukimonogatari [anidb-10891]" s0001e003 "10"
"Tsukimonogatari [anidb-10891]" s0001e004 "10"
"Tsukimonogatari [anidb-10891]" s0000e151 "7" "Ending 1"
"Tsukimonogatari [anidb-10891]" s0000e101 "6" "Opening 1"
"Tsukimonogatari [anidb-10891]" s0000e501
"Tsukimonogatari [anidb-10891]" s0000e501
Iām using Hama Beta branch at 3ef1c511fb13358f45d10752bcc9f539f0743a8e
Hi, i managed to reproduce the issue and using latest beta code, and current ScudLee xml mapping files,
s01e01 anidb on disk = s00e03 tvdb āTsubasa Family - Part 1ā yet showing s00e01 tvdb Episode 5.5 (Recap)
s01e01 anidb on disk= s00e04 tvdb āTsubasa Family - Part 2ā yet showing s00e01 tvdb Kizumonogatari I: Iron Blood Arc
https://www.thetvdb.com/?tab=season&seriesid=102261&seasonid=86951&lid=7
https://raw.githubusercontent.com/ScudLee/anime-lists/master/anime-list-master.xml
<anime anidbid="9453" tvdbid="102261" defaulttvdbseason="0" episodeoffset="" tmdbid="" imdbid="">
<name>Nekomonogatari (Kuro): Tsubasa Family</name>
<mapping-list>
<mapping anidbseason="1" tvdbseason="0">;1-3;2-4;3-5;4-6;</mapping>
</mapping-list>
</anime>
i got couple errors in code and after fixing, it look resolved to me, but the multiple anidb xml loading and tvdb multi season to anidb mapping i modified was quite complex but the beta code i just uploaded should fix nicely.
Please test and let me know of any issue and attach agent logs located in \Plex Media Server\Plug-in Support\Data\com.plexapp.agents.hama\DataItems_Logs emp_library\Nekomonogatari [anidb-9453].agent-update.log (for me)
If anybody else is experienced bad metadata, please also respond, also i hope i fixed everything as i want AniDB and TheTVDB to match episode meta transparently regardless of numbering and seasons, normally i did that, and metadata priorities and languages should work as one would expect and selectable in agent settings. If fields exists in both sereis and episodes, you can use ā|ā to use two sets of metadata source orders like āAniDB, TheTVDB | TheTVDB, AniDBā for titles.
A new beta scanner is in progress to support grouping with no tags, caching, and plexignore support (added zip suppport but pretty sure itās useless, rar could be added simply enough)
I recently updated my scanner and it removed a lot of my metadata! Now I canāt even get it to load in any metadata, any idea why?
@clowncracker said:
I recently updated my scanner and it removed a lot of my metadata! Now I canāt even get it to load in any metadata, any idea why?
Same issue even if I use the legacy scanner.
scanner should not influence metadata⦠It can provide the serie year and episode title but the agent override all.
When updating the scanner this shouldnāt change HOWEVER if a scanner crash it can remove all eps from the library and consider nothing changed in the folder and stay like that, which make coding a scanner super annoying as any error force to recreate the library or adding more video files in a folder scannedā¦
To prove the point use latest beta scanner when creating a new library pointing oon the same root folders⦠You can name the file differently like ASS beta 2.pyā¦
@ZeroQI said:
scanner should not influence metadata⦠It can provide the serie year and episode title but the agent override all.
When updating the scanner this shouldnāt change HOWEVER if a scanner crash it can remove all eps from the library and consider nothing changed in the folder and stay like that, which make coding a scanner super annoying as any error force to recreate the library or adding more video files in a folder scannedā¦To prove the point use latest beta scanner when creating a new library pointing oon the same root folders⦠You can name the file differently like ASS beta 2.pyā¦
Are you saying the only way to fix it is to create a new library? Of note when I manually try and rematch the show manually, it will revert to the anidb metadata, but it completely ignores the tvdb4-xxxx folder naming convention. If I remove the show from the library and readd it, it wonāt add any metadata.
Iām using Inuyasha & Overlord for this example.
EDIT: Iām an idiot and I realized I didnāt attach the HAMA log to my first post.
@clowncracker said:
@ZeroQI said:
scanner should not influence metadata⦠It can provide the serie year and episode title but the agent override all.
When updating the scanner this shouldnāt change HOWEVER if a scanner crash it can remove all eps from the library and consider nothing changed in the folder and stay like that, which make coding a scanner super annoying as any error force to recreate the library or adding more video files in a folder scannedā¦To prove the point use latest beta scanner when creating a new library pointing oon the same root folders⦠You can name the file differently like ASS beta 2.pyā¦
Are you saying the only way to fix it is to create a new library? Of note when I manually try and rematch the show manually, it will revert to the anidb metadata, but it completely ignores the tvdb4-xxxx folder naming convention. If I remove the show from the library and readd it, it wonāt add any metadata.
Iām using Inuyasha & Overlord for this example.
EDIT: Iām an idiot and I realized I didnāt attach the HAMA log to my first post.
Iām stumped. I tried creating a new library, removing the files from my library, updating the HAMA agent again and swapping the match a few times. Any chance you can look at my HAMA logs and see why Inuyasha/Overlord/One Piece/Spice and Wolf/etc arenāt pulling metadata in correctly?
Like I said previously, as soon as I updated HAMA all of my previous metadata was deleted.
2018-02-28 14:42:24,142 (14999d19b700) : CRITICAL (storage:60) - Exception reading file /config/Library/Application Support/Plex Media Server/Metadata/TV Shows/b/e727443dde67dc2db2b180c1166cee62e1f0db2.bundle/Contents/_combined/Info.xml (most recent call last):
File ā/usr/lib/plexmediaserver/Resources/Plug-ins-c40bba82e/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/storage.pyā, line 55, in load
f = open(filename, mode)
IOError: [Errno 2] No such file or directory: ā/config/Library/Application Support/Plex Media Server/Metadata/TV Shows/b/e727443dde67dc2db2b180c1166cee62e1f0db2.bundle/Contents/_combined/Info.xmlā
2018-02-28 14:42:24,142 (14999d19b700) : CRITICAL (runtime:889) - Exception (most recent call last):
File "/usr/lib/plexmediaserver/Resources/Plug-ins-c40bba82e/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/runtime.py", line 843, in handle_request
result = f(**d)
File "/usr/lib/plexmediaserver/Resources/Plug-ins-c40bba82e/System.bundle/Contents/Code/agentservice.py", line 1032, in media_get
data = HTTP.Request(media_url, cacheTime=0).content
File "/usr/lib/plexmediaserver/Resources/Plug-ins-c40bba82e/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/api/parsekit.py", line 300, in ElementFromString
check_size(string, max_size)
File "/usr/lib/plexmediaserver/Resources/Plug-ins-c40bba82e/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/api/parsekit.py", line 22, in check_size
if len(data) > max_size:
TypeError: object of type 'NoneType' has no len()
wow funky errors, do the plex danceā¦
Please use beta branch as the logs are redeable and it solve most issues
After I updated to the beta agent, something weird happened. It created a BUNCH of logs for essentially every series that I have in my library. I wanted to attach the HAMA log because the āscan libraryā function was taking 5+ minutes, but I it doesnāt look like one was made. Of note the default logs loaded as āScanner 1ā and Scanner 2" which is also something that Iāve never had happen before.
Logs are created by the scanner.
HAMA logs will be at the expected place: Plex Media Server\Logs\PMS Plugin Logs\com.plexapp.agents.hama.log
HAMA logs will also be duplicated in:
- Plug-in Support\Data\com.plexapp.agents.hama\DataItems_Logs_unknown_folder.agent-search.log
- Plug-in Support\Data\com.plexapp.agents.hama\DataItems_Logs\Library\root-folder.agent-search.log with root-folder being the series or grouping folder in the library root.
Overlord/Overlord [tvdb4-294002]? that is one more folder from the root, will be slow to scan
I meant in general when I scan my library (like if I add one new episode), it takes 5+ minutes to add the file. Before the beta scanner it would take 30ish seconds.

Iāve found that since the beta scanner is making individual log files for the file lists and scanner, it really adds the time. If you watch your DataItems/_logs/Library Name folder during a scan, youāll see how long itās taking the scanner to create all of those.
Your system logs com.plexapp.system.log show abnormal errors vseemingly not caused by my agentā¦
- CRITICAL (runtime:709) - Private handlers are no longer supported; couldnāt register <bound method StreamService.token_handler of <streamservice.StreamService object at 0x14cef08ad1d0>>
- IOError: [Errno 2] No such file or directory: ā/config/Library/Application Support/Plex Media Server/Metadata/TV Shows/6/1acef0de4efccbeb0fd7b46b531135082ceaaa3.bundle/Contents/_combined/Info.xmlā
Do the plex dance⦠Plex internal database is meddes upā¦
With older versions of the beta scanner it would have been skipped [/anime/Overlord/Overlord [tvdb4-294002]] with ā/animeā as the root. Do you have a link to the faster version ?
What am i suppose to see in the agent logs ?
Episode title load correctly.
[2] title Sources: AniDB, TheTVDB | (TheTVDB), AniDB Type: str Value: āThose Who Pick Up, Those Who Are Picked Upā
@ZeroQI said:
Hi, i managed to reproduce the issue and using latest beta code, and current ScudLee xml mapping files,
s01e01 anidb on disk = s00e03 tvdb āTsubasa Family - Part 1ā yet showing s00e01 tvdb Episode 5.5 (Recap)
s01e01 anidb on disk= s00e04 tvdb āTsubasa Family - Part 2ā yet showing s00e01 tvdb Kizumonogatari I: Iron Blood Arcē©čŖć·ćŖć¼ćŗ - TheTVDB.com
https://raw.githubusercontent.com/ScudLee/anime-lists/master/anime-list-master.xml<anime anidbid="9453" tvdbid="102261" defaulttvdbseason="0" episodeoffset="" tmdbid="" imdbid=""> <name>Nekomonogatari (Kuro): Tsubasa Family</name> <mapping-list> <mapping anidbseason="1" tvdbseason="0">;1-3;2-4;3-5;4-6;</mapping> </mapping-list> </anime>i got couple errors in code and after fixing, it look resolved to me, but the multiple anidb xml loading and tvdb multi season to anidb mapping i modified was quite complex but the beta code i just uploaded should fix nicely.
Please test and let me know of any issue and attach agent logs located in \Plex Media Server\Plug-in Support\Data\com.plexapp.agents.hama\DataItems_Logs emp_library\Nekomonogatari [anidb-9453].agent-update.log (for me)
If anybody else is experienced bad metadata, please also respond, also i hope i fixed everything as i want AniDB and TheTVDB to match episode meta transparently regardless of numbering and seasons, normally i did that, and metadata priorities and languages should work as one would expect and selectable in agent settings. If fields exists in both sereis and episodes, you can use ā|ā to use two sets of metadata source orders like āAniDB, TheTVDB | TheTVDB, AniDBā for titles.
A new beta scanner is in progress to support grouping with no tags, caching, and plexignore support (added zip suppport but pretty sure itās useless, rar could be added simply enough)
Iām sorry for the late update, here is the result
Itās now use first seasonās names


