From 0f3f8814cad36f14d194bc3605c93b5f5c6cb073 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs?= Date: Fri, 24 May 2019 22:39:11 -0500 Subject: Added DRM video explains by RMS --- tools/processor.php | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/tools/processor.php b/tools/processor.php index 5063c35..22fa1fe 100644 --- a/tools/processor.php +++ b/tools/processor.php @@ -59,8 +59,17 @@ $streamFormats = $video_info->formatStreams; $downloads = $video_info->formatStreams; /* Breaking DRM!!! */ + +// check standar URL +$url_standar = url_exists($streamFormats[0]->url); +// format video DRM +$formatdrm = $streamFormats[0]->type; + +// nodes $node0 = "https://invidio.us/latest_version?id={$video_id}&itag=18&local=true"; $node1 = "https://invidious.snopyta.org/latest_version?id={$video_id}&itag=18&local=true"; +// explain DRM +$drmv = "https://archive.org/download/libreweb/rms-drm.webm"; // check nodes $node0on = url_exists($node0); @@ -70,16 +79,16 @@ if ($node0on == true) { $breakurl = $node0; } elseif ($node1on == true) { $breakurl = $node1; +} else { + $breakurl = $drmv; + $formatdrm = 'video/webm'; } -// check standar URL -$url_standar = url_exists($streamFormats[0]->url); - if ($url_standar == false) { // Liberty data $breakquality = trim($streamFormats[0]->resolution, 'p'); $breaklink = << + EOT; $downloadFormat = $downloads[0]->container; $downloadQuality = $streamFormats[0]->resolution; -- cgit v1.2.3