Absolute Series Scanner (for anime mainly)

@dgw as per the readme that’s what i call a grouping folder.
you need to add \Anime\Title as additional library root folder and all work ok if “[subgroup] Title [720p BD]” is the actual series title
The way the scanner was before was causing plex corruption and had to re-scan these grouping folders every time.

That’d be a lot of root folders… Nearly every time I added a new series I’d have to add a new root too.

Obviously I can also restructure the library to store the actual release folders elsewhere and hardlink the episodes into place, but that’s also a big conversion process and ongoing overhead (since I can’t create hardlinks remotely on a SMB share; have to log into the server and use the file explorer/CLI).

But my own specific case aside, wouldn’t it just be better UX to be able to organize anime more flexibly? I haven’t looked into how Plex scanners work, but I should… Maybe then I’d come up with a way to do it, or at least understand why you had to make the change.

@dgw plex roughtly plex want series folder inside your library root folder. That’s not flexible…
Use the old scanner in the meantime. it scans all and add it while in root folder scan
I couldn’t in good conscience leave the buggy way to scan
How can you have so many grouped seriebut that means it never cache and it’s not proper and had loads of corruption of plex database…

try using anidb2 mode and it will map and display with tvdb numbering and seasons just with an id file but series need to be in root folder…

@dgw said:
That’d be a lot of root folders… Nearly every time I added a new series I’d have to add a new root too.

Obviously I can also restructure the library to store the actual release folders elsewhere and hardlink the episodes into place, but that’s also a big conversion process and ongoing overhead (since I can’t create hardlinks remotely on a SMB share; have to log into the server and use the file explorer/CLI).

But my own specific case aside, wouldn’t it just be better UX to be able to organize anime more flexibly? I haven’t looked into how Plex scanners work, but I should… Maybe then I’d come up with a way to do it, or at least understand why you had to make the change.

I agree with this 100%. Adding 100+ root folders is not a solution for me. It seems like a limitation of Plex rather than the ASS though, which is unfortunate if true.

@ZeroQI I will try using the old scanner. Thanks for the suggestion.

hi ZeroQI,

first thx for your work. ! Amazing !!

now i have a problem with the Ark scan.

the scanner is not taking the path

anime_name/Season X/Ark xxx/anime_name s01e001.ext

not sure to catch the issue.

here find the log :

May 20, 2017 01:10:39.935 [2208] DEBUG - Adding subdirectory for scanner: J:\Manga\a voir\One piece [tvdb4-81797]\Season 1\Ark Morgan
May 20, 2017 01:10:39.935 [2208] DEBUG - * Scanning directory J:\Manga\a voir\One piece [tvdb4-81797]\Season 1\Ark Morgan (parent: yes)
May 20, 2017 01:10:39.958 [2208] DEBUG - Adding file for scanner: J:\Manga\a voir\One piece [tvdb4-81797]\Season 1\Ark Morgan\One Piece s01e001.mp4
May 20, 2017 01:10:39.958 [2208] DEBUG - Adding file for scanner: J:\Manga\a voir\One piece [tvdb4-81797]\Season 1\Ark Morgan\One Piece s01e002.mp4
May 20, 2017 01:10:39.959 [2208] DEBUG - Adding file for scanner: J:\Manga\a voir\One piece [tvdb4-81797]\Season 1\Ark Morgan\One Piece s01e003.mp4
May 20, 2017 01:10:39.960 [2208] ERROR - Error in Python: Running scanner:
Traceback (most recent call last):
File “G:\Users\Oyoo\AppData\Local\Plex Media Server\Scanners\Series\Absolute Series Scanner.py”, line 282, in Scan
set_logging(“Main”, os.path.join(CACHE_PATH, (os.path.dirname(path) or path or ‘root’)+’.log’))
File “G:\Users\Oyoo\AppData\Local\Plex Media Server\Scanners\Series\Absolute Series Scanner.py”, line 101, in set_logging
else: handler = logging.FileHandler (os.path.join(CACHE_PATH, filename), mode=‘w’)
File "C:\Program Files (x86)\Plex\Plex Media Server\python27.zip\logging_init
.py", line 913, in init
StreamHandler.init(self, self.open())
File "C:\Program Files (x86)\Plex\Plex Media Server\python27.zip\logging_init
.py", line 943, in open
stream = open(self.baseFilename, self.mode)

thx in advance.

Created bug report https://github.com/ZeroQI/Absolute-Series-Scanner/issues/96
Please follow steps suggested and report on github page

Hello,

I tried installing ASS and HAMA but when I create the library using them no content is added.

I read the logs but did not see any obvious error messages, I also pored over the readme files for an hour but I just can’t figure out what I’m doing wrong. Please help me.

@Altered_Nova
the serie folder must reside in the library root folder
Deadman Wonderland Season 01 (Dual Audio) [BR 1080p] [Daman] isn’t a supported season folder naming

logs did log this:
Grouping folder: ‘One-Punch Man\One-Punch Man Season 01 (Dual Audio) [BD 1080p FLAC] [ARRG]’ skipped, need to be added as root folder if needed

The scanner is leniant on file naming but folders and season folders need structure

Hello ZeroQi, I am newbie, and although I was reading the forum responses to similar problems I can not find the solution.

I followed the steps of the installation correctly, the only thing I did not do was the step of “X-Plex-Token.id” because I read that it was optional. I think this is why I am not generating the files “Plex Media Scanner (custom ASS) .log”

The problem that does not show me anything in the library
I have installed the “Microsoft Visual C ++ 2015 Redistributable (x64) - 14.023026”
The operating system is windows server 2012 R2

The error in “Plex Media Scanner.log” is as follows

May 30, 2017 03: 03: 27.388 [4700] ERROR - No module in VideoFiles
May 30, 2017 03: 03: 27.388 [4700] ERROR - Error scanning directory.
May 30, 2017 03: 03: 27.389 [4700] ERROR - No module in Absolute Series Scanner
May 30, 2017 03: 03: 27.390 [4700] ERROR - We got an error scanning in Z: \ Bk_Disco_Notebook \ Movies \ Anime

Attached the log.

You can help me?

Hello,

I love the idea of being able to force the tvdb4 id to help organize a long running series like One Piece into arcs ad seasons. However, when I tried using it, my initial complaint is that the episodes do not seem to be correctly identified for the purposes of metadata with information like episode descriptions. Normally, without forcing tvdb4 id, all the episodes show up under one season, but everything is PERFECT and I couldn’t have asked for a single thing more off the top of my head (except for the splitting into arcs part). Everything is correctly identified, all metadata is found and filled out (like episode descriptions). Is there a reason forcing tvdb4 id does not work for identifying episodes and pulling metadata for them? I’m sort of an organizational and detail freak, and in this case, it is impossible to pull metadata when forcing tvdb4 id, I may rather prefer to use the normal method and just sacrifice splitting all the episodes into arcs for the sake of having everything else seemingly perfect. Thanks in advance, I really appreciate any input anybody can give!

Please help, I’m actually having the same problem with trying to force tvdb2 id as well. Attempting to use it to fix series like Boku no Hero and Attack on Titan with the new 2nd seasons that are listed separately on anidb. It works nicely, the only thing is it fails to match episodes and pull metadata (like episode descriptions) again.

My apologies, after further frustrating, excruciating research, trial and error, it seems that updating HAMA and ASS to the latest beta versions has fixed my previous problems.

anyone know why I’m having such a hard time getting plex to realize my hero academia has two seasons? The metadata is all wrong

@Immortaldaul said:
anyone know why I’m having such a hard time getting plex to realize my hero academia has two seasons? The metadata is all wrong

mine works this is my folder structure Root / my hero academia / Season 1
/Season 2
plus tvdb2.id inside My Hero folder it works for me

Hello! The scanner seems to crash no matter what, I tried reinstalling it but it does not work.
The mediascanner log shows:

ERROR - No module in Absolute Series Scanner
ERROR - Error in Python: Looking up module:

Then opens up a tracelog, I barely have any experience in python much less error tracing so anyhelp would be apprenticed.

I have attached the media scanner log below.

I was looking for a scanner so my anime collection could be in 1 library. Movies were not showing in my anime library with the default scanner. After switching to this scanner my plex library went from recognizing 106 items to 157 out of a total of 176. I am very happy with this improvement.

@mrstabhappy you have an error ‘No such file or directory’ when trying to create ‘/home/mrstabhappy/Library/Application Support/Plex Media Server/Logs/Plex Media Scanner (custom ASS).log’.

The scanner read-me whose link is in my signature https://github.com/ZeroQI/Absolute-Series-Scanner/blob/master/README.md have a troubleshooting section and the below:

On linux(And Mac OS-X), permissions issues could prevent the scanner execution. On “Mac OS-X” the logs don’t go in default logs folder but a user folder: ‘/Users/renaldobryan/Library/Application Support/Plex Media Server/Logs/Plex Media Scanner (custom ASS).log’. After creating folder and setting proper permissions, all was working

If you didn’t read the read-me and have Mac OS-X and not created folders as advised in said readme, and it works magically when you create them please consider a donation. If not, you need to sort linux right issues

@ZeroQI, Hi I run my plex server off a seedbox and as such I have restricted access, my permissions seems ok but I lack the /home/ directory instead my “root” is “mrstabhappy” is there a way to change the directory?

@mrstabhappy from the scanner it tries first …\Logs
use direct path in LOG_PATH and that should work

LOG_PATH = os.path.abspath(os.path.join(os.path.dirname(inspect.getfile(inspect.currentframe())), "..", "..", "Logs"))
if not os.path.isdir(LOG_PATH):
  path_location = { 'Windows': '%LOCALAPPDATA%\\Plex Media Server',
                    'MacOSX':  '$HOME/Library/Application Support/Plex Media Server',
                    'Linux':   '$PLEX_HOME/Library/Application Support/Plex Media Server' }
  try:  path = os.path.expandvars(path_location[Platform.OS.lower()] if Platform.OS.lower() in path_location else '~')  # Platform.OS:  Windows, MacOSX, or Linux

I seem to got passed the IO error, but still does not work, it seems to detect the files but throws out a No module in VideoFiles. Here’s the latest log.