Jump to content

Make folder-recognizing a little less smart


anderbytes

Recommended Posts

anderbytes

@@Happy2Play and @@Luke, I've nailed it !!!! AT LAST!

 

There's a bug involved (probably), and I'll explain it.

 

Inside the YEAR FOLDER, all my movies had also the YEAR in brackets in them. After I put them inside each respective YEAR FOLDER , distributing the movies.... Emby somehow got confused by the movie folder having explicity the year and the folder before, too (see "First Try" below)

 

After I REMOVED the year from each movie folder name, all got automatically recognized correctly.

 

As "A picture is worth a thousand words", I invite you to analyze those pictures below.

 

FIRST TRY (How was I doing it until now) - BUGGY

.
./1989
./1989/Indiana Jones and the Last Crusade (1989)
./1989/Indiana Jones and the Last Crusade (1989)/Indiana.Jones.and.the.Last.Crusade.(1989).720p.BluRay-3Li.mkv
./1989/The Little Mermaid (1989)
./1989/The Little Mermaid (1989)/The.Little.Mermaid.(1989).720p.x264.Dublado.mp4

./1994
./1994/The Lion King (1994)
./1994/The Lion King (1994)/The.Lion.King.(1994).720p.x264.Dublado.mp4
./1994/Space Jam (1996)
./1994/Space Jam (1996)/Space.Jam.(1996).720p.x264.Dublado.mp4

./1988
./1988/Die Hard (1988) v2
./1988/Die Hard (1988) v2/Die.Hard.(1988).1080p.x265.10bit-Joy.mkv
./1988/Die Hard (1988) v2/Die.Hard.(1988).1080p.x265.10bit-Joy.pob.srt
./1988/Die Hard (1988)
./1988/Die Hard (1988)/Die.Hard.(1988).1080p.x265.10bit-Joy.mkv
./1988/Die Hard (1988)/Die.Hard.(1988).1080p.x265.10bit-Joy.pob.srt

./1980
./1980/Star Wars Episode V The Empire Strikes Back (1980)
./1980/Star Wars Episode V The Empire Strikes Back (1980)/Star.Wars.Episode.V.The.Empire.Strikes.Back.(1980).1080p.BluRay.x264-anoXmous.mkv
./1980/Star Wars Episode V The Empire Strikes Back (1980)/Star.Wars.Episode.V.The.Empire.Strikes.Back.(1980).1080p.BluRay.x264-anoXmous.pob.srt

./1984
./1984/Peter Pan (1953)
./1984/Peter Pan (1953)/Peter.Pan.(1953).720p.x264.Dublado.mkv
./1984/Indiana Jones and the Temple of Doom (1984)
./1984/Indiana Jones and the Temple of Doom (1984)/Indiana.Jones.and.the.Temple.of.Doom.(1984).720p.BluRay.x264-nezu.pob.srt
./1984/Indiana Jones and the Temple of Doom (1984)/Indiana.Jones.and.the.Temple.of.Doom.(1984).720p.BluRay.x264-nezu.mkv

./1998
./1998/What Dreams May Come (1998)
./1998/What Dreams May Come (1998)/What.Dreams.May.Come.(1998).1080p.BluRay.x264.YIFY.pob.srt
./1998/What Dreams May Come (1998)/What.Dreams.May.Come.(1998).1080p.BluRay.x264.YIFY.mp4

./1991
./1991/Beauty and the Beast (1991)
./1991/Beauty and the Beast (1991)/Beauty.and.the.Beast.(1991).720p.BDrip.Dublado.mkv
./1991/BLUR
./1991/BLUR/Aladdin.(1992).720p.Dublado.mp4

./1953
./1953/Peter Pan (1953)
./1953/Peter Pan (1953)/Peter.Pan.(1953).720p.x264.Dublado.mkv

./1981
./1981/Indiana Jones Raiders Of The Lost Ark (1981)
./1981/Indiana Jones Raiders Of The Lost Ark (1981)/Indiana.Jones.Raiders.Of.The.Lost.Ark.(1981).720p.x264.DTS.mkv
./1981/Indiana Jones Raiders Of The Lost Ark (1981)/Indiana.Jones.Raiders.Of.The.Lost.Ark.(1981).720p.x264.DTS.pob.srt
./1981/BLAST

56bfdf465d256_firsttry.jpg

 

 

 

 

 

SECOND TRY (How I'll have to do from now) - PERFECT

.
./1989
./1989/Indiana Jones and the Last Crusade
./1989/Indiana Jones and the Last Crusade/Indiana.Jones.and.the.Last.Crusade.(1989).720p.BluRay-3Li.mkv
./1989/The Little Mermaid
./1989/The Little Mermaid/The.Little.Mermaid.(1989).720p.x264.Dublado.mp4

./1994
./1994/The Lion King
./1994/The Lion King/The.Lion.King.(1994).720p.x264.Dublado.mp4
./1994/Space Jam
./1994/Space Jam/Space.Jam.(1996).720p.x264.Dublado.mp4

./1988
./1988/Die Hard v2
./1988/Die Hard v2/Die.Hard.(1988).1080p.x265.10bit-Joy.mkv
./1988/Die Hard v2/Die.Hard.(1988).1080p.x265.10bit-Joy.pob.srt
./1988/Die Hard
./1988/Die Hard/Die.Hard.(1988).1080p.x265.10bit-Joy.mkv
./1988/Die Hard/Die.Hard.(1988).1080p.x265.10bit-Joy.pob.srt

./1980
./1980/Star Wars Episode V The Empire Strikes Back
./1980/Star Wars Episode V The Empire Strikes Back/Star.Wars.Episode.V.The.Empire.Strikes.Back.(1980).1080p.BluRay.x264-anoXmous.mkv
./1980/Star Wars Episode V The Empire Strikes Back/Star.Wars.Episode.V.The.Empire.Strikes.Back.(1980).1080p.BluRay.x264-anoXmous.pob.srt

./1984
./1984/Indiana Jones and the Temple of Doom
./1984/Indiana Jones and the Temple of Doom/Indiana.Jones.and.the.Temple.of.Doom.(1984).720p.BluRay.x264-nezu.pob.srt
./1984/Indiana Jones and the Temple of Doom/Indiana.Jones.and.the.Temple.of.Doom.(1984).720p.BluRay.x264-nezu.mkv
./1984/Peter Pan
./1984/Peter Pan/Peter.Pan.(1953).720p.x264.Dublado.mkv

./1998
./1998/What Dreams May Come
./1998/What Dreams May Come/What.Dreams.May.Come.(1998).1080p.BluRay.x264.YIFY.pob.srt
./1998/What Dreams May Come/What.Dreams.May.Come.(1998).1080p.BluRay.x264.YIFY.mp4

./1991
./1991/BLUR
./1991/BLUR/Aladdin.(1992).720p.Dublado.mp4
./1991/Beauty and the Beast
./1991/Beauty and the Beast/Beauty.and.the.Beast.(1991).720p.BDrip.Dublado.mkv

./1953
./1953/Peter Pan
./1953/Peter Pan/Peter.Pan.(1953).720p.x264.Dublado.mkv

./1981
./1981/Indiana Jones Raiders Of The Lost Ark
./1981/Indiana Jones Raiders Of The Lost Ark/Indiana.Jones.Raiders.Of.The.Lost.Ark.(1981).720p.x264.DTS.mkv
./1981/Indiana Jones Raiders Of The Lost Ark/Indiana.Jones.Raiders.Of.The.Lost.Ark.(1981).720p.x264.DTS.pob.srt
./1981/BLAST

56bfdf6559505_secondtry.jpg

 

 

 

ps: ignore the BLUR, BLAST and v2 items.... these were dummy folders I was testing....

Link to comment
Share on other sites

anderbytes

@@Luke , notice in FIRST TRY above the following interesting things I noticed: SOME get metadata right. "But what do they have in common?"

./1984/Peter Pan (1953)
./1994/Space Jam (1996)
./1988/Die Hard (1988) v2   --> attention, only the one who ends with v2 got right

Notice that I deliberately mixed movies from other years inside it, and they were recognized.

 

All of 3 cases the end of "Movie Folder Name" is different than the "Parent Folder Name". Even the third case where it would be the same year if I hadn't put the v2 at the end.

Edited by anderbytes
Link to comment
Share on other sites

I'm glad you seem to have resolved it but I think your original structure was fine, probably just a metadata downloading issue. It worked fine for @@Happy2Play, right? I just hadn't gotten a chance to dive into it yet so I understand why you'd want to find your own solution.

Link to comment
Share on other sites

anderbytes

I'm glad you seem to have resolved it but I think your original structure was fine, probably just a metadata downloading issue. It worked fine for @@Happy2Play, right? I just hadn't gotten a chance to dive into it yet so I understand why you'd want to find your own solution.

@@Happy2Play test hasn't used brackets around the year (in folder name and filename). Maybe there's something related to that.

 

At least If someone tried to reproduce in Linux version of emby server using brackets around year (movie folder name) just like me?

Link to comment
Share on other sites

Happy2Play

Did you see post #26 with parenthesis or post #34 without.

 

Here is your failed 1980 example that works for me.

 

./1980
./1980/Star Wars Episode V The Empire Strikes Back (1980)
./1980/Star Wars Episode V The Empire Strikes Back (1980)/Star.Wars.Episode.V.The.Empire.Strikes.Back.(1980).1080p.BluRay.x264-anoXmous.mkv
./1980/Star Wars Episode V The Empire Strikes Back (1980)/Star.Wars.Episode.V.The.Empire.Strikes.Back.(1980).1080p.BluRay.x264-anoXmous.pob.srt

 

56c0dd0d819fa_test.jpg

 

Only difference should be OS.  Maybe a log of your scenario failing would help.

Link to comment
Share on other sites

anderbytes

Did you see post #26 with parenthesis or post #34 without.

 

Here is your failed 1980 example that works for me.

./1980
./1980/Star Wars Episode V The Empire Strikes Back (1980)
./1980/Star Wars Episode V The Empire Strikes Back (1980)/Star.Wars.Episode.V.The.Empire.Strikes.Back.(1980).1080p.BluRay.x264-anoXmous.mkv
./1980/Star Wars Episode V The Empire Strikes Back (1980)/Star.Wars.Episode.V.The.Empire.Strikes.Back.(1980).1080p.BluRay.x264-anoXmous.pob.srt
56c0dd0d819fa_test.jpg

 

Only difference should be OS. Maybe a log of your scenario failing would help.

I took a look at #34 and thought the other was without, too. Sorry.

 

Linux is known to need extra care when handling files with symbols in name, as almost every symbol may have a special function ($ for vars, ! for changing logical context, etc...)

 

Who knows...

Link to comment
Share on other sites

Happy2Play

But a log showing it identifying at the wrong level may help identify the problem.  If you could reproduce your issue and post a log (I would enable debug logging for this, server restart required after enabling).

Link to comment
Share on other sites

anderbytes

Now that I found a workaround, I have to overcome my laziness to go back to "buggy" state. But I guess I'll do it soon.

Link to comment
Share on other sites

joshstix

The way I handle this is not adding the root folder to the library and instead adding each of the subfolders, in this case years, to the library collection.  That way it displays as a single library item but is stored in different folders.

 

Sorry if this has already been discussed.

  • Like 1
Link to comment
Share on other sites

anderbytes

The way I handle this is not adding the root folder to the library and instead adding each of the subfolders, in this case years, to the library collection. That way it displays as a single library item but is stored in different folders.

 

Sorry if this has already been discussed.

That's actually pretty smart!

We normal people mumbling here and then a genius appears to help! :-DD

 

Thanks!! Very simple and accurate solution.

Edited by anderbytes
Link to comment
Share on other sites

Happy2Play

That would work but who wants to add 50+ folders to library when all you really need is one.

Link to comment
Share on other sites

anderbytes

That would work but who wants to add 50+ folders to library when all you really need is one.

 

Well... I tried it here.

 

The difference will be that it wont show the Year Folder in movies list. It ignores de year folder, as it should.

 

It can be lots of work, of course.

The important is: two solutions were already found, now let users choose.

Link to comment
Share on other sites

Vidman

Well... I tried it here.

 

The difference will be that it wont show the Year Folder in movies list. It ignores de year folder, as it should.

 

It can be lots of work, of course.

The important is: two solutions were already found, now let users choose.

Then why do you want to store your movies in folders for each year if it is ignored anyway?
Link to comment
Share on other sites

anderbytes

Then why do you want to store your movies in folders for each year if it is ignored anyway?

Physical files organization and segregation

Link to comment
Share on other sites

Vidman

Right..... And you current organisation and segregation is all movies in one folder? Talk about one extreme to the other;)

Edited by Vidman
Link to comment
Share on other sites

anderbytes

Right..... And you current organisation and segregation is all movies in one folder? Talk about one extreme to the other;)

It used to be, before this topic ;-)

 

Now I can separate by year and learned how to avoid emby messing up.

Link to comment
Share on other sites

Koleckai Silvestri

Organization should make things easier to find. Organizing by release year doesn't make sense as then you have to remember release years and titles. I can never remember if 'Snow White and the Seven Dwarfs' was released in 1938 or 1939. I have over 1000 movies from 1930 on. That is a lot of folders to keep track of. Easier to just get the path from the metadata in Emby.

Edited by Koleckai Silvestri
Link to comment
Share on other sites

anderbytes

Organization should make things easier to find. Organizing by release year doesn't make sense as then you have to remember release years and titles. I can never remember if 'Snow White and the Seven Dwarfs' was released in 1938 or 1939. I have over 1000 movies from 1930 on. That is a lot of folders to keep track of. Easier to just get the path from the metadata in Emby.

 

Maybe. But when I used to throw everything in just one folder (not separating by year) , then visualization in Emby somestimes could be painful.

An endless list of movies in "Metadata Manager".

 

Maybe if someone suggests a feature of "Group by" in some screens like this one....

Link to comment
Share on other sites

Deathsquirrel

I've said it many times before in various threads, but there is one simple, easy to maintain organization method that works with absolutely every app I've tried.  Anyone is free to do something else and spend as much time troubleshooting odd ID problems as they want but just in case the amount of time you want to spend on this is zero, here's what will work:

 

\movies\Movie Title 1 (YEAR)\Movie Title 1 (YEAR).mkv

\movies\Movie Title 2 (YEAR)\Movie Title 2 (YEAR).mkv

\movies\Movie Title 3 (YEAR)\Movie Title 3 (YEAR).mkv

 

You then add the \movies folder to your library and everything just works, at least for English language titles since there is excellent source data for those.

 

There are other supported formats of course, but I've played around with lots of playback apps and this works for everything I've tried.

  • Like 1
Link to comment
Share on other sites

Koleckai Silvestri

Maybe. But when I used to throw everything in just one folder (not separating by year) , then visualization in Emby somestimes could be painful.

An endless list of movies in "Metadata Manager".

 

Maybe if someone suggests a feature of "Group by" in some screens like this one....

 

You can filter in the actual view and reports as well as group by year. I hardly ever use the Metadata Manager since you can edit right from the Movie detail screen in many clients. My user that I watch stuff with can't even edit metadata. That is left to a separate Admin User that I use a couple hours per week at most.

 

Different strokes for different folks. Just seems this would make organization worse. Alphabetical folders (I used those before Emby) would be better.

Edited by Koleckai Silvestri
Link to comment
Share on other sites

anderbytes

You can filter in the actual view and reports as well as group by year. I hardly ever use the Metadata Manager since you can edit right from the Movie detail screen in many clients. My user that I watch stuff with can't even edit metadata. That is left to a separate Admin User that I use a couple hours per week at most.

 

Different strokes for different folks. Just seems this would make organization worse. Alphabetical folders (I used those before Emby) would be better.

 

Probably will have to use like this, too. I've seen that Reports is far more detailed

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...