Skip to content
This repository
Browse code

edited readme to include directory name need for make install

  • Loading branch information...
commit fbfb3468c7b6e3861b14204b1d7ae1457b92a11f 1 parent beea2d3
ear9mrn authored October 20, 2011
3  README
@@ -69,7 +69,8 @@ http://www.roku.com/developer
69 69
 	streamed by roku
70 70
 	
71 71
 5) install mythroku to your roku player
72  
-	in the mythroku directory (containing this read me) simply type
  72
+	in the mythroku directory (containing this read me,
  73
+		this has to be called "MythRokuPlayer") simply type
73 74
 	
74 75
 	make install
75 76
 
2  mythroku/mythtv_movies_test.php
@@ -18,7 +18,7 @@
18 18
 		$SQL = "SELECT * FROM videometadata WHERE filename LIKE '%.mp4' ORDER BY category ASC";
19 19
 	}
20 20
 	else {
21  
-		$SQL = "SELECT * FROM videometadata";
  21
+		$SQL = "SELECT * FROM videometadata WHERE filename LIKE '%.mp4'";
22 22
 	}
23 23
 
24 24
         $result = mysql_query($SQL);
14  mythroku/mythtv_tv_test.php
@@ -9,15 +9,15 @@
9 9
 if ($db_found) {
10 10
 
11 11
         if (isset($_GET['sort']) && $_GET['sort'] == 'date') {
12  
-                $SQL = "SELECT * FROM recorded ORDER BY starttime DESC";
  12
+                $SQL = "SELECT * FROM recorded WHERE filename LIKE '%.mp4' ORDER BY starttime DESC";
13 13
         }elseif (isset($_GET['sort']) && $_GET['sort'] == 'title'){
14  
-                $SQL = "SELECT * FROM recorded ORDER BY title ASC";
  14
+                $SQL = "SELECT * FROM recorded WHERE filename LIKE '%.mp4' ORDER BY title ASC";
15 15
         }elseif (isset($_GET['sort']) && $_GET['sort'] == 'genre'){
16  
-                $SQL = "SELECT * FROM recorded ORDER BY category ASC";
  16
+                $SQL = "SELECT * FROM recorded WHERE filename LIKE '%.mp4' ORDER BY category ASC";
17 17
         }elseif (isset($_GET['sort']) && $_GET['sort'] == 'channel'){
18  
-                $SQL = "SELECT * FROM recorded ORDER BY channel ASC";
  18
+                $SQL = "SELECT * FROM recorded WHERE filename LIKE '%.mp4' ORDER BY channel ASC";
19 19
         }else {
20  
-                $SQL = "SELECT * FROM recorded";
  20
+                $SQL = "SELECT * FROM recorded WHERE filename LIKE '%.mp4'";
21 21
         }
22 22
 
23 23
         $result = mysql_query($SQL);
@@ -39,7 +39,7 @@
39 39
 
40 40
 while ($db_field = mysql_fetch_assoc($result)) {
41 41
 
42  
-	if ( file_exists("../data/recordings/" . RemoveExtension($db_field['basename'] ) . ".mp4" ) ) {
  42
+	//need some error checking  here if file could not be found or art work missing etc.....
43 43
         $ShowLength = convert_datetime($db_field['endtime']) - convert_datetime($db_field['starttime']);
44 44
 
45 45
         print 
@@ -61,7 +61,7 @@
61 61
 
62 62
 print "</body></html>";
63 63
 
64  
-	}
  64
+	
65 65
        mysql_close($db_handle);
66 66
 
67 67
         }

0 notes on commit fbfb346

Please sign in to comment.
Something went wrong with that request. Please try again.