spicywebau / craft-embedded-assets

Manage YouTube videos, Instagram photos and more as first class assets in Craft CMS
MIT License
171 stars 35 forks source link

Option to 'refresh' embedded asset data #186

Closed ttempleton closed 2 years ago

ttempleton commented 3 years ago

It would be good to have an option to batch-refresh embedded asset data, if some change on the provider's end causes some part of the existing embedded asset data other than the URL to be invalid (which seems like the cause of #185).

jakedohm commented 3 years ago

Subscribing! Thanks for opening this @ttempleton.

I think a pretty decent way to do this would be a console command. If I could run something like craft embedded-assets refresh --volume="videos" or something, that would make me really happy!

stevecomrie commented 3 years ago

Yeah, this also just hit one of my client sites and I'm staring down the barrel of re-uploading 100+ assets without any seemingly easy way to refresh the video thumbnails.

Does anyone know of an alternative option that's a little less labour intensive? Would a re-import / modify via FeedMe work?

thinkflo commented 3 years ago

@stevecomrie my quick and dirty script

https://github.com/spicywebau/craft-embedded-assets/issues/185#issuecomment-930221389

thisanimus commented 2 years ago

Bump on this one. We lost a couple hundred Vimeo thumbs.

ttempleton commented 2 years ago

Working on this in the 2.x branch. I've added console commands as suggested by @jakedohm. They work as follows:

If anyone would like to try it out, feel free, and please let me know if there are any issues or if you have any other feedback. Hoping to have 2.9.0 out within the next week.

thisanimus commented 2 years ago

@ttempleton you're a prince

ttempleton commented 2 years ago

2.9.0 has now been released with this feature.