Mise à jour format API Google

This commit is contained in:
Mattéo Delabre 2017-07-14 16:55:02 +02:00
parent a43747c16c
commit 0dbac0fc3f
5 changed files with 1150 additions and 11 deletions

View File

@ -8,10 +8,10 @@ digraph epenser {
"Hxho4NmIUi8" [label="TOP 6 DES SERIES MECONNUES 🤓", URL="https://youtu.be/Hxho4NmIUi8", fontcolor=blue]
"MgxGVSxIQbY" [label="La liste de tous mes 📀 DVD 📀", URL="https://youtu.be/MgxGVSxIQbY", fontcolor=blue]
"cUAPNwbZNzg" [label="1 avril 2017 : présentation des règles", URL="https://youtu.be/cUAPNwbZNzg", fontcolor=blue]
"gNO13ad_KpY" [label="Une vidéo satisfaisante... 😌", URL="https://youtu.be/gNO13ad_KpY", fontcolor=blue]
"Sw_iXCxB3Aw" [label="TOP 4 DES FILMS LES PLUS SURÉVALUÉS 😤", URL="https://youtu.be/Sw_iXCxB3Aw", fontcolor=blue]
"vX1CVTDopo0" [label="La liste de tous mes 📀 DVD 📀", URL="https://youtu.be/vX1CVTDopo0", fontcolor=blue]
"54aErO8O6g0" [label="TOP 10 DES FILMS DE SCIENCE FICTION 👾", URL="https://youtu.be/54aErO8O6g0", fontcolor=blue]
"gNO13ad_KpY" [label="Une vidéo satisfaisante... 😌", URL="https://youtu.be/gNO13ad_KpY", fontcolor=blue]
"U5swVaaiDI0" [label="Lien exemple, ne pas cliquer", URL="https://youtu.be/U5swVaaiDI0", fontcolor=blue]
"gGaqlwG1jOU" [label="Unboxing n°2 ✂📦", URL="https://youtu.be/gGaqlwG1jOU", fontcolor=blue]
"DIdfsbSHc5k" [label="TOPCEPTION DES 5 FILMS DE MES 6 RÉALISATEURS PRÉFÉRÉS 🤒", URL="https://youtu.be/DIdfsbSHc5k", fontcolor=blue]

View File

@ -127,8 +127,8 @@
<polygon fill="black" stroke="black" points="337.087,-1186.22 326.552,-1187.35 335.491,-1193.03 337.087,-1186.22"/>
</g>
<!-- gNO13ad_KpY -->
<g id="node13" class="node"><title>gNO13ad_KpY</title>
<g id="a_node13"><a xlink:href="https://youtu.be/gNO13ad_KpY" xlink:title="Une vidéo satisfaisante... 😌">
<g id="node10" class="node"><title>gNO13ad_KpY</title>
<g id="a_node10"><a xlink:href="https://youtu.be/gNO13ad_KpY" xlink:title="Une vidéo satisfaisante... 😌">
<ellipse fill="none" stroke="black" cx="643.727" cy="-1170" rx="112.38" ry="18"/>
<text text-anchor="middle" x="643.727" y="-1166.3" font-family="Times,serif" font-size="14.00" fill="blue">Une vidéo satisfaisante... 😌</text>
</a>
@ -155,8 +155,8 @@
<polygon fill="black" stroke="black" points="314.117,-1049.94 322.181,-1043.07 311.592,-1043.41 314.117,-1049.94"/>
</g>
<!-- Sw_iXCxB3Aw -->
<g id="node10" class="node"><title>Sw_iXCxB3Aw</title>
<g id="a_node10"><a xlink:href="https://youtu.be/Sw_iXCxB3Aw" xlink:title="TOP 4 DES FILMS LES PLUS SURÉVALUÉS 😤">
<g id="node11" class="node"><title>Sw_iXCxB3Aw</title>
<g id="a_node11"><a xlink:href="https://youtu.be/Sw_iXCxB3Aw" xlink:title="TOP 4 DES FILMS LES PLUS SURÉVALUÉS 😤">
<ellipse fill="none" stroke="black" cx="497.727" cy="-666" rx="194.166" ry="18"/>
<text text-anchor="middle" x="497.727" y="-662.3" font-family="Times,serif" font-size="14.00" fill="blue">TOP 4 DES FILMS LES PLUS SURÉVALUÉS 😤</text>
</a>
@ -168,8 +168,8 @@
<polygon fill="black" stroke="black" points="463.915,-692.511 470.323,-684.074 460.052,-686.674 463.915,-692.511"/>
</g>
<!-- vX1CVTDopo0 -->
<g id="node11" class="node"><title>vX1CVTDopo0</title>
<g id="a_node11"><a xlink:href="https://youtu.be/vX1CVTDopo0" xlink:title="La liste de tous mes 📀 DVD 📀">
<g id="node12" class="node"><title>vX1CVTDopo0</title>
<g id="a_node12"><a xlink:href="https://youtu.be/vX1CVTDopo0" xlink:title="La liste de tous mes 📀 DVD 📀">
<ellipse fill="none" stroke="black" cx="363.727" cy="-954" rx="126.978" ry="18"/>
<text text-anchor="middle" x="363.727" y="-950.3" font-family="Times,serif" font-size="14.00" fill="blue">La liste de tous mes 📀 DVD 📀</text>
</a>
@ -181,8 +181,8 @@
<polygon fill="black" stroke="black" points="360.626,-982.324 357.832,-972.104 353.643,-981.836 360.626,-982.324"/>
</g>
<!-- 54aErO8O6g0 -->
<g id="node12" class="node"><title>54aErO8O6g0</title>
<g id="a_node12"><a xlink:href="https://youtu.be/54aErO8O6g0" xlink:title="TOP 10 DES FILMS DE SCIENCE FICTION 👾">
<g id="node13" class="node"><title>54aErO8O6g0</title>
<g id="a_node13"><a xlink:href="https://youtu.be/54aErO8O6g0" xlink:title="TOP 10 DES FILMS DE SCIENCE FICTION 👾">
<ellipse fill="none" stroke="black" cx="491.727" cy="-882" rx="188.467" ry="18"/>
<text text-anchor="middle" x="491.727" y="-878.3" font-family="Times,serif" font-size="14.00" fill="blue">TOP 10 DES FILMS DE SCIENCE FICTION 👾</text>
</a>

Before

Width:  |  Height:  |  Size: 28 KiB

After

Width:  |  Height:  |  Size: 28 KiB

1140
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

View File

@ -53,7 +53,7 @@ const getEndScreenVideos = videoId =>
resolve(data.elements.map(elt => ({
videoId: elt.endscreenElementRenderer.endpoint
.watchEndpoint.videoId,
title: elt.endscreenElementRenderer.title.runs[0].text,
title: elt.endscreenElementRenderer.title.simpleText,
})));
});
});

View File

@ -43,7 +43,6 @@ const exploreVideo = videoId =>
{
const videos = [].concat(...results);
const ids = videos.map(video => video.videoId);
// const remaining = ids.filter(id => videos[id] === undefined);
// Ajout des vidéos liées dans les métadonnées
videos.forEach(video => videosMeta[video.videoId] = video);