Closed (fixed)
Project:
YouTube Field
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
3 Oct 2014 at 14:00 UTC
Updated:
4 Mar 2015 at 22:34 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
guschilds commentedHey jbennett,
The easiest way to delete all YouTube Filed thumbnails is to delete the directory that the module saves its image files in. By default that is sites/default/files/youtube. The easiest way to delete the thumbnail for a single video is to find the file in that directory with the same video ID and delete it. Next time a page is loaded that uses the thumbnail for that video, it will be re-downloaded from YouTube.
There is currently no way to do this within the module settings. I've attached a patch that adds a "Refresh existing thumbnail image files" button to the module settings. This will delete all YouTube Field images in the files directory (as mentioned above) except for those generated with image styles. The message displayed after the button is clicked hints that the imagestyleflush module may help with deleting those versions.
This patch applies to the 7.x-1.3 version. Could you try it? Do you think this button is useful and would help others?
Thanks!
Comment #2
dasginganinjaguschilds: I tested this patch against 7.x-1.3 and it is working for me. I think it's a nice feature to have and could help others.
Comment #4
guschilds commentedThe patch in #1 has been committed to the 7.x-1.x branch. To keep features aligned, this functionality now needs to be ported to the 8.x-1.x branch.
Comment #6
guschilds commentedThis has been ported to the 8.x-1.x branch and committed. Both versions now have this feature. Thanks again for the help.