-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathfabex.php
More file actions
52 lines (35 loc) · 1.23 KB
/
fabex.php
File metadata and controls
52 lines (35 loc) · 1.23 KB
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
<?php echo "<?xml version='1.0' ?>"; ?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<mediaDisplay>
<text offsetXPC=25 offsetYPC=6 widthPC=50 heightPC=6 fontSize=20 backgroundColor=-1:-1:-1 foregroundColor=250:250:250>
TV OVA - Fabex Ostrava</text>
</mediaDisplay>
<channel>
<title>TV OVA - Fabex Ostrava</title>
<menu>main menu</menu>
<?php
$html = file_get_contents("http://www.tvova.cz/");
$videos = explode('<div class="search_video">', $html);
unset($videos[0]);
$videos = array_values($videos);
foreach($videos as $video) {
$t1 = explode('<a href="http://www.tvova.cz/vsechny-videa/play-', $video);
$t2 = explode('-s1.html', $t1[1]);
$link = $t2[0];
$t1 = explode('title="', $video);
$t2 = explode('"', $t1[1]);
$titulek = $t2[0];
$t1 = explode('<img src="', $video);
$t2 = explode('"></a>', $t1[1]);
$nahled = $t2[0];
echo '<item>';
echo '<title>'.$titulek.'</title>';
echo '<link>http://www.tvova.cz/video/'.$link.'.flv</link>';
echo '<enclosure type="video/flv" url="http://www.tvova.cz/video/'.$link.'.flv"/>';
echo '<media:thumbnail url="'.$nahled.'" />';
echo '</item>';
echo "\n";
}
?>
</channel>
</rss>