Absolute Series Scanner (for anime mainly)

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.

I recently installed Absolute Series Scanner and Hama to get my anime recognized. I created a new library and folder for it to point to containing only the animes. This seems to be working fine. But I’ve noticed that since then, my new TV shows haven’t been showing up in their library, I’m assuming the two things are related. I’ve done the plex dance a number of times and double checked the naming (most of my series come from sonarr so that handles the naming anyway and normally has no problem). Logs attached
(File removed)
Here’s a list of shows not appearing so you can look for them in the logs:
Dune (2000)
Children of Dune (2003)
Mythic Quest Raven’s Banquet (2020)

1 Like

I uninstalled ASS and Hama, deleted my series library, and then recreated it and everything showed up again. Not sure if ASS and Hama were the issue but it got fixed regardless.

Does anyone have any suggestions for my use case?

I’m trying to download the Australian Free-to-air News with youtube-dl (From ABC iView, not youtube), I use a sub-translating script so my gf can watch and understand…

I’m trying to use ASS and https://github.com/JordyAlkema/Youtube-DL-Agent.bundle together…

In the default Youtube-DL naming leads to files like this eg:

9_12_2020-NU2001H295S00.mp4
10_12_2020-NU2001H296S00.mp4

And this actually works for a bit, ASS sees it like this:
“ABC News NSW” s01e009 “Word Search” “NU2001H295S00” “9_12_2020-NU2001H295S00.mp4”
“ABC News NSW” s01e010 “Word Search” “NU2001H296S00” “10_12_2020-NU2001H296S00.mp4”

The problem is it’s using the day field for the episode so when the month wraps it’s starts creating duplicate episodes…

I tried naming them like this:
‘ABC News NSW - 2020-11-10 - NU2001H270S00.mp4’
‘ABC News NSW - 2020-11-9 - NU2001H269S00.mp4’

And this gives weird results with many different versions… It looks like it recognises the date:
year: 2020, mont: 11, day: 29, ep: 2020-11-29 - NU2030H048S00, file: /downloads/OtherTV2/Youtube/ABC News NSW/ABC News NSW - 2020-11-29 - NU2030H048S00.mp4

But then it duplicates it later like this:
“ABC News NSW” s01e010-029 (Orig: s01e010-029) “ANIDB_RX-5” “NU2001H260S00” “ABC News NSW - 2020-10-29 - NU2001H260S00.mp4”

I’m not sure what’s going on, can anyone help?

Did you force a playlist ID or channel is the unspecified series folder?

Hi guys, I think I correctly followed the Hama.bundle guide from github but Absolute Series Scanner (ASS) doesn’t find any file in plex media server.

This is the folder where I pasted the Hama.bundle folder on:

And on this other one I pasted the Absolute Serier Scanner .py file:

In plex media, if I pick the Absolute Series Scanner when creating a library,


image

it does not add a single item to my library:

image

If I edit my library and select instead the Plex Series Scanner, it load every single file from the indicated library folder. I think my video files are correctly renamed (I use FileBot and anidb matches every single file), and can’t figure out what’s the problem.

What am I missing? Did I skip any step?.

Thank you all and sorry for my bad English!.

log: Plex Media Scanner.log (12.3 KB)

1 Like

Feb 14, 2021 22:30:39.793 [1488] ERROR - Error in Python: Running scanner:
Traceback (most recent call last):
File “C:\Users\Lázaro\AppData\Local\Plex Media Server\Scanners\Series\Absolute Series Scanner.py”, line 496, in Scan
setup() # Call setup to get core info. If setup is already done, it just returns and does nothing.
File “C:\Users\Lázaro\AppData\Local\Plex Media Server\Scanners\Series\Absolute Series Scanner.py”, line 171, in setup
PLEX_ROOT = os.path.expandvars(path_location[Platform.OS.lower()] if Platform.OS.lower() in path_location else ‘~’) # Platform.OS: Windows, MacOSX, or Linux
NameError: global name ‘Platform’ is not defined

Python issue, it doesn’t know Platform… Never had the case. Because it crashes, nothing is added. Not sure how to fix…

Nah, I tried everything and repeated the full process several times, it always happens the same. what a pity, I have no clue of what to do.

I’m trying to install Absolute Series Scanner on a new Windows install. I swear I have checked, rechecked, and checked about 50 more times that I have everything set up as it is in the instructions, but the scanner won’t show up anywhere. Open to any/all suggestions on where to go next in troubleshooting.

  • Yes, the python file is a python file and it is at %APPLOCALDATA%\Plex\Plex Media Server\Scanners\Series
  • Yes, I have restarted the server
  • Yes, I have checked both the combo box for a specific TV show library and Settings > Server > Agents > Shows
  • Yes, I have checked the permissions and the currently logged in user, which is the same as the one running PMS, has access to the folder and file
  • Yes, I see three Python interpreter instances running via the task manager
  • Yes, I tried deleting the Absolute Series Scanner.py file and downloading it again, and verifying for a second time it was actually a Python file

create plex token file and report

  • Plex Media Server/X-Plex-Token.id containing the Plex token id by loggin on plex.tv/desktop, then https://plex.tv/devices.xml, it will be MediaContainer/Device … token=“xxxxxxxxxxxxxx”

Hi, I have successfully installed both Hama agent and ASS scanner. It works like a charm. I noticed that you can also decide Animes into arcs. I have read the wiki on the ASS Github page to try to understand how tvdb4 mode mapping works.

What I understand is that you need to place the TheTVDB ID next to the anime folder title:

Anime\Bleach [tvdb4-74796]

This will use the tvdb4.mapping.xml entries to devide the seasons into arcs

I know you can also create a non xml file tvdb4.mapping and set your entries there as well, and include the file in the anime folder:

Anime\Bleach [tvdb4-74796]\tvdb4.mapping

I am new to this and have been breaking my head in order to understand where I am going wrong. The mapping is not working for me. I get regular Season 1, Season 2, etc labels for my seasons.

I am not sure if the problem is in my file structure or the naming of the files:

Anime\Bleach [tvdb4-74796]\Bleach - S01E001

I have tried different variations of this. I have read a lot of the comments on forums related to tvdb4, but im not exactly sure what I am doing wrong.

Let me know what I need to share on order to get a better understanding.

Also apologies if you have already explained this and I am still missing something.

2021-02-25 15:45:01,385 - 7fb7eaffd700 - ==== common.PlexLog(file="/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-in Support/Data/com.p>
2021-02-25 15:45:01,388 - 7fb7eaffd700 - Sending packed state data (104 bytes)
2021-02-25 15:45:01,388 - 7fb7eaffd700 - Response: [200] str, 648 bytes
2021-02-25 15:45:01,432 - 7fb7eaffd700 - Handling request GET /:/plugins/com.plexapp.agents.hama/messaging/function/X0FnZW50S2l0OlVwZGF0ZU1ldGFkYXRh/Y2VyZWFsMQoxCmx>
2021-02-25 15:45:01,432 - 7fb7eaffd700 - Received packed state data (80 bytes)
2021-02-25 15:45:01,433 - 7fb7eaffd700 - Found route matching /:/plugins/com.plexapp.agents.hama/messaging/function/X0FnZW50S2l0OlVwZGF0ZU1ldGFkYXRh/Y2VyZWFsMQoxCmx>
2021-02-25 15:45:01,434 - 7fb7eaffd700 - Loading model with GUID com.plexapp.agents.hama://tvdb4-74796?lang=en
2021-02-25 15:45:01,434 - 7fb7eaffd700 - Deserializing from /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Metadata/TV Shows/2/f2bbff2ba032e>
2021-02-25 15:45:01,492 - 7fb7eaffd700 - Requesting ‘http://127.0.0.1:32400/library/metadata/25850/tree’
2021-02-25 15:45:01,501 - 7fb7eaffd700 - ==== common.PlexLog(file="/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-in Support/Data/com.p>
2021-02-25 15:45:01,639 - 7fb7eaffd700 - ERROR: TVDBid ‘74796’ is not found in posters file
2021-02-25 15:45:02,221 - 7fb7eaffd700 - Serializing to /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Metadata/TV Shows/2/f2bbff2ba032e4719>
2021-02-25 15:45:02,222 - 7fb7eaffd700 - Sending packed state data (104 bytes)
2021-02-25 15:45:02,223 - 7fb7eaffd700 - Response: [200] str, 16 bytes
2021-02-25 15:46:20,715 - 7fb7eaffd700 - Handling request GET /:/plugins/com.plexapp.agents.hama/messaging/function/X0FnZW50S2l0OlNlYXJjaA__/Y2VyZWFsMQoxCmxpc3QKMAp>
2021-02-25 15:46:20,716 - 7fb7eaffd700 - Received packed state data (80 bytes)
2021-02-25 15:46:20,717 - 7fb7eaffd700 - Found route matching /:/plugins/com.plexapp.agents.hama/messaging/function/X0FnZW50S2l0OlNlYXJjaA__/Y2VyZWFsMQoxCmxpc3QKMAp>
2021-02-25 15:46:20,717 - 7fb7eaffd700 - Searching for matches for {‘openSubtitlesHash’: ‘211bf6c4695d8f42’, ‘episode’: ‘20’, ‘name’: None, ‘episodic’: ‘1’, ‘show’:>
2021-02-25 15:46:20,746 - 7fb7eaffd700 - Requesting ‘http://127.0.0.1:32400/library/metadata/25873/tree’
2021-02-25 15:46:20,753 - 7fb7eaffd700 - ==== common.PlexLog(file="/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-in Support/Data/com.p>
2021-02-25 15:46:20,755 - 7fb7eaffd700 - Sending packed state data (104 bytes)
2021-02-25 15:46:20,756 - 7fb7eaffd700 - Response: [200] str, 648 bytes
2021-02-25 15:46:20,781 - 7fb7eaffd700 - Handling request GET /:/plugins/com.plexapp.agents.hama/messaging/function/X0FnZW50S2l0OlVwZGF0ZU1ldGFkYXRh/Y2VyZWFsMQoxCmx>
2021-02-25 15:46:20,782 - 7fb7eaffd700 - Received packed state data (80 bytes)
2021-02-25 15:46:20,783 - 7fb7eaffd700 - Found route matching /:/plugins/com.plexapp.agents.hama/messaging/function/X0FnZW50S2l0OlVwZGF0ZU1ldGFkYXRh/Y2VyZWFsMQoxCmx>
2021-02-25 15:46:20,783 - 7fb7eaffd700 - Loading model with GUID com.plexapp.agents.hama://tvdb4-74796?lang=en

we need the custom series log located in {Plex Logs folder/ASS Scanner Logs/root folder name.scanner.log

S01E001 is not absolute numbering but season numbering, try “021” it should go to season 2

I have no doubt it’s “me” that’s the issue. I’ve scoured the ASS read.me and github page, this thread, and also the youtube agent github and plex forum page as well as some reddit posts. I’ve reviewed my logs as best I could but not sure I can post them easily here. Want to start with outlining what I’m looking to do.

I’d like to grab videos from a few youtube channels. No playlists involved, would like to divide them but year if at all. My media folder is like this:

Web Shows\Spaceinvader One [UCZDfnUn74N0WeAPvMqTOrtA]\Spaceinvader One.20210401.The 2 Petabyte One Million Dollar Unraid Server.[n2CFCWtFvus].mp4

In Plex, it appears to display the channel as tv show “Spaceinvader One [UCZDfnUn74N0WeAPvMqTOrtA]” instead of just “Spaceinvader One”. No poster/thumbnail for the TV show and no description or the channel. The episodes I have are sorted correctly by year in Plex, being displayed as Season 2020 and Season 2021 and each episode displays the appropriate thumbnail and description.

I’ve done the Plex Dance and the only time I get this to seemingly work properly is when I use the Plex Series Scanner instead of ASS. I change nothing else in my folder setup, and Plex displays the channel properly without the channel id, it downloads a poster for the channel, and displays a channel description.

1.) Any way to tell me what I’m doing wrong as to why it appears to work with Plex Series Scanner but not ASS?
2.) Do I need ASS for this purpose or should I just stick with what works, Plex Series Scanner and Youtube Agent?

Thanks, I can try to include logs if need be. I’m not the best at getting them.

Please help!

Apr 09, 2021 10:53:44.398 [14524] ERROR - Error in Python: Running scanner:
Traceback (most recent call last):
  File "C:\Users\Администратор\AppData\Local\Plex Media Server\Scanners\Series\Absolute Series Scanner.py", line 487, in Scan
    setup()  # Call setup to get core info. If setup is already done, it just returns and does nothing.
  File "C:\Users\Администратор\AppData\Local\Plex Media Server\Scanners\Series\Absolute Series Scanner.py", line 159, in setup
    PLEX_ROOT = os.path.expandvars(path_location[Platform.OS.lower()] if Platform.OS.lower() in path_location else '~')  # Platform.OS:  Windows, MacOSX, or Linux
NameError: global name 'Platform' is not defined

I’m on Windows Server 2019. I’m not very good at programming. But as far as I understand, the script does not understand what OS/ platform is installed. And can’t decide where the Plex directory is located.
So i change line 159
from

PLEX_ROOT = os.path.expandvars(path_location[Platform.OS.lower()] if Platform.OS.lower() in path_location else '~')  # Platform.OS:  Windows, MacOSX, or Linux

to

PLEX_ROOT = '%LOCALAPPDATA%\\Plex Media Server'  # Platform.OS:  Windows, MacOSX, or Linux

And it helped. I apologize for editing your script without permission.

@TBoneStaek Check first if the series is showing in plex with the right title (the forced Id needs passing to the agent search function so correct) is indicated and eps detected and at the right season, then the scanner did its job… And you should have posted in the agent thread…

Look like the scanner did its job but the agent doesn’t like the brackets…

The agent didn’t match at 80% a accuracy…
So you need to look at the agent log for the search() call… It may have crashed…
Agent logs needed

The scanner adds at the right season. For youtube but series scanner will do that but no series metadata for you then since the channel I’d is dropped…

Ah, so that’s what I’ve been confused about. So the series title is correct except it’s “Spaceinvader One [UCZDfnUn74N0WeAPvMqTOrtA]” so I thought that was the scanner issue.

The two episodes are divided into their correct “seasons” 2020 and 2021 respectively and the titles load.

Just because the channel name wasn’t loading correctly, I thought that was the scanner. I’ll review the agent logs and post in the other sub if need be.

Thanks!

EDIT: Okay, so maybe I should keep the topic here for the moment. I just reviewed my plex system log and see a bunch of absolute scanner series errors.com.plexapp.system.log (111.8 KB)

The readme installation has two lines:

The system tries to load “/config/Library/Application Support/Plex Media Server/Plug-ins/Absolute-Series-Scanner.bundle”… Seem like you added the project as an agent when it is a scanner…

Can you explain what is unclear about the installation instructions in ASS so i can amend the read-me, or please refer to ‘Exhibit A’ in it, no questions asked…