CodeCanyon

Bulk import videos, thumbs and titles to CCGallery?

4 posts
  • Has been a member for 0-1 years
jabowery says

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).

4 posts
  • Has been a member for 0-1 years
jabowery says

I’m looking into writing a wp-cli command for this:

https://github.com/wp-cli/wp-cli/wiki/Commands-Cookbook
4 posts
  • Has been a member for 0-1 years
jabowery says

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).

4 posts
  • Has been a member for 0-1 years
jabowery says

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?



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).
624 posts
  • Exclusive Author
  • Sold between 100 and 1 000 dollars
  • Bought between 10 and 49 items
  • Has been a member for 0-1 years
  • Haiti
Crakken says

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.

by
by
by
by
by