Skip to content

Instantly share code, notes, and snippets.

@pije76
Forked from buchin/video.html
Last active August 29, 2015 14:06
Show Gist options
  • Save pije76/1dcb158ec00d58e9640b to your computer and use it in GitHub Desktop.
Save pije76/1dcb158ec00d58e9640b to your computer and use it in GitHub Desktop.
{% video %}
{% for index, v in videos %}
<iframe class="youtube-player" type="text/html" width="560" height="315" src="http://www.youtube.com/embed/{{ v.link | get_video_id }}" frameborder="0">
</iframe>
<p><img src="http://img.youtube.com/vi/{{ v.link | get_video_id }}/hqdefault.jpg" align="left"/>{{ v.title }}.
<br>
<strong>Download {{ v.title }}</strong>
<a href="http://keepvid.com/?url={{ v.link }}">MP4</a> |
<a href="http://keepvid.com/?url={{ v.link }}">FLV</a> |
<a href="http://keepvid.com/?url={{ v.link }}">3GP</a> |
<a href="http://snipmp3.com/?url={{ v.link }}">MP3</a>
</p>
{% endfor %}
{% api %}{% video %}
{% for ti, item in api %}
{% for vi, video in videos %}
{% if ti == vi %}
{% if ti > 1 %}{% if ti < 5 %}
<a href="{{ item.title | build_permalink_for 2 }}">
<img src="http://img.youtube.com/vi/{{ video.link | get_video_id }}/default.jpg" hspace="5" align="left" width="120" height="90" />
</a>
<a href="{{ item.title | build_permalink_for 2 }}">
<b>{{item.title | remove '...' | trim | strtolower | ucfirst }}</b>
</a>
<br />
{{item.description | remove '...' | trim | strtolower | ucfirst }}...
{% endif %}{% endif %}
{% endif %}
{% endfor %}
{% endfor %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment