mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
good
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
<?php
|
||||
|
||||
if(isset($_POST['thisUrl']))
|
||||
{
|
||||
$string = $_POST['thisUrl'];
|
||||
{
|
||||
$file = file_get_contents('videos.json');
|
||||
$data = json_decode($file);
|
||||
unset($file);//prevent memory leaks for large json.
|
||||
|
||||
@@ -67,6 +67,7 @@
|
||||
|
||||
success: function() {
|
||||
console.log("saved");
|
||||
console.log(response);
|
||||
}
|
||||
});
|
||||
|
||||
@@ -76,6 +77,7 @@
|
||||
async: false
|
||||
}).responseText;
|
||||
var url = $.parseJSON(response);
|
||||
console.log(url[0]);
|
||||
response = url[0];
|
||||
|
||||
ytplayer.loadVideoById(response);
|
||||
|
||||
@@ -1 +1 @@
|
||||
["eTwQ4kACymM","y6DHE_5drbM","A8P01EjBQxY","dMrmfub2TBw","BSAUJIRqAF4","mG6pm1WZ2uc"]
|
||||
["XU_9yi6xvRs", "mG6pm1WZ2uc"]
|
||||
Reference in New Issue
Block a user