pyTivo Discussion Forum Forum Index pyTivo Discussion Forum
Answers and the development of pyTivo a TiVo transcoding server
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Fixed problem with subfolders.. How to submit code?
Goto page Previous  1, 2
 
Post new topic   Reply to topic    pyTivo Discussion Forum Forum Index -> Support
 View previous topic :: View next topic  
Author Message
wmcbrine



Joined: 04 Jan 2008
Posts: 2009
Location: Maryland

PostPosted: Wed Feb 06, 2008 7:27 am    Post subject: Reply with quote

smack000 wrote:
I'm curious - what's the root of the 2-level limitation?

Hell if I know. The limitation is on the Tivo side. It just starts sending bogus requests at that point (same as the previous subfolders problem, just one level lower). Like I say, it's correctable with hack83 (i.e. there's no such limit).

Quote:
Is the URL too long?

No.

The Tivo actually makes one request for the full URL, and then one for the parent, which (in the absence of hack83) essentially overrides the correct request.

_________________
My pyTivo fork . My page
Back to top
View user's profile Send private message Visit poster's website
windracer



Joined: 04 Jan 2008
Posts: 219
Location: St. Pete, FL

PostPosted: Wed Feb 06, 2008 1:46 pm    Post subject: Reply with quote

wmcbrine wrote:
OK, so this doesn't quite obsolete hack83, because of the two-level limitation.

So wait, does that mean hack83 is supposed to allow more than two levels?

edit: doh, hadn't finished reading ... so the answer is yes, it's supposed to. Guess I need to re-test that.

_________________
pyTiVo on Ubuntu 11.10 (Oneiric)
Back to top
View user's profile Send private message AIM Address Yahoo Messenger
reneg



Joined: 04 Jan 2008
Posts: 160

PostPosted: Wed Feb 06, 2008 2:24 pm    Post subject: Reply with quote

This is nice step forward, thank you Smack000.

Just throwing this out there, is it possible that <UniqueId> needs to be applied recursively to folders to get past the 2 folder limit?
Back to top
View user's profile Send private message
smack000



Joined: 05 Feb 2008
Posts: 10

PostPosted: Wed Feb 06, 2008 3:39 pm    Post subject: Reply with quote

reneg wrote:
This is nice step forward, thank you Smack000.

Just throwing this out there, is it possible that <UniqueId> needs to be applied recursively to folders to get past the 2 folder limit?


Well looking at the way the actual Tivos report guide data, UniqueId actually changes for the sub folders.

On the now Playing screen, UniqueId will be ###, but in the subfolder, it'll be /NowPlaying/###, so I'm going to try to emulate that. In addition, I noticed a few other things, like <Title> may not need to contain full paths, as they don't on the Tivo.

I really wish there were a way to do a request for something two levels deep n the Tivo's Now Playing menu.

I imagine what's going on here is not "limits" in the Tivo, but rather the Tivo seeing what it thinks is malformed data and punting back to a folder it "knows" works. Of course, then hack83 comes in and resubmits it malformed data, which is probably causing the wonderful crashes.
Back to top
View user's profile Send private message
TreborPugly



Joined: 05 Jan 2008
Posts: 55

PostPosted: Wed Feb 06, 2008 3:56 pm    Post subject: Reply with quote

I haven't grabbed this yet, but in the diff smack000 gave, I notice one line:


Code:
+             video['small_path'] = subcname + '/' + video['name']


is that '/' the sort of slash vs. backslash that causes problems in Windows?
Back to top
View user's profile Send private message
smack000



Joined: 05 Feb 2008
Posts: 10

PostPosted: Wed Feb 06, 2008 4:56 pm    Post subject: Reply with quote

TreborPugly wrote:
I haven't grabbed this yet, but in the diff smack000 gave, I notice one line:


Code:
+             video['small_path'] = subcname + '/' + video['name']


is that '/' the sort of slash vs. backslash that causes problems in Windows?


Well, being that I'm developing in Windows, nope. I'm just using it as the key to send to the crc and is based on the urls sent to the Tivos.
Back to top
View user's profile Send private message
windracer



Joined: 04 Jan 2008
Posts: 219
Location: St. Pete, FL

PostPosted: Wed Feb 06, 2008 5:44 pm    Post subject: Re: Fixed problem with subfolders.. How to submit code? Reply with quote

smack000 wrote:

Lemme know if this works for others. Name's Jack Mathews if it does and you feel like putting me in the credits Smile

Did you see wmcbrine's git comment for the merge?
Quote:
Subfolders in five lines, a poem by Jack Mathews.

Very Happy

_________________
pyTiVo on Ubuntu 11.10 (Oneiric)
Back to top
View user's profile Send private message AIM Address Yahoo Messenger
krkeegan
Site Admin


Joined: 04 Jan 2008
Posts: 458
Location: Los Angeles, CA

PostPosted: Wed Feb 06, 2008 7:41 pm    Post subject: Reply with quote

This is cool, it works very well for the first level of folders. I have been tinkering trying to solve the deeper folder problem.

So i noticed on TiVo the unique IDs of folders looked like this:
/NowPlaying/9930

However smack000 mod creates unique IDs that look like this
93949858

I tried modifying the code so that unique IDs in folders were continuations of their parent unique IDs such as this:
/94959885/93949858

But this didn't seem to do anything.

Anyone else have any other suggestions.
Back to top
View user's profile Send private message Visit poster's website
smack000



Joined: 05 Feb 2008
Posts: 10

PostPosted: Wed Feb 06, 2008 7:59 pm    Post subject: Reply with quote

krkeegan wrote:

Anyone else have any other suggestions.


If someone has a hacked Tivo, a look at the log files could be illuminating.
Back to top
View user's profile Send private message
TreborPugly



Joined: 05 Jan 2008
Posts: 55

PostPosted: Wed Feb 06, 2008 9:03 pm    Post subject: Reply with quote

I haven't tried this new version on my Tivo yet, but using my web browser to run queries, I see that I can actually use queries for subdirectories and have it work. In previous versions that caused crashes, I would get a blank web page if I tried to do anything other than:

http://localhost:9032/TiVoConnect?Command=QueryContainer

So this might be a way to test some of the crashy versions without crashing my Tivo.
Back to top
View user's profile Send private message
polarweasel



Joined: 07 Feb 2008
Posts: 9

PostPosted: Thu Feb 07, 2008 3:12 am    Post subject: How to get latest version with fixed subfolders? Reply with quote

I've been watching the subfolders discussion for a while and trying to keep track of the various forks and download locations, but I'm having a hard time keeping up.

I have an S3 running the latest software rev (9.2?) connected via a wired network to an XP Professional system that I can use to help test. I'm also a professional C/C++ software developer with a decent amount of Python experience (none of it involving http or other network protocols, unfortunately, but at least a good basic understanding of Python).

What is the best way for me to download the latest version of pyTivo containing smack000's subfolders fix? I'd like to start contributing somehow. It would be fantastic if that version also included the music plugin and wmcbrine's photo plugin, as my family depends heavily on those two as well as pyTivo's video-serving ability.

I'm familiar with the pyTivo Trac site (http://pytivo.armooo.net/) as well as this one and, of course, the pyTivo thread at tivocommunity.com -- what is the best of these to monitor for status, updates, information, and download pointers for the latest version of pyTivo?

Kudos to everyone who's been working so hard for so long on pyTivo with so little active support from TiVo, Inc. -- it's fantastic, very useful software.

-polarweasel
Back to top
View user's profile Send private message
wgw



Joined: 06 Jan 2008
Posts: 284

PostPosted: Thu Feb 07, 2008 3:30 am    Post subject: Reply with quote

wmcbrines fork is currently the only branch including smack000's update.
http://repo.or.cz/w/pyTivo.git
The various forks are at the bottom of the page.

_________________
Download pyTivo
my pyTivo branch
Back to top
View user's profile Send private message
polarweasel



Joined: 07 Feb 2008
Posts: 9

PostPosted: Thu Feb 07, 2008 12:36 pm    Post subject: Reply with quote

wgw wrote:
wmcbrines fork is currently the only branch including smack000's update.
http://repo.or.cz/w/pyTivo.git
The various forks are at the bottom of the page.


Thanks, I'll pull that version from repo.or.cz. Looks like I'd better start familiarizing myself with git.

-polarweasel
Back to top
View user's profile Send private message
wmcbrine



Joined: 04 Jan 2008
Posts: 2009
Location: Maryland

PostPosted: Thu Feb 07, 2008 1:20 pm    Post subject: Reply with quote

polarweasel wrote:
Thanks, I'll pull that version from repo.or.cz. Looks like I'd better start familiarizing myself with git.

You don't have to use git. You can just pull the snapshot .tar.gz from the "snapshot" link.

_________________
My pyTivo fork . My page
Back to top
View user's profile Send private message Visit poster's website
polarweasel



Joined: 07 Feb 2008
Posts: 9

PostPosted: Fri Feb 08, 2008 4:41 am    Post subject: Reply with quote

wmcbrine wrote:
polarweasel wrote:
Thanks, I'll pull that version from repo.or.cz. Looks like I'd better start familiarizing myself with git.

You don't have to use git. You can just pull the snapshot .tar.gz from the "snapshot" link.


OK, that works. Perhaps I should start familiarizing myself with the http traffic between my S3 and pyTivo?

What can I do that would be most helpful at this point? Offering my S3 system as a test platform, actively pursuing existing trouble tickets, or really trying to dig in to what's going on to get up to speed?

Unfortunately, I have a 2-year-old daughter and a 4-year-old son, so the amount of time I get to myself these days is limited. I'd like to optimize my efforts as much as possible, and I figure as a TiVo enthusiast who's familiar with Python, I can at least do *something*.

I'm running pyTivo as a service right now, but that seems to limit the options for debugging output. Would it be more helpful if I started it explicitly in a command shell, or is setting debug=true in pytivo.conf enough?

Sorry to be asking such basic questions, but until a few days ago I was using TiVo Desktop because it was barely good enough, so I'm way behind the rest of you.

-polarweasel
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    pyTivo Discussion Forum Forum Index -> Support All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum
Site is in NO WAY affiliated with TiVo Inc

Powered by phpBB © 2001, 2005 phpBB Group
phpBB SEO

Get pytivo at SourceForge.net. Fast, secure and Free Open Source software downloads
[ Time: 0.1392s ][ Queries: 12 (0.0209s) ][ GZIP on - Debug on ]