Announcement

#1 2009-04-29 13:17:04

worwan
Member
2008-06-16
21

[resolved] creation of wierd categories?

Hi,

I've created python script that remove not valid chars, rotate, resize and creates thumbnails on filesystem...then I've synchronized like 20k pictures. It took some time...its just  fine...but one weird thing happened...

I have 2 main categories (LCs and konference)...where all pictures are.

But in gallery there is much more categories!! (Ive modified little bit names so it is not specific :)...How were these categories created?? I dont want them :))
    * LCs [16672](!)
    * konference [1613](!)
    * Nickname
    * Fertok
    * Duarte
    * ORGNAME
    * ORGNAME
    * ORGNAME photos
    * ORGNAME
    * Carol photos
    * ORGNAME photos
    * Marilia
    * ORGNAME photos
    * Carol photos
    * Martin photos
    * ORGNAME photos
    * matt photos
    * Duarte photos
    * Nickname photos
    * John photos
    * morpheus photos
    * Munich photos
    * NoName photos
    * ORGNAME
    * Kevin photos
    * ORGNAME photos
    * Matt photos
    * Nickname
    * ORGNAME
    * Stefan photos
    * ORGNAME photos
    * Matt photos
    * ORGNAME photos
    * ORGNAME photos
    * Matt photos
    * John photos
    * Abdulaziz
    * ORGNAME
    * mais
    * Matt Photos

Thanks

Offline

 

#2 2009-04-29 23:52:36

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13791

Re: [resolved] creation of wierd categories?

During the synchronization process, each directory under "galleries" is considered as a category (with exceptions like "thumbnails", "pwg_representative", "pwg_high"). Read [Administration>Links>Instructions>Add photos, the FTP way] to understand the file organization under "galleries".

By the way, instead of creating a directory tree and then ask a synchronization in Piwigo administration, why didn't you do what pLoader do : communicate with Piwigo web API to create categories and add photos one by one? (no need to synchronize when you use the pwg.images.add method, see information on [wiki] pwg.images.add & pwg.images.addChunk)

Offline

 

#3 2009-04-30 00:47:21

worwan
Member
2008-06-16
21

Re: [resolved] creation of wierd categories?

thanks for answer..

As I said...physically there are just 2 categories under "galleries"...the rest of albums has appeared on "home page" of gallery I dont know why! :)

Ill check out piwigo web api..thats something i was looking for but obviously I've missed it;)

Offline

 

#4 2009-05-04 01:27:12

worwan
Member
2008-06-16
21

Re: [resolved] creation of wierd categories?

it really has to be some bug..because now..every synchronization process remove one of these "weird" categories :)..but I dont know how to specify conditions...and probably it was caused by my script..thought I dont know how that would be possible :). We shall see if thats repeat sometimes :)

Thanks

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact