Closed wwkimball closed 5 years ago
Hey i googled and find many people wanting to earn money without working, therefore it is reasonable... Your argument is a fallacy but some or your expectations can be met.
1 - Plex can use collections to group items together and hide items in collections so they are shown once only 2 - anidb3 mode can help puting series and movies in order but there is no play order in plex i can manipulate so the numbering has to be altered to play in order... tvdb5 mode manage that for a single tvdbid so you need to use XBMC>Kodi for that functionality You are using grouping folders as the 3 - there is a tvdb dvd order if you use tvdb agent and edit settings... or use tvdb5 chronological order using tvdb absolute numbering index for eps 3i - then find a scanner doing that (mine does) but choose an agent not refreshing metadata
Select Plex Library settings to
Set hama collection setting to 'Local' and it will use the grouping folder as collection entry so if you have it as you wish
If using tvdb numbering on disk or anidb and using anidb2 mode will use anidb numbering on files but displaying using tvdb nummbering
Use my scanner to load movies in series library... As described in the readme...
One library for both movies and TV series Movie files in Series libraries (since this is a Series Scanner) are supported if:
Files are in a folder with the same name or with a single file inside it Filename contain " - Complete Movie" Files are numbered (01|ep 01|s01e01)
You cannot have this numbering work with my scanner:
Also forced id on files doesn't work on files... Use:
If you had not put an anidbid on the season folder for "Ah My Buddha" it would have been detected with 2 seasons...
You've said a lot, but I still don't follow. Yes, I've read your documentation; still don't get it. You speak in too many "do this or do this or do this or do this". That's seriously confusing. I put in the effort to very clearly articulate the outcome expectations. What one path do I follow in order to get that outcome? If some of my requirements are impossible, then please clearly indicate which part(s) is/are impossible. However, if it's possible to meet all of the requirements but not at the same time, please clearly indicate which requirements are in conflict and what can be done to "enable requirement N but not requirement M".
I don't understand these statements:
Prefs[collections ] = Local, AniDB, TheMovieDb
to just Prefs[collections ] = Local
?/volume1/entertainment/anime/Ah My Buddha [anidb-3168]/{ep,s}{1..12} - Episode Title.mkv
/volume1/entertainment/anime/Ah My Buddha [anidb-4145]/{ep,s}{1..12} - Episode Title.mkv
to this:
/volume1/entertainment/anime/Ah My Buddha/Season 1/{ep,s}{1..12} - Episode Title.mkv
/volume1/entertainment/anime/Ah My Buddha/Season 2/{ep,s}{1..12} - Episode Title.mkv
This produces two different Anime franchises in the Plex index:
This is not better.
Please help. Your code is probably amazing, if I could just understand how to use it to affect the stated requirements.
Follow-Up:
I just tried the following:
[anidb-#####]
.collections
preference to only Local
. I deleted every reference to TvDB in the HamaTV Settings (every single one of them).The result is not good. In several of the sample Anime franchises:
[tvdb-#####]
tags on many of the entries within Plex. These are not on the file-system; there are no tvdb tags on any of my files! It should be impossible for the scanner to call out to TvDB. TvDB messes up the order of too many Anime titles, so I don't want it anywhere near my library.Removing the [anidb-NNNN]
GUID and pushing each franchise into a Collection super-directory appears to have made the situation worse. Perhaps I misunderstood your instructions?
This is where the "GUIDs Anywhere" suggestion would shine; it would absolutely eliminate any and all opportunity for these kinds of mix-ups.
1 - Specials are season 0. You can't put specials in a season folder like "anime/Air Gear/Season 1/s1 - OVA Name.mkv" will be put in s01e01, so you will have two s0xe01. Working as designed 2 - weird but you are not meant to put specials into season folder, that doesn't follow Plex numbering rules [https://support.plex.tv/articles/naming-and-organizing-your-tv-show-files/] 3 - issues on code for json (and xml) <64 bytes, might be that, difficult to say without logs, have no time to reproduce as i have major bug in hama and littlew time to correct already 4 - do the plex dance, Plex doesn't rescan if the folder content didn't change, that make testing the scanner horrible as you need to keep moving files around to re-scan.... Hama relies on TVDB heavilly so if you add anime with one season only it will use AniDB numbering,
"GUIDs Anywhere" => big NO. Plex associate an id to a series, that id is used for metadata. If you spend time putting ids in files, then follow a numbering exactly (anidb or tvdb, as scanner and agent support both mixed in same library but not the sane series obviously)
Issues
Start with test library and use
Use the following To group items together
Or the following without grouping
Thank you for taking time out of your day to pursue this! I'm hopeful that by the end, we'll have produced a straight-forward step-by-step guide for other Anime fans who regularly face these same challenges.
We can boil all of the following lengthy text down to this most-important question (duplicated from below):
"Ah My Buddha" has two Seasons, per AniDB, represented as two distinct pages ... (links below) [The Episode order for "Ah My Buddha" at TvDB is messed up, so AniDB has to be used for this Series.] Please correct me here: In order to match up the Metadata [with AniDB], it seems like I am required to number the Episodes according to how they appear on the linked AniDB pages; from ep1 to ep12 plus s1 for both Season 1 and Season 2. Here's where ASS/Hama causes some frustration because if I use Season directories to keep the ep1-ep12+s1 files apart, the code suddenly switches to TvDB mode [screwing up the Episodes]. Because AniDB doesn't have one page for all Episodes of this Series, how else should I group these files on the file-system so that ASS/Hama know how to pull the Metadata from AniDB instead of TvDB while keeping both Seasons under a single Series?
I understand this. I use this Plex numbering scheme successfully in my non-Anime libraries. I was under the impression that ASS/Hama override the Plex numbering scheme and so I'm trying to find the "sweet spot" between Plex numbering versus TvDB numbering versus AniDB numbering such that Anime Series and Movies are sensibly grouped, ideally with Movies and Specials sequenced in story-chronological order (if possible).
I only added the /Season N/ directories because I understood that was one of your earlier suggestions. I can certainly take them back out because I'm working with a small test set of Series. However, doing so begs this question: How do I then correctly represent on the file-system that AniDB has different pages for different Seasons of some shows. For example:
I'm quite happy to help troubleshoot further. I appreciate that your time is constrained; I too am an Open Source author (click my GitHub avatar for just some examples) on top of having a regular day-job, so I fully understand that you can only address this here-and-there. Just let me know what I can gather for you and I'll fetch it. This sub-issue can wait; solving the greater challenge of meeting the original requirements stated for this issue is paramount.
I did the Plex dance, resulting in the same outcome as described in my earlier post. This is likely because I've stripped the test files down to just a dozen Series and some only have a Movie in them, like "./Ah My Goddess/Ah My Goddess - Complete Move (2006)/Ah My Goddess - Complete Move (2006).mkv". I'll add more files to the test set to see if this clears up.
"Plex associate an id to a series, that id is used for metadata" I'd seen that Plex associates Metadata to the Series tier but was hopeful that ASS/Hama were clever enough -- as plug-ins -- to extend that to the Season or even Episode level. As far as I'm concerned, we're ultimately talking about writing Metadata to records in a NoSQL database. As long as the schema is known, this would be trivial code. My thinking was that clever enough plug-ins could probably set the Metadata for any element at the DB layer, resolving Plex's own deficit in this respect. When I saw that ASS/Hama could use a different external data provider at the Series level, I was delighted and was hopeful that your code either was already -- or could become -- clever enough to also solve this Plex design shortcoming. I gather from your "big NO" that my idea of GUIDs Anywhere is something I should investigate on my own time and that's fair.
"Issues" (Responses)
I feel like we're close to a solution.
Rules
Relative path to Plex library root for simplicity
AniDB numbering+collection:
It will create a collection "Ah My Buddha" with two series:
AniDB numbering showing as tvdb numbering:
TVDB numbering:
1- I painfully added grouping folders and movie support and changed regex. it was laborious but still tied to plex for the rest 2-do not make the 'season' named folder the series folder that's weird and specials in it, it won't like...
"These aren't two different Series." Yes they are two separate series in AniDB that each have their own entries that represent two seasons/series of the same show. Semantic is paramount here...
"it will work but be scanned every time". This reads as a caution against using Grouping folders. Was it not meant as such? => Yes because plex scan once, with series folder at the library root and only rescan when the folder changes. If you put all in grouping folders, it scan it everytime and can take up to 3/4 hours to scan but some users abused it... Had plex database corruption during development and it's a hack. If you put a single series in it, i may have a bug remaining.
tvdb2 take absolute numbering and put tvdb seasons and reset the ep number each season tvdb3 take absolute numbering and put tvdb seasons and keep the absolute number episode, that's more for long running series tvdb4 use season for sagas. you can select your own seasons but i have a bug as it doesn't get metadata passed the original first season. Doesn't work with other entries like separate movies, specials listed in thetvdb with absolute ep number it will. You cannot insert spare movie as you want and should be content to have a collection with tvdb numbered series to have the least entries with the most seasons showing...
Looked and numbering is the same between anidb and thetvdb. Please expand: https://anidb.net/perl-bin/animedb.pl?show=anime&aid=3168 https://anidb.net/perl-bin/animedb.pl?show=anime&aid=4145 https://www.thetvdb.com/series/ah-my-buddha/seasons/all
I'll try the rest of your ideas a bit later -- have to head out for awhile -- but between here and there, an answer for your query:
"Looked and numbering is the same between anidb and thetvdb. Please expand:" The Metadata for Season 1 Episode 1 is wrong at TvDB. "Don't Awaken!!" is Season 1 Episode 12. Season 1 Episode 1 is actually "Don't Make Me Come!!" (literal translation, or: "Don't Get Me Aroused!!" as AniDB has it.) [yes, the almost-perverted nature of the titles is part of the humor; this particular show is not actually pornographic.]
It's echi still (watched it) Issues comes from thetvdb being a tv database so if it aired in the same order no issue... The summary was correct as is the episode number, they couldn't air the first episode in any other order , clearly the episode name was wrong, so i updated thetvdb since the series wasn't locked...
"so i updated thetvdb since the series wasn't locked" I must say, you've really taken the impetus out of my distrust for TheTvDB with that news. I didn't consider the bad TheTvDB data as being mutable. You initially weakened my stance against TheTvDB with the revelation that the Firefly episode order could be corrected with that news-to-me DVD Ordering option several replies ago (this has long been an unrelated pain-point for me). When I saw AniDB had good data, I assumed the only path forward was to permanently switch from TheTvDB to AniDB. You have soundly demonstrated that I was wrong.
I spent time last evening thinking about this entire issue thread in light of what you've shown me about TheTvDB being more flexible than I'd known. In retrospect, I've wasted your time with my anti-TheTvDB attitude. For that, I'm sorry.
I would like to pursue the option of threading Anime movies into the series at the correct story-chronological points. My understanding of how to precisely accomplish this is weak.
I've read your posts above a few times trying to sort that mechanism out. I understand from your writing that OVAs won't be threaded (despite it being obvious that OVAs should play as the last "virtual episode(s)" of the disc(s) from which they come); that is unfortunate but still better than nothing. So to the point, in order to have the movies thread in at the right story point, are we required to:
./Franchise Group [something]/Movie (YEAR)/Movie (YEAR).ext
;./Franchise Group [something]/Season 1/epNN - Title.ext
; and./Franchise Group [something]/Season 0/epNN - OVA Title.ext
?Further, if a franchise has only shows (no movies) or only a single movie and no shows, don't use a Grouping Folder, at all.
What exactly is the [something] tag? You offered multiple options, so I can't tell which one is the best fit. Please correct anything else I may have mistaken.
And again, I truly appreciate you taking time out of your day to help!
Let's summarize rules and reasons
Movie and series together mean a Plex collection tag to group them
The grouping folder and hama collection setting set to "Local" will fill the collection label in series and movies automatically, no need for any id in the grouping folder.
Movies in a same name folder
I would optionally add to series folder name in front [0x] to set them in the right chronological viewing order on disk but will be scrubed out. Everything in square brackets is ignored
Put specials in 'Season 0' or 'Specials' folder as per thetvdb numbering if you used seasons. If thetvdb doesn't have it as special use any db numbering with it on its own series folder.
The Grouping folder is meant to work but have a bug for now, So no grouping folder with single series folder inside.
With this settings, how is your library faring?
In order to test threading between movies and shows, I decided to fix an old problem in my library as part of this effort: "Bleach" is a mess. It was one of the earliest I imported and ... it's not healthy. So, I'll need probably a week or two to sort it out because some episodes are combined into single files, most don't have "Kon's Illustrated Guide to Soul Reapers" properly threaded, and I don't even remember at which points the various movies are supposed to thread in. Worse of all, the episodes don't have title screens, so it's very difficult to tell whether they're even in the correct order without a partial watch-through here-and-there. I've decided to try to renumber all the files as part of the split/join effort per TvDB's seasons because -- correct me if I'm wrong -- Plex has issues with shows having more than 99 episodes in a single directory and I think you suggested tvdb5 was an ideal tag for getting movies and show episodes automatically threaded together in story-chronological order?
Please bear with me while I contend with this nightmare.
use an anidb client enabled renaming tool that use checksums for identifying them?
Sorry for the delay; that was a lot of work. I have split/joined, grouped, and renamed all the "Bleach" episodes so they perfectly match TheTVDB.com's listing. I have also included two of the movies with the sample data set. After several arrangements and "Plex Dance" routines, I have the following results:
./anime/ # Top-level directory of an Anime collection
./anime/Bleach/ # This is the Collection Tag name for everything that will go into it; this name is arbitrary
./anime/Bleach/Bleach/ # This is for the TV show
./anime/Bleach/Bleach/Season N/ # Each Season per TheTVDB.com goes here
./anime/Bleach/Bleach/Season N/epMM.mkv # Each eposide is named according to TheTVDB.com numbering
./anime/Bleach/Bleach - The Movie - Memories of Nobody (2006)/ # A sub-directory for each movie
./anime/Bleach/Bleach - The Movie - Memories of Nobody (2006)/Bleach - The Movie - Memories of Nobody (2006).mkv # An actual movie file, named exactly as the directory containing it
./anime/Bleach/Bleach - The Movie 2 - The Diamond Dust Rebellion (2007)/ # Another movie sub-directory
./anime/Bleach/Bleach - The Movie 2 - The Diamond Dust Rebellion (2007)/Bleach - The Movie 2 - The Diamond Dust Rebellion (2007).mkv # Another movie, named exactly the same as its directory
When it comes to episode file naming, you do not actually need to use Bleach - s##e##.ext
form because ep##
works perfectly well. So, ./Bleach/Bleach/Season 01/Bleach - s01e11.mkv
is identical to ./Bleach/Bleach/Season 01/ep11.mkv
This works to automatically collect the TV Show with its movies. The top level of the Library shows one card for Bleach with "3 shows". Clicking into it shows separate cards for the TV Show and one each for the movies.
This does not work to sequence the movies at the right points between TV Show episodes.
Granted, there is debate as to where the Bleach movies should fit since they are non-canon. So, I added another TV Show + Movie (+ OVA) combination to the test that suffers no such ambiguity: "Ah! My Goddess".
Grouped exactly as I had with Bleach, this set doesn't work as well. I haven't yet sorted out why not, even after performing another Plex Dance. For some reason, the Movie for "Ah! My Goddess" is presented at the top level of the Library, along-side the collection it is to be contained within. The Bleach set doesn't have this issue, so the discrepancy is curious. That said, the Movie does appear in two places: at the Library top level as its own card, and within the automatically-generated "Ah My Goddess" Collection. Both point to exactly the same file.
The chronological order of "Ah! My Goddess" is well-known:
However, the movie doesn't thread between the OVA and the first TV Show season.
Am I missing something?
Check in libraries settings if the items in collections are hidden. If so, then two entries are matched to the same metadata
Anime Library settings:
In the same Library, the Bleach movies (2 of them) properly appear only within the Bleach collection. The "Ah! My Goddess" movie appears in two places. Odd that one franchise would be treated differently from another.
EDIT: So, I added a new franchise to expand the test and the "Ah! My Goddess" movie was suddenly absorbed into the "Ah My Goddess" collection after the card for the new franchise popped up. Let's chalk this up as a possible defect in the Plex desktop client?
Back to the second topic: How do we get the movies to play between TV show seasons in proper story-chronological order? There are other franchises where this will be important.
Thanks!
Plex do not have such playlist systems. One could add [01] [02] in froont of titles to sort them alphabetically but a text file with viewing order might be better
The only system coming close is anidb3 (movies at end of seasons) and 4 (movies a new seasons) modes but i didn't code it into the scanner nor played with it yet
I get that files are getting added to Plex correctly so closing this bug report as there is no bug. I defy you to give me one metadata system that behave the way you want it.
I'm sorry that I'm struggling with your scanner. I am trying to add Anime to Plex in the most sensible way. My requirements are:
These requirements are reasonable, evidenced by Google showing many other people with exactly the same needs.
So, can your Absolute-Series-Scanner help with this? I truly hope so. I will present some of my pain points with it, so far. If you already have viable solutions for these issues, I'd love to learn them; I have so far been unable to deduce these techniques from your documentation. I've read and re-read the docs over and over because the instructions are confusing.
At this point, I have deleted TvDB from all Absolute-Series-Scanner configurations because literally every sequencing error comes from TvDB. AniDB has the correct episode orders but seems to present different Seasons as entirely different Series. So, neither is perfect. I need a Scanner like yours to bridge this very frustrating gap between what I have on physical media and my desire for Plex to show it as-is without any monkeying-around. I do not want to:
The best of all worlds would be a means of linking every asset by its "GUID" (as you call it), not just the top-level Series directory. For example, let us do this:
The pain-point without this "GUIDs Anywhere" capability is that "Ah My Buddha" is presently broken apart in the Plex UI into two distinct Series: "Ah My Buddha" and "Ah My Buddha (2006)". I don't want that. I'm unable to get both "Ah My Buddha" Series entries to combine into just one "Ah My Buddha" Series with two Seasons, as it should be.
Next, extend the example above to include Movies with TV Shows. Continue to support "GUIDs Anywhere" so that the Movies can be presented at the Franchise (Series) level, like so:
Without this "GUIDs Anywhere" capability, I can't figure out how to blend the Movies and TV Shows together under a single "Ghost in the Shell" Series, nor such that the Movies will logically play at the point during the overall story where they best fit. Instead, they're all broken apart into different Series based on the different Movie names and Season names. It's endlessly frustrating.
The logic has to be simple enough. When the file-name starts with "ep", and has a GUID like [anidb-#####], then you'll pull Metadata from https://anidb.net/perl-bin/animedb.pl?show=ep&eid=##### or its API equivalent. When there's no "ep" prefix on the file-name, pull from https://anidb.net/perl-bin/animedb.pl?show=anime&aid=##### or its API equivalent. Note the difference between
eid
andaid
.Or, are you already doing this and I just couldn't parse that from the documentation?