Absolute Series Scanner (for anime mainly)

You named the file “tvdb.mapping0” and not “tvdb.mapping” and use tvdb and not tvdb4. I give up… please read the readme over… all is explained…
Also the eps don’t END in a single season if they were not in seasons to begin with, they STAY in a single season. Only tvdb4 support arcs as season…

Logs from what I just did, I made a tvdb.mapping file using

"tvdb.mapping" with:
01|001|014|Battle of Gods Arc
02|015|027|Resurrection 'F' Arc
03|028|041|Universe 6 Arc
04|042|042|Future Trunks Arc (Still airing)

Result was one giant season still, Of course I deleted the “tvdb.mapping with”

@ZeroQI said:
You named the file “tvdb.mapping0” and not “tvdb.mapping” and use tvdb and not tvdb4. I give up… please read the readme over… all is explained…
Also the eps don’t END in a single season if they were not in seasons to begin with, they STAY in a single season. Only tvdb4 support arcs as season…

Alright, So I cant use a number at the end of “tvdb.mapping” I didn’t know that, And I also didn’t know I needed to keep the 4 at the end of tvdb, Let me try again.

Know all of this let me see if this works. If it does then thank you for your help.

Edit

I just tried with tvdb3.mapping, and it still came up as one giant season, Also what do you mean by this

Also the eps don’t END in a single season if they were not in seasons to begin with, they STAY in a single season.

Here are the most recent logs. I thought that I got everything you said correct. Just to make sure, You’re sure that I can delete the [tvdb-295068] from the folder name right?

Edit 2 For Dragon Ball Super I just put the episodes back in to their own season folders, I gave up trying to do it with the mapping file.

Thanks to your tenacity, i checked the source and read-me again and notice it was wrong for the mapping filename, it is “tvdb4.mapping” and not “tvdb.mapping”. I have amended the read-me already…

Since you want sagas as seasons, you need tvdb4 mode, which need to be forced on the serie folder name.
For DB Super, the series folder need to be “Dragon Ball Super [tvdb4-295068]” and will look:

So the whole path look like that: '‘I:\Anime\Dragon Ball Super [tvdb4-295068] vdb4.mapping’

My persistence pays off, Thanks for looking into my problem in more detail.

Much Appreciated.

I am having some difficulty with my tvdb4 entries. One Piece is the one I have been most focused on. I have done individual folders for each season, of which I have 28 currently mostly by arc. Each of my custom posters with the arc names comes up but none of the metadata for the episodes is correct. Episode 1-8 go in fine as that is the same as the tvdb listing. Then at absolute number 9 (which is in the season 2 folder) I get the metadata for tvdb s02e09 instead of s02e01, which is absolute number 9. I have tried everything i can think of but cannot resolve this issue.

edit: Just wanted to mention that I just had to do a windows reinstall and prior to that this was working great episode metadata and everything. I think I have done everything exactly the same but any help is appreciated to get it working again

ayyar: A question though, why not using a local tvdb4.mapping file in the serie folder, you wouldn’t have to move the file into seasons?

Your episodes end up in the right season and ep number so the scanner is ok and it’s an agent issue.
If you used latest version from yesterday, i think i know where it is failing since i fixed another issue. Will look at it today

Well folders just seemed easier to me. Plus with One Piece in particular i have 750 episodes, 28 custom season posters, the main poster, fanart, etc ( i like to keep things local) so its easier to keep everything organized this way in my opinion.

I don’t remember what version I was using before, but i re-downloaded everything and set it back up after my reinstall so what i’m using now should be up to date as of yesterday.

Try agent code on pull request, it should work

It still didn’t work for me. Not a hundred percent sure I was doing it right though. i took the zeroqi patch 2 and downloaded that as a zip. then installed it in the plug ins folder. nothing had visibly changed though at least for my cases.

However I was able to solve the issue when I remembered I had an older version on my laptops server. Subbed in that hama-bundle for the existing one and everything is displaying just fine again. Thanks for all your work though, I hope you can figure out what happened.

Not adding new files again.

edit:

Absolute Series Scanner.py file was corrupted. Attached the messed up file as well, maybe you can figure out wtf is going on.

The file inside the rar is github Absolute Series Scanner html file page, not the scanner file itself.
The only possibility is that it was saved wrong from the web page, right click save apparently.

There is a crash error but no code error. Seem like a runtime missing… Requirements must have changed with plex server update…

@ZeroQI said:
The file inside the rar is github Absolute Series Scanner html file page, not the scanner file itself.
The only possibility is that it was saved wrong from the web page, right click save apparently.

There is a crash error but no code error. Seem like a runtime missing… Requirements must have changed with plex server update…

While I do agree that it appears to be an html file saved as a .py file, I can confirm 100% that I did NOT “right click save” the file. I HAD done so, the scanner would have been broken immediately as soon as I did that. The scanner worked for ~72 hours after I updated it with no issues before suddenly ceasing to add new files to the library, which is a strong indication that the file I saved/downloaded was the proper file, and at some point AFTER that it was overwritten.

@aroth.khashar i did save your copy of the scanner as html, opened and the link at the top right when you over is aroth-khashar so it is a saved page from your pc with you logged in, but could be from plex.

I did save the page with chrome but no quadruple empty lines and no:
<head prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# object: http://ogp.me/ns/object# article: http://ogp.me/ns/article# profile: http://ogp.me/ns/profile#">

i did save with internet explorer and the line ogp something was there but also:

i believe this was saved from your machine, but never seen anythign write into plex folders like that. i thought about a url pasted in unsupported appstore for the scanner, but it just didn’t work when tried

can you right click save with the browser you logged on github under and compare the pages?
If they differ, for example the absence of “<!-- saved from url=” tags, then your pc (plex) would have downloaded directly, otherwise, it was downloaded from your browser, and i would consider a human error as you loged in means the cookies in the browser used were there for login, which plex should not have had if downloading directly…

Thanks for saving the file, you are the only one that did post it corrupted, i just tried my best to root cause what could have happened…

I did a powershell script on windows for scanner and agent to update with a single click even if the plex server itself is running on a NAS. Please let me know any remaining bug for scanner or agent remaining.

I’m having problems getting my files to scan properly. If I have 10 episodes in a series then I have my folder set up as “Anime//<season 1>/<episode s##e##>” with all episodes being in the “season” folder.

But your scanner is picking it up and saying I have 10 instances of a single episode. It shows an orange 1 on the series poster meaning it has one unwatched episode, and then if I go into the season it has a blue 10 meaning there are 10 instances of the same episode. Every single anime series I have is doing this.

Parenthesis are for years, remove them
This is not a proper naming convention.
This is bad and you should feel bad.

You could edit the regex for s0xexx but without custom log (just have the filelist) log i don’t know if it reach even the regex…

New issue:
I have the following structure:
/Hibike! Euphonium/Season 2/Hibike! Euphonium S2 - 01 [1080p].mkv
/Hibike! Euphonium/Season 2/tvdb.id
/Hibike! Euphonium/tvdb.id

inside Season 2/tvdb.id is [tvdb2-289884-s2]
inside /tvdb.id is [tvdb2-289884]

Instead of reading the episode as s2e01, it reads it as s0e02.
removing ‘S2’ from the filename fixes the issue.

Looks like this regex is causing the issue:

‘(^|(?P.?)[ _.-]+)S ?(?P\d{1,2}) ?(?P.)$’] # 12 # 001-099 Specials #‘S’ moved to the end to make sure season strings are not caught in prev regex

The read-me states: In guid_type.id inside serie folder with the id in it (ex: tvdb.id file with tvdbid “114801” without double quotes in it).
If you do not fint it explicit please provide an alternate wording.

  • “Season 2/tvdb.id” file is not inside the serie folder directly, so it is not loaded
  • “Hibike! Euphonium/tvdb.id” is is serie folder so it would have been used if the file contained: “289884” and not “[tvdb2-289884]”…

Anidb label specials table is in the readme and below:

Type Internal letter Episode number
Specials S Episodes 001-100
OPs C Episodes 101-150
EDs C Episodes 151-200
Trailers T Episodes 201-300
OPs/EDs P Episodes 301-400
Others O Episodes 401-500
unmapped Episodes 501-600
If i fix it for you i might break anidb labeled specials in same folder as serie eps, which is pretty popular i believe on nyatorrent downloads...

Will see if i can remove s2 when eps in season folder
lines 433-435 are meant to filter that
if folder_season > 1: #
for prefix in ("%s s%d" % (folder_show, folder_season), “%s s%02d” % (folder_show, folder_season)): #"%s %d " % (folder_show, folder_season),
if ep.lower().startswith(prefix.lower()): ep = replace_insensitive(ep, prefix , “”).lstrip() # Series S2 like transformers (bad naming) # Serie S2 in season folder, Anidb specials regex doesn’t like

Hi,

I need a little help again, i want to ignore some file, but it wont work:
“IGNORE_FILES_RX = [ ‘Creditless *’, ‘Creditless *’, ‘(Creditless *)’, ‘(Creditless *)’, ‘Creditless ED’, ‘Creditless OP’, ‘(Creditless ED)’, ‘(Creditless OP)’, ‘[-._ ]sample’, ‘sample[-._ ]’, ‘-Recap.’, ‘OST’, ‘soundtrack’, ‘Thumbs.db’, ‘.plexignore’] # Skipped files (samples, trailers)”
So i want to ignore files that containes this in their name: Creditless ED and Creditless OP
After that some times have numbers like this: Creditless ED1, Creditless OP4

What can i do?