I’ve got thousands of videos, each with a .webm and .flv version, along with a .jpg thumb—all three with the same file name (different extensions of course). I also have a text file with the title for each of these videos.
Is there any tool I can use to import all of these to CCGallery, assuming I can get them into the right standard forms/directories, etc. (which I can since I hack Perl routinely).
I’m looking into writing a wp-cli command for this:
https://github.com/wp-cli/wp-cli/wiki/Commands-Cookbookjabowery said
I’m looking into writing a wp-cli command for this: https://github.com/wp-cli/wp-cli/wiki/Commands-Cookbook
I implemented a ‘wp’ command to print out the xml of a gallery given its id. The next step, I suppose, is to do the inverse command: Given the xml of a gallery, create it. This would require changing the plugin itself so that the function ‘ccgallery_xml’ could take as its only argument the xml of the gallery to be imported (the files would already have to reside in the proper paths of course).
The wp-cli command now is working>
wp CCGallery xml <gallery number> [<xml file name>]
If you put in a 0 for the gallery number, it creates a new gallery. I don’t have the XML specifying the gallery parameters yet—just the items.
However, it seems the system is freaking out at the large number of items.
What is a practical limit on the number of items in a gallery?
jabowery said
jabowery saidI implemented a ‘wp’ command to print out the xml of a gallery given its id. The next step, I suppose, is to do the inverse command: Given the xml of a gallery, create it. This would require changing the plugin itself so that the function ‘ccgallery_xml’ could take as its only argument the xml of the gallery to be imported (the files would already have to reside in the proper paths of course).
I’m looking into writing a wp-cli command for this: https://github.com/wp-cli/wp-cli/wiki/Commands-Cookbook
Hi, Jabowery,
You should probably contact the author with the profile in which you purchased the plugin. I’m sure he/she’ll be glad to help you on this.
