Permalink
Browse files

edited readme to include directory name need for make install

  • Loading branch information...
1 parent beea2d3 commit fbfb3468c7b6e3861b14204b1d7ae1457b92a11f @ear9mrn committed Oct 20, 2011
Showing with 10 additions and 9 deletions.
  1. +2 −1 README
  2. +1 −1 mythroku/mythtv_movies_test.php
  3. +7 −7 mythroku/mythtv_tv_test.php
View
3 README
@@ -69,7 +69,8 @@ http://www.roku.com/developer
streamed by roku
5) install mythroku to your roku player
- in the mythroku directory (containing this read me) simply type
+ in the mythroku directory (containing this read me,
+ this has to be called "MythRokuPlayer") simply type
make install
@@ -18,7 +18,7 @@
$SQL = "SELECT * FROM videometadata WHERE filename LIKE '%.mp4' ORDER BY category ASC";
}
else {
- $SQL = "SELECT * FROM videometadata";
+ $SQL = "SELECT * FROM videometadata WHERE filename LIKE '%.mp4'";
}
$result = mysql_query($SQL);
@@ -9,15 +9,15 @@
if ($db_found) {
if (isset($_GET['sort']) && $_GET['sort'] == 'date') {
- $SQL = "SELECT * FROM recorded ORDER BY starttime DESC";
+ $SQL = "SELECT * FROM recorded WHERE filename LIKE '%.mp4' ORDER BY starttime DESC";
}elseif (isset($_GET['sort']) && $_GET['sort'] == 'title'){
- $SQL = "SELECT * FROM recorded ORDER BY title ASC";
+ $SQL = "SELECT * FROM recorded WHERE filename LIKE '%.mp4' ORDER BY title ASC";
}elseif (isset($_GET['sort']) && $_GET['sort'] == 'genre'){
- $SQL = "SELECT * FROM recorded ORDER BY category ASC";
+ $SQL = "SELECT * FROM recorded WHERE filename LIKE '%.mp4' ORDER BY category ASC";
}elseif (isset($_GET['sort']) && $_GET['sort'] == 'channel'){
- $SQL = "SELECT * FROM recorded ORDER BY channel ASC";
+ $SQL = "SELECT * FROM recorded WHERE filename LIKE '%.mp4' ORDER BY channel ASC";
}else {
- $SQL = "SELECT * FROM recorded";
+ $SQL = "SELECT * FROM recorded WHERE filename LIKE '%.mp4'";
}
$result = mysql_query($SQL);
@@ -39,7 +39,7 @@
while ($db_field = mysql_fetch_assoc($result)) {
- if ( file_exists("../data/recordings/" . RemoveExtension($db_field['basename'] ) . ".mp4" ) ) {
+ //need some error checking here if file could not be found or art work missing etc.....
$ShowLength = convert_datetime($db_field['endtime']) - convert_datetime($db_field['starttime']);
print
@@ -61,7 +61,7 @@
print "</body></html>";
- }
+
mysql_close($db_handle);
}

0 comments on commit fbfb346

Please sign in to comment.