Absolute Series Scanner (for anime mainly)

First of all kudos! This looks very promising  :)

As Im quite new here, it took me some time to find this gem between the other scanners. I have 1 question though:

How do I properly season animes with explicit season names? Example:

Darker than Black

My current folder structure is like this:

Darker than Black

  • season 01
    • Darker than Black - Kuro no Keiyakusha
      • [Subgroup]_Darker_than_Black_01_(Resolution)_[Hash]
      • ...
  • season 02
    • Darker than Black - Ryuusei no Gemini
      • [Subgroup]_Darker_than_Black_-_Ryuusei_no_Gemini_01_(Resolution)_[Hash]
      • ...

As I want different plot summaries/posters/etc for both seasons, this structure intuitively made sense to me. The result however is that it is not seasoned at all and everything is labeled as 'Special'.

How do I do this?

edit: if I use the usual naming convention (showname -> season xx -> "showname - sxxeyy") it is divided in seasons but I lose all season specific information...

edit2: Found a little bug(?) -> Endings are titled "Episode 150[/1/2/3/...]", this works perfectly with openings though... 

Example: Nisemonogatari_ED2 = Episode 152

while       Nisemonogatari_OP2 = Opening 2

Hi,

edit2 answer: Because episodes needs a number, i translate openings in s0e10x... and endings in s0e15x, and that gets translated back into the anidb titles and that work well except i didn't amend HAMA to handle endings...I put that in the todo list for the agent..

edit1 question:  "but I lose all season specific information..."... you mean the serie name ?

Currently with HAMA as agent, it would scrub the first season with anidb, and the second with thetvdb, but i will amend HAMA shortly to use tvdb mode when a season 2 is present

For the folders, i put it the most permissive i could, and it even handles non absolute mode folders (with seasons) however only ep folders are meant to be after the season folder... the way you did should be handles as two separate distinct anidb series but the fact you use seasons indicate possibly you use tvdb agent... I recommend the following then:

Darker than Black
   . season 01 - Darker than Black - Kuro no Keiyakusha
        - [Subgroup]_Darker_than_Black_01_(Resolution)_[Hash]
   . season 02 - Darker than Black - Ryuusei no Gemini
        - [Subgroup]_Darker_than_Black_-_Ryuusei_no_Gemini_01_(Resolution)_[Hash]

Hello.

I'm new in this whole Plex system and have scanner problem with my anime library.  

Using PMS in Win 7 platform and watching by WD TV Live gen3...

Quite common problem over 100+ episode like Fairy Tail etc.

I haven't tried yet this ASS or ABS or B-ABS or S-BABS scanner but will if I'm reading install guide right... :)   ASS for anime or else??

I installed hama.bundle and selected in Anime folder settings use hama for info but was using just plex scanner.. stopped at 100 and didn't show over 100 ep and understand that reason was Plex scanner.

I will info if I can get this ASS to work but i'm little lost about installation guides like in S-BAS: You will need to include a tvdb.id file in the anime folder which contains the ID of the anime (where it greates the Anime folder exactly? Does this means the folder I created in plex  new tv-show -->new folder Anime ?)

Sorry my English I'm Finnish :)

S-BABS use absolute numbering but give TVDB type season numbering so need to use thetvdb.com agent, and tvdb.id files otherwise behave like BABS. For absolute numbering, BABS was the best until my ASS came.

The latests few HAMA agent release are packaged with my ASS, the only thing that may be necessary is to edit the Absolute Sereis Scanner to point towards an absolute path for logs, but apparently is ok on windows.

The package contain all folders as they should be relative to each other, otherwise you can learn how to install a custom scanner here: https://forums.plex.tv/topic/19396-how-to-install-a-custom-scanner/

Please indicate if you see the the custom logs from the scanner and your OS.

You can even create two libraries, and install babs and my agent to compare, so you can confirm my ASS (Absolute Series Scanner) is the best. i have very little feedback so please let me know of any issues.

Yesterday I installed sooo many scanners i could find (ASS, ABS, B-ABS,S-BABS) :blink:  Also hama.bundle files from your page. Then made test folder and added few anime folders to check if these works. Atleast all scanners got working right somehow.

My problem is that anime Fairy Tail (FT) isn't getting info on hama and Plex get's 100 right but episode 14 is 114 etc.. The naming of these FT is: Fairy Tail episode 01.mkv   etc.. is this right/good?  Also sometimes scanners makes couple of folders of FT and these have randomly 1-3 files of the series like episode 131 (find out that this 131 was named with E on Episode when rest where with little e..?)  Why?

And sometimes it when i tried to scan files but none of them shows on plex..they just disappeared.. had to install new test folder, add anime and then it works.. maybe reason was that didn't get info from place on internet? also Hama failed sometimes.

How/where do I install tvdb.id ? I got one from https://forums.plex.tv/topic/109441-series-better-absolute-scanner-s-babs/ and it has FT mentioned so maybe this get's my library right.

S-BABS says that you will need to include a tvdb.id file in the anime folder which contains the ID of the anime (which you obtain from TVDB)  don't understand !!  Does Plex create an folder named anime somewhere when I create TV-shows anime and I should also find folder named test while i'm trying to test these things?

First:

   . The scanner decide if the file shows in plex, and decide the ep number and season number from the filename

   . The Agent populate that episode/serie/season with the metadata. it cannot remove or add fiels into plex

On Plex, you created a virtual folder which Plex calls "Library". This does not get created on your disk.

Which agent and scanner did you select? 

(i recommend two folders for tests, like "Anime ASS" and "Anime BABS" and assign the corresponding scanner and HAMA as agent)

S-BABS needs a file tvdb.id containing the tvdbid. it is the id present in the url. For fairy tell it's 114801 [http://thetvdb.com/?tab=series&id=114801&lid=7]. if you use S-BABS, that means you will use thetvdb agent since it will have seasons numbering, so you will not use my scanner nor my agent.

I made a package with both my scanner (which is the only one to do custom logs), and my agent

Are you using "HAMA + Absolute Series Scanner 2014-08-10 14h27.zip " ? because "your page" isn't very precise to check you have latest version...

 
you choose ask questions in a developper forum about a scanner i didn't write (BABS, S-BABS) when each have their dedicate page....

I will not troubleshoot other people scanners and agents when i created mine, and it has custom logs to answer this very questions...

Please post S-BABS queries on S-BABS thread. Please post my scanner custom logs for further support:

   . "Plex Media Scanner Custom.log"

   . "Plex Media Scanner Custom - Skipped files.log"

ZeroQI,

So I'm trying to edit my copy of ASS to pick up a different numbering scheme that a few of the animes I've run across use. Now, I'm new to Python, but I spent the 30 minutes I needed to write up a regex to properly identify the names. I tested it against pythonregex.com, and it picked up everything fine.

I dropped this at the end of episode_re_search

  '(?P.*?)[\[\-](?P[0-9]+)[\._\- ]+(?P[0-9]+)'                                        # [1-01]

Now, my issue is that it isn't picking up the episodes still for some reason. Below is an example of the episode names, so maybe you'll be able to figure out what I've done wrong.

Big O [1-01] Roger the Negotiator.mkv

Big O [1-02] Dorothy Dorothy.mkv

Big O [1-03] Electric City.mkv

What's also odd is that a couple episodes are being picked up by the old regex searches, but they're not categorized correctly.

Big O [1-11] Daemonseed.mkv and Big O [2-10] Twisted Memories.mkv show up as Episode 151

Any help you could provide would be appreciated. The simple solution is for me to renumber the series, but I was hoping to come up with a script based solution so I don't have to make a habit of renaming series in the future.

Since you documented properly and replied on the right thread, i will do my best to answer but am not the best at regex

"[...]" defines a range of chars, doesn't make sense to put "\[\-](?P[0-9]+)[\._\- " in it.

Start from S03-03 and replace "S" by "[", remove the other split chars if needed, and add "]" at the end still managing for episode title at the end

episode_re_search = [ ### Episode search ###
'(?P.*?)[sS](?P[0-9]+)[\._ ]*[eE](?P[0-9]+)([- ]?[Ee+](?P[0-9]+))?', #S03E04-E05
'(?P.*?)[sS](?P[0-9]{2})[\._\- ]+(?P[0-9]+)', #S03-03
'(?P.*?)([^0-9]|^)(?P[0-9]{1,2})[Xx](?P[0-9]+)(-[0-9]+[Xx](?P[0-9]+))?', #3x03
'(?P.*?)\[(?P[0-9]{1,2})[\._\- ](?P[0-9]{1,3})\](.*)' #[3-04]
]

([\._\- ] could be replaced with "-" in this case). Currently supports separators [._- ] in the brackets to separate ep and season

Do not forget the comma at the end of the last regex before you add you line(all lines but the last one needs an ending comma)

it's the presence of the O that matches the AniDB "Other" numbering (O1,...Oxx). I will need to ammend that to include it only if followed by a number

Appreciate the response ZeroQI. Unfortunately that didn't resolve the issue. The episodes still aren't being picked up.

My guess at this point is that wherever in the script it IS picking up those few episodes erroneously, it's stopping at that point and not continuing to try the other regex's.

Also, I believe I found an error in your script as I was glancing over it. Line 285, when it goes to check if there are better matches other than just a date, it's referencing old functions. I'm guessing when you adapted this section from BABS, you forgot to change it.

I think I'm going to start learning some Python and see if I can't help work out this issue.

sorry didn't got around to check check... The code should be the most readable among all the scanners (because i couldn't understand most of them)...

Please post my scanner custom logs. if not created, please put direct path in log function and check you have write permission in htat folder

   . "Plex Media Scanner Custom.log"

   . "Plex Media Scanner Custom - Skipped files.log"

I put in the combo zip file, but I dont see the 'Plex*Custom.log' file anywhere? Here is my Plex Media Scanner if that helps after I deleted the previous log files to create a new one

Hi,

I really like HAMA + Absolute Series Scanner, because I didnt want to use the TVDB numbering system for my animes.

It works very well but I am running into an issue that I dont know how to solve.

This is related to a multi episode in a file.

I would like to avoid the TVDB way of having Name.S01EXXEYY or S01EXX-EYY.

My file right now is named like this

[Group]_Name_Number1_Number2.extension

How can I do that ?

How does the Absolute Series Scanner handle multiepisodes in one file ?

@ShadowBlade72: if something matches, it doesn't try the rest... which is why the order is important at times, the most permissive must be last

@Mehdroid: you will need to edit the scanner code to enter a full path to be able to save said logs. i can see normal scanner logs... what's your issue? is there anything wrong i need to look for ?

@starbetrayer:

https://oldwiki.plexapp.com/index.php?title=Media_Naming_and_Organization_Guide#Multiple_Episodes_in_One_File

ShowName - sXXeYY-eZZ.ext is the plex documented convention... If you want to edit the regex, duplicate the part that has the comment "S03E04-E05" and modify it it would work, please share back then  and i would include if it doesn't disrupt other regex...

episode_re_search             = [                                                                       ### Episode search ###  '(?P.*?)[sS](?P[0-9]+)[\._ ]*[eE](?P[0-9]+)([- ]?[Ee+](?P[0-9]+))?',      # S03E04-E05
  '(?P.*?)[sS](?P[0-9]{2})[\._\- ]+(?P[0-9]+)',                                       # S03-03
  '(?P.*?)([^0-9]|^)(?P[0-9]{1,2})[Xx](?P[0-9]+)(-[0-9]+[Xx](?P[0-9]+))?'   # 3x03
  ]                     

                                                                                

No issue, I am unsure on how to set the paths in the log function for the custom logs. Basically I do not know how to set the paths. researching currently. I wanted to at least post a log you  were asking for

Easy Question: I should remove the # from the Windows line and update the path to match my machine...?

@ZeroQI,

I know a bit about programming, but where is the regex ?

What file is it in ?

Scanner/Series/xxxxx.py … only one file for scanner only one file for agent… you cannot miss it if you open the zip…

I re-read your posts about creating the path....

Only thing is that My Custom Scan Log has no data attached. i will re-re-read your posts again

the custom log look like mine but nothing in it, looks like the files were already scanned at that point so weren't treated by the scanner again (they are processed once only). that log would give all the info of what is included or not.

Please re-create a library adding the folders with the issues and copy "com.plexapp.agents.hama.log" and "Plex Media Scanner Custom.log" after letting it look for metadata, and i shall see anything wrong. there is just no error or anything wrong i cna see in logs provided

the custom log look like mine but nothing in it, looks like the files were already scanned at that point so weren't treated by the scanner again (they are processed once only). that log would give all the info of what is included or not.

Please re-create a library adding the folders with the issues and copy "com.plexapp.agents.hama.log" and "Plex Media Scanner Custom.log" after letting it look for metadata, and i shall see anything wrong. there is just no error or anything wrong i cna see in logs provide

Amazing. I only had one missed episode - Ghost in the Shell - Arise. 

I love how the "Plex Media Scanner Custom.log" present what is scanned now.... Makes it easier to troubleshoot...

Logs looks good to me... Anything i should see there ?

look line there is no separator around serie name in file name '[AnimeRush.tv]GHOST_IN_THE_SHELL_ARISE_2[720].mp4'. will look into that when i can