This repository has been archived by the owner on Aug 10, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Main_ajax.php
90 lines (45 loc) · 2.72 KB
/
Main_ajax.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<?php
require_once "SF_CLASS.php";
require_once "Youtube_class.php";
$YOUTUBE = new YouTube();
######################
$user_request_url = $_POST["url"];
//SF::PRINTER($_POST , "print_r", "ВСЕ пришедшее в POST");
###################### Начало
$YOUTUBE -> Get_Video_ID( $user_request_url );
// SF::PRINTER($YOUTUBE->Video_ID , "print_r" , "Итоговый Video_ID");
######################
$YOUTUBE -> Get_Video_Info( );
$YOUTUBE -> Decode_Video_Info( );
// SF::PRINTER($YOUTUBE->Video_Info_Asoc , "print_r" , "Video_Info_Asoc ВЕСЬ; COUNT=".count($YOUTUBE->Video_Info_Asoc));
######################
$YOUTUBE -> Player_Response_Convert_JSON_To_Asoc( ); #
// SF::PRINTER($YOUTUBE->Player_Response_JSON_Full ,"print_r", "Player_Response_JSON_Full = Полный JSON");
$YOUTUBE -> Player_Response_JSON_Erase( ); #
// SF::PRINTER($YOUTUBE->Player_Response_JSON_Full , "print_r", "Player_Response_JSON_Erased = Урезанный JSON");
$YOUTUBE -> Check_Playability_Status( ); #
######################
$YOUTUBE -> Fill_FIN_Video_Info( ); #
// SF::PRINTER($YOUTUBE->FIN_Video_Info_Asoc,"print_r" , "FIN_Video_Info_Asoc = ВСЯ Основная инфа о видео");
######################
$YOUTUBE -> Fill_FIN_Video_Thimbnails_Arr( );
// SF::PRINTER($YOUTUBE->FIN_Video_Thimbnails_Arr,"print_r" , "FIN_Video_Thimbnails_Arr = Все Thimbnails");
######################
$YOUTUBE -> Fill_FIN_Video_Itag_Info_Asoc_FULL( );
// SF::PRINTER($YOUTUBE->FIN_Video_Itag_Info_Asoc_FULL,"print_r" , "FIN_Video_Itag_Info_Asoc_FULL = ВСЯ Инфа о форматах видео");
######################
$YOUTUBE -> Echo_Table( );
######################
if( isset($_POST["cb1_Echo_POST"]) ) SF::PRINTER($_POST , "print_r", "ВСЕ пришедшее в POST");
if( isset($_POST["cb4_Echo_Video_ID"] ) ) SF::PRINTER($YOUTUBE->Video_ID , "print_r" , "Итоговый Video_ID");
if( isset($_POST["cb8_Echo_JSON_Erased"]) )
SF::PRINTER($YOUTUBE->Player_Response_JSON_Full , "print_r", "Player_Response_JSON_Erased = Урезанный JSON");
if( isset($_POST["cb9_Echo_FIN_Video_Info_Asoc"]) )
SF::PRINTER($YOUTUBE->FIN_Video_Info_Asoc,"print_r" , "FIN_Video_Info_Asoc = ВСЯ Основная инфа о видео");
if( isset($_POST["cb10_Echo_FIN_Video_Thumb_Url_Arr"]) )
SF::PRINTER($YOUTUBE->FIN_Video_Thimbnails_Arr,"print_r" , "FIN_Video_Thimbnails_Arr = Все Thimbnails");
if( isset($_POST["cb11_Echo_FIN_Video_Itag_Info_Asoc_FULL"]) )
SF::PRINTER($YOUTUBE->FIN_Video_Itag_Info_Asoc_FULL,"print_r" , "FIN_Video_Itag_Info_Asoc_FULL = ВСЯ Инфа о форматах видео");
echo "<br>END";
exit;
?>