# Refreshing YouTube Thumbnail

**URL:** <https://community.glideapps.com/t/refreshing-youtube-thumbnail/77616>\
**Category:** Ask for Help\
**Created:** [November 4, 2024, 7:17pm UTC](https://community.glideapps.com/t/refreshing-youtube-thumbnail/77616 "2024-11-04T19:17:11Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [November 4, 2024, 9:49pm UTC](https://community.glideapps.com/t/refreshing-youtube-thumbnail/77616/9 "2024-11-04T21:49:31Z")

</div>

If you are curious about the javascript, here is a link to another post that has it. For me, I put the url as the p1 parameter and ‘1’ as the p2 parameter. You may want to use ‘0’ instead. Might be overkill for your needs if a template column works well for you. The main advantage to the javascript is that it will also create thumbnails for videos hosted elsewhere, including videos hosted on Glide.

I believe that second p2 parameter has two uses. For youtube videos, it determines which image to grab. For videos hosted elsewhere, it will grab a thumbnail that many seconds into the video. That’s why I use a ‘1’, because I want a thumbnail at the 1 second mark.

> [@Video : thumbnail](https://community.glideapps.com/t/video-thumbnail/31232/55):
>
> Replit changed their pricing structure a few days ago, so a lot of these code repositories that were hosted for free were shut down. I had used @Manu.n’s code when he initially created it, but I didn’t want to rely on someone else maintaining it for the exact case that it may disappear at some point, so I made a copy of the code for myself. If you simply put this in a javascript column, and pass the url in the p1 parameter and a 1 for the p2 parameter, it will do the exact same thing. It does…

---

_[View the full topic](https://community.glideapps.com/t/refreshing-youtube-thumbnail/77616)._
