Jump to content

Movie Auto Merge plugin


Recommended Posts

Posted (edited)

I developed an alternative to the AutoCollection plugin - the plugin that merged different movies with the same providerID into one.

I missed the features in the original plugin - merging by Kinopoisk provider and splitting the movie by providerID.

Features of the plugin:

  • runs automatically on movie add (configuration "Run Automatically").
  • merge movies in separate libraries or between all libraries ("Merge Across Libraries").
  • ignore locked movies ("Do Not Change Locked Items").
  • merge can be invoked manually in Scheduled tasks - "Merge Movies" in the "Movie Auto Merge" section.
  • global (all movies in all libraries) split can be invoked manually in Scheduled tasks - "Split Movies" in the  "Movie Auto Merge" section.
  • split of a particular movie in the plugin configuration by providerID (search in all libraries).
  • merge by all available Emby metadata providers - IMDB, TMDB, Kinopoisk, etc.
  • complementary merge, e.g. if the first movie has TMDB, the second - has IMDB, TMDB, and the third - has only IMDB, and all those movies are the same, they all will be merged into one movie.

site: https://github.com/luzmane/emby.movie.auto.merge/releases/latest/download/MovieAutoMerge.dll

 

 

Edited by GrimReaper
Link update
  • Like 7
Posted

works fine, on my library :)

Thanks 👍

  • Thanks 1
Posted

Just what the Dr. ordered. Thank you for your contribution!

Posted

HI what is the difference between this plugin and the one here?

 

They both look to do the same function, I am trying to see if yours does a better job and does it work on .strm files as well or have I miss understood the function?

Posted (edited)

Mine has support of different providers, complementary merge, split of movie by provider id. More you can check in the topic description.

I never tried it with strm files, but I suppose you'll see it as separate lines in dropbox.

Edited by jelum
Posted

Does it work with latest Emby Beta? just "updated" yesterday and older autogrouping plugin went kaput

 

Thanks

Posted
17 minutes ago, Cr8iveLosr said:

Does it work with latest Emby Beta? just "updated" yesterday and older autogrouping plugin went kaput

 

Thanks

Didn't try. It was built for a stable release. You can try and update here. If the plugin will not work, you can reply here with logs, or open an issue in the GitHub with logs.

  • Thanks 1
  • 2 weeks later...
Posted (edited)

While this has worked quite well for merging duplicate .STRM VOD & local copies of the same titles, occasionally oddness crops up. Note that the Deadpool Collection only shows 2 entries. All previous collection members (pre-plugin) are merged into Deadpool 2. I can manually split versions & all are correctly identified w/ unique IDa, but on the next scan, they get re-merged.

 

Plug-in 1st installed on Windows Server Version 4.8.8.0, updated to Version 4.8.10.0 yesterday. Added a local copy of Deadpool & Wolverine today.

Is something like this intended? Is there something I'm doing wrong?

Deadpool Collection (Small).jpg

Deadpool 2 (Small).jpg

Edited by d00zah
Posted

No, it's not intended behavior. Can you please check if Deadpool and Deadpool 2 have at least one same provider (TMDB, IMDB, etc.) ID? The plugin has complementary merge, e.g. if the first movie has TMDB, the second - has IMDB, TMDB, and the third - has only IMDB, they all will be merged into one movie. So this might be a reason. If still not, please:

  1. manually (or with plugin) split movie versions
  2. turn on the debug in logs
  3. start task "Merge Movies"
  4. wait the task ends
  5. turn off debug
  6. share logs
Posted

I was looking further & this happened with my John Wick & Spider-Man (Avengers) Collections, as well. Each complete. Of possible interest... in each case, collections were merged around the 2nd movie... Deadpool 2 / John Wick 2 / Spider-Man: Far From Home. Manually split each collection & verified each version of each movie had IMDb Id, MovieDb Id & The TVDB Id.

Performed the requested actions. Log attached.

Noticed in the logs, my entire James Bond collection had been merged into a single entity & strongly suspect pilot error. Please set me straight.

Thanks, in advance.

embyserver-63863796192.txt

Posted
1 hour ago, d00zah said:

I was looking further & this happened with my John Wick & Spider-Man (Avengers) Collections, as well. Each complete. Of possible interest... in each case, collections were merged around the 2nd movie... Deadpool 2 / John Wick 2 / Spider-Man: Far From Home. Manually split each collection & verified each version of each movie had IMDb Id, MovieDb Id & The TVDB Id.

Performed the requested actions. Log attached.

Noticed in the logs, my entire James Bond collection had been merged into a single entity & strongly suspect pilot error. Please set me straight.

Thanks, in advance.

embyserver-63863796192.txt 5.12 MB · 0 downloads

In the log, I found 20 different providers: Imdb, Tvdb, Tmdb, official website, facebook, etc.. (Honestly, I didn't think they would be so much). Can you please check if your Deadpools have the same providers with the same values?

Posted (edited)

Fair disclosure... I am also using the 'Strm Extract' plug-in in addition to yours.

These .strm files are generated from VOD lists from my provider. The extracted details indicate that the targets are, in fact, 'scene products', littered w/ numerous (unwanted) tags... likely the source of all the unexpected ID providers.

I split & examined IDs for the Deadpool titles (caps attached) in the metadata editor & only the 'usual suspects' are there.

Clearly, my use case exceeds the original design spec, but I hope for some sort of resolution, as this REALLY cleaned up an otherwise unpleasant display? Please!

In any case, I very much appreciate what you've tried to accomplish here. Thanks, again.

EDIT: Attaching the .strm .nfo of 'Deadpool 2' confirming the source of extraneous IDs. Deadpool 2 (2018).nfo

Deadpool & Wolverine.physical (Small).jpg

Deadpool & Wolverine.strm (Small).jpg

Deadpool 2.physical (Small).jpg

Deadpool 2.strm (Small).jpg

Deadpool.physical (Small).jpg

Deadpool.strm (Small).jpg

Once Upon a Deadpool.physical (Small).jpg

Edited by d00zah
Posted
6 minutes ago, d00zah said:

Fair disclosure... I am also using the 'Strm Extract' plug-in in addition to yours.

These .strm files are generated from VOD lists from my provider. The extracted details indicate that the targets are, in fact, 'scene products', littered w/ numerous (unwanted) tags... likely the source of all the unexpected ID providers.

I split & examined IDs for the Deadpool titles (caps attached) in the metadata editor & only the 'usual suspects' are there.

Clearly, my use case exceeds the original design spec, but I hope for some sort of resolution, as this REALLY cleaned up an otherwise unpleasant display? Please!

Deadpool & Wolverine.physical (Small).jpg

Deadpool & Wolverine.strm (Small).jpg

Deadpool 2.physical (Small).jpg

Deadpool 2.strm (Small).jpg

Deadpool.physical (Small).jpg

Deadpool.strm (Small).jpg

Once Upon a Deadpool.physical (Small).jpg

I'll prepare the version to choose what provider to take into account during the merge. This is the only way I see to "fix the issue". If no one is selected - it will take all possible, otherwise - it will take the chosen.

  • Thanks 1
mickle026
Posted (edited)
1 hour ago, jelum said:

In the log, I found 20 different providers: Imdb, Tvdb, Tmdb, official website, facebook, etc.. (Honestly, I didn't think they would be so much). Can you please check if your Deadpools have the same providers with the same values?

@jelumJust for your info, you can extend provider ids in emby to be as many as are coded.  Here is my plugin that does just that.

I'll supply links incase you are interested.

pids.png.e384d8684efe0831469422527c3b13ef.png

https://emby.media/community/index.php?/topic/120013-custom-external-links-provider-ids/

latest dll here: https://emby.media/community/index.php?/topic/120013-custom-external-links-provider-ids/&do=findComment&comment=1300870

Edited by mickle026
  • Like 1
  • Thanks 2
Posted
5 minutes ago, mickle026 said:

@jelumJust for your info, you can extend provider ids in emby to be as many as are coded.  Here is my plugin that does just that.

I'll supply links incase you are interested.

pids.png.e384d8684efe0831469422527c3b13ef.png

https://emby.media/community/index.php?/topic/120013-custom-external-links-provider-ids/

latest dll here: https://emby.media/community/index.php?/topic/120013-custom-external-links-provider-ids/&do=findComment&comment=1300870

The list is not hardcoded - it is generated automatically based on existence in DB. And this is the reason for the d00zah's issue. I plan to add a generated multi-select list to filter what providers to use for the merge.

Will check your code, thanks!

  • Thanks 1
mickle026
Posted
54 minutes ago, jelum said:

The list is not hardcoded - it is generated automatically based on existence in DB. And this is the reason for the d00zah's issue. I plan to add a generated multi-select list to filter what providers to use for the merge.

Will check your code, thanks!

I think thats the best way to and and it helps future proof your plugin. 👍

Posted

@d00zahplease try this version. It's not fully tested - I played with it, but I don't have thousands of movies in my collection. The attached picture shows a new checklist to choose relevant providers. This is a so-called beta version.

and share your feedback - is it ready for a release?

Screenshot_20241008_134221.png.d0f5e3b1fbce89cfae72b730aae75307.png

MovieAutoMerge.dll

  • Thanks 1
Posted (edited)

Split took 4 minutes 56 seconds. Re-merge took 7 minutes 16 seconds.

Took a cursory sampling of content & so far, visually, everything looks correct. Did a cursory scan of logs for errors, & while I see some barks about .strm targets not being found (another project), there doesn't appear to be anything specific to your plug-in.

I will report of some other anomaly crops up.

Большое спасибо!!

 

Edit: FWIW, I opted to use Imdb / Tmdb for merge parameters.

Edited by d00zah
  • Thanks 1
  • 2 months later...
Posted

A question, and I don't getting it overall: is it possible to make this plugin also work with TV shows? Have severall folders and some same tvshows are in that folders, spreaded. In Emby also different tv shows library's, so the merge option in Emby not working for this, only in the same library. So, have duplicated tv shows in emby and sometimes three times...

Or am I the only person on earth with this problem :))

Thanks for this plugin for the movies anyway!

Posted (edited)
31 minutes ago, dves010 said:

A question, and I don't getting it overall: is it possible to make this plugin also work with TV shows? Have severall folders and some same tvshows are in that folders, spreaded. In Emby also different tv shows library's, so the merge option in Emby not working for this, only in the same library. So, have duplicated tv shows in emby and sometimes three times...

Or am I the only person on earth with this problem :))

Thanks for this plugin for the movies anyway!

EDIT: Please disregard. I see you mention multiple TV libraries. Sorry.

This is a native feature available in TV library settings:

TVLibrarySettings(Small).jpg.85bac3602d130ae4d7d17cea315d427a.jpg

Edited by d00zah
Posted
9 hours ago, d00zah said:

EDIT: Please disregard. I see you mention multiple TV libraries. Sorry.

This is a native feature available in TV library settings:

TVLibrarySettings(Small).jpg.85bac3602d130ae4d7d17cea315d427a.jpg

Exactly, per library with multiple folders in it, it's working. But with more than one library i'm getting the TV shows double or more (depends on in how many spreaded folders they are in).

It is like the same as movies, I suppose...

merge movies in separate libraries or between all libraries ("Merge Across Libraries") ->> merge TV Shows in separate libraries or between all libraries ("Merge Across Libraries").

Posted
5 hours ago, dves010 said:

Exactly, per library with multiple folders in it, it's working. But with more than one library i'm getting the TV shows double or more (depends on in how many spreaded folders they are in).

It is like the same as movies, I suppose...

merge movies in separate libraries or between all libraries ("Merge Across Libraries") ->> merge TV Shows in separate libraries or between all libraries ("Merge Across Libraries").

In theory, it isn't supposed to be a problem, but I don't have time for deep testing. If you agree to a tester for this feature, I'll prepare a dedicated build with it and you'll share the feedback and bugs if any.

What do you think?

Posted
1 hour ago, jelum said:

In theory, it isn't supposed to be a problem, but I don't have time for deep testing. If you agree to a tester for this feature, I'll prepare a dedicated build with it and you'll share the feedback and bugs if any.

What do you think?

I agree with 100%! With this kind of working solution in the future I'm realy realy happy 😉 😍

Let me know!

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...