Jump to content

Automatic version grouping for movies


MikePlanet

Recommended Posts

Cheesegeezer
4 minutes ago, GrimReaper said:

You ain't so bad yourself, either. 😜

I’m more of a UI dude, rather than figuring out algorithms and this is where @samuelqwe steps in!! Absolutely brilliant! We have the 4 of us in a great group, @chef ,Sam, me and the power user @rbjtech. Rich is a fantastic scripter and we’ve used heaps of his CLI info to create useful plugins for the community. 

  • Like 3
Link to comment
Share on other sites

On 11/28/2022 at 10:10 PM, Happy2Play said:

See first post for update

V1.0.0.5

  1. Removed Top Pick Items from the available item list
  2. re introduced the auto scanning... this will take place 1 min after an item event is detected
  3. re introduced auto run after a library scan
  4. tested against top pick plugin and there is no endless looping... but please test
  5. fixed the locked items bug.

Good luck and let @Cheesegeezer know how the testing goes.

Doesn't work well for me. During scan the plugin runs every second... after all, I have multiple movies listed. Downgrade to 1.0.0.4 works as expected.

Link to comment
Share on other sites

Cheesegeezer
28 minutes ago, dual-o said:

Doesn't work well for me. During scan the plugin runs every second... after all, I have multiple movies listed. Downgrade to 1.0.0.4 works as expected.

Can you provide a log for both versions please

Link to comment
Share on other sites

  • 2 weeks later...
Sarakha63

Great plugin for this missing feature in emby core.

I may have some suggestions

I was wondering if order of versions could be handled (maybe by adding a number) and maybe an option to append the source to the version name.

I explain

I have a movie library in this one i declare 3 folders

- 1 is my folder on my NAS (personal folder)
- 2 is a distant folder (a friend's nas) mapped 
- 3 is the same for another friend

And in the case the movie is found  on multiple nas i would rather the default first one to be mine. And to see on the version name something to identify where the file is


Maybe simply an option to put a number in front of the version name  regarding the order the folder i declared or something like that.

i don't know if i'm clear on the use case ?

Link to comment
Share on other sites

This would have to be added to the plugin so there was some kind of priority in the way the files are added.
What might make this hard is the fact that people are all going to have different needs and what the ordering done differently.

Carlo

Link to comment
Share on other sites

  • 4 weeks later...
On 11/7/2022 at 2:07 PM, Cheesegeezer said:

the strm file actually causes an issue…

they get grouped by the plugin. They are a virtual file which was never supposed to be allowed in the original code. You just got lucky by it working. 

On 11/7/2022 at 2:27 PM, Happy2Play said:

But they are not virtual according to the database as there all have IsVirtualItem=0, only IsVirtualItem in my database are Missing/UnAired seasons/episodes (type7/8).

Any word on restoring strm functionality?  Up until the last 2 versions this has always worked. Emby itself handles strm files perfectly fine when they are grouped and have always grouped these itself if in the same directory following the proper naming conventions. Emby will group strm files as well if they are named correctly and in the same directory with other media files named correctly.

I ran across this again today while remoted in helping someone who thought the new version of Emby was broken as their VOD files (strm) were no longer grouping like they used to. This change from grouping strm files to no longer grouping them is leaving some people's libraries a bit of a mess.

Link to comment
Share on other sites

I just installed this addon, and at first It seemed to work, I went from 5746 to 5381 movies due to duplicate version, so about 350 os so moves were grouped.

But then I noticed it seems to be stuck on a couple of movies, and it also missed quite some movies.

I also notice that it's not possible to manually group movies since I installled the plugin.

I'm running Emby server Version 4.7.11.0, and  Auto Movie Version Collections 1.0.0.5

 

Here is a part of the logfile showing  the two movies that are repededly being processed by the plugin.

2023-01-09 10:30:15.489 Info Auto Movie Version Collections: AutoCollections is happy to continue processing /media/va041nas01/Movies/Ad.Astra.2019.2160p.UHD.BluRay-AAAUHD.mkv
2023-01-09 10:30:15.491 Info Auto Movie Version Collections: Library Event Detected for Auto Version Grouping but will wait 1 min
2023-01-09 10:30:15.492 Info Auto Movie Version Collections: Library Event Detected for Auto Version Grouping but will wait 1 min
2023-01-09 10:30:15.494 Info Auto Movie Version Collections: Library Event Detected for Auto Version Grouping but will wait 1 min
2023-01-09 10:30:15.494 Info Auto Movie Version Collections: AutoCollections is happy to continue processing /media/gr021nas/Filmer/Ad.Astra.2019.1080p.WEB-DL.DD5.1.x264-CMRG/Ad.Astra.2019.1080p.WEB-DL.DD5.1.x264-CMRG.mkv
2023-01-09 10:30:15.496 Info Auto Movie Version Collections: Library Event Detected for Auto Version Grouping but will wait 1 min
2023-01-09 10:30:15.498 Info Auto Movie Version Collections: Library Event Detected for Auto Version Grouping but will wait 1 min
2023-01-09 10:30:15.510 Info Auto Movie Version Collections: Library Event Detected for Auto Version Grouping but will wait 1 min
2023-01-09 10:30:15.512 Info Auto Movie Version Collections: AutoCollections is happy to continue processing /media/va041nas01/Movies/Adrift 2018 BluRay 1080p DD5.1 H265-d3g.mkv
2023-01-09 10:30:15.515 Info Auto Movie Version Collections: Library Event Detected for Auto Version Grouping but will wait 1 min
2023-01-09 10:30:15.517 Info Auto Movie Version Collections: Library Event Detected for Auto Version Grouping but will wait 1 min
2023-01-09 10:30:15.519 Info Auto Movie Version Collections: Library Event Detected for Auto Version Grouping but will wait 1 min
2023-01-09 10:30:15.519 Info Auto Movie Version Collections: AutoCollections is happy to continue processing /media/gr021nas/Filmer/Adrift.2018.1080p.WEB-DL.DD5.1.H264-CMRG/Adrift.2018.1080p.WEB-DL.DD5.1.H264-CMRG.MKV
2023-01-09 10:30:15.521 Info Auto Movie Version Collections: Library Event Detected for Auto Version Grouping but will wait 1 min
2023-01-09 10:30:15.522 Info Auto Movie Version Collections: Library Event Detected for Auto Version Grouping but will wait 1 min
2023-01-09 10:30:15.524 Info Auto Movie Version Collections: Library Event Detected for Auto Version Grouping but will wait 1 min
2023-01-09 10:30:15.524 Info Auto Movie Version Collections: Automatic Movie version grouping completed.
2023-01-09 10:30:27.124 Info Auto Movie Version Collections: New Library Event --- Running AutoGroup Task for Ad Astra
2023-01-09 10:30:27.124 Info Auto Movie Version Collections: New Library Event --- Running AutoGroup Task for Ad Astra
2023-01-09 10:30:27.124 Info Auto Movie Version Collections: New Library Event --- Running AutoGroup Task for Ad Astra
2023-01-09 10:30:27.124 Info Auto Movie Version Collections: Getting items to process
2023-01-09 10:30:27.124 Info Auto Movie Version Collections: Getting items to process
2023-01-09 10:30:27.271 Info Auto Movie Version Collections: New Library Event --- Running AutoGroup Task for Ad Astra
2023-01-09 10:30:27.271 Info Auto Movie Version Collections: New Library Event --- Running AutoGroup Task for Ad Astra
2023-01-09 10:30:27.596 Info Auto Movie Version Collections: New Library Event --- Running AutoGroup Task for Adrift
2023-01-09 10:30:27.596 Info Auto Movie Version Collections: New Library Event --- Running AutoGroup Task for Ad Astra
2023-01-09 10:30:27.926 Info Auto Movie Version Collections: New Library Event --- Running AutoGroup Task for Adrift
2023-01-09 10:30:27.926 Info Auto Movie Version Collections: New Library Event --- Running AutoGroup Task for Adrift
2023-01-09 10:30:28.073 Info Auto Movie Version Collections: New Library Event --- Running AutoGroup Task for Adrift
2023-01-09 10:30:28.214 Info Auto Movie Version Collections: New Library Event --- Running AutoGroup Task for Adrift
2023-01-09 10:30:28.375 Info Auto Movie Version Collections: New Library Event --- Running AutoGroup Task for Adrift
2023-01-09 10:30:28.864 Info Auto Movie Version Collections: GetItemsToProcess took 1739 ms
2023-01-09 10:30:28.864 Info Auto Movie Version Collections: Executing Automatic Collections creation. Searching distinct movies with separated versions, DoNotChangeLockedMovies = 'False'
2023-01-09 10:30:28.872 Info Auto Movie Version Collections: Found 362 of 4051 movies that have multiple versions ...
2023-01-09 10:30:28.872 Info Auto Movie Version Collections: Searching distinct tmdb movies ...
2023-01-09 10:30:29.348 Info Auto Movie Version Collections: GetItemsToProcess took 2224 ms
2023-01-09 10:30:29.752 Info Auto Movie Version Collections: Searching distinct imdb movies ...
2023-01-09 10:30:29.756 Info Auto Movie Version Collections: Found 2 tmdb and 0 imdb version movie lists, merging them to process ...
2023-01-09 10:30:29.756 Info Auto Movie Version Collections: Executing Movie version grouping. Found 2 movies require regrouping and update.
2023-01-09 10:30:29.757 Info Auto Movie Version Collections: AutoCollections is happy to continue processing /media/va041nas01/Movies/Ad.Astra.2019.2160p.UHD.BluRay-AAAUHD.mkv
2023-01-09 10:30:29.759 Info Auto Movie Version Collections: Library Event Detected for Auto Version Grouping but will wait 1 min
2023-01-09 10:30:29.760 Info Auto Movie Version Collections: Library Event Detected for Auto Version Grouping but will wait 1 min
2023-01-09 10:30:29.761 Info Auto Movie Version Collections: Library Event Detected for Auto Version Grouping but will wait 1 min

 

Link to comment
Share on other sites

Cheesegeezer
58 minutes ago, BlackDub said:

This plugin work on 4.8.0.21 beta? im trying but not working. Thanks

probably not.  i may need to update the nuget package.  Revert back to release version of the server if you wish to use this.  A lot of changes in the current betas that are making plugins a little unstable at the moment.

Best advice i can give

Link to comment
Share on other sites

BlackDub
3 minutes ago, Cheesegeezer said:

probably not.  i may need to update the nuget package.  Revert back to release version of the server if you wish to use this.  A lot of changes in the current betas that are making plugins a little unstable at the moment.

Best advice i can give

Thanks you for your work!

  • Thanks 1
Link to comment
Share on other sites

Cheesegeezer
2 hours ago, svyaznoy362 said:

Hi, how do I split the movie versions after removing the plugin

You need to run a library scan

Link to comment
Share on other sites

  • 2 weeks later...
GrimReaper
25 minutes ago, fuzzynet said:

Is there a setting for the plugin to ignore specific libraries?

Nope. What would be the exact purpose of that? 

Link to comment
Share on other sites

GrimReaper
3 minutes ago, Banquero said:

Buenas tardes, como instalo este complemento en DSM 7..Cual es la ruta? Muchas gracias...

 

  • Like 1
Link to comment
Share on other sites

ainz_nagool

hey guys,

@MikePlanetthanks for such an amazing plugin, but it seems to be having issues merging. The Library has many movies that require merging, but on running the plugin the logs show no movies requiring merging detected.
i am running the latest version of the server 4.7.11 and i've tried both versions of the plugin, 1.0.0.4 and 1.0.0.5

A snippet from the log

Quote
2023-02-08 09:41:28.439 Info Auto Movie Version Collections: Executing Automatic Collections creation.  Searching distinct movies with separated versions, DoNotChangeLockedMovies = 'False'
2023-02-08 09:41:30.038 Info Auto Movie Version Collections: Found 0 of 0 movies that have multiple versions ...
2023-02-08 09:41:30.038 Info Auto Movie Version Collections: Searching distinct tmdb movies ...
2023-02-08 09:41:30.046 Info Auto Movie Version Collections: Searching distinct imdb movies ...
2023-02-08 09:41:30.053 Info Auto Movie Version Collections: Found 0 tmdb and 0 imdb version movie lists, merging them to process ...
2023-02-08 09:41:30.053 Info Auto Movie Version Collections: No movies with multiple ungrouped versions found, we're done!

Any ideas as to whats happening?

Link to comment
Share on other sites

Cheesegeezer
41 minutes ago, ainz_nagool said:

hey guys,

@MikePlanetthanks for such an amazing plugin, but it seems to be having issues merging. The Library has many movies that require merging, but on running the plugin the logs show no movies requiring merging detected.
i am running the latest version of the server 4.7.11 and i've tried both versions of the plugin, 1.0.0.4 and 1.0.0.5

A snippet from the log

Any ideas as to whats happening?

Can you show examples of many movies that need merging

Link to comment
Share on other sites

dRuEFFECT
On 2/3/2023 at 11:32 AM, GrimReaper said:

Nope. What would be the exact purpose of that? 

Well for one, I would want my Movies library maintained by this, but I also have a library of PPV events that's not really maintained and the auto-matching is very loose where some files get matched to the wrong events and I wouldn't want those grouped at all.

Link to comment
Share on other sites

Pomphardt
On 08/02/2023 at 10:45, ainz_nagool said:

hey guys,

@MikePlanetthanks for such an amazing plugin, but it seems to be having issues merging. The Library has many movies that require merging, but on running the plugin the logs show no movies requiring merging detected.
i am running the latest version of the server 4.7.11 and i've tried both versions of the plugin, 1.0.0.4 and 1.0.0.5

A snippet from the log

Any ideas as to whats happening?

I seem to have the same problem, my log:

Auto Movie Version Collections: Executing Automatic Collections creation. Searching distinct movies with separated versions, DoNotChangeLockedMovies = 'False'
Auto Movie Version Collections: Found 1 of 54 movies that have multiple versions ...
Auto Movie Version Collections: Searching distinct tmdb movies ...
Auto Movie Version Collections: Searching distinct imdb movies ...
Auto Movie Version Collections: Found 0 tmdb and 0 imdb version movie lists, merging them to process ...
Auto Movie Version Collections: No movies with multiple ungrouped versions found, we're done!

The metadata (see attachments) are near identical, although notably the UniqueId-tags are swapped around:
image.png.45b3ec8a19f0640a1164e59c667df487.png

P.S.: there are way more duplicate entries in my libraries.

Godzilla Vs Mechagodzilla 2.1.nfo Godzilla Vs Mechagodzilla 2.2.nfo

Edited by Pomphardt
Link to comment
Share on other sites

  • 2 weeks later...
Err0r0815

For me its not Working 😕
The Task is running 8 Seconds and its done.

but the movies are note "grouped"

 

it says "Found 8 of 250 movies that have multiple versions ..."

i have way more movies

Edited by Err0r0815
Link to comment
Share on other sites

Happy2Play
54 minutes ago, Err0r0815 said:

For me its not Working 😕
The Task is running 8 Seconds and its done.

but the movies are note "grouped"

 

it says "Found 8 of 250 movies that have multiple versions ..."

i have way more movies

If they were grouped it worked, correct?

But specific examples would be needed if it didn't work.

  • Agree 1
Link to comment
Share on other sites

Err0r0815

i rescanned all libarys and checked the movies, that were grouped.

now there are two entries, one withe all movies grouped, and one without the group.

strange

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