From the logs there is a seasonid variable error but it’s not used by latest agent. Where did you get this version?
@ZeroQI said:
From the logs there is a seasonid variable error but it’s not used by latest agent. Where did you get this version?
From this forumthread, the first post. HAMA _ Absolute Series Scanner 2014-08-04 00h37.zip it seems from your first post. Might be a very old version that is attached?
Yes. Please update code.py with the one from girhub. Links in my
signature
@ZeroQI said:
Yes. Please update code.py with the one from girhub. Links in my
signature
Grabbed all the bundles from the git and i haz pretty pictures again! I had a moment of dumb when i actually saw the filename with the dates. Ty for the pointing! =)
Actually it seems that i am getting an error now when trying to scan the library, so i tried to redo the library but now it can’t add anything at all
Plex spits out this: Error in Python: Looking up module:
Traceback (most recent call last):
File “/root/Plex/Resources/Plug-ins-344f193/Scanners.bundle/Contents/Resources/Common/VideoFiles.py”, line 2, in
import Filter
SyntaxError: (‘invalid syntax’, (’/root/Library/Application Support/Plex Media Server/Scanners/Series/Absolute Series Scanner.py’, 5, 1, ’
'))
And the scanner logfile tells me We got an error scanning in /media/Anime but not really why. Even with debug activated it does not really tell me why and what. Any idea?
It worked to scan the library when it was already added to the database it seems, but it wouldn’t update the library properly and that was why i tried to redo it.
You saved as html file. There is no tags in my code
Seriously… No more computer for me today.
Works now after i downloaded it as a zip. Right click and save as on the file was a stupid mistake. Ty for help, happy new year!
From the Plex Media Scanner Log when i add a new file:
Error from the log:
Jan 01, 2016 14:42:52:708 [8388] ERROR - No module in Absolute Series Scanner
Jan 01, 2016 14:42:52:723 [8388] ERROR - Error in Python: Looking up module:
Traceback (most recent call last):
File "P:\Data\Plex Media Server\Scanners\Series\Absolute Series Scanner.py", line 101, in <module>
except: Log("Place correct Plex token in X-Plex-Token.id file in logs folder or in PLEX_LIBRARY_URL variable to have a log per library - https://support.plex.tv/hc/en-us/articles/204059436-Finding-your-account-token-X-Plex-Token")
File "P:\Data\Plex Media Server\Scanners\Series\Absolute Series Scanner.py", line 92, in Log
file.write(("" if no_timestamp else time.strftime("%Y-%m-%d %H:%M:%S") + " ") + entry + "
")
NameError: global name ‘no_timestamp’ is not defined
Jan 01, 2016 14:42:52:723 [8388] ERROR - We got an error scanning in D:\Videos\Anime\Fairy Tail (2014)
Jan 01, 2016 14:42:52:802 [8388] ERROR - There were errors scanning location: D:\Videos\Anime
Jan 01, 2016 14:42:52:802 [8388] DEBUG - Since it was an incomplete scan, we are not going to whack missing media.
Jan 01, 2016 14:42:52:803 [8388] DEBUG - Refreshing section 5 of type: 2
i added the plex token file and no_timestamp file (taken from your post on page one), restarted plex server but i get the error above still.
I installed a new plex server on another machine and copied the plugin from my main plex server. It uses the alpha scanner (like you proposed in your previous post to me) but when i ran it, i got the same error as above. I then added the plex token file to the log folder and everything works.
I added the same test library to my main plex setup and it doesnt work even with the plex token file in the log folder. Also i noticed that if i use the local plex web client, i dont get the same plex token as the plex web client accessed from plex.tv (they are not the same version). I dont know what else to try… If i start a new plex db, i will loose all the manual modifications i had to do to my anime library (Locked Titles and original Titles…posters, backgrounds)…im so discouraged at this point… 
Alright…so i moved my db over to my production and after doing all the maintenance stuff (optimize, clear bundles and trash) scan worked once and then same problem…this is just ridiculous…Now im going to restart for the 5th time, from scratch on the production, I will just create my anime Library first and try to add new content. I really dont know why the scanner is failing all of a sudden…
@saitoh183 said:
Alright…so i moved my db over to my production and after doing all the maintenance stuff (optimize, clear bundles and trash) scan worked once and then same problem…this is just ridiculous…Now im going to restart for the 5th time, from scratch on the production, I will just create my anime Library first and try to add new content. I really dont know why the scanner is failing all of a sudden…
So i created a Fresh DBand just scanned my anime. …then i tried to add a new eps and same issue with both normal and alpha scanner…
Jan 04, 2016 14:53:23:292 [7164] INFO - Plex Media Scanner v0.9.15.0.1621-344f193 - Microsoft PC - build: windows-i386
> Jan 04, 2016 14:53:23:292 [7164] INFO - Windows version: 6.3 (Build 9600), language en-US
> Jan 04, 2016 14:53:23:292 [7164] INFO - 2 3000 MHz processor(s): Architecture=0, Level=6, Revision=15363 Processor Identifier=Intel64 Family 6 Model 60 Stepping 3, GenuineIntel
> Jan 04, 2016 14:53:23:292 [7164] DEBUG - "C:\Program Files (x86)\Plex\Plex Media Server\Plex Media Scanner.exe" --scan --refresh --section 1 --directory "D:\Videos\Anime\Dragon Ball Super"
> Jan 04, 2016 14:53:23:293 [7688] DEBUG - Opening 20 database sessions to library, SQLite 3.8.9, threadsafe=1
> Jan 04, 2016 14:53:23:454 [7688] DEBUG - It took 0.000000 ms to retrieve 192 items.
> Jan 04, 2016 14:53:23:472 [7688] DEBUG - Scanning Anime using en(Absolute Series Scanner) with 0 current media items in the database...
> Jan 04, 2016 14:53:23:474 [8576] DEBUG - HTTP requesting GET http://127.0.0.1:32400/:/metadata/notify/cullTimeline?librarySectionID=1&sinceTime=1451936003
> Jan 04, 2016 14:53:24:242 [7688] DEBUG - Performing a scan with 'Absolute Series Scanner' (language: en virtual: 0).
> Jan 04, 2016 14:53:24:242 [7688] DEBUG - * Scanning D:\Videos\Anime\Dragon Ball Super
> Jan 04, 2016 14:53:24:242 [7688] DEBUG - * Scanning directory D:\Videos\Anime\Dragon Ball Super (parent: yes)
> Jan 04, 2016 14:53:24:242 [7688] VERBOSE - * Noting that 'Dragon Ball Super' was updated at 2016-01-04 14:52:23
> Jan 04, 2016 14:53:24:242 [7688] VERBOSE - * Taking directory 'Dragon Ball Super' (2) out of the map (0 left)
> Jan 04, 2016 14:53:24:243 [7688] DEBUG - Adding file for scanner: D:\Videos\Anime\Dragon Ball Super\banner.jpg
> Jan 04, 2016 14:53:24:244 [7688] DEBUG - Adding file for scanner: D:\Videos\Anime\Dragon Ball Super\Dragon Ball Super - 08 - Goku Steps Up! The Last Chance from Beerus [AnimeRG].mkv
> Jan 04, 2016 14:53:24:244 [7688] DEBUG - Adding file for scanner: D:\Videos\Anime\Dragon Ball Super\Dragon Ball Super - 13 - Goku, Go Surpass Super Saiyan God! .mkv
> Jan 04, 2016 14:53:24:245 [7688] DEBUG - Adding file for scanner: D:\Videos\Anime\Dragon Ball Super\Dragon Ball Super - 19 - Episode 19 [AnimeRG].mkv
> Jan 04, 2016 14:53:24:245 [7688] DEBUG - Adding file for scanner: D:\Videos\Anime\Dragon Ball Super\fanart.jpg
> Jan 04, 2016 14:53:24:245 [7688] DEBUG - Adding file for scanner: D:\Videos\Anime\Dragon Ball Super\poster.jpg
> Jan 04, 2016 14:53:24:245 [7688] DEBUG - Adding file for scanner: D:\Videos\Anime\Dragon Ball Super\season01-poster.jpg
> Jan 04, 2016 14:53:24:246 [7688] DEBUG - Adding file for scanner: D:\Videos\Anime\Dragon Ball Super\Thumbs.db
> Jan 04, 2016 14:53:24:246 [7688] DEBUG - Adding file for scanner: D:\Videos\Anime\Dragon Ball Super\Dragon Ball Super - 20 - Warning from Jaco! Freeza and His 1,000 Soldiers Are Drawing Near! .mp4
> Jan 04, 2016 14:53:24:246 [7688] DEBUG - Adding file for scanner: D:\Videos\Anime\Dragon Ball Super\Dragon Ball Super - 21 - The Revenge Begins! The Freeza Army`s Malice Strikes Gohan! .mkv
> Jan 04, 2016 14:53:24:248 [7688] DEBUG - Adding file for scanner: D:\Videos\Anime\Dragon Ball Super\Dragon Ball Super - 02 - To the Promised Vacation! Vegeta Goes on a Family Trip! .mkv
> Jan 04, 2016 14:53:24:248 [7688] DEBUG - Adding file for scanner: D:\Videos\Anime\Dragon Ball Super\Dragon Ball Super - 03 - Where`s the Rest of My Dream! Find the Super Saiyan God! [AnimeRG].mkv
> Jan 04, 2016 14:53:24:248 [7688] DEBUG - Adding file for scanner: D:\Videos\Anime\Dragon Ball Super\Dragon Ball Super - 05 - Decisive Battle on Kai`s Planet! Goku vs. God of Destruction Beerus .mp4
> Jan 04, 2016 14:53:24:248 [7688] DEBUG - Adding file for scanner: D:\Videos\Anime\Dragon Ball Super\Dragon Ball Super - 18 - I Have Come Too! Training Begins on Beerus` Planet! .mkv
> Jan 04, 2016 14:53:24:248 [7688] DEBUG - Adding file for scanner: D:\Videos\Anime\Dragon Ball Super\Dragon Ball Super - 01 - The World Peace Prize. Who Is Getting the 100 Million Zeni! [AnimeRG].mkv
> Jan 04, 2016 14:53:24:249 [7688] DEBUG - Adding file for scanner: D:\Videos\Anime\Dragon Ball Super\Dragon Ball Super - 06 - Don`t Anger the God of Destruction! The Heart Pounding Birthday Party [DeadFish].mp4
> Jan 04, 2016 14:53:24:249 [7688] DEBUG - Adding file for scanner: D:\Videos\Anime\Dragon Ball Super\Dragon Ball Super - 09 - Sorry for the Wait, Beerus - The Super Sayan God Is Finally Born! .mkv
> Jan 04, 2016 14:53:24:249 [7688] DEBUG - Adding file for scanner: D:\Videos\Anime\Dragon Ball Super\Dragon Ball Super - 10 - Show Me, Goku! The Power of the Super Saiyan God!! .mkv
> Jan 04, 2016 14:53:24:250 [7688] DEBUG - Adding file for scanner: D:\Videos\Anime\Dragon Ball Super\Dragon Ball Super - 22 - Change! An Impossible Revival! The Name`s Ginyu!! .mkv
> Jan 04, 2016 14:53:24:251 [7688] DEBUG - Adding file for scanner: D:\Videos\Anime\Dragon Ball Super\Dragon Ball Super - 23 - The Earth and Gohan in Dire Peril! Come Quick, Son Goku! .mkv
> Jan 04, 2016 14:53:24:251 [7688] DEBUG - Adding file for scanner: D:\Videos\Anime\Dragon Ball Super\Dragon Ball Super - 11 - Let`s Keep Going Beerus-sama! The Battle of Gods Continues! .mkv
> Jan 04, 2016 14:53:24:251 [7688] DEBUG - Adding file for scanner: D:\Videos\Anime\Dragon Ball Super\Dragon Ball Super - 04 - Aim for the Dragon Balls! The Pilaf Gang`s Master Plan! [DeadFish].mp4
> Jan 04, 2016 14:53:24:251 [7688] DEBUG - Adding file for scanner: D:\Videos\Anime\Dragon Ball Super\Dragon Ball Super - 07 - How Dare You Hit My Bulma! Vegeta`s Furious Mutation! .mp4
> Jan 04, 2016 14:53:24:251 [7688] DEBUG - Adding file for scanner: D:\Videos\Anime\Dragon Ball Super\Dragon Ball Super - 12 - The Universe Crumbles! Clash! The God of Destruction vs. Super Saiyan God! [AnimeRG].mkv
> Jan 04, 2016 14:53:24:252 [7688] DEBUG - Adding file for scanner: D:\Videos\Anime\Dragon Ball Super\Dragon Ball Super - 14 - This Is Every Last Bit of My Power! The Battle of Gods Concludes! .mkv
> Jan 04, 2016 14:53:24:252 [7688] DEBUG - Adding file for scanner: D:\Videos\Anime\Dragon Ball Super\Dragon Ball Super - 17 - Pan Is Born! And Goku Goes Off on a Training Journey! .mkv
> Jan 04, 2016 14:53:24:283 [7688] DEBUG - Directory had 21 files, database had 0 files, can't skip.
> Jan 04, 2016 14:53:24:285 [7688] ERROR - No module in Absolute Series Scanner
> Jan 04, 2016 14:53:24:286 [7688] ERROR - Error in Python: Looking up module:
> Traceback (most recent call last):
> File "P:\Data\Plex Media Server\Scanners\Series\Absolute Series Scanner.py", line 101, in <module>
> except: Log("Place correct Plex token in X-Plex-Token.id file in logs folder or in PLEX_LIBRARY_URL variable to have a log per library - https://support.plex.tv/hc/en-us/articles/204059436-Finding-your-account-token-X-Plex-Token")
> File "P:\Data\Plex Media Server\Scanners\Series\Absolute Series Scanner.py", line 92, in Log
> file.write(("" if no_timestamp else time.strftime("%Y-%m-%d %H:%M:%S") + " ") + entry + "
")
> NameError: global name ‘no_timestamp’ is not defined
> Jan 04, 2016 14:53:24:286 [7688] ERROR - We got an error scanning in D:\Videos\Anime\Dragon Ball Super
> Jan 04, 2016 14:53:24:317 [7688] ERROR - There were errors scanning location: D:\Videos\Anime
> Jan 04, 2016 14:53:24:317 [7688] DEBUG - Since it was an incomplete scan, we are not going to whack missing media.
> Jan 04, 2016 14:53:24:317 [7688] DEBUG - Refreshing section 1 of type: 2
so i guess the DB isnt the problem…it has to be the installation.
Ok…seriously…i just dont know what the is wrong with this scanner…I have been at this all god damn day…
I have tried everything to make this work…
- New DB created on productions machine
- New DB created on another machine, populated library and then copied to production
- New Hama bundle + scanner (alpha and non-alpha) Followed all instructions on Git
- plex-token-id in log folder (Tried different tokens)
- New plex installation in different locations
- Deleted plex registry key to really start fresh
- copied library content to C drive , created a new library and then after initial scan (which always works), added new content
The result is always the same as i have been posting above…
With the stable scanner, the error appears in the Plex Media Scanner (Custom ASS).log and with the alpha scanner the error appears in the Plex Media Scanner.log and no changes made to Plex Media Scanner (Custom ASS).log .
Logs:
When trying to add Dragon Ball super
Plex Media Scanner (Custom ASS) - filelist.log
Using Stable scanner:
Plex Media Scanner (Custom ASS).log
Using Alpha scanner:
If you need a copy of my DB, let me know
I really need help fixing this 
This is going to souns super lame but I need help with the installation. Y copies all the files of the zip into the plugins folder on my synology NAS, but the agent doesnt appear in Plex.
Hope someone can help me!!
@tokoku said:
This is going to souns super lame but I need help with the installation. Y copies all the files of the zip into the plugins folder on my synology NAS, but the agent doesnt appear in Plex.Hope someone can help me!!


please follow indications GitHub - ZeroQI/Hama.bundle: Plex HTTP Anidb Metadata Agent (HAMA)
@saitoh183 : try alpha scanner https://gist.github.com/ZeroQI/26d26f91af04c876b1a0 i just corrected an issue and give back Plex Media Scanner.log if error present
Thanks @saitoh183 thats what I did, I put the hama.bundle inside the plugins folder just like in your images, and then restart plex server. But this isnt working…
@tokoku said:
Thanks @saitoh183 thats what I did, I put the hama.bundle inside the plugins folder just like in your images, and then restart plex server. But this isnt working…
There is nothing under agent? in the settings>Server>Agent?
@ZeroQI said:
@saitoh183 : try alpha scanner https://gist.github.com/ZeroQI/26d26f91af04c876b1a0 i just corrected an issue and give back Plex Media Scanner.log if error present
It Worked! Man…I could just kiss you right now! ![]()
I just have 2 questions:
First is the X-Plex-token.id needed in the log folder still?
Second when i added the new file and the scan kicked off, it seemed to rescan the entire show (every eps) before adding the new episode. Is that going to be the new behavior because TV shows just adds the new eps and so did anime before all the problems started. I ask because shows like Naruto which has 400+ eps will be a long scan.
Here is the log:
I also didnt restart plex server…i just overwrote the py file with the new script content and added a eps to my folder . Maybe its because of the new script, it needs to rescan the entire show the first time it has a update of that show?
I have it set to auto update partial in the plex server settings.
The X-Plex-token.id file with the id inside is only used to get the library name to get a log file per library.
Because the way it scan is different it does a full scan but on refresh should be faster and only scan changed folders. he old scanner did all scan on the root folder. this one does more properly for caching while still enabling grouping folders (group name/serie name)
HI, this week I play around with plex, ass and hama.
installing the server both on my pc and on my Nas, the files always storage in the Nas.
Both servers with the same configuration behave different, when analyzing my anime.
with the following structure:
-Anime
- Yu yu Hakusho
- Yu yu Hakkusho Season 1
* Yu yu Hakusho - 01
* Yu yu Hakusho - 02
- Movies
-Yu yu Hakusho movie one
* Yu yu Hakusho movie one.mkv
- Yu yu Hakusho movie two
* Yu yu Hakusho movie two.mkv
-Specials
Special 01.mkv
etc
In the Plex pc server works perfectly and find the series the movies and the specials with no problem.
In the Plex Nas server, it doesn’t work, movies are assign as episodes.
Any thoughts?
they have both the same configuration, but they do different thing with the same file/folder structure.
Im having a issue with Naruto Shippuden. Episode 170 and 171 are being detected wrong because of the Part 1 and Part 2 in there name.
From ASS log:
2016-01-06 09:50:33 "Naruto Shippuden" s0001e001 "Naruto Shippuden - 170 - Big Adventure! Search for the Fourth Hokage`s Legacy - Part 1 [HorribleSubs].mkv"
2016-01-06 09:50:34 "Naruto Shippuden" s0001e002 "Naruto Shippuden - 171 - Big Adventure! Search for the Fourth Hokage`s Legacy - Part 2 [HorribleSubs].mkv"
The other issue is that both episode where added to plex in there own show instead of being placed with the other episodes. My real show entry was scanned in with the non-alpha scanner and theses were scanned in with the alpha scanner. Now when i was doing all my testing with the alpha scanner for my other issue that you fixed, it would add those 2 eps as episode 1 and 2 as well so i had 2 entries for eps 1 and 2. I didnt do a refresh of the show because i dont want to have that issue.