jelum 36 Posted September 22, 2024 Posted September 22, 2024 (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 February 1, 2025 by GrimReaper Link update 7
d00zah 149 Posted September 22, 2024 Posted September 22, 2024 Just what the Dr. ordered. Thank you for your contribution!
GrimEvil 70 Posted September 23, 2024 Posted September 23, 2024 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?
jelum 36 Posted September 23, 2024 Author Posted September 23, 2024 (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 September 23, 2024 by jelum
Cr8iveLosr 97 Posted September 24, 2024 Posted September 24, 2024 Does it work with latest Emby Beta? just "updated" yesterday and older autogrouping plugin went kaput Thanks
jelum 36 Posted September 24, 2024 Author Posted September 24, 2024 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. 1
d00zah 149 Posted October 5, 2024 Posted October 5, 2024 (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? Edited October 5, 2024 by d00zah
jelum 36 Posted October 6, 2024 Author Posted October 6, 2024 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: manually (or with plugin) split movie versions turn on the debug in logs start task "Merge Movies" wait the task ends turn off debug share logs
d00zah 149 Posted October 6, 2024 Posted October 6, 2024 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
jelum 36 Posted October 6, 2024 Author Posted October 6, 2024 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?
d00zah 149 Posted October 6, 2024 Posted October 6, 2024 (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 Edited October 6, 2024 by d00zah
jelum 36 Posted October 6, 2024 Author Posted October 6, 2024 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! 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. 1
mickle026 650 Posted October 6, 2024 Posted October 6, 2024 (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. 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 October 6, 2024 by mickle026 1 2
jelum 36 Posted October 6, 2024 Author Posted October 6, 2024 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. 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! 1
mickle026 650 Posted October 6, 2024 Posted October 6, 2024 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.
jelum 36 Posted October 8, 2024 Author Posted October 8, 2024 @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? MovieAutoMerge.dll 1
d00zah 149 Posted October 8, 2024 Posted October 8, 2024 (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 October 8, 2024 by d00zah 1
jelum 36 Posted October 8, 2024 Author Posted October 8, 2024 The release 1.1.0. Similar to the previous, but added some notes about providers list. MovieAutoMerge.dll
dves010 1 Posted December 18, 2024 Posted December 18, 2024 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!
d00zah 149 Posted December 18, 2024 Posted December 18, 2024 (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: Edited December 18, 2024 by d00zah
dves010 1 Posted December 19, 2024 Posted December 19, 2024 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: 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").
jelum 36 Posted December 19, 2024 Author Posted December 19, 2024 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?
dves010 1 Posted December 19, 2024 Posted December 19, 2024 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!
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now