-
Notifications
You must be signed in to change notification settings - Fork 14
/
emplexer_movie_description_screen.php
103 lines (82 loc) · 3.62 KB
/
emplexer_movie_description_screen.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
91
92
93
94
95
96
97
98
99
100
101
102
103
<?php
// require_once 'lib/screen.php';
require_once 'lib/vod/vod_movie_screen.php';
class EmplexerMovieDescriptionScreen extends VodMovieScreen {
const ID='emplexer_movie_desction_screen';
public function get_id(){
hd_print(__METHOD__);
return self::ID;
}
public static function get_media_url_str($movie_id)
{
hd_print(__METHOD__);
return MediaURL::encode(
array
(
'screen_id' => self::ID,
)
);
}
public function get_action_map(MediaURL $media_url, &$plugin_cookies){
hd_print(__METHOD__);
return null;
}
public function get_all_folder_items(MediaURL $media_url , &$plugin_cookies){
hd_print(__METHOD__);
return $this->get_folder_view($media_url, $plugin_cookies);
}
public function get_folder_view(MediaURL $media_url, &$plugin_cookies)
{
hd_print(__METHOD__);
$movie = array(
PluginMovie::name => 'Air Gear',
// PluginMovie::name_original => ,
PluginMovie::description => 'This is where it all begins. Ikki gets into a fight with a group of Storm Riders who use ATs. After he loses, Ikki sees the mysterious Simca. After returning home, he curiously takes a pair of Mikans ATs. After accidentally challenging another Storm Rider group, Ikki is thrust into an Air Trek match.',
PluginMovie::poster_url => 'http://192.168.2.9:32400/library/metadata/18684/thumb/1351251873',
PluginMovie::length_min => 23,
PluginMovie::year => 2006,
PluginMovie::directors_str => 'Hajime Kamegaki',
// PluginMovie::scenarios_str => $this->scenarios_str,
// PluginMovie::actors_str => $this->actors_str,
PluginMovie::genres_str => 'Animation,Drama,',
PluginMovie::rate_imdb => 9,
// PluginMovie::rate_kinopoisk => $this->rate_kinopoisk,
PluginMovie::rate_mpaa => 'TV-G',
// PluginMovie::country => $this->country,
// PluginMovie::budget => $this->budget
);
$movie_folder_view = array
(
PluginMovieFolderView::movie => $movie,
PluginMovieFolderView::has_right_button => true,
PluginMovieFolderView::right_button_caption => 'teste',
// PluginMovieFolderView::right_button_action => ,
PluginMovieFolderView::has_multiple_series => false,
//(count($movie->series_list) > 1),
// PluginMovieFolderView::series_media_url =>
// VideomoreVodSeriesListScreen::get_media_url_str($movie->id),
'teste' => 'isso teste',
PluginMovieFolderView::params => array
(
PluginFolderViewParams::paint_path_box =>false,
PluginFolderViewParams::paint_content_box_background => true,
PluginFolderViewParams::background_url => 'http://thetvdb.com/banners/fanart/original/267440-2.jpg'
)
);
$folder_view = array
(
PluginFolderView::multiple_views_supported => false,
PluginFolderView::archive => null,
PluginFolderView::view_kind => PLUGIN_FOLDER_VIEW_MOVIE,
PluginFolderView::data => $movie_folder_view,
);
hd_print(__METHOD__ . ':'. print_r($folder_view, true));
return $folder_view;
}
public function handle_user_input(&$user_input, &$plugin_cookies){
hd_print(__METHOD__);
hd_print(print_r($user_input, true));
hd_print(print_r($plugin_cookies, true));
}
}
?>