[mythtv] mythweb2 music patch / addition

Brent Hills bhills at openshores.com
Sat Aug 2 18:22:46 EDT 2003


Hello,

Attached below is an update to add some initial access to mythmusic's
database from mythweb2.

The three files consist of a short patch to
mythweb2/themes/Default/themes.php to remove a pair of paragraph tags
which were effecting html validation and restoring a link to music on
the menu.

The file defaultmusic.php should be added as:
mythweb2/themes/Default/music.php

The file music.php should be added as:
mythweb2/music.php

(the naming clash is consistent with the other files present)
Currently, the files add the ability to view your music at a high level.

I would really like to get mythmusic integrated with mythweb2 especially
for playlist creation, modification.  

html/php is not my norm so feedback is welcome.  I'm willing to put some
effort into this functionality (I've only spent the morning on this if
someone else is further along I would be willing to turf it and help
out.)

One other note, at one time I read in the mailing list that sub-playlist
entries were added as negative entries in the database.  Does that still
occur?  My own database didn't have any examples of this. 

Thanks,
Brent
-------------- next part --------------
? music.php
? themes/Default/music.php
Index: themes/Default/theme.php
===================================================================
RCS file: /var/lib/mythcvs/mythweb2/themes/Default/theme.php,v
retrieving revision 1.2
diff -u -d -r1.2 theme.php
--- themes/Default/theme.php	28 Jul 2003 06:08:04 -0000	1.2
+++ themes/Default/theme.php	2 Aug 2003 23:43:27 -0000
@@ -28,7 +28,6 @@
 
 <body bgcolor="#003060" text="#DEDEDE" link="#3181B4" alink="#CC0000" vlink="#3181B4">
 
-<p>
 <table width="100%" border="0" cellspacing="2" cellpadding="2">
 <tr>
 	<td rowspan="2" width="300" align="center"><A HREF="http://www.mythtv.org"><img src="<?=theme_dir?>img/mythtv-logo.png" height="110" width="290" border="0" alt="MythTV"></a></td>
@@ -96,14 +95,15 @@
 				&nbsp; | &nbsp;
 				<a href="scheduled_recordings.php">Scheduled Recordings</a>
 				&nbsp; | &nbsp;
-				<a href="recorded_programs.php">Recorded Programs</a></td>
+				<a href="recorded_programs.php">Recorded Programs</a>
+                &nbsp; | &nbsp;
+                <a href="music.php">Music</a></td>
 			<td align="right"><?=date(longdate_format, time())?></td>
 		</tr>
 		</table></td>
 
 </tr>
 </table>
-</p>
 <?
 	}
 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: defaultmusic.php
Type: application/x-php
Size: 13611 bytes
Desc: 
Url : http://mythtv.org/pipermail/mythtv-dev/attachments/20030802/c41f470e/defaultmusic-0001.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: music.php
Type: application/x-php
Size: 517 bytes
Desc: not available
Url : http://mythtv.org/pipermail/mythtv-dev/attachments/20030802/c41f470e/music-0001.bin


More information about the mythtv-dev mailing list