Tivo 7.1 patch (TivoToGo)
Status: Alpha
Brought to you by:
nero4wolfe
My byRequest stopped working when I got my TivoToGo
upgrade. There are some bugs in the byRequest code. I
fixed the occurances that were giving me problems, but
didn't search for similar bugs. Also byRequest
doesn't always (ever?) encode & in the xml. I had a
folder titled "Music & Playlists" which causes the new
tivo to reject my main page and it wouldn't show any
shares. I just renamed it in the config file & didn't
dig through the sources.
This patch is vs. CVS.
Patch for utils.c & commands.c
Logged In: YES
user_id=1135765
hmmm... it doesn't work for me:
$ patch <byrpatch
patching file utils.c
Hunk #1 succeeded at 234 (offset 6 lines).
Hunk #2 succeeded at 249 (offset 6 lines).
patching file commands.c
Hunk #1 FAILED at 964.
1 out of 1 hunk FAILED -- saving rejects to file commands.c.rej
$cat commancs.c.rej
***************
*** 964,970 ****
itemsToSend = 0;
cp = decodeString( findParameter( params, "Format" ) );
- if( cp == NULL || strcasecmp( cp, "text/xml" ) == 0 )
{
sendContainerAsXML( fd, path, dirItem, itemArray,
anchorItem, itemsToSend,
itemCount, totalduration, fileType );
--- 964,970 ----
itemsToSend = 0;
cp = decodeString( findParameter( params, "Format" ) );
+ if( cp == NULL || *cp == 0 || strcasecmp( cp,
"text/xml" ) == 0 )
{
sendContainerAsXML( fd, path, dirItem, itemArray,
anchorItem, itemsToSend,
itemCount, totalduration, fileType );