finding and removing duplicates

If you need help on how to use the program
ismanpa
Posts: 12
Joined: 2005-04-26 19:41:31

finding and removing duplicates

Post by ismanpa »

Hello,
How can I find and remove duplicates?
Thank you.
antp
Site Admin
Posts: 9629
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post 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 ;)
ismanpa
Posts: 12
Joined: 2005-04-26 19:41:31

Post by ismanpa »

That woul be great!!!
antp
Site Admin
Posts: 9629
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post 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)
ismanpa
Posts: 12
Joined: 2005-04-26 19:41:31

Thx

Post by ismanpa »

Great! Thank you very much indeed! I will test it right away.
ismanpa
Posts: 12
Joined: 2005-04-26 19:41:31

Post by ismanpa »

It works perfectly! Than youuuuuuuuu!!! :)
robochief
Posts: 10
Joined: 2006-02-25 15:56:26

Post 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.
antp
Site Admin
Posts: 9629
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

If they were removed it means that they are included in the AMC version that is currently available for download ;)
robochief
Posts: 10
Joined: 2006-02-25 15:56:26

Post 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. :)
Sorin
Posts: 24
Joined: 2006-03-22 21:05:25

Post 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.
antp
Site Admin
Posts: 9629
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post 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).
Sorin
Posts: 24
Joined: 2006-03-22 21:05:25

Post 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.
antp
Site Admin
Posts: 9629
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post 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)
Sorin
Posts: 24
Joined: 2006-03-22 21:05:25

Post by Sorin »

Buddy, i am sure that "?" is checked. ;)


But "Find Duplicates" is not here :badidea:
antp
Site Admin
Posts: 9629
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

If the file is in the scripts folder, with the right extension (.ifs) then I do not know what is the problem
Sorin
Posts: 24
Joined: 2006-03-22 21:05:25

Post by Sorin »

Problem is in file "scrpits.ini".

I change row "Infos.GetInfo=0" to "Infos.GetInfo=1" . Now is OK.
antp
Site Admin
Posts: 9629
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post 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.
lukecs
Posts: 21
Joined: 2002-07-25 03:38:29
Location: Calgary, Canada
Contact:

Post 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"?>
antp
Site Admin
Posts: 9629
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post 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?
lukecs
Posts: 21
Joined: 2002-07-25 03:38:29
Location: Calgary, Canada
Contact:

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