myholyvids/tia-download-video.php

11 lines
639 B
PHP

<?php
header("Content-Type: application/json");
$json_data = [
"tia_site_name" => "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);
?>