Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

General

How to locally save youtube preview image?

Started by Alexander Kim 8 years ago · 0 replies · 558 views
8 years ago

That's my video list template:

TWIG
{% set regexp = '#^https://www.youtube.com/watch\\?v=#' %}

<img src="https://img.youtube.com/vi/{{ page.header.youtube|regex_replace(regexp, '') }}/hqdefault.jpg"

Is there any way to save that preview image locally to Media manager?

Suggested topics

Topic Participants Replies Views Activity
General · by Jerry Hunt, 4 days ago
2 95 15 hours ago
General · by pamtbaau, 20 hours ago
1 61 19 hours ago
General · by Andy Miller, 1 day ago
0 47 1 day ago
General · by Marcel, 12 months ago
6 356 5 days ago
General · by Duc , 6 days ago
3 44 6 days ago