Welcome to World of IPTV

With

+23k members
+11k threads
+106k posts

we are the most popular IPTV community on the web. 

IMPORTANT NOTE:
WE HAVE RECENTLY NOTICED THAT TOO MANY DOUBLE FAKE ACCOUNTS ARE CREATED IN THE PAST.
TO PREVENT THIS ISSUE THE DECISION WAS MADE THAT IN THE FUTURE A ANNUALLY FEE 20 EURO WILL BE RAISED FOR NEW MEMBERSHIPS.

Join now to the World of IPTV

Forum Rules

Before you start, check out the forum rules first

Account upgrade

Upgrade your account to get access to full features

Advertising

Would you like to place your advertisement with us ?

Resources Manager

Hundreds of IPTV scripts and apps are available for download

Insert VOD from folder with php

Fringe

Extended Member
Ext. Member
Joined
Sep 21, 2019
Messages
113
Reaction score
192
Points
54
Location
USA
Has anyone got this to work? I've been trying all day but it only produces errors
 
Channels MatchTime Unblock CDN Offshore Server Contact
100 cnx / 90€ 5Gbps / 180€ 48CPU-256GRAM 10Gbps 569€ Skype live:giefsl
500 cnx / 350€ 10Gbps / 350€ 48CPU-128GRAM 5Gbps / 349€ TG @changglobize
1000 cnx / 500€ 20Gbps / 700€ 40CPU-128GRAM 20Gbps / €980 http://coronaserver.com

Swisso

Extended Member
Ext. Member
Joined
Oct 6, 2019
Messages
104
Reaction score
303
Points
74
Location
CH
thank you shakacode
I'll prove, it was what I needed
 

muxy

Extended Member
Ext. Member
Joined
Sep 23, 2019
Messages
76
Reaction score
241
Points
44
Location
london
<?php

// ShakaCode.net
// Agradecer no cuesta nada pero vale mucho
// Thank costs nothing

$servername = "xxx.xxx.xxx.xxx"; (ip of the server)
$username = "usuario"; (root for mysql)
$password = "clave"; (password of mysql)
$dbname = "xtream_iptvpro"; (database name)
$port = 7999; (port for mysql)
$ano =2018; (movie catogeroy)
$loco = 1; // Variable loco es el ID del servidor (server id 1)
// Ejemplo
// OVH = 2
// 4K = 18
// FON = 22
// CUMBIA = 24
// CHOTA = 26

$conn = new mysqli($servername, $username, $password, $dbname, $port);

if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}

$dir = "/home/vod/vod2018/"; (made this directory on server 1 with MereSai516.mp4 in the directory)

placed autovod.php file to /var/www/html/autovod/

in browser i run http://domainname/autovod/autovod.php

i do not get no output or no error message
when i check in mysql streams database there is nothing there
can you please help and advice how to run the script correctly

many thanks for your work
 

cybman

Basic Member
Basic Member
Banned
Joined
Sep 20, 2019
Messages
25
Reaction score
260
Points
59
Location
Marruecos
this is impossible to run on 2.9 the sql tables are different
maybe this is for 1.06?
 
Channels MatchTime Unblock CDN Offshore Server Contact
100 cnx / 90€ 5Gbps / 180€ 48CPU-256GRAM 10Gbps 569€ Skype live:giefsl
500 cnx / 350€ 10Gbps / 350€ 48CPU-128GRAM 5Gbps / 349€ TG @changglobize
1000 cnx / 500€ 20Gbps / 700€ 40CPU-128GRAM 20Gbps / €980 http://coronaserver.com

cybman

Basic Member
Basic Member
Banned
Joined
Sep 20, 2019
Messages
25
Reaction score
260
Points
59
Location
Marruecos
i made some changes now the update works on 2.9
but will create two records without info

and it gives some error i think is because the script is trying to create a record with same value
im not expert with php anyone could help?

Error updating record: Duplicate entry '4021-1' for key



$conn = new mysqli($servername, $username, $password, $dbname, $port);

if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}

$dir = "/home/movies/";

if (is_dir($dir)) {
if ($dh = opendir($dir)) {
while (($titulocompleto = readdir($dh)) !== false) {
// echo "Titulo Completo: $titulocompleto \n";
list($titulo) = explode('.elimino', $titulocompleto);
$titulo = preg_replace('/\./', ' ', $titulo);

$sql = "INSERT INTO `streams` (`id`, `type`, `category_id`, `stream_display_name`, `stream_source`, `stream_icon`, `notes`, `created_channel_location`, `enable_transcode`, `transcode_attributes`, `custom_ffmpeg`, `movie_propeties`, `movie_subtitles`, `read_native`, `target_container`, `stream_all`, `remove_subtitles`, `custom_sid`, `epg_id`, `channel_id`, `epg_lang`, `order`, `auto_restart`, `transcode_profile_id`, `pids_create_channel`, `cchannel_rsources`, `gen_timestamps`, `added`, `series_no`, `direct_source`, `tv_archive_duration`, `tv_archive_server_id`, `tv_archive_pid`, `movie_symlink`, `redirect_stream`, `rtmp_output`, `number`, `allow_record`, `probesize_ondemand`, `custom_map`, `external_push`, `delay_minutes`) VALUES(NULL, 2, 2, '$titulo', '[\"s:$loco:\\/home\\/vod\\/vod$ano\\/$titulocompleto\"]', '', '', NULL, 0, '[]', '', '{\"kinopoisk_url\":\"\",\"tmdb_id\":\"\",\"name\":\"teste\",\"o_name\":\"teste\",\"cover_big\":\"\",\"movie_image\":\"\",\"releasedate\":\"\",\"episode_run_time\":\"\",\"youtube_trailer\":\"\",\"director\":\"\",\"actors\":\"\",\"cast\":\"\",\"description\":\"\",\"plot\":\"\",\"age\":\"\",\"mpaa_rating\":\"\",\"rating_count_kinopoisk\":0,\"country\":\"\",\"genre\":\"\",\"backdrop_path\":[\"\"],\"duration_secs\":0,\"duration\":\"00:00:00\",\"video\":[],\"audio\":[],\"bitrate\":0,\"rating\":\"\"}', '[]', 1, '[\"mp4\"]', 0, 0, '', NULL, NULL, NULL, 0, '[]', 0, '', '', 1, 1572628798, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 128000, '', '[]', 0)";


if ($conn->query($sql) === TRUE) {
echo "Record updated successfully \n";
} else {
echo "Error updating record: " . $conn->error;
}

$sql = "SELECT * FROM streams WHERE stream_display_name = '{$titulo}'";
$resultado = $conn->query($sql);
if ($resultado = $resultado->fetch_array(MYSQLI_ASSOC)) {
$stream_id = $resultado['id'];
} else {
echo "Error updating record: " . $conn->error;
}

$sql = "INSERT INTO `streams_sys` (`server_stream_id`, `stream_id`, `server_id`, `parent_id`, `pid`, `to_analyze`, `stream_status`, `stream_started`, `stream_info`, `monitor_pid`, `current_source`, `bitrate`, `progress_info`, `on_demand`, `delay_pid`, `delay_available_at`) VALUES (NULL, $stream_id, 1, NULL, NULL, 0, 0, NULL, '', NULL, NULL, NULL, '', 1, NULL, 0)";




if ($conn->query($sql) === TRUE) {
echo "Record updated successfully \n";
} else {
echo "Error updating record: " . $conn->error;
}

}


}
}

$conn->close();
closedir($dh);

?>
 
Channels MatchTime Unblock CDN Offshore Server Contact
100 cnx / 90€ 5Gbps / 180€ 48CPU-256GRAM 10Gbps 569€ Skype live:giefsl
500 cnx / 350€ 10Gbps / 350€ 48CPU-128GRAM 5Gbps / 349€ TG @changglobize
1000 cnx / 500€ 20Gbps / 700€ 40CPU-128GRAM 20Gbps / €980 http://coronaserver.com
shape1
shape2
shape3
shape4
shape5
shape6
Top
AdBlock Detected

We know, ad-blocking software do a great job at blocking ads. But our site is sponsored by advertising. 

For the best possible site experience please take a moment to disable your AdBlocker.
You can create a Account with us or if you already have account, you can prefer an Account Upgrade.

I've Disabled AdBlock