Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add movielist.html, movielist.m3u, movielist.rss, movietags apis and …
…add tag support in movielist
- Loading branch information
skaman
committed
Jan 8, 2012
1 parent
afe8275
commit a668cf3
Showing
7 changed files
with
164 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
#filter WebSafe | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<html> | ||
<head> | ||
<title> | ||
Enigma2 Movielist | ||
</title> | ||
<link/> | ||
</head> | ||
<body> | ||
<table> | ||
#for $movie in $movies | ||
<tr> | ||
<td class="pageHeader"> | ||
$movie.eventname | ||
</td> | ||
</tr> | ||
<tr> | ||
<td> | ||
<b>Description:</b> | ||
$movie.description | ||
<br/> | ||
<b>Extended:</b> | ||
$movie.descriptionExtended | ||
<br/> | ||
<b>Recording Time:</b> | ||
$movie.begintime | ||
<br/> | ||
<b>Tags:</b> | ||
$movie.tags | ||
<br/> | ||
<b>Channel:</b> | ||
$movie.servicename | ||
</td> | ||
</tr> | ||
<tr height="20"> | ||
<td> | ||
</td> | ||
</tr> | ||
#end for | ||
</table> | ||
</body> | ||
</html> | ||
#end filter |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#from urllib import quote | ||
#EXTM3U | ||
#EXTVLCOPT--http-reconnect=true | ||
#for $movie in $movies | ||
#EXTINF:-1,: $movie.filename_stripped | ||
http://$host/file?file=$quote($movie.filename) | ||
#end for |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#filter WebSafe | ||
#from urllib import quote | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<rss version="2.0"> | ||
<channel> | ||
<title>Enigma2 Movielist</title> | ||
<link>http://</link> | ||
<description>A list of all recordings</description> | ||
<generator>OpenWebif</generator> | ||
#for $movie in $movies | ||
<item> | ||
<title>$movie.eventname</title> | ||
<description> | ||
Service: $movie.servicename<br /> | ||
$movie.description<br /> | ||
$movie.descriptionExtended<br /> | ||
$movie.filename<br /> | ||
$movie.tags<br /> | ||
$movie.fullname | ||
</description> | ||
<link>http://$host/file?file=$quote($movie.filename)</link> | ||
<enclosure type="video/mpeg" url="http://$host/file?file=$quote($movie.filename)"/> | ||
<pubDate>$movie.begintime</pubDate> | ||
<category>$movie.servicename</category> | ||
<author>Dreambox Enigma2</author> | ||
</item> | ||
#end for | ||
</channel> | ||
</rss> | ||
#end filter |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#filter WebSafe | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<e2tags> | ||
#for $tag in $tags | ||
<e2tag>$tag</e2tag> | ||
#end for | ||
</e2tags> | ||
#end filter |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters