From 6a3a940d7344a81081294d9ad3a33b75af303ced Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs?= Date: Sun, 6 Dec 2020 17:10:40 -0500 Subject: Make core extract --- embed/index.php | 17 +- index.php | 23 +- templates/css/salida.min.css | 3 +- templates/embed.tpl | 67 +++--- templates/sass/salida.sass | 23 +- templates/video.tpl | 121 +++++----- tools/extract.php | 518 +++++++++++++++++++++++++++++++++++++++++++ tools/processor.php | 114 ++-------- tools/sig.php | 1 + 9 files changed, 654 insertions(+), 233 deletions(-) create mode 100644 tools/extract.php create mode 100644 tools/sig.php diff --git a/embed/index.php b/embed/index.php index 538f50b..ca2f36c 100644 --- a/embed/index.php +++ b/embed/index.php @@ -1,5 +1,9 @@ display('../templates/index.tpl'); } else { /* ---- ---- video-generated ---- ---- */ - require_once "../tools/processor.php"; + require_once ( TOOLS_PATH.'processor.php' ); $video_decode = new Smarty(); /* ---- ---- Variables ---- ---- */ $video_decode->assign("titulo", $titulo); $video_decode->assign("videoTitle", $videoTitle); - $video_decode->assign("librethumb", $librethumb); + $video_decode->assign("videoThumbURL", $videoThumbURL); // Videos Loop $video_decode->assign("streamFormats", $streamFormats); - // URL DRM - $video_decode->assign("breakurl", $breakurl); - - // Video DRM - $video_decode->assign("breaklink", $breaklink); - $video_decode->assign("breakquality", $breakquality); - $video_decode->assign("formatdrm", $formatdrm); + // Live + $video_decode->assign("islive", $islive); /* ---- ---- CSS ---- ---- */ $video_decode->assign('styles', array('frond' => '../templates/css/frond.min.css', diff --git a/index.php b/index.php index fabb62f..ab347b3 100644 --- a/index.php +++ b/index.php @@ -1,6 +1,9 @@ assign("videoTitle", $videoTitle); $video_decode->assign("videoThumbURL", $videoThumbURL); $video_decode->assign("videoAuthor", $videoAuthor); - $video_decode->assign("videoChannel", $videoChannel); $video_decode->assign("videoDuration", $videoDuration); $video_decode->assign("videoViews", $videoViews); - $video_decode->assign("librethumb", $librethumb); - - // Downloads - $video_decode->assign("downloads", $downloads); // Videos Loop $video_decode->assign("streamFormats", $streamFormats); - // URL DRM - $video_decode->assign("breakurl", $breakurl); + // Live $video_decode->assign("islive", $islive); - // Download DRM - $video_decode->assign("downloadbreak", $downloadbreak); - $video_decode->assign("downloadQuality", $downloadQuality); - $video_decode->assign("downloadFormat", $downloadFormat); - - // Video DRM - $video_decode->assign("breaklink", $breaklink); - $video_decode->assign("breakquality", $breakquality); - $video_decode->assign("formatdrm", $formatdrm); - // URL's $video_decode->assign("local_url", $local_url); - $video_decode->assign("url_freedom", $url_freedom); + $video_decode->assign("url_query", $url_query); /* ---- ---- CSS ---- ---- */ $video_decode->assign('styles', array('frond' => 'templates/css/frond.min.css', diff --git a/templates/css/salida.min.css b/templates/css/salida.min.css index 0100963..193ce55 100644 --- a/templates/css/salida.min.css +++ b/templates/css/salida.min.css @@ -1 +1,2 @@ -body{background:#2d3743;color:#fff}a.enlace{color:#1aafff;text-decoration:none}a.enlace:hover{color:#2dde98}.contenedor{margin:auto;width:100%;max-width:800px;display:flex;flex-direction:column;flex-wrap:wrap;align-items:center}.contenedor .libreyt{padding-bottom:20px}.contenedor .libreyt .row{display:flex;width:80%;max-width:400px;flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:center}.contenedor .libreyt .row .imageyt{flex:1 0 30%;max-width:40%;padding:0px 15px}.contenedor .libreyt .row .imageyt img{width:100%;vertical-align:middle}.contenedor .libreyt .row .features{flex:0;min-height:1px;max-height:100%;position:relative;padding:0px 15px}.contenedor .libreyt .row .features .yt-titulo{font-weight:700;font-size:1rem;line-height:24px}.contenedor .row{line-height:2.5}.contenedor .row .col{text-align:center;padding:0px 15px}.contenedor .row .col .boton-descarga{padding:2px 5px;font-size:12px;border-radius:3px;color:#fff;background-color:#5cb85c;border-color:#5cb85c;text-decoration:none}.librevideojs{width:90%;max-width:700px}.mpv{margin-bottom:.5rem;margin-top:0}header{display:flex;width:90%;padding:20px 0px;justify-content:center}header a.drm-free{align-items:center;height:auto;opacity:.5;transition:opacity 150ms}header a.drm-free:before{content:url("../images/drm-free.png");vertical-align:top;display:block;position:absolute;top:12px;left:12px;max-width:120px;width:100%}header a.drm-free:hover{opacity:1}h2,h3,h4,h5,h6{margin-top:0;margin-bottom:0;line-height:1.1}hr{width:100%}section{width:100%}h2{text-align:center}footer p.copyleft{font-size:12px;text-align:center}@media screen and (max-width: 768px){header a.drm-free:before{display:none}} +body{background:#2d3743;color:#fff}a.enlace{color:#1aafff;text-decoration:none}a.enlace:hover{color:#2dde98}.contenedor{margin:auto;width:100%;max-width:800px;display:grid;grid-template-columns:auto;grid-template-rows:auto auto;grid-gap:1rem}.contenedor .libreyt .row{display:flex;width:80%;max-width:400px;flex-direction:row;flex-wrap:wrap;align-items:center;justify-self:center;justify-content:center}.contenedor .libreyt .row .imageyt{flex:1 0 30%;max-width:40%;padding:0px 15px}.contenedor .libreyt .row .imageyt img{width:100%;vertical-align:middle}.contenedor .libreyt .row .features{flex:0;min-height:1px;max-height:100%;position:relative;padding:0px 15px}.contenedor .libreyt .row .features .yt-titulo{font-weight:700;font-size:1rem;line-height:24px}.contenedor .row{line-height:2.5}.contenedor .row .col{text-align:center;padding:0px 15px}.contenedor .row .col .boton-descarga{padding:2px 5px;font-size:12px;border-radius:3px;color:#fff;background-color:#5cb85c;border-color:#5cb85c;text-decoration:none}.contenedor .v-download ul.download-dropdown-content{padding-top:1rem;padding-bottom:1rem;background:#000;border:solid 1px #00b7f1}.contenedor .v-download ul.download-dropdown-content li a{text-decoration:none}.contenedor .v-download ul.download-dropdown-content li a:link{color:#2af}.librevideojs{width:90%;max-width:700px;justify-self:center}.mpv{margin-bottom:.5rem;margin-top:0}header{display:flex;width:90%;padding:20px 0px;justify-content:center}header a.drm-free{align-items:center;height:auto;opacity:.5;transition:opacity 150ms}header a.drm-free:before{content:url("../images/drm-free.png");vertical-align:top;display:block;position:absolute;top:12px;left:12px;max-width:120px;width:100%}header a.drm-free:hover{opacity:1}h2,h3,h4,h5,h6{margin-top:0;margin-bottom:0;line-height:1.1}hr{width:100%}section{width:100%}h2{text-align:center}footer p.copyleft{font-size:12px;text-align:center}@media screen and (max-width: 768px){header a.drm-free:before{display:none}} +/*# sourceMappingURL=salida.min.css.map */ diff --git a/templates/embed.tpl b/templates/embed.tpl index b29dd68..085a8bb 100644 --- a/templates/embed.tpl +++ b/templates/embed.tpl @@ -41,39 +41,46 @@ -