I spotted that last night. Hama should not store corrupted files but currently doesn’t load the cache neither so will work back when TheTVDB is back. I will correct that asap so it uses the file cache
Hiya,
I’m having a weird issue, probably something simple.
I re-installed the scanner and the agent because I didnt have plex recognizing any of my new Anime. I figured something might have changed. From that I rebuilt my entire Anime collection because from running the scan, Plex was building duplicates of the shows.
Turns out it was doing that because on some show’s it adds the full path, but on others only the filename. This resulted in unique sets of the same thing, and of course, the one without the full path didnt work.
Since I rebuilt the library I know have half my shows working correctly and half not matching / not playing.
Any clues? To be honest I don’t know where to start.
Non-working example for show Air Gear
Working example for show Air
start with the read-me, troubleshooting section, attach logs listed
Update to latest as i had this issue with the scanner and corrected last week.
Thanks for the reply.
The read me is where I found the link to this thread.I have closed Plex and used the shell script to try and update scanner, but I think I had the last version already (downloaded from github).
I have deleted the logs, started plex and deleted the library. Re-started Plex just in case.
Reconfigured the library to my anime folder and to use ASS and HamaTV.
I get the same result, some shows dont have the complete path.
The error seems to be in the scanner with:
Jun 10, 2018 03:46:41.714 [9892] DEBUG - * Scanning Air Gear [Dual Audio] [Eng Subs] [joseole99] Season 1 Episode 1
Jun 10, 2018 03:46:41.714 [9892] DEBUG - Looking for path match for [Air Gear - 01 - The Invincible Baby Face.mkv]
Jun 10, 2018 03:46:41.714 [9892] DEBUG - Skipping hash check, no size match for 0 bytes.
Jun 10, 2018 03:46:41.714 [9892] DEBUG - No match for hash.
Or/and I’m missing a Token.id?
Library: ‘no valid X-Plex-Token.id’, root: ‘E:\Anime~ Anime’, path: ‘’, files: ‘0’, dirs: ‘207’, Plex scan date: 2018-06-10 03:45:57
I’ve attached the logs. From what I could read this token.id is related to web apps or something.
Hey there I just installed the Scanner on Manjaro Linux and followed the instructions on the github. The folders have been created and the .py file is at the right path. Yet when I am creating a new libary I cannot chose the Scanner in the Dropdown Menu because it does not show. I double checked the instructions but could not find anything wrong.
Either you picked the wrong Plex folder as some installation have one in user folder one I. Programs or you have the wrong rights.
Well I basically copy pastet from github and did exactly as you said those are the paths of the conf:
LD_LIBRARY_PATH=/usr/lib/plexmediaserver
PLEX_MEDIA_SERVER_HOME=/usr/lib/plexmediaserver
PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR=/var/lib/plex
PLEX_MEDIA_SERVER_MAX_PLUGIN_PROCS=6
PLEX_MEDIA_SERVER_TMPDIR=/tmp
TMPDIR=/tmp
There was also no Libary and Application Support folder, I had to create them. Are you sure this is compatible with the latest version?
EDIT: Alright I fixed it but now I am not finding any files. This is from the log:
Jun 12, 2018 19:52:49.300 [0x7f067695a840] ERROR - No function in Absolute Series Scanner
Jun 12, 2018 19:52:49.300 [0x7f067695a840] ERROR - We got an error scanning in /home/plex-media/tv
Please attach your scanner file. It doesn’t find functions so probably saved as an HTML file…
Hi Buddy my scanner file was just empty lol so DLed it again and guess what it works:
I try to add Screenshot of my Folder Structure on Arch. There are no Libary Folders just Put the Scanners Folder in this path fix the rights and it works:

Cheers mate!
Any idea what the “Skipping hash check, no size match for 0 bytes.” could mean? :\
@Auch
file is either 0 (empty or right issue) or the path added is wrong, but plex wouldn’t play the file then either way…
It seems the scanner add the filename instead of the full path, bug might be specific to windows and to one of the calls to add files…
I need the scanner log for the series you included the root folders logs when there is no file at root…
It does show a huge amount of grouping folders at root level though:
- E:\Anime~ Anime\Air Gear\Air Gear [Dual Audio] [Eng Subs] [joseole99]*.ext
Why the additional folder depth? Does all series impacted have an additional folder depth?
Please try this scanner version: https://gist.github.com/ZeroQI/974f6335ad4f31ecdfe1e4af0404098d
If it works will push to master branch
Thanks for the reply.
It worked quite well, the file info now contains the full path. For some reason it is not matching with HamaTV, but I will try to recreate the library. I think it just didnt run at all. I was able to manually match some.
The reason for the additional depth is because I have a folder for all things anime (the second folder) but along with those there is one for Ghibli Studio, Makoto Shinkai, other things…
Reckon you still need the log?
if it match manually then it crashed earlier, post logs if you find any example
No need for logs if it is working
I dont think it crashed. It seems like there is a minimum level of confidence for the auto match to work.
Because all shows are named with the folder name (which contains a lot of gibberish) auto-match stays on average around the 30’s.
For example:
With the show name having [quality] [dual sub] [whatever else]
auto match result:
Manual edit for manual search:
I guess I’ll have to rename all folders ah
yes auto match is >80%
you can also put a anidb.id file in the series folder, but renaming the series folder is the most logical.
Normally braquetted content is skipped [] so must be gibberish non in braquets
Is that an option I might have some how turned off?
Everything extra is indeed inside []
@Auch Thanks for letting me know. i reproduced it and you are right, content in bracket is not scrubbed. I am surprised nobody else complained of the recognition rate… Tried but could not resolve in a timely manner. I am bad a tpython but with enough correction and hard work i get the work done… Will solve tonight
Note for me:
- Hama.bundle/blob/Beta-Agent/Contents/Code/common.py function “def cleanse_title(string):” line 375
- duplicate
while re.match(".*\([^\(\)]*?\).*", string): string = re.sub(r'\([^\(\)]*?\)', ' ', string) - edit into
while re.match(".*\[.*\].*", string): string = re.sub(r'\[.*\]', ' ', string)
@Auch Please update to the latest beta branch hama version, it will now scrub brackets from titles, and report the outcome and remaining issue if any. token file is to have Hama create a folder with the library name if you have multiple ones, definitely not needed for most peoples
Ah, you had a shot at it and were able to come back before I had a chance to reply 
Times like this I’d really like to just be able to figure this things myself and push a fix into github, save you the work.
I’ll give that a try and let you know




