forked from newloran2/emplexer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathemplexer_movie_list.php
executable file
·53 lines (40 loc) · 1.13 KB
/
emplexer_movie_list.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
<?php
class EmplexerMovieList extends EmplexerVideoList
{
const ID='emplexer_movie_list';
function __construct()
{
hd_print(__METHOD__);
parent::__construct(self::ID, $this->get_folder_views());
}
public static function get_media_url_str($key, $filter_name =null, $type='movie')
{
hd_print(__METHOD__);
self::$type = $type;
return MediaURL::encode(
array
(
'screen_id' => self::ID,
'key' => $key,
'category_id' => $key,
'filter_name' => $filter_name,
'type' => $type
)
);
}
public function get_folder_views()
{
hd_print(__METHOD__);
return EmplexerConfig::getInstance()->GET_VIDEOS_LIST_VIEW();
}
public function getDetailedInfo(SimpleXMLElement &$node){
hd_print(__METHOD__);
$info = (string)$node->attributes()->title;
// 'Serie:' . (string)$c->attributes()->grandparentTitle . ' || ' .
// 'Episode Name :' . (string)$c->attributes()->title. ' || ' .
// 'EP:' . 'S'.(string)$c->attributes()->parentIndex . 'E'. (string)$c->attributes()->index . '||' .
// 'summary:'. str_replace('"', '' , (string)$c->attributes()->summary);
return $info;
}
}
?>