cleanup
This commit is contained in:
@ -36,6 +36,10 @@ foreach ($arr as $elem) {
|
||||
$pic = file_get_contents($tmdb->picturebase . $dta->poster_path);
|
||||
$poster = shell_exec("ffmpeg -hide_banner -loglevel panic -ss 00:04:00 -i \"../videos/prn/$elem\" -vframes 1 -q:v 2 -f singlejpeg pipe:1 2>/dev/null");
|
||||
|
||||
if($pic == null){
|
||||
// todo error handling for errored tmdb query
|
||||
}
|
||||
|
||||
$genres = $dta->genre_ids;
|
||||
} else {
|
||||
echo "nothing found with TMDB!\n";
|
||||
|
@ -69,7 +69,7 @@ if (isset($_POST['action'])) {
|
||||
|
||||
$arr["movie_id"] = $row["movie_id"];
|
||||
$arr["movie_name"] = $row["movie_name"];
|
||||
$arr["movie_url"] = $row["movie_url"];
|
||||
$arr["movie_url"] = str_replace("?","%3F",$row["movie_url"]);
|
||||
$arr["likes"] = $row["likes"];
|
||||
$arr["quality"] = $row["quality"];
|
||||
$arr["length"] = $row["length"];
|
||||
|
Reference in New Issue
Block a user