Skip to content
Grav 2.1 is out: every page speaks Markdown. Read the announcement →

How to locally save youtube preview image?

Started by Alexander Kim 8 years ago · 0 replies · 682 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 jeremycherfas, 1 week ago
4 181 2 days ago
General · by lynbor, 6 days ago
2 124 3 days ago
General · by Old Man Umby, 1 week ago
1 100 1 week ago
General · by Sebastian, 2 weeks ago
1 124 1 week ago
General · by Andy Miller, 3 weeks ago
0 248 3 weeks ago