Project:Video Upload
Version:7.x-1.x-dev
Component:Code
Category:bug report
Priority:critical
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

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

Comments

#1

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

#2

Status:active» needs review

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

AttachmentSize
fix.patch 759 bytes

#3

Version:6.x-1.4» 6.x-1.x-dev

#4

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.

#5

Status:patch (to be ported)» fixed

Committed to 7.x.

#6

Status:fixed» closed (fixed)

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

nobody click here