• Hi, may i know whats the propper way to add media to queue.
    is it this?
    kgvid_cron_new_attachment_handler($media_id);
    or this?
    kgvid_add_attachment_handler($media_id);

    also, my queue is stuck again for some reason and the code bellow doesnt clear all of them. the plugin was working perfectly so i didnt modify or use any functions to add or clear the queue. i didnt mess with it at all.
    update_option('kgvid_video_embed_queue', '');

    most of the queue has this status even if they are already converted.
    Please wait while this video is automatically added to the queue...
    kgvid_video_embed_queue does clear the active ones though, files without the “Please wait-” status.

    i noticed that when you add a new media, it gets added to the inactive-queue then to the active-queue then back to the inactive-queue. or maybe it was never removed from the inactive-queue.

    i hope this makes sense to you.. lol

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Kyle Gilman

    (@kylegilman)

    It depends on what you want to do. kgvid_cron_new_attachment_handler($media_id); will do any automatic processing you’ve set up, including thumbnails and encoding. If you don’t have automatic processing turned on it would be more complicated.

    Those weird queue entries are transients. I won’t even try to guess why they’re sticking around, but you can use a plugin like Transients Manager to clear kgvid_new_attachment_transient

    Thread Starter Metal_13

    (@metal_13)

    i deleted kgvid_new_attachment_transient from my transients and nothing changed.
    i opened the kgvid_new_attachment_transient before deleting and it only had 8-12 ids inside. is that normal?
    i also tried searching for kgvid/videopack related transients but found none.
    my queue is close to a thousand.. lol

    • This reply was modified 2 years, 10 months ago by Metal_13.
    Thread Starter Metal_13

    (@metal_13)

    it turns out that my cron was broken. anyways thanks, ill find a way to fix it.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Function to add media to queue and clear all queue’ is closed to new replies.