Absolute Series Scanner (for anime mainly)

@ZeroQI Hi, I have tested with the latest version of ASS and recreated a library for the test.
It worked like a magic!
Thank you for your fast support.

@kojandy I am glad :)>- I spent a bit of time but wasn’t sure at all it was gonna fix. Will also not paste multiple lines if an unknown character is detected, and added full chinese character set detection (before, only dual character encoding detected). Thanks for reporting, and attaching the logs, it took one post to confirm the issue and another to have a fix developped, the code is now even better. Thanks :smiley:

Hi @ZeroQI, I appreciate the work you’ve put into this scanner and the Hama bundle.

However, I’m facing some issues organizing my anime content. Perhaps you might know a solution.

For some anime shows the episodes are being shown to be merged into one episode. The overflow option on the side doesn’t show a “split apart”. I’ll show you this example with the anime 30-sai no Hoken Taiiku (I use the Japanese title in the image).

That series is organized as follows,

- /mnt/anime/other
- - 30歳の保健体育 [anidb-8106]
- - - 30歳の保健体育 - E01 - はじめてのセック.mkv
...
- - - 30歳の保健体育 - E12 - はじめてのコンドーム.mkv

Where other is the only directory added to the library.

I’ve tried variations of organization by containing the video files in a Season 1 folder or adding S01E0x in the filenames. Each time I did the Plex Dance. Yet nothing made a difference.

Other series like Naruto Shippuden had no problem with this file structure.

I’ll post my log files.

Thank you

Did you use the version i posted 2 days ago?

My logs:

Scanner call - root: '/volume1/downloads/_Plex_Current issues', path: '30歳の保健体育 [anidb-8106]', dirs: '0', files: '3'
-------------------------------------------------------------------------------------------------------------------------------------------------------------
misc: '30歳の保健体育|s01e01|はじめてのセック|30歳の保健体育|s01e02|はじめてのディープキ|30歳の保健体育|s01e03|はじめての男子トイ'
misc_words: '[]'
"30歳の保健体育 [anidb-8106]" s0001e001 "30歳の保健体育 - S01E01 - はじめてのセック.mkv" "1"
"30歳の保健体育 [anidb-8106]" s0001e002 "30歳の保健体育 - S01E02 - はじめてのディープキ.mkv" "1"
"30歳の保健体育 [anidb-8106]" s0001e003 "30歳の保健体育 - S01E03 - はじめての男子トイ.mkv" "1"

Your logs:

Scanner call - root: '/mnt/anime/other', path: '30歳の保健体育 [anidb-8106]', dirs: '0', files: '12'
-------------------------------------------------------------------------------------------------------------------------------------------------------------
misc: 's01e01|はじめてのセック|s01e02|はじめてのディープキ|s01e03|はじめての男子トイ|s01e04|はじめてのミスブルガリ|s01e05|はじめての個室ビデ|s01e06|はじめての騎上|s01e07|はじめてのピンクロータ|s01e08|はじめての同人|s01e09|はじめてのラブホテ|s01e10|はじめての浮気|s01e11|はじめてのオナニー|s01e12|はじめてのコンドーム'
misc_words: '['30\xe6\xad\xb3\xe3\x81\xae\xe4\xbf\x9d\xe5\x81\xa5\xe4\xbd\x93\xe8\x82\xb2']'
"30歳の保健体育 [anidb-8106]" s0001e030 "30歳の保健体育 - S01E01 - はじめてのセック.mkv" "S01E01" 
"30歳の保健体育 [anidb-8106]" s0001e030 "30歳の保健体育 - S01E02 - はじめてのディープキ.mkv" "S01E02" 
"30歳の保健体育 [anidb-8106]" s0001e030 "30歳の保健体育 - S01E03 - はじめての男子トイ.mkv" "S01E03"

Yes I used the version located here

I deleted the previous test library, reinstalled the scanner, restarted the server, and created a new library with that anime show. I got the same result as before.

Here’s my logs

Hey, guys, i’ve been bashing my head against the proverbial wall for months trying to figure this out to no avail there was once a time where I just right clicked plex opened plugins folder and dropped it in the subsequent folder however that is apparently no longer the case? Dp i need to change something in the file or file name what do i need to do?

@Immortaldaul i’ve been bashing my head against the proverbial wall for months trying to figure this out to no avail there was once a time where people read the read-me, followed the install section, and if failed followed the troubleshooting section, and pasted logs or details on their first post (scanner showing in list, agent listed or not, operating system, etc…)…

@rquez thanks for the logs. Bug appeared as i added more files and impacts all asian languages with numbers in title as it cannot remove the series name from the filename due to my special character mapping function, if more than 3 files in folder so low occurence. Now resolved, uploaded to github master branch

@ZeroQI Yes its working for me now. Thanks for the help!

Hi I put this in the Scanners folder with 777 permissions and plex as owner and it’s not working.
I also tried myself as owner, and tried copying it into the plugins folder as well; not working.

I am using a Synology.

Thanks.

Why is it not in Series folder inside scanners one as the readme states then? Why is the log file stated in troubleshooting section not there.
There’s a forum post on how to install custom scanners too…

@ZeroQI - Long time no post, but I did get through all my anime finally and it is working great in Plex! I compiled all my ScudLee corrections and have submitted them to the ScudLee github issues. I’ll see if they get entered into ScudLee in a decent amount of time, and if not then I can add them to your corrections xml.

@deusxanime Excellent news! They updated it recently but had no time to see if i had to remove some of the corrections. Will try to implement a comparison to a log file when identical… i started heavy coding to separate the code in modules. it’s on pull request for now but a work in progress

Looks like someone is already going through and reviewing the ScudLee corrections, so that is a great sign. Hopefully means there will be less need for corrections files going forward. But nonetheless I’m sure there will also be a need for local override for stuff that is wrong/not fixed yet, new things, and being able to map stuff to episodes above 5XX for oddball things, so thanks much for coding in that ability!

@deusxanime just implemented the same support locally. maybe if followed through will remove the correction file online but need to monitor for some time
the recoding moved forward, code in essence isn’t that different but moving everything is time consuming. have a look at the common module and init file on pull request, took loads of efforts to make them simpler

I apologize in advance if I’m missing something simple, but I cannot get One Piece with seasons the way I wanted. I’m using HAMA and ASS for my Anime Library.

So first of all, my folder structure is the following: D:\Anime\One Piece\One Piece - XXX.ext. If I don’t do anything, all my episodes stay in season 1 in Plex, with absolute number order. What I want is having the TVDB seasons with absolute order, something like Season 1 > Episode 001, Season 2 > Episode 70…

I read the read-me and what I want is the tvdb3 naming on the folder, so I did that, I even deleted my library and redo it, but even with [tvdb3-81797] on the folder name, all my episodes are on season 1. PMS Log says this:

folder_show: ‘One Piece [tvdb3-81797]’, folder_season: ‘None’, tvdb mode: ‘3’, tvdb id: ‘81797’
TVDB season mode (3) enabled, serie url: ‘http://thetvdb.com/api/A27AD9BE0DA63333/series/81797/all/en.xml
different abs number found on ep (s16e12) after starting to manually place our own abs numbers. all episodes will be added as season 1.

So I tried [tvdb4-81797] without any mapping file and well it did separate episodes by season but I don’t like the season separation that it makes, (last episodes are season 20), so I made a mapping file (One Piece [tvdb4-81797] vdb4.mapping) with the following content:

01|001|061|East Blue
02|062|135|Alabasta
03|136|206|Sky Island
04|207|325|Water 7
05|326|384|Thriller Bark
06|385|516|Summit War
07|517|574|Fishman Island
08|575|746|Dressrosa
09|747|800|Yonko

After deleting and redoing my library, still every episode on season 1. So I’m out of ideas, I prefer the tvdb3 method so it can grab the season posters from tvdb for each season, but I can’t seem to be able to work with tvdb3 and tvdb4 with custom mapping.

@IppoKun87 You seem to have researched fairly the issue…

https://raw.githubusercontent.com/ScudLee/anime-lists/master/anime-list-master.xml

<anime anidbid="69" tvdbid="81797" defaulttvdbseason="a" episodeoffset="" tmdbid="" imdbid="">
    <name>One Piece</name>
    <mapping-list>
      <mapping anidbseason="0" tvdbseason="0">;1-3;2-9;3-10;4-14;5-28;6-0;7-0;8-0;9-0;10-0;11-0;12-0;13-0;14-0;15-0;16-23;17-24;18-29;19-30;20-32;21-31;22-33;23-35;</mapping>
    </mapping-list>
  </anime>

“different abs number found on ep (s16e12) after starting to manually place our own abs numbers. all episodes will be added as season 1.” that means the absolute mode is broken… As workarounds, you could:

  • fix absolute numbered episodes in thetvdb
  • put a file “anime-list-custom.xml” in the series folder or root (ANIDB_TVDB_MAPPING_CUSTOM variable) and override defaulttvdbseason=“0” and map each season separately. use the same structure as anime-list-master.xml, do not remove levels of XML tags
  • put absolutely numbered episodes in Season folders manually, that works too

for the tvdb4 mapping it fails the if test:

if os.path.isfile(os.path.join(root, path, "tvdb4.mapping")):  tvdb4_mapping_content = open(os.path.join(root, path, "tvdb4.mapping")).read().strip()

Filelist show the path relative to root; One Piece [tvdb4-81797] vdb4.mapping so cannot explain.

https://raw.githubusercontent.com/ZeroQI/Absolute-Series-Scanner/master/tvdb4.mapping.xml

  <anime tvdbid="81797" name="One Piece">
    01|001|061|East Blue
    02|062|077|Entering into the Grand Line
    03|078|092|Introducing Chopper at the Winter Island
    04|093|130|Arrival and Fierce Fighting at Alabasta
    05|131|143|TV Original
    06|144|195|Sky Island Skypiea / Golden Bell
    07|196|228|Escape! The Naval Fortress and The Foxy Pirate Crew
    08|229|263|Water Seven
    09|264|335|Enies Lobby
    10|337|381|Thriller Bark
    11|382|405|Sabaody Archipelago
    12|408|421|Island of Women
    13|422|458|Impel Down
    14|459|516|Marineford
    15|517|573|Fishman Island
    16|574|628|Punk Hazard
    17|629|746|Dressrosa
    18|747|750|Silver Mine Arc
    19|751|751|Zou Arc (Currently Airing)
  </anime>

Am deep into a complete major overall of HAMA so will takes a bit of time before i dive back into the scanner

I gave up on the tvdb4 method, so I went back to tvdb3 and I separate the files in season folders manually as you mention, but the thing is, all these seasons on plex don’t have any posters/background downloaded from thetvdb, any way I can fix this? Only the main “One Piece” library has posters/backgrounds, not the individual seasons.

I’m sorry for the a bit offtopic, further info for my above message, images are downloaded by HAMA, it seems plex doesn’t recognize them at all/associate them with the seasons in plex.

agent issue due to plex