diff options
author | Jesús <heckyel@hyperbola.info> | 2020-10-02 21:26:17 -0500 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2020-10-02 21:26:17 -0500 |
commit | c6cd7be07f72e3f437e61727962fa38229206a26 (patch) | |
tree | 40243541078a7c7add062e1ddc33d836806245fd | |
parent | 26ea47150eba6a20279975841cd97b2362052e6b (diff) | |
download | ytlibre-c6cd7be07f72e3f437e61727962fa38229206a26.tar.lz ytlibre-c6cd7be07f72e3f437e61727962fa38229206a26.tar.xz ytlibre-c6cd7be07f72e3f437e61727962fa38229206a26.zip |
update instances
-rw-r--r-- | tools/processor.php | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/tools/processor.php b/tools/processor.php index a8fab8b..85b4ff0 100644 --- a/tools/processor.php +++ b/tools/processor.php @@ -1,6 +1,11 @@ <?php require_once "init.php"; +$instance = [ + "snopyta" => "https://invidious.snopyta.org", + "glie" => "https://invidious.glie.town", +]; + if ( empty( $_GET['link'] ) ){ header( 'Location: index.php' ); } @@ -17,6 +22,7 @@ if ( $urlexists === TRUE ) { invidio[.]us| invidiou[.]sh| invidious[.]kabi[.]tk| + invidious[.]glie[.]town| invidious[.]snopyta[.]org)) # URL supports (\/(?:[\w\-]+\?v=|embed\/|v\/)?) # Parameters (embed, v) ([\w\-]+) # Video id of 11 @@ -34,8 +40,8 @@ if ( $urlexists === TRUE ) { } // servers JSON -$invidio0 = "https://invidio.us/api/v1/videos/{$video_id}"; -$invidio1 = "https://invidious.snopyta.org/api/v1/videos/{$video_id}"; +$invidio0 = "{$instance['snopyta']}/api/v1/videos/{$video_id}"; +$invidio1 = "{$instance['glie']}/api/v1/videos/{$video_id}"; $invidio0on = url_exists( $invidio0 ); $invidio1on = url_exists( $invidio1 ); @@ -78,8 +84,8 @@ $url_standar = video_exists( $streamFormats[0]->url ); if ( $url_standar === FALSE ) { // 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"; + $node0 = "{$instance['snopyta']}/latest_version?id={$video_id}&itag=18&local=true"; + $node1 = "{$instance['glie']}/latest_version?id={$video_id}&itag=18&local=true"; // explain DRM $drmv = "https://archive.org/download/libreweb/rms-drm.webm"; @@ -131,4 +137,4 @@ $subject = $pro."://".$_SERVER['SERVER_NAME'].$_SERVER['SCRIPT_NAME']; $local_url = preg_replace( '/index.php/', '', $subject ); /* ---- ---- Change to Freedom URL ---- ---- */ -$url_freedom = "https://invidio.us/watch?v={$video_id}"; +$url_freedom = "{$instance['snopyta']}/watch?v={$video_id}"; |