johnkiddjr / PlexMatch-File-Generator

This application generates a .plexmatch file in the directory of all shows and movies added to your Plex Server. This is especially useful for migrating storage devices if you have some shows that needed a custom match.
MIT License
67 stars 2 forks source link

[Suggestion] Append .plexmatch when dealing with movie items? #15

Open DexLuther opened 2 years ago

DexLuther commented 2 years ago

I'm not sure how possible this is as the documentation on .plexmatch talks mostly about TV series: https://support.plex.tv/articles/plexmatch/

In the case of movies though, since they are often single files sometimes maybe with a subtitle file along side of it (mine are usually inside the movie file), there's not much reason to put them in their own folders. The exception being when there's Extras and stuff, but I for one don't usually waste space on them unless there's a request for them. IE:

instead of

Is it possible (and would it even work?) to have the generator append the .plexmatch file when dealing with movies? I don't know if there are situations where it would be useful for other content types. Movies being the only content type that I know of other than music and maybe images that Plex doesn't suggest/require separate folders for.

The .plexmatch file in the movies folder after running the generator only lists the information for the last file in the folder. I'm assuming as it scans each file/item and creates a new .plexmatch overwriting the old one.

johnkiddjr commented 2 years ago

I can make the application behave in that way, but I don't think Plex picks up any file ending in .plexmatch, I think it's looking specifically for .plexmatch.

It's worth a test though. I won't have time until tomorrow afternoon to test this out though, so if you are able to test it out and let me know if plex will pickup moviename.plexmatch files I could get the change made.

DexLuther commented 2 years ago

I don't think it needs to pick up anything specific.

When I open the .plexmatch file inside my Movie folder all it contains is:

Title: [Last Movie Title]
Year: [Year]
Guid: plex://movie/[Movie ID I assume]

The thing is there's 65 other files/Movies in that folder/Library before it. All that's left if the last one in the list.

I was suggesting that the .plexmatch file itself have the information appended with each movie's information instead of it being overwritten with each item and only the last one surviving. For instance (:

Title: [First Movie Title]
Year: [Year]
Guid: plex://movie/[id]

]Title: [Second Movie Title]
Year: [Year]
Guid: plex://movie/[id]

Title: [Third Movie Title]
Year: [Year]
Guid: plex://movie/[id]

Title: [Last Movie Title]
Year: [Year]
Guid: plex://movie/[id]
johnkiddjr commented 2 years ago

Ah okay, I understand what you're asking now.

I can add a command line switch to do that instead of the default overwrite. I don't know how useful the file would be like that though, I don't think Plex will match all the files in a folder like that.

My thinking would be to have several options like:

default = force/overwrite -a = append to existing file -p = prompt -s = smart (overwrite shows, append movies or something like that)

DexLuther commented 2 years ago

As you say, not sure if there would be any use as the page I linked above doesn't even mention movies at all, so not even sure it works. Might be good as a future enhancement if Plex updates/changes/carlifies the use of .plexmatch