XBMC Duplicate Files

Dolby

Honorary Master
Joined
Jan 31, 2005
Messages
39,132
Reaction score
6,138
My movies are (supposed) to be listed in my directory like this :

C:\ants\ant.mkv
C:\toy story\toy story.mkv
C:\lethal weapon\lethal weapon.mkv

I point XBMC to the directory and it sees 3 movies and downloads coverart etc for them. However, sometimes I have two formats of movie files (by mistake) in the folders, like this :

C:\ants\ant.mkv
C:\ants\ant.mov
C:\toy story\toy story.mkv
C:\lethal weapon\lethal weapon.mkv
C:\lethal weapon\lethal weapon.avi

So if I point to XBMC now, it registers 5 movies instead of the 3 - and when browsing title on XBMC I'll see duplicates.

Anyway to see which directory has the same name, but different format, movies so that I can delete?
 
There may be an easier way, but this the way that I normally do it.

I use the cmd command: dir /s/b > test.txt
Export the entire directory to a .txt file
From there I open this in Excel
Once in excel its easy to manipulate the information

Insert a column, add the number 1
Insert a pivot, and you can see any folder that has 2 entries has two movies
 
Ah nice!

I'll try that when home, thanks!
 
I sometimes interact directly with the XBMC db using SQLiteSpy, usually to fix taglines or incomplete scraped data, but executing this query will give you the names and count of duplicate movie names in XBMC.

select c00, count(*) from movie
group by c00 having count(*) > 1

c00 is the movie name column, you can also use c09 which is the IMDB tag or c22 which is the folder name column according to your needs.
 
I wouldn't even know how to start :/
 
I just put xbmc on the one side and explorer on the other then hunt the duplicates down and kill them (my drive is indexed though so quick and easy to do).
 
There may be an easier way, but this the way that I normally do it.

I use the cmd command: dir /s/b > test.txt
Export the entire directory to a .txt file
From there I open this in Excel
Once in excel its easy to manipulate the information

Insert a column, add the number 1
Insert a pivot, and you can see any folder that has 2 entries has two movies

How do I do this on a network drive ?
 
Try moving all your individual movie folders off the root directory of your drive (C:\) to a common folder, e.g. C:\Movies and see if the issue is resolved.

I never store large amounts of data folders in the root, but put them into a sub-folder instead.
 
Top
Sign up to the MyBroadband newsletter
X