Page 1 of 2

finding and removing duplicates

Posted: 2005-09-14 18:28:35
by ismanpa
Hello,
How can I find and remove duplicates?
Thank you.

Posted: 2005-09-14 19:38:25
by antp
Some time ago there was a script for that but it is not included anymore because it was not working anymore I think.
It is not very difficult to write, I'll check that tomorrow ;)

Posted: 2005-09-14 20:00:31
by ismanpa
That woul be great!!!

Posted: 2005-09-15 15:20:33
by antp
Here is it.
Put these two files in your scripts folder:
http://www.antp.be/temp/scripts/Find%20Duplicates.ifs
http://www.antp.be/temp/scripts/StringUtils1.pas
Use the Scripting menu (or Shift+F6), uncheck "display results" option. I specified few options for the script that can be configured in the scripts options panel. Be sure that the "movies to include" panel has the right option (e.g. "All" if you want to make the search on the whole catalog).
It is somewhat slow: for 800 movies on my AMD 1200 it took 30 seconds.
The result is saved in a text file (it asks the path at the startup of the script, c:\duplicates.txt by default)

Thx

Posted: 2005-09-15 15:30:30
by ismanpa
Great! Thank you very much indeed! I will test it right away.

Posted: 2005-09-16 14:50:33
by ismanpa
It works perfectly! Than youuuuuuuuu!!! :)

Posted: 2006-04-08 01:21:57
by robochief
antp wrote:Here is it.
Put these two files in your scripts folder:
http://www.antp.be/temp/scripts/Find%20Duplicates.ifs
http://www.antp.be/temp/scripts/StringUtils1.pas
Use the Scripting menu (or Shift+F6), uncheck "display results" option. I specified few options for the script that can be configured in the scripts options panel. Be sure that the "movies to include" panel has the right option (e.g. "All" if you want to make the search on the whole catalog).
It is somewhat slow: for 800 movies on my AMD 1200 it took 30 seconds.
The result is saved in a text file (it asks the path at the startup of the script, c:\duplicates.txt by default)
Those two files were removed. I'd like to be able to search for duplicates.
Thank you.

Posted: 2006-04-08 19:27:19
by antp
If they were removed it means that they are included in the AMC version that is currently available for download ;)

Posted: 2006-04-09 07:42:28
by robochief
antp wrote:If they were removed it means that they are included in the AMC version that is currently available for download ;)
Wow. That was easy. Thank you yet again, antp. :)

Posted: 2006-05-07 15:51:40
by Sorin
Hello antp!

One question about this scripts (maybe dully :)): where is it? I don't see it in the scripts lists, but i find these two files in scripts folder (listed above).

Thanks & excuse me for this !
-----------------------------------
P.S. please visit this viewtopic.php?t=2983 for one (or two) more answer.

Posted: 2006-05-07 17:56:43
by antp
You have to call the script window using "Scripting" menu entry, or Shift+F6, as the script is not made for getting info from internet (which corresponds to F6).

Posted: 2006-05-07 20:25:26
by Sorin
I still don't get it... :??:

Using "Scripting" menu entry or Shift+F6 - see all scripts, but nothing like "remove duplicates" or similar.

Posted: 2006-05-08 07:59:16
by antp
It should be at "Find Duplicates" :??: Be sure that in the Filters language the "?" is checked (as I did not specify a language for the script)

Posted: 2006-05-08 17:24:42
by Sorin
Buddy, i am sure that "?" is checked. ;)


But "Find Duplicates" is not here :badidea:

Posted: 2006-05-08 20:05:04
by antp
If the file is in the scripts folder, with the right extension (.ifs) then I do not know what is the problem

Posted: 2006-05-08 21:48:37
by Sorin
Problem is in file "scrpits.ini".

I change row "Infos.GetInfo=0" to "Infos.GetInfo=1" . Now is OK.

Posted: 2006-05-09 07:43:52
by antp
GetInfo=1 makes it appearing in F6 in addition of Shift+F6, but it is originally done for scripts that are supposed to get info from script.
So in this case it is not the problem, as it is supposed to appear in "scripting" even with that parameter =0.
By the way, this change can be done directly in the ".ifs" (or even through AMC's editor if you load the script), as the scripts.ini only has a cached copy which will be overwritten if the date of the script changes.

Posted: 2006-07-01 00:42:59
by lukecs
For the life of me I can't get this script to work.

It shows up but when I try running it, it gives me the following error message.

Script error in "MAIN":syntax error at line 1

here is line 1
<?xml version="1.0" encoding="iso-8859-1"?>

Posted: 2006-07-01 09:50:19
by antp
What's that thing doing there? :??:
It should not contain any XML or HTML reference...
What are the next few lines of the file?

Posted: 2006-07-01 14:52:10
by lukecs
Thanks for the quick reply. Shortly after finding this error I tried some other scripts and they gave the same error message. I had done nothing but download the two files to make find duplicates work.

I reinstalled ant movie catalog and the problem went away. I'll advice you if I can repeat the problem again.

I'd like to thank you for the support you've offered with the program. Its understandable that you've moved on to other projects and other things in your life but to maintain this level of quality support for the program is incredible.