When you delete a node not delete local file or YouTube video.

CommentFileSizeAuthor
#2 fix.patch759 bytesbojanz

Comments

n3uronick’s picture

After quite a long while, finally found the problem with youtube deletion.
You have to do it via Manage Video Uploads (admin/content/video-upload) and after the node was deleted. Then you will be able to select an orphaned video and choose delete.

BUT, there is bug in code which results in deletion process not being executed. So, you have to change function video_upload_admin_video_delete_confirm_submit($form_id, $form_values) in video_upload.admin.inc

line 104 should be:
if ($form_values['values']['confirm']) {

and line 107:
foreach ($form_values['values']['videos'] as $vid => $value) {

bojanz’s picture

Status: Active » Needs review
StatusFileSize
new759 bytes

Neuronick's change fixed it for me, attaching it as a patch.

bojanz’s picture

Version: 6.x-1.4 » 6.x-1.x-dev
jhedstrom’s picture

Version: 6.x-1.x-dev » 7.x-1.x-dev
Status: Needs review » Patch (to be ported)

Thanks neuronick and bojanz, committed to 6.x.

jhedstrom’s picture

Status: Patch (to be ported) » Fixed

Committed to 7.x.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.