remove ];; mean no ipns link
This commit is contained in:
parent
b686fd1b6a
commit
894a847242
|
@ -5,7 +5,7 @@ require_once('functions.php');
|
|||
|
||||
$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);
|
||||
$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
|
||||
|
|
|
@ -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();
|
||||
|
||||
exec("/bin/bash -c './get_youtube_videos.sh'", $videos);
|
||||
exec("/bin/bash -c './get_astrxbian_index.sh'", $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
|
||||
|
||||
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;
|
||||
$videoEco = 'https://'. HOST. '/ipns/' . $h;
|
||||
$mimeType = guessTypeFromFilename($videoURI);
|
||||
$videoURL = 'https://'. HOST. $videoURI;
|
||||
$videoEco = 'https://'. HOST. '/ipns/' . $h;
|
||||
$mimeType = guessTypeFromFilename($videoURI);
|
||||
|
||||
|
||||
if ($mimeType == 'video/mp4') {
|
||||
if ($mimeType == 'video/mp4') {
|
||||
|
||||
$videosList[] = [
|
||||
'mime' => $mimeType,
|
||||
'url' => $videoURL,
|
||||
'eco' => $videoEco,
|
||||
'uri' => $videoURI,
|
||||
'name' => $videoName,
|
||||
'youtubeID' => $youtubeID
|
||||
];
|
||||
}
|
||||
$videosList[] = [
|
||||
'mime' => $mimeType,
|
||||
'url' => $videoURL,
|
||||
'eco' => $videoEco,
|
||||
'uri' => $videoURI,
|
||||
'name' => $videoName,
|
||||
'youtubeID' => $youtubeID
|
||||
];
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
@ -37,16 +37,16 @@ foreach ($videos as $v) {
|
|||
?><!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>AstroCrowdBuster</title>
|
||||
<link rel="stylesheet" href="crowdbunker.css" type="text/css" />
|
||||
<link rel="icon" type="image/png" href="./astrocrowdbunker.png" />
|
||||
<title>AstroCrowdBuster</title>
|
||||
<link rel="stylesheet" href="crowdbunker.css" type="text/css" />
|
||||
<link rel="icon" type="image/png" href="./astrocrowdbunker.png" />
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<header>
|
||||
<h1>
|
||||
<a href="youtube.php"><span>Astroport</span> × <span>Crowdbunker</span></a>
|
||||
</h1>
|
||||
<h1>
|
||||
<a href="youtube.php"><span>Astroport</span> × <span>Crowdbunker</span></a>
|
||||
</h1>
|
||||
</header>
|
||||
|
||||
<main>
|
||||
|
@ -55,23 +55,23 @@ echo '<ul id="videosList">';
|
|||
|
||||
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 .'">
|
||||
<img src="'. sprintf(YOUTUBE_THUMB, $video['youtubeID']) . '" alt="'. $video['name'] . '" />
|
||||
</a>
|
||||
<a href="'. $href .'">
|
||||
<img src="'. sprintf(YOUTUBE_THUMB, $video['youtubeID']) . '" alt="'. $video['name'] . '" />
|
||||
</a>
|
||||
|
||||
<p class="video-title">
|
||||
<a href="'. $video['eco'] .'">
|
||||
' . $video['name'] . '
|
||||
</a>
|
||||
</p>';
|
||||
<p class="video-title">
|
||||
<a href="'. $video['eco'] .'">
|
||||
' . $video['name'] . '
|
||||
</a>
|
||||
</p>';
|
||||
|
||||
echo '</li>';
|
||||
echo '</li>';
|
||||
}
|
||||
|
||||
echo '</ul>';
|
||||
|
|
Loading…
Reference in New Issue