•  » Extensions
  •  » Python script to copy album info from coppermine album to piwigo album

#1 2024-11-12 16:26:27

maikelvangorkom
Member
2024-11-12
7

Python script to copy album info from coppermine album to piwigo album

Hi All,

I've been a coppermine user for a long time. Last year started using piwigo.

My main issue is that i've got a lot of info in coppermine, that i need to convert to coppermine. It should be ashamed if i needed to edit every picture while the info is already there.

How it works:
(edit the content of the python script so it can connect to both databases)

Create the piwigo album for the content.
Migrate the content of a single CM album to the piwigo album
Start the python script:
- It asks the CM album number.
- It asks the Piwigo album number. (If you don't enter any number, it will check the last added Piwigo album)

Then you will see a couple of dots and O's (a dot for 1 through 9 and an O for every 10th picture)

After that you can remove the CM album.

Please note before using the script the first time, make a backup of:
- All databases
- Coppermine album
- Piwigo album
If something goes wrong, and you ask, the first thing i'll ask if you have restored the databases and all albums... Please make sure you have a backup!

Script location:
https://github.com/MaikelvanGorkom/piwi … -piwigo.py

Offline

 

#2 2024-11-12 16:27:50

maikelvangorkom
Member
2024-11-12
7

Re: Python script to copy album info from coppermine album to piwigo album

It will only migrate title and description info to their respective counterpart, so no creation date or anything else.

Offline

 
  •  » Extensions
  •  » Python script to copy album info from coppermine album to piwigo album

Board footer

Powered by FluxBB