fbrassin 47 Posted September 28, 2017 Posted September 28, 2017 Hello, i tried to look in the forum but didn't find a solution. I have a server in my home with two different folders containing movies in the library. Some movies are present in both folders and i have 2 entries with the same movie in my library. Is there a way to merge in just 1 entry automatically instead of having 2 entries? Tnx
mastrmind11 722 Posted September 28, 2017 Posted September 28, 2017 Short answer, no, but what's the difference between the 2 movies?
fbrassin 47 Posted September 28, 2017 Author Posted September 28, 2017 I have a local hdd, and a remote cloud that i mount locally. Some movies, expecially cartoons are located both locally and on cloud. The movies in the two location are the same.
mastrmind11 722 Posted September 28, 2017 Posted September 28, 2017 (edited) No, there's no way to do this. Even if it were possible, how would Emby know which movie to present? If you want the presentation to only show a single icon, I'd suggest grouping all your dupes into their own collection(s) and telling Emby to show collections instead of individual movies. Or make 2 libraries, 1 for local and 1 for cloud, and 2 users, 1 for local and 1 for cloud, and hide the cloud library from the local user (and vice versa). Edited September 28, 2017 by mastrmind11
fbrassin 47 Posted September 28, 2017 Author Posted September 28, 2017 If there is no way to merge i think the only solution is to make 2 libraries, but i don't like to have to go from one library to the other to look for movies.
Luke 42077 Posted September 28, 2017 Posted September 28, 2017 You can manually merge them using the group versions feature available in the multi-select tool.
fbrassin 47 Posted September 28, 2017 Author Posted September 28, 2017 Tnx, i tried it, but there are too much movies to merge manually.
Luke 42077 Posted September 29, 2017 Posted September 29, 2017 You can also do it by naming your video files according to multi-version guidelines: https://github.com/MediaBrowser/Wiki/wiki/Movie%20naming
MikePlanet 144 Posted December 21, 2017 Posted December 21, 2017 You can manually merge them using the group versions feature available in the multi-select tool. You can also do it by naming your video files according to multi-version guidelines: https://github.com/MediaBrowser/Wiki/wiki/Movie%20naming Hi Luke, is there a chance to get the "group versions" done automatically (could be an option setting) - I played with that "group versions" and it is working nicely (and removing all those duplicate movies from the presentation) - but both approaches (grouping manually or changing all ohysical naming/folder structure) is very much (and dumb) work. So could we let emby server do that automagically based on the imdb-id - because I think that is unique for a movie? Or is that option already there and I didn't find it?
Luke 42077 Posted December 21, 2017 Posted December 21, 2017 It is a possibility for the future, thanks. 1
MikePlanet 144 Posted January 4, 2018 Posted January 4, 2018 (edited) Hi Luke, is there a chance to get the "group versions" done automatically (could be an option setting) - I played with that "group versions" and it is working nicely (and removing all those duplicate movies from the presentation) - but both approaches (grouping manually or changing all ohysical naming/folder structure) is very much (and dumb) work. So could we let emby server do that automagically based on the imdb-id - because I think that is unique for a movie? Or is that option already there and I didn't find it? @Luke: Was thinking again about it - functionality would be quite similar to what the auto-box-sets plugin does. Could you point me to the source code of that plugin and tell me, what is done, when grouping or splitting movie items, with that information it should be possible to either extend the plugin oir take it as a template for a new one which does exactly that grouping/ungrouping :-) Edited January 4, 2018 by MikePlanet
Luke 42077 Posted January 4, 2018 Posted January 4, 2018 you can join these now in the web interface using the multi-select tool.
MikePlanet 144 Posted January 5, 2018 Posted January 5, 2018 you can join these now in the web interface using the multi-select tool. .. I know that and that works fine, but is a manuel process. Two things I noted when testing that: - In the movie list display per person, it is mising the blue "count indicator" foir underlying mediaitems - thus it is a try and error to find the entry, that has joined items, if you want to unjoin them. (web/secondaryitems.html?type=Movie&personId=xxx&serverId=yyy) - when you unjoin, it is only unjoining ONE item - I would expect it to unjoin all joined items into unjoined ones - currently, if you have e.g. 5 items joined, you need to unjoin 4 times, I think this is a bug. Regarding my inital question: Manuelly via wen interface works, I'd like to have an automated setup, that'll do that joining within the server without having to do it all that manually - you wouldn't want to do the grouping for collectiojns all manually, thus I think the functionality is similar, that's why I was asking about the source auf "aoto box sets", as this I could use as a template for doing that. Can you help?
Luke 42077 Posted January 5, 2018 Posted January 5, 2018 Actually when you unjoin it unjoins everything. Yes some kind of automated merging is a good idea for the future. Thanks.
MikePlanet 144 Posted January 7, 2018 Posted January 7, 2018 Actually when you unjoin it unjoins everything. Yes some kind of automated merging is a good idea for the future. Thanks. Hi Luke, I did some more tests and noticed, that when you add another version of a movie, you can't join it - log says you can't join with already joined group. Could you change this so it does merge it within already existing group instead of throwing the error in the log file (which the normal user doesn't see)? Thanks for your help! Gesendet von meinem Redmi Note 4 mit Tapatalk
MikePlanet 144 Posted January 10, 2018 Posted January 10, 2018 (edited) Hi Luke, I did some more tests and noticed, that when you add another version of a movie, you can't join it - log says you can't join with already joined group. Could you change this so it does merge it within already existing group instead of throwing the error in the log file (which the normal user doesn't see)? Thanks for your help! Gesendet von meinem Redmi Note 4 mit Tapatalk @@Luke - this is the mentioned exception that is thrown in the above case: 2018-01-10 19:39:14.005 Error HttpServer: Error processing request *** Error Report *** Version: 3.2.60.12 Command line: C:\Users\Administrator\AppData\Roaming\Emby-Server\system\EmbyServer.dll Operating system: Microsoft Windows NT 6.2.9200.0 64-Bit OS: True 64-Bit Process: True User Interactive: True Processor count: 4 Program data path: C:\Users\Administrator\AppData\Roaming\Emby-Server Application directory: C:\Users\Administrator\AppData\Roaming\Emby-Server\system System.ArgumentException: Videos with sub-versions cannot be merged. at MediaBrowser.Api.VideosService.Post(MergeVersions request) at Emby.Server.Implementations.Services.ServiceExecGeneral.<>c__DisplayClass4_0.<CreateExecFn>b__0(Object service, Object request) at Emby.Server.Implementations.Services.ServiceExecGeneral.<Execute>d__2.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult() at Emby.Server.Implementations.Services.ServiceHandler.<ProcessRequestAsync>d__15.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Emby.Server.Implementations.HttpServer.HttpListenerHost.<RequestHandler>d__72.MoveNext() System.ArgumentException at MediaBrowser.Api.VideosService.Post(MergeVersions request) at Emby.Server.Implementations.Services.ServiceExecGeneral.<>c__DisplayClass4_0.<CreateExecFn>b__0(Object service, Object request) at Emby.Server.Implementations.Services.ServiceExecGeneral.<Execute>d__2.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult() at Emby.Server.Implementations.Services.ServiceHandler.<ProcessRequestAsync>d__15.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Emby.Server.Implementations.HttpServer.HttpListenerHost.<RequestHandler>d__72.MoveNext() Edited January 11, 2018 by MikePlanet
Luke 42077 Posted January 12, 2018 Posted January 12, 2018 This will be allowed for the next release of the server, thanks.
MikePlanet 144 Posted January 12, 2018 Posted January 12, 2018 This will be allowed for the next release of the server, thanks.Thanks, that is good news... Gesendet von meinem Redmi Note 4 mit Tapatalk
MikePlanet 144 Posted August 11, 2018 Posted August 11, 2018 (edited) Hi Luke, is there a chance to get the "group versions" done automatically (could be an option setting) - I played with that "group versions" and it is working nicely (and removing all those duplicate movies from the presentation) - but both approaches (grouping manually or changing all ohysical naming/folder structure) is very much (and dumb) work. So could we let emby server do that automagically based on the imdb-id - because I think that is unique for a movie? Or is that option already there and I didn't find it? I made that for myself - however, if anybody is interested, attached is a plugin that solves this issue. The use case is as mentioned by the OP - having movies, that belong together spread around and not being able to easily match the emby naming conventions, but still having the desire to present them as one item with multiple versions. The plugin works similar to the auto boxsets, but does the "movie versions grouping" - it will group all movies based on their TMDB id into one item, regardless of where they're placed and how they're named.. Plugin is alpha state, you should only use it, if you are willing to backup your db (there is no way to revert the changes otherwise!) and manually put the dll in the server plugin directory. Do not use it in your production environment before having tested in a test environment that you're fine with what it does ;-). Note: There is a known bug in the presentation which is described here, which needs to be fixed on emby side. A version for current beta server is here AutoCollections.zip Edited October 5, 2018 by MikePlanet
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