remove ];; mean no ipns link
This commit is contained in:
parent
b686fd1b6a
commit
894a847242
|
@ -5,7 +5,7 @@ require_once('functions.php');
|
||||||
|
|
||||||
$videosList = array();
|
$videosList = array();
|
||||||
|
|
||||||
exec("/bin/bash -c './get_youtube_videos.sh F'", $videos);
|
exec("/bin/bash -c './get_astrxbian_index.sh F'", $videos);
|
||||||
exec("/bin/bash -c './check_bootstrap_wallet.sh'", $gg1);
|
exec("/bin/bash -c './check_bootstrap_wallet.sh'", $gg1);
|
||||||
$videos = array_reverse($videos);
|
$videos = array_reverse($videos);
|
||||||
// ## film;MDan5TDuT-0;;Le Manuel de Survie en Dictature v1.1 au format papier;;["onelove"];k51qzi5uqu5dl0hnglpzumjezep2avacrtbx7i15v91elcxac4cpd8290kl1hq;720p;/ipfs/QmZp63RXhLm6QASmw1t2R8fu5waSJFmyW7cmdVNxyuJXzg/MDan5TDuT-0_Le%20Manuel%20de%20Survie%20en%20Dictature%20v1.1%20au%20format%20papier.mp4
|
// ## film;MDan5TDuT-0;;Le Manuel de Survie en Dictature v1.1 au format papier;;["onelove"];k51qzi5uqu5dl0hnglpzumjezep2avacrtbx7i15v91elcxac4cpd8290kl1hq;720p;/ipfs/QmZp63RXhLm6QASmw1t2R8fu5waSJFmyW7cmdVNxyuJXzg/MDan5TDuT-0_Le%20Manuel%20de%20Survie%20en%20Dictature%20v1.1%20au%20format%20papier.mp4
|
||||||
|
|
|
@ -1,11 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
########################################################################
|
|
||||||
# Author:
|
|
||||||
# Version: 0.1
|
|
||||||
# License: AGPL-3.0 (https://choosealicense.com/licenses/agpl-3.0/)
|
|
||||||
########################################################################
|
|
||||||
PREFIX="$1"
|
|
||||||
[[ $PREFIX == "" ]] && PREFIX="Y"
|
|
||||||
YOU=$(ps auxf --sort=+utime | grep -w ipfs | grep -v -E 'color=auto|grep' | tail -n 1 | cut -d " " -f 1) && [[ ! $YOU ]] && echo "ipfs NOT RUNNING. EXIT" && exit 1
|
|
||||||
|
|
||||||
cat /home/$YOU/.zen/{ipfs,ipfs_swarm}/.*/astroport/kodi/vstream/${PREFIX}ASTRXBIAN | sort | uniq | tail -n +2
|
|
|
@ -5,31 +5,31 @@ require_once('functions.php');
|
||||||
|
|
||||||
$videosList = array();
|
$videosList = array();
|
||||||
|
|
||||||
exec("/bin/bash -c './get_youtube_videos.sh'", $videos);
|
exec("/bin/bash -c './get_astrxbian_index.sh'", $videos);
|
||||||
$videos = array_reverse($videos);
|
$videos = array_reverse($videos);
|
||||||
// ## film;MDan5TDuT-0;;Le Manuel de Survie en Dictature v1.1 au format papier;;["onelove"];k51qzi5uqu5dl0hnglpzumjezep2avacrtbx7i15v91elcxac4cpd8290kl1hq;720p;/ipfs/QmZp63RXhLm6QASmw1t2R8fu5waSJFmyW7cmdVNxyuJXzg/MDan5TDuT-0_Le%20Manuel%20de%20Survie%20en%20Dictature%20v1.1%20au%20format%20papier.mp4
|
// ## film;MDan5TDuT-0;;Le Manuel de Survie en Dictature v1.1 au format papier;;["onelove"];k51qzi5uqu5dl0hnglpzumjezep2avacrtbx7i15v91elcxac4cpd8290kl1hq;720p;/ipfs/QmZp63RXhLm6QASmw1t2R8fu5waSJFmyW7cmdVNxyuJXzg/MDan5TDuT-0_Le%20Manuel%20de%20Survie%20en%20Dictature%20v1.1%20au%20format%20papier.mp4
|
||||||
|
|
||||||
foreach ($videos as $v) {
|
foreach ($videos as $v) {
|
||||||
|
|
||||||
list($a, $youtubeID, $c, $videoName, $e, $src, $h, $quality, $videoURI) = explode(";", $v);
|
list($a, $youtubeID, $c, $videoName, $e, $src, $h, $quality, $videoURI) = explode(";", $v);
|
||||||
|
|
||||||
|
|
||||||
$videoURL = 'https://'. HOST. $videoURI;
|
$videoURL = 'https://'. HOST. $videoURI;
|
||||||
$videoEco = 'https://'. HOST. '/ipns/' . $h;
|
$videoEco = 'https://'. HOST. '/ipns/' . $h;
|
||||||
$mimeType = guessTypeFromFilename($videoURI);
|
$mimeType = guessTypeFromFilename($videoURI);
|
||||||
|
|
||||||
|
|
||||||
if ($mimeType == 'video/mp4') {
|
if ($mimeType == 'video/mp4') {
|
||||||
|
|
||||||
$videosList[] = [
|
$videosList[] = [
|
||||||
'mime' => $mimeType,
|
'mime' => $mimeType,
|
||||||
'url' => $videoURL,
|
'url' => $videoURL,
|
||||||
'eco' => $videoEco,
|
'eco' => $videoEco,
|
||||||
'uri' => $videoURI,
|
'uri' => $videoURI,
|
||||||
'name' => $videoName,
|
'name' => $videoName,
|
||||||
'youtubeID' => $youtubeID
|
'youtubeID' => $youtubeID
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -37,16 +37,16 @@ foreach ($videos as $v) {
|
||||||
?><!DOCTYPE html>
|
?><!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>AstroCrowdBuster</title>
|
<title>AstroCrowdBuster</title>
|
||||||
<link rel="stylesheet" href="crowdbunker.css" type="text/css" />
|
<link rel="stylesheet" href="crowdbunker.css" type="text/css" />
|
||||||
<link rel="icon" type="image/png" href="./astrocrowdbunker.png" />
|
<link rel="icon" type="image/png" href="./astrocrowdbunker.png" />
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
<header>
|
<header>
|
||||||
<h1>
|
<h1>
|
||||||
<a href="youtube.php"><span>Astroport</span> × <span>Crowdbunker</span></a>
|
<a href="youtube.php"><span>Astroport</span> × <span>Crowdbunker</span></a>
|
||||||
</h1>
|
</h1>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<main>
|
<main>
|
||||||
|
@ -55,23 +55,23 @@ echo '<ul id="videosList">';
|
||||||
|
|
||||||
foreach ($videosList as $video) {
|
foreach ($videosList as $video) {
|
||||||
|
|
||||||
echo '<li>';
|
echo '<li>';
|
||||||
|
|
||||||
$href = 'youtube_watch.php?uri='. $video['uri'] . '&name='. urlencode($video['name']) .'&mime='. $video['mime'];
|
$href = 'youtube_watch.php?uri='. $video['uri'] . '&name='. urlencode($video['name']) .'&mime='. $video['mime'];
|
||||||
|
|
||||||
echo '
|
echo '
|
||||||
|
|
||||||
<a href="'. $href .'">
|
<a href="'. $href .'">
|
||||||
<img src="'. sprintf(YOUTUBE_THUMB, $video['youtubeID']) . '" alt="'. $video['name'] . '" />
|
<img src="'. sprintf(YOUTUBE_THUMB, $video['youtubeID']) . '" alt="'. $video['name'] . '" />
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<p class="video-title">
|
<p class="video-title">
|
||||||
<a href="'. $video['eco'] .'">
|
<a href="'. $video['eco'] .'">
|
||||||
' . $video['name'] . '
|
' . $video['name'] . '
|
||||||
</a>
|
</a>
|
||||||
</p>';
|
</p>';
|
||||||
|
|
||||||
echo '</li>';
|
echo '</li>';
|
||||||
}
|
}
|
||||||
|
|
||||||
echo '</ul>';
|
echo '</ul>';
|
||||||
|
|
Loading…
Reference in New Issue