Jump to content

Recommended Posts

Posted

hello,

I'm looking for the answer but I couldn't find it on the forum.

Is there any way to search for duplicate movies without installing plugin to group movies?

Thank you

Carlo
Posted

Hi, there is no easy way to do this but at least 2 ways to accomplish this.

One is via SQL against the library.db file but you need a SQL tool and need to run this when Emby Server is shut down or against a copy of the database.  This is my preferred method.

The other way is using a plug to generate a list of all movies and then looking for dupes.

  • Like 1
Posted
9 hours ago, cayars said:

Hi, there is no easy way to do this but at least 2 ways to accomplish this.

One is via SQL against the library.db file but you need a SQL tool and need to run this when Emby Server is shut down or against a copy of the database.  This is my preferred method.

The other way is using a plug to generate a list of all movies and then looking for dupes.

Thank you very much for your answer, using SQL is perfect for me.
Do you know any software or app that is good for editing the library.db file?
Your answer is helping me a lot.

Thanks again

Carlo
Posted

DBBrowser for Sqlite

This is what I use but I exclude 3D and 4K files (I keep 3D and 4K in the name)

select Name, ProductionYear from MediaItems where type=5 and Path not like '%4k%' and Path not like '%3D%' and Path not like '%extra%' group by Name || ProductionYear having count(Name || ProductionYear) > 1;

 

  • Like 1
Happy2Play
Posted

Note Emby has to be shutdown in order to open the library.db properly.  I would suggest ensuring you have a backup of your library.db before doing anything.

  • Like 1
  • Agree 1

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