[Rel] HTTP Anidb Metadata Agent (HAMA)

@saitoh183 said:

@ZeroQI said:
@saitoh183: got it the 170 and 171 are skipped. anything with 170 or 171 in other titles ? you have the filelist generated by the scanner so i can reproduce ?
Naruto Shippuden - 170 - Big Adventure! Search for the Fourth Hokages Legacy - Part 1 [HorribleSubs].mkv Naruto Shippuden - 171 - Big Adventure! Search for the Fourth Hokages Legacy - Part 2 [HorribleSubs].mkv

@ZeroQI

Here is a list. Its not the latest but it containts the files

@ZeroQI
did you get my File list?

I did will try to at the week end or at work but very busy atm and playing
destiny with friends back home all evening. I willl get to it. Just
replying on my phone queries atm

@ZeroQI said:
It is an anidb and tvdb agent.
Anidb doesn’t have summaries for episodes so i map the anidb eps to tvdb
using mapping files. If tvdb doesn’t have it, which metadata source with an
api have them?
Let me know which range of eps don’t have a summary and i will check but
indicate your season nuber and ep number in plex, as it should work.

Well, when it comes to long shows like Naruto Shippuuden and One Piece, the episodes are not placed into seasons etc. The episodes are numbered from, say, 1-700. TVDB separates episodes by seasons. I thought this agent would alleviate the issue with seasons?

Define ā€œthe issue with seasonsā€ā€¦
It shows eps as they are on hdd like every other agent.

Want virtual seasons on plex?
Add " [tvdb-79824]" to naruto shippuden folder name or 79824 to tvdb.id
file on Extras or root folder and it will use tvdb/season numbering on
absolute numbering series.

Saitoh, i changed so much the algorythm that i loose track… Do you mean the latest version of the scanner is always more precise than the alpha for the episode number bug you suffered? If so will merge code.

Here is the to-do list:

Scanner:
. File skipped to check
. Ignore grouping folders, they will need to be added explicitelly as another folder
. Saitoh’s bug. Using JMM should work flawlessly.
. Allow hybrid numbering? That’s absolute ep numbers in seasons… already support tvdb numbering by indicating tvdbid…
. Media stubs? Usefull? How do you even create them?

Agent:
. Anidb genre not pulled
. ep title missing after episode 1

uploaded new alpha scanner version
Please test. grouping folders need to be added separately in the library (eg /anime, /anime/ad police, anime/dragon ball) so you add folders with the series directly inside now

@ZeroQI said:
uploaded new alpha scanner version
Please test. grouping folders need to be added separately in the library (eg /anime, /anime/ad police, anime/dragon ball) so you add folders with the series directly inside now

By grouping you mean dragon ball and within I have dragon ball z folder and dragon ball gt folder?

I will give the new scanner a go as soon as i can.

@ZeroQI said:
uploaded new alpha scanner version
Please test. grouping folders need to be added separately in the library (eg /anime, /anime/ad police, anime/dragon ball) so you add folders with the series directly inside now

Is alpha now on Git?

@ZeroQI

I dont know if it is a small fix but could you make log generation follow the plex log location. I dont have my plex installed in the default location and my Plex folder with all the logs are on another drive but the logs for ASS still generate in the default installation location of plex.

Alpha was an update of the normal that didn’t support .plexignore anymore but supported plex caching better and showed what was being scanned in overlay. That is the one i have updated. Plex allow one serie per folder at root even if separated and i had to add these during the root call. I removed some of the calls in alpha to be done in their respective folder scanner call. Now it is proper.

For the logs i ceate my own logs and put it un the same folders by having a list of default locations so your old location still exist. What is your logs folder path? If too custom won’t add it. You have no variable to path folder from the scanner so it’s tricky and my scanner is one of the only doing it…

@ZeroQI said:
uploaded new alpha scanner version
Please test. grouping folders need to be added separately in the library (eg /anime, /anime/ad police, anime/dragon ball) so you add folders with the series directly inside now

@ZeroQI

All my problem eps seem to be fixed except

Death Note - 36 - 1.28 [TSR].mkv which is being reported as eps 28

@ZeroQI said:

For the logs i ceate my own logs and put it un the same folders by having a list of default locations so your old location still exist. What is your logs folder path? If too custom won’t add it. You have no variable to path folder from the scanner so it’s tricky and my scanner is one of the only doing it…

I dont have a custom path per say… i just go into the Server settings of plex and i set the ā€œThe path where local application data is storedā€ to another location so all the logs follow but not yours…yours stay in the plex default path

@saitoh183 said:

@ZeroQI said:
uploaded new alpha scanner version
Please test. grouping folders need to be added separately in the library (eg /anime, /anime/ad police, anime/dragon ball) so you add folders with the series directly inside now

@ZeroQI

All my problem eps seem to be fixed except

Death Note - 36 - 1.28 [TSR].mkv which is being reported as eps 28

Another one that appeared using the new scanner

Attack on Titan - 01 - To You, 2000 Years in the Future - The Fall of Zhiganshina (1) [EveTaku].mkv

Custom path = not default, modified manually.
What is the full path to your kogs folder? I can add it to the scanner

I also need the scanner code that works for you. Is that the latest non alpha? Gonna reuse the algorythm from that tge best working one since it works best and each change change can change something else

@ZeroQI said:
Custom path = not default, modified manually.
What is the full path to your kogs folder? I can add it to the scanner
P:\Data\plex media center\logs

So just changing the location moved the entire plex media center folder there… Not just the logs. So I found it odd that scanner doesn’t follow.

@ZeroQI said:
I also need the scanner code that works for you. Is that the latest non alpha? Gonna reuse the algorythm from that tge best working one since it works best and each change change can change something else

I did test with my test folder and it seemed to work fine but when i actually used my real library, it failed to make the proper changes. I even wiped my old library and recreated it from scratch.All the shows i mentionned in previous post did not fix themselves… Look at the Animetest log to see the ones I added that work and the check the other log to see that it didn’t work. I’m using the latest alpha that you said to try out. The non alpha scanner didn’t have this problem but had my previous problem of not picking up new content… That you fixed in alpha. So I don’t think I kept that scanner file but I can check

@saitoh183 said:

@ZeroQI said:
I also need the scanner code that works for you. Is that the latest non alpha? Gonna reuse the algorythm from that tge best working one since it works best and each change change can change something else

I did test with my test folder and it seemed to work fine but when i actually used my real library, it failed to make the proper changes. I even wiped my old library and recreated it from scratch.All the shows i mentionned in previous post did not fix themselves… Look at the Animetest log to see the ones I added that work and the check the other log to see that it didn’t work. I’m using the latest alpha that you said to try out. The non alpha scanner didn’t have this problem but had my previous problem of not picking up new content… That you fixed in alpha. So I don’t think I kept that scanner file but I can check

Yup wiping and starting fresh broke everything…for example, Fairy tail 2014 detects as Fairy Tail 2009 (even if i manually selected Fairy tail 2014 and it creates 12 eps as season 2014 and the rest under season 1 …Note i do not have season folders. and all the series i had problems with in the past are all back…fate stay night unlimited blade works…

Also for some reason filelist isnt being generated when i scan

@ZeroQI

Here is the Scanner.py that named things right but that started to fail to scan new content in. Maybe you will find what changes you had made that did make the scanning go wrong when other numbers and certain key words were present

Saitoh, you need to add in the path list P:\data\Logs first so it maps.
if you had removed the logs folder in hte original place, it would have used user folder by default but because it exists, it uses it. there is no mechanish in the scanner to just use the plex logs folder…

Thanks for that, will use the logic from that one in latest scanner so all should be good

Well i am looking at this and the algorithm is hte exact same…
Some variable alternate between full path and variable path so will need to check that

Ok… And how about the generation of the file list?

you need to add in the path list P:\data\Logs first so it maps:

LOG_PATHS = { ā€˜win32’: [ ā€˜P:\data\Plex Media Server\Logs’,
ā€˜%LOCALAPPDATA%\Plex Media Server\Logs’, # Windows Vista/7/8
ā€˜%USERPROFILE%\Local Settings\Application Data\Plex Media Server\Logs’ ], # Windows XP, 2003, Home Server
ā€˜%USERPROFILE%\Local Settings\Application Data\Plex Media Server\Logs’ ], # Windows XP, 2003, Home Server

it will check the path exists in order and take the first one normally.

@ZeroQI said:
you need to add in the path list P:\data\Logs first so it maps:

LOG_PATHS = { ā€˜win32’: [ ā€˜P:\data\Plex Media Server\Logs’,
ā€˜%LOCALAPPDATA%\Plex Media Server\Logs’, # Windows Vista/7/8
ā€˜%USERPROFILE%\Local Settings\Application Data\Plex Media Server\Logs’ ], # Windows XP, 2003, Home Server
ā€˜%USERPROFILE%\Local Settings\Application Data\Plex Media Server\Logs’ ], # Windows XP, 2003, Home Server

it will check the path exists in order and take the first one normally.

cool…will try that when i get home