diff --git a/index.php b/index.php index 4ba0689..0bd2524 100644 --- a/index.php +++ b/index.php @@ -1,6 +1,8 @@ + + My Holy Vids diff --git a/player.php b/player.php index 9d9f1b8..8972ab7 100644 --- a/player.php +++ b/player.php @@ -7,6 +7,8 @@ + + Video <?php echo $videoHtml; ?> diff --git a/tia-download-site.php b/tia-download-site.php new file mode 100644 index 0000000..412908e --- /dev/null +++ b/tia-download-site.php @@ -0,0 +1,26 @@ +"creator","tia_data"=>["tia_title"=>"Mike Nolan's Holy Videos", "tia_id"=>"7f286552-118e-4496-bd4c-8876c9cc7b96","tia_description_type"=>"text","tia_description"=>"I am Mike Nolan And I am a computer programmer, who found Jesus.\nI am also the person who created TIA."]]]; + $videos = scandir('videos'); + $videos = array_diff($videos,array('.','..','README.txt','descriptions')); + + foreach($videos as $video) + { + $path_parts = pathinfo($video); + + $filename = $path_parts['filename']; + + $myvideo= ["tia_type" => "video", "tia_data" => ["tia_title" => $filename ,"tia_id" => $filename, "tia_filename" => $filename.".mp4", "tia_download_url" => "https://myholyvids.site.tesses.net/videos/".rawurlencode($filename).".mp4", "tia_description_type" => "html", "tia_description" => file_get_contents("./videos/descriptions/".$filename.".html"), "tia_creator_id" => "7f286552-118e-4496-bd4c-8876c9cc7b96"]]; + + array_push($tia_content,$myvideo); + + } + $json_data = [ + "tia_site_name" => "My Holy Vids", + "tia_site_root" => "https://myholyvids.site.tesses.net/", + "tia_content" => $tia_content + ]; + + echo json_encode($json_data); + +?> \ No newline at end of file diff --git a/tia-download-video.php b/tia-download-video.php new file mode 100644 index 0000000..dd080f2 --- /dev/null +++ b/tia-download-video.php @@ -0,0 +1,11 @@ + "My Holy Vids", + "tia_site_root" => "https://myholyvids.site.tesses.net/", + "tia_content"=>[ + ["tia_type" => "video", "tia_data" => ["tia_title" => $_GET["v"] ,"tia_id" => $_GET["v"], "tia_filename" => $_GET["v"].".mp4", "tia_download_url" => "https://myholyvids.site.tesses.net/videos/".rawurlencode($_GET["v"]).".mp4", "tia_description_type" => "html", "tia_description" => file_get_contents("./videos/descriptions/".$_GET["v"].".html"), "tia_creator_id" => "7f286552-118e-4496-bd4c-8876c9cc7b96"]] + ] +]; +echo json_encode($json_data); +?> \ No newline at end of file