• Welcome to PHPVIBE Forums. Please log in.

[ Video Sharing CMS v4 ] Cleaning up rawmedia after successful conversion?

Started by thexyd,

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

thexydTopic starter

Is there a way to automatically remove the source video from the rawmedia folder after a video is successfully converted?
  •  

PHPVibe A.

We're aware of this need, it will fail on some setups (no permissions on shared). To be patched shortly.

Marius P.

Quote from: Alexander on
We're aware of this need, it will fail on some setups (no permissions on shared). To be patched shortly.

Hard to let go. Right? :)
Sorry to see you leaving us!
Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

thexydTopic starter

Quote from: Alexander on
We're aware of this need, it will fail on some setups (no permissions on shared). To be patched shortly.

Good stuff. For those who don't want to wait, a simple shell script on a */5 cron can do the trick:

#!/bin/bash
find "/var/www/html/rawmedia" -type f -mmin +120 -print0 | xargs -0 rm -f
echo "No." > /var/www/html/rawmedia/index.html


Adjust the paths as necessary. This will delete raw media uploads which haven't been touched in 2 hours (giving the system more than enough time to encode/convert the source).
  •  

prat

Hey Mario

I'm not a programmer so can you explain in detail ? which file to change and what to replace ??

thx
  •  

Marius P.

Quote from: prat on
Hey Mario

I'm not a programmer so can you explain in detail ? which file to change and what to replace ??

thx

I didn't provide any solution or had time to test the one provided by @thxyd
Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

Similar topics (7)