how to fix large number of broken photo links

redmapleleaf

Joined: 2010-11-30
Posts: 3
Posted: Tue, 2010-11-30 21:43

Hi all,

I have many duplicated photos on my G2 gallery so I used the linux utility fdupes to remove the duplicated photos in the g2data directory. Unfortunately this created many broken photo link in my gallery. Would you know of a way where I can easily clean up my broken links?

Thanks,

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Tue, 2010-11-30 23:02

wow, that was not smart
I have a tool that will remove the items that have no corresponding image in g2data.

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
redmapleleaf

Joined: 2010-11-30
Posts: 3
Posted: Wed, 2010-12-01 11:28

hi supridr,
your tool is not free, is it?

I wonder if somebody else might have this problem before and know how to fix it. I am familiar with database and perl programming so if someone could point me to the database table that I should fix then may be I can come up with the program myself.

thanks,

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Wed, 2010-12-01 12:49
 
redmapleleaf

Joined: 2010-11-30
Posts: 3
Posted: Wed, 2010-12-01 15:20

that is a very nice tool suprsidr. It works. It looks like that even if I chose a sub album, the tool always run it from the RootAlbum?

You rock man.