Add videoId
This commit is contained in:
parent
03e9329b68
commit
91ca0231fb
@ -5,6 +5,7 @@ Image: 2018/09/documental-snowden.jpg
|
||||
License: CC BY-NC 3.0
|
||||
Lang: es
|
||||
Og_video: https://archive.org/download/libreweb/citizenfour-spanish.webm
|
||||
VideoID: 5dde21e2440de0fcda01bf
|
||||
Slug: citizenfour
|
||||
Tags: snowden, citizenfour, libertad
|
||||
Time: 1:48:40
|
||||
|
@ -4,6 +4,7 @@ Date: 2018-02-15 08:08
|
||||
Image: 2017/12/como-generar-freakspot.jpg
|
||||
Lang: es
|
||||
Og_video: https://archive.org/download/libreweb/freakspot.webm
|
||||
VideoID: 7c80c7afd2b85b64d26983
|
||||
Slug: como-generar-freakspot
|
||||
Status: published
|
||||
Tags: educación, GNU/Linux, Pelican, Python, software libre, tutorial, video
|
||||
|
@ -4,6 +4,7 @@ Date: 2019-03-25 12:11
|
||||
Image: 2019/03/codificacion-html5.jpg
|
||||
Lang: es
|
||||
Og_video: https://archive.org/download/coursehtml5/0004-Codificacion.webm
|
||||
VideoID: 5b061b5343532c1941a5e6
|
||||
Slug: html5-codificacion
|
||||
Tags: html
|
||||
Time: 16:28
|
||||
|
@ -3,6 +3,7 @@ Category: courses
|
||||
Date: 2019-04-09 10:40
|
||||
Image: 2019/04/etiqueta-a.jpg
|
||||
Og_video: https://archive.org/download/coursehtml5/0009-Etiqueta-a.webm
|
||||
VideoID:ef864312ccf50f8ebbfa02
|
||||
Slug: etiqueta-a
|
||||
Tags: html5,video
|
||||
Time: 3:23
|
||||
|
@ -3,6 +3,7 @@ Category: course
|
||||
Date: 2019-06-06 12:42:10
|
||||
Image: 2019/06/etiqueta-address.jpg
|
||||
Og_video: https://archive.org/download/coursehtml5/0019-address.webm
|
||||
VideoID: 62c6f89c14b801c9d572fa
|
||||
Slug: etiqueta-address
|
||||
Tags: HTML, html, etiqueta address
|
||||
Title: Etiqueta address
|
||||
|
@ -3,6 +3,7 @@ Category: courses
|
||||
Date: 2019-04-09 12:23:54
|
||||
Image: 2019/04/etiqueta-article.jpg
|
||||
Og_video: https://archive.org/download/coursehtml5/0013-article.webm
|
||||
VideoID: 4a0f108e5bca7641629c58
|
||||
Slug: etiqueta-article
|
||||
Tags: html
|
||||
Time: 3:43
|
||||
|
@ -3,6 +3,7 @@ Category: courses
|
||||
Date: 2019-04-10 13:10:01
|
||||
Image: 2019/04/aside-html5.jpg
|
||||
Og_video: https://archive.org/download/coursehtml5/0014-aside.webm
|
||||
VideoID: f22ceccd5bc227ace6ca51
|
||||
Slug: etiqueta-aside
|
||||
Tags: html5
|
||||
Time: 5:55
|
||||
|
@ -3,6 +3,7 @@ Category: course
|
||||
Date: 2019-06-07 16:38:57
|
||||
Image: 2019/06/etiqueta-blockquote.jpg
|
||||
Og_video: https://archive.org/download/coursehtml5/0020-blockquote.webm
|
||||
VideoID: cae923d3dcb1603380483a
|
||||
Slug: etiqueta-blockquote
|
||||
Tags: HTML, html, blockquote
|
||||
Title: Etiqueta blockquote
|
||||
|
@ -3,6 +3,7 @@ Category: course
|
||||
Date: 2019-05-09 12:24:54
|
||||
Image: 2019/05/etiqueta-div.jpg
|
||||
Og_video: https://archive.org/download/coursehtml5/0015-div.webm
|
||||
VideoID: d9ec2ab72e794494af10dd
|
||||
Slug: etiqueta-div
|
||||
Tags: HTML
|
||||
Time: 3:56
|
||||
|
@ -3,6 +3,7 @@ Category: courses
|
||||
Date: 2019-06-03 15:13:07
|
||||
Image: 2019/06/etiqueta-figure.jpg
|
||||
Og_video: https://archive.org/download/coursehtml5/0017-figure.webm
|
||||
VideoID: ad2014896c877d6cd69ee9
|
||||
Slug: etiqueta-figure
|
||||
Tags: HTML, html, figure, html5
|
||||
Title: Etiqueta figure
|
||||
|
@ -3,6 +3,7 @@ Category: course
|
||||
Date: 2019-05-31 14:14:53
|
||||
Image: 2019/05/etiqueta-footer.jpg
|
||||
Og_video: https://archive.org/download/coursehtml5/0016-footer.webm
|
||||
VideoID: f85bf076c3ee0733088781
|
||||
Slug: etiqueta-footer
|
||||
Tags: html5
|
||||
Title: Etiqueta footer
|
||||
|
@ -3,6 +3,7 @@ Category: course
|
||||
Date: 2019-06-07 17:08:37
|
||||
Image: 2019/06/etiqueta-hr.jpg
|
||||
Og_video: https://archive.org/download/coursehtml5/0023-hr.webm
|
||||
VideoID: fa3f91130e22a88ed1fd2a
|
||||
Slug: etiqueta-hr
|
||||
Tags: HTML, html, hr
|
||||
Title: Etiqueta hr
|
||||
|
@ -3,6 +3,7 @@ Category: course
|
||||
Date: 2019-06-06 12:25:11
|
||||
Image: 2019/06/etiqueta-main.jpg
|
||||
Og_video: https://archive.org/download/coursehtml5/0018-main.webm
|
||||
VideoID: a8853fb41a1979932cd403
|
||||
Slug: etiqueta-main
|
||||
Tags: HTML, html, etiqueta main
|
||||
Title: Etiqueta main
|
||||
|
@ -3,6 +3,7 @@ Category: courses
|
||||
Date: 2019-03-25 18:44
|
||||
Image: 2019/03/nav-ul-ol-li.jpg
|
||||
Og_video: https://archive.org/download/coursehtml5/0008-nav-ul-ol-li.webm
|
||||
VideoID: cea4d0b002efb18e313207
|
||||
Slug: etiqueta-nav-ul-ol-li
|
||||
Tags: html
|
||||
Time: 8:20
|
||||
|
@ -3,6 +3,7 @@ Category: courses
|
||||
Date: 2019-04-09 12:11:46
|
||||
Image: 2019/04/etiqueta-section.jpg
|
||||
Og_video: https://archive.org/download/coursehtml5/0012-section.webm
|
||||
VideoID: d9b7fd0eb7082cebfafd74
|
||||
Slug: etiqueta-section
|
||||
Tags: html
|
||||
Time: 2:42
|
||||
|
@ -3,6 +3,7 @@ Category: course
|
||||
Date: 2019-06-07 16:55:36
|
||||
Image: 2019/06/etiquetas-cite-y-q.jpg
|
||||
Og_video: https://archive.org/download/coursehtml5/0021-cite-y-q.webm
|
||||
VideoID: 1e786b0a4823db6276f6a0
|
||||
Slug: etiquetas-cite-y-q
|
||||
Tags: HTML, html, cite, q
|
||||
Title: Etiquetas cite y q
|
||||
|
@ -3,6 +3,7 @@ Category: course
|
||||
Date: 2019-06-07 17:02:47
|
||||
Image: 2019/06/etiquetas-dl-dt-dd.jpg
|
||||
Og_video: https://archive.org/download/coursehtml5/0022-dl-dt-dd.webm
|
||||
VideoID: bf95fc8ae6864d6568d521
|
||||
Slug: etiquetas-dl-dt-dd
|
||||
Tags: HTML, html, dl, dt, dd
|
||||
Title: Etiquetas dl, dt y dd
|
||||
|
@ -3,6 +3,7 @@ Category: courses
|
||||
Date: 2019-04-09 11:12:18
|
||||
Image: 2019/04/etiquetas-span-p.jpg
|
||||
Og_video: https://archive.org/download/coursehtml5/0010-Etiquetas-p-span.webm
|
||||
VideoID: 6dbd88020270c925c97604
|
||||
Slug: etiquetas-p-span
|
||||
Tags: html
|
||||
Time: 3:14
|
||||
|
@ -3,6 +3,7 @@ Category: course
|
||||
Date: 2019-06-07 17:14:15
|
||||
Image: 2019/06/etiquetas-pre-y-code.jpg
|
||||
Og_video: https://archive.org/download/coursehtml5/0024-pre-y-code.webm
|
||||
VideoID: bf70a06606e9b97c7bf8c4
|
||||
Slug: etiquetas-pre-y-code
|
||||
Tags: HTML, html, pre, code
|
||||
Title: Etiquetas pre y code
|
||||
|
@ -3,6 +3,7 @@ Category: course
|
||||
Date: 2019-04-09 11:30:00
|
||||
Image: 2019/04/etiquetas-strong-em.jpg
|
||||
Og_video: https://archive.org/download/coursehtml5/0011-Etiquetas-strong-em.webm
|
||||
VideoID: 4d530191f1d9742ef905a5
|
||||
Slug: etiquetas-strong-em
|
||||
Tags: hml
|
||||
Time: 2:16
|
||||
|
@ -4,6 +4,7 @@ Date: 2019-03-25 12:12
|
||||
Image: 2019/03/header-html5.jpg
|
||||
Lang: es
|
||||
Og_video: https://archive.org/download/coursehtml5/0005-header.webm
|
||||
VideoID: d2760cde9776f05da68740
|
||||
Slug: html5-header
|
||||
Tags: html
|
||||
Time: 5:37
|
||||
|
@ -3,6 +3,7 @@ Category: courses
|
||||
Date: 2019-03-25 18:16
|
||||
Image: 2019/03/hgroup-html5.jpg
|
||||
Og_video: https://archive.org/download/coursehtml5/0007-hgroup.webm
|
||||
VideoID: f7131433d3f5cd67acbb00
|
||||
Slug: html5-hgroup
|
||||
Tags: html
|
||||
Time: 3:19
|
||||
|
@ -4,6 +4,7 @@ Date: 2019-03-25 11:06
|
||||
Image: 2019/03/intro-html5.jpg
|
||||
Lang: es
|
||||
Og_video: https://archive.org/download/coursehtml5/0001-Introduccion.webm
|
||||
VideoID: de8adf436cbf5dc61482c8
|
||||
Slug: html5-intro
|
||||
Tags: html
|
||||
Time: 9:16
|
||||
|
@ -3,6 +3,7 @@ Category: courses
|
||||
Date: 2019-03-25 11:07
|
||||
Image: 2019/03/nuevas-etiquetas.jpg
|
||||
Og_video: https://archive.org/download/coursehtml5/0002-nuevas-etiquetas.webm
|
||||
VideoID: 01b5f8a819c5a116acaf61
|
||||
Slug: html5-etiquetas
|
||||
Tags: html
|
||||
Time: 2:36
|
||||
|
@ -4,6 +4,7 @@ Date: 2019-03-25 11:09
|
||||
Image: 2019/03/sintaxis-html5.jpg
|
||||
Lang: es
|
||||
Og_video: https://archive.org/download/coursehtml5/0003-Sintaxis-HTML5.webm
|
||||
VideoID: e32f8dd70176cb111f9bf2
|
||||
Slug: html5-sintaxis
|
||||
Tags: html
|
||||
Time: 9:57
|
||||
|
@ -3,6 +3,7 @@ Category: courses
|
||||
Date: 2019-03-25 17:59
|
||||
Image: 2019/03/titulos-html5.jpg
|
||||
Og_video: https://archive.org/download/coursehtml5/0006-h1-h2-h3-h4-h5-h6.webm
|
||||
VideoID: 015fe02bdeb7fedb81f89e
|
||||
Slug: html5-titulos
|
||||
Tags: html
|
||||
Time: 7:55
|
||||
|
@ -3,6 +3,7 @@ Category: GNU/Linux
|
||||
Date: 2021-08-21 14:01:50
|
||||
Image: 2021/08/meet-hyperterm.jpg
|
||||
Og_video: https://archive.org/download/libreweb/meet-hyperterm.webm
|
||||
VideoID: cc85750f681825cd8f39c9
|
||||
Slug: entrevista-al-desarrollador-de-hyperterm
|
||||
Tags: hyperterm, bash, shell
|
||||
Time: 46:08
|
||||
|
@ -4,6 +4,7 @@ Date: 2008-09-02 21:04:48
|
||||
Image: 2008/09/happy-gnu.jpg
|
||||
License: CC BY-ND 3.0
|
||||
Og_video: https://archive.org/download/libreweb/sf-large.webm
|
||||
VideoID: 45d3bf143457c283889918
|
||||
Slug: happy-birthday-to-gnu
|
||||
Tags: GNU
|
||||
Time: 5:51
|
||||
|
@ -3,6 +3,7 @@ Category: Tutorial
|
||||
Date: 2019-11-08 12:56:11
|
||||
Image: 2019/11/hyperbola-base.jpg
|
||||
Og_video: https://archive.org/download/hyperguide/base.webm
|
||||
VideoID: 1e8e8975c0b1b6b11a43af
|
||||
Slug: hyperbola-gnu-linux-libre-base
|
||||
Tags: Hyperbola, GNU, Libre
|
||||
Time: 47:37
|
||||
|
@ -6,6 +6,7 @@ Lang: es
|
||||
License: Public Domain
|
||||
Modified: 2019-02-10 12:23
|
||||
Og_video: https://archive.org/download/libreweb/locutus.webm
|
||||
VideoID: 53671c106ba4596c360ee0
|
||||
Slug: locutus-de-gnu
|
||||
Status: published
|
||||
Tags: GNU/Linux, gracioso, humor, software libre, software privativo, Star Trek, video
|
||||
|
@ -5,6 +5,7 @@ Image: 2021/05/heckyel--entrevista-1.jpeg
|
||||
Lang: es
|
||||
License: CC BY-ND 4.0
|
||||
Og_video: https://archive.org/download/libreweb/heckyel--entrevista-1.webm
|
||||
VideoID: 424e6184a123c86f2fb139
|
||||
Slug: privacidad-y-seguridad---heckyel-entrevista---parte-1
|
||||
Tags: software libre, privacidad, seguridad, entrevista
|
||||
Time: 39:53
|
||||
|
@ -5,6 +5,7 @@ Image: 2021/05/heckyel--entrevista-2.jpeg
|
||||
Lang: es
|
||||
License: CC BY-ND 4.0
|
||||
Og_video: https://archive.org/download/libreweb/heckyel--entrevista-2.webm
|
||||
VideoID: b170e77fa96607ed94e0a9
|
||||
Slug: privacidad-y-seguridad---heckyel-entrevista---parte-2
|
||||
Tags: software libre, privacidad, seguridad, entrevista
|
||||
Time: 50:39
|
||||
|
@ -4,6 +4,7 @@ Date: 2017-12-05 11:34
|
||||
Modified: 2021-08-21 13:28
|
||||
Image: 2017/12/prompt-avanzado.jpg
|
||||
Og_video: https://archive.org/download/libreweb/hyperterm.webm
|
||||
VideoID: 29e6c65afc55f846bc4a94
|
||||
Slug: prompt-avanzado
|
||||
Tags: bash, hyperbash, hyperterm, shell, GNU, gnu, linux, Linux, gnulinux
|
||||
Time: 14:14
|
||||
|
@ -3,6 +3,7 @@ Category: Cine
|
||||
Date: 2019-06-15 12:04:39
|
||||
Image: 2019/06/pmpc.jpg
|
||||
Og_video: https://download.fsfe.org/videos/pmpc/pmpc_es_1080p_3300_a32.webm
|
||||
VideoID: fea9364ad41beb5ed1f246
|
||||
Slug: public-money-public-code
|
||||
Tags: public money
|
||||
Title: Public Money, Public Code
|
||||
|
@ -4,6 +4,7 @@ Date: 2016-12-28 15:52:58
|
||||
Image: 2016/12/rms-el-mesias.jpg
|
||||
License: CC BY-NC-ND 3.0
|
||||
Og_video: https://archive.org/download/libreweb/richard-stallman-el-mes%C3%ADas-del-software-libre.webm
|
||||
VideoID: 98d16826456d18edd9fcf5
|
||||
Slug: richard-stallman-el-mesias-del-software-libre
|
||||
Tags: GNU, gnu, linux, Linux, gnulinux, rms
|
||||
Time: 6:29
|
||||
|
@ -4,6 +4,7 @@ Date: 2019-05-31 14:49:45
|
||||
Image: 2019/05/rms-retina-version-corta.jpg
|
||||
License: CC BY-ND 4.0
|
||||
Og_video: https://archive.org/download/libreweb/Entrevista-Richard-Stallman-version-corta.webm
|
||||
VideoID: 6adf3c5e0a7bfb81e66189
|
||||
Slug: richard-stallman-en-retina-version-corta
|
||||
Tags: richard stallman, libertad, libre, gnu, smartphone
|
||||
Title: Richard Stallman en Retina - version corta
|
||||
|
@ -4,6 +4,7 @@ Date: 2018-06-09 10:07
|
||||
Image: 2018/06/rms-dominio-digital.jpg
|
||||
License: CC BY-ND 4.0
|
||||
Og_video: https://archive.org/download/libreweb/StallmanenDominioDigital.webm
|
||||
VideoID: 4ef355cbd12eb09b584b3d
|
||||
Slug: rms-en-dominio-digital
|
||||
Tags: GNU, gnu, linux, Linux, gnulinux
|
||||
Time: 56:07
|
||||
|
@ -6,6 +6,7 @@ Lang: es
|
||||
License: CC BY-SA 3.0
|
||||
Modified: 2019-02-10 11:46:44
|
||||
Og_video: https://archive.org/download/libreweb/sin-parar.webm
|
||||
VideoID: 205b2bb1f12f9c4edd8198
|
||||
Slug: sin-parar
|
||||
Tags: capitalismo, ciencia, cortometraje, cultura libre, educación, sistema, video
|
||||
Time: 7:28
|
||||
|
@ -3,6 +3,7 @@ Category: Tutorial
|
||||
Date: 2020-05-20 15:23:44
|
||||
Image: 2020/05/usar-xmpp.jpeg
|
||||
Og_video: https://archive.org/download/libreweb/uso-de-cuenta-xmpp.webm
|
||||
VideoID: ba7c0b5bc7cab06316802c
|
||||
Slug: usar-cuenta-jabber-xmpp
|
||||
Tags: xmpp, jabber, conversations, pix-art, gajim
|
||||
Time: 16:51
|
||||
|
6
new.sh
6
new.sh
@ -1,5 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Video ID
|
||||
|
||||
videoID=$(date +%s%N | md5sum | head -c 22)
|
||||
|
||||
# Load data
|
||||
printf '%s' "Enter Title: "
|
||||
read -r
|
||||
@ -22,6 +26,7 @@ read -r
|
||||
tag="$REPLY"
|
||||
|
||||
# output
|
||||
o_videoid=$(printf '%s%s\n' "VideoID: " "$videoID")
|
||||
o_author=$(printf '%s%s\n' "Author: " "$author")
|
||||
o_category=$(printf '%s%s\n' "Category: " "$category")
|
||||
o_date=$(printf '%s%s\n' "Date: " "$(date +"%Y-%m-%d %T")")
|
||||
@ -33,6 +38,7 @@ o_title=$(printf '%s%s\n' "Title: " "$title")
|
||||
printf '%s\n%s\n%s\n%s\n%s\n%s\n' "$o_author"\
|
||||
"$o_category"\
|
||||
"$o_date"\
|
||||
"$o_videoid"\
|
||||
"$o_slug"\
|
||||
"$o_tag"\
|
||||
"$o_title" > "$slug.md"
|
||||
|
@ -94,6 +94,10 @@ class Tipue_Search_JSON_Generator(object):
|
||||
else:
|
||||
base_url = self.siteurl
|
||||
|
||||
# videoid
|
||||
video_id = str(article.videoid) if getattr(
|
||||
article, 'videoid', 'None') != 'None' else ''
|
||||
|
||||
# thumbnail
|
||||
video_image = article.image if getattr(
|
||||
article, 'image', 'None') != 'None' else ''
|
||||
@ -140,6 +144,7 @@ class Tipue_Search_JSON_Generator(object):
|
||||
video_tags = dict((num, tag) for num, tag in enumerate(data_tags))
|
||||
|
||||
node = {
|
||||
'videoId': video_id,
|
||||
'title': video_title,
|
||||
'description': video_desc_text,
|
||||
'descriptionHtml': video_desc_html,
|
||||
|
Loading…
x
Reference in New Issue
Block a user