Absolute Series Scanner (for anime mainly)

@ZeroQI Hi, back again. Thanks for your help, I’m just going to manually handle these (few) exceptions when they occur. No big deal, was just hoping there was an automagic fix.

OMG, I’ve learned a few things lately. Plex 200220687: For identically-named remakes, append (year) , e.g. “Battlestar Galactica (2003)”

I saw that years ago and decided it’d be a good thing to do all of the time, remake or not. Can’t hurt, right? YEAH. I’ve got about 5% of my anime titles where it mismatches ONLY on an appended year. Most correct if I remove it, a few just don’t like me. I think I’ve renamed them via anidb or brute-forced the [-number].

And OMG – names. I hadn’t actually realized how weirdly mangled some names actually are; it’s amazing that you can figure out what’s what. OH! And Webtools / FindMedia is WONDERFUL – I was considering somehow writing that. It’ll find physical files that are NOT in the Plex database, and will also find ones that are but have no loaded metadata (EP names and such.)

I’m going to wonder over to r/plex and bug them for extra usage tips. Hey, a question that IS kinda your bailiwick: I’m trying to be a nice user and not slam a million outbound requests for metadata. OTOH, adding a show a day is just too slow. Does Hama throttle or limit it’s requests outside to anidb and elsewhere? OMDb for instance limits me to 1K requests per day. (Free user for right now. Fine, let’s see if I like it.) But I don’t want to overwhelm other free sources by adding a lot of shows at once – so do I need to worry about adding anime/movie/TV shows slowly or does Hama attempt to do so for me? I just don’t want to be permanently banned (by IP addresss?) for abusing data sources. Thanks!

Also, FYI: Docker, LXC, LXD and all are great, but they’re basically compute bound. I spent 4+ hours getting automount to not work. Everything’s there and correct, kernel module is loaded but errors out with a strange error; the end result is “doesn’t work here, don’t do that.” I’d have to run automount on the host and then internally share the area. Nope, I wanted all of the functional information encapsulated within the container, but that’s not how they actually work.) Other things indicate this too – within a container, shares are “just magically there”, you’re not supposed to worry about them but use the data they have. That keeps them from “escaping” – LXC can bypass that but you have to enable it, and even then slopping a container with an internally mounted share basically kills the box. You MUST unload them before stopping a container.

Anyway, thanks. The Beta script works just fine, and I like how you just “extract it at the Plug-ins” and things end up in the right place. MUCH better than dropping master from hama-bundle.master. And thanks for not releasing a new version every day; I abhor that.

@cbussa I tried to make the scanner the best i could and i wish i could simplify the strings cleaning code a bit…

Hama throtles AniDB only.
There is a file caching for a week using filedates in agent data folders on top of the Plex 1 day caching…

Well i update when i change something because there was a bug…
Do you feel the latest version of the scanner is faster? i recently find a way to make it cached properly while supporting grouping folders (like you create a “dragon ball” golders with db, dbz, db gt, db super series folders inside) and using “Local” as metadata source in latest beta agent, it create a collection for that automatically…

I’ve been having an issue with the scanner where it won’t pick up new folders, i have to switch it back to the regular plex scanner to get them to be added to the library then back to ASS to get the episode names and series sorted. Some of the series episodes also aren’t being named, they just get labeled like this

and so on despite having the same naming setup as all the other shows.

The scanner give som ep title but it’s the agent job to fill it ultimately
Are you using latest beta branch scanner?
I need Plex scanner log and my scanner log

I’m using Absolute Series Scanner with Hama for my anime and is it normal that it added the series on plex with [anidb-xxxxx] at the end of the series name? I did not get any posters and the naming of episodes were not tidy. May I ask if anyone can help me figure out the right way to use the scanner?

Both readme specify that if you see the files the scanner did its job.
It is an agent issue and the agent crashed.
Are you using beta branch for both?
Please follow the readme troubleshooting steps

Am so confused because with the new season like MHA season 3 for some releasers episode 1 its 39, what should do so the track tv take it like season 3, i did a folder for the season but it still dont take it the right way.

@eskwire Trakt.tv uses TheTVDB numbering, which for My Hero Academia season 3 is:
https://www.thetvdb.com/?tab=season&seriesid=305074&seasonid=732155&lid=7

the scanner and agent are there to support anidb or tvdb numbering.
If tvdb numbering and a single season present, do force the tvdbid.

Hello. It seems like the new files that I add arent being scanned.

Need Plex scanner logs and my scanner logs

Here is the Plex Scanner log. I dont seem to have any custom logs for the Absolute Series Scanner:
ufile.io/hz1l8

Hey @Koros782, those logs indicate that you were not using the Absolute Series Scanner, but the Plex Video Files Scanner (one of the built-in scanners).

@Koros782 You did not select my scanner in your Plex library since you are using ‘Plex Video Files Scanner’

Performing a scan with 'Plex Video Files Scanner' (language: xn virtual: 0).

Please use the beta branch scanner: https://github.com/ZeroQI/Absolute-Series-Scanner/blob/Beta/Scanners/Series/Absolute%20Series%20Scanner.py

@tyblu correct, and he has a kick ass Xeon processor… The normal scanner will scan nothing…

Added the beta version and started the scan again. It seems to have added some more series but no luck with new ones. Here is the log:
ufile.io/sov7k
Recreated a new library and using these:

Added the beta version and started the scan again. It seems to have added some more series but no luck with new ones. Here is the log:
ufile.io/sov7k
Recreated a new library and using these:

Added the beta version and started the scan again. It seems to have added some more series but no luck with new ones. Here is the log:
ufile.io/sov7k
Recreated a new library and using these:

Sorry about the spam. Dunno how it got posted thrice

It seems like I finally managed to get the ASS to work properly, but the issue still persists of new series not being added:

Edit: Attachment removed by moderator on req.

Never mind the above attachment. Here is my log:

Apr 19, 2018 15:50:56.976 [0x7fb59ee29d00] ERROR - Error in Python: Running scanner:
Traceback (most recent call last):
File “/media/sdaf/pioneer782/Library/Application Support/Plex Media Server/Scanners/Series/Absolute Series Scanner.py”, line 607, in Scan
for prefix in array:
UnboundLocalError: local variable ‘array’ referenced before assignment

it crashes if files in root folders
corrected. please try new beta branch scanner