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 

Maintain position in NPL

 
Post new topic   Reply to topic    pyTivo Discussion Forum Forum Index -> Support
 View previous topic :: View next topic  
Author Message
lrhorer



Joined: 04 Mar 2008
Posts: 171

PostPosted: Sat Jun 20, 2009 8:34 pm    Post subject: Maintain position in NPL Reply with quote

I suspect this may have been discussed before, but I searched and could not find any threads or posts pertaining to it. When in a sub-folder and browsing the list of titles, if one drills into one of the program titles in order to view more information, when returning to the folder list, one is automatically sent back to the top of the list. This is highly annoying, especially in large folders containing programs with very similar names. For example, I currently have 137 episodes of Star Trek: The Next Generation. Getting from the top of the list to near the bottom of the list takes a while. Not only that, but by default until I can arrange differently via creating and editing metafiles, the titles are all nearly identical, "Star Trek Next Generation - " taking up almost the entire line of the NPL.

Is there any way to arrange for the position in the program listing to be saved, as it were, so that one does not have to navigate endlessly though the list whenever one drills into the program? It works like this in the main NPL, just not in folders.
Back to top
View user's profile Send private message Visit poster's website
wmcbrine



Joined: 04 Jan 2008
Posts: 2629
Location: Maryland

PostPosted: Sun Jun 21, 2009 3:05 am    Post subject: Reply with quote

I'm not seeing that in the situation you describe. (That is to say, my position is preserved.) I do see something similar if (and only if) I use the "Start Playing" function. In that case, what happens is that the TiVo will make a request like "Container=videos&AnchorItem=/videos/folder1/file.mpg", where it should be (and in other circumstances, is) asking for "Container=videos/folder1&AnchorItem=/videos/folder1/file1.mpg".

You might want to post a log of this.

Moving this to support because it's a bug, not actually a new feature request. Smile

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



Joined: 04 Mar 2008
Posts: 171

PostPosted: Fri Jul 03, 2009 5:43 pm    Post subject: Reply with quote

Thanks.

Code:
INFO:pyTivo:192.168.0.103 [03/Jul/2009 12:53:54] "GET /TiVoConnect?Command=QueryFormats&SourceFormat=video%2Fx-tivo-mpeg HTTP/1.1" 200 -
INFO:pyTivo:192.168.0.103 [03/Jul/2009 12:53:54] "GET /TiVoConnect?Command=QueryFormats&SourceFormat=video%2Fx-tivo-mpeg HTTP/1.1" 200 -
INFO:pyTivo:192.168.0.103 [03/Jul/2009 12:53:54] "GET /TiVoConnect?Command=QueryContainer&Container=Videos%20by%20Genre%2FAction&SortOrder=!CaptureDate&ItemCount=8&Filter=x-tivo-container%2Ftivo-videos,x-tivo-container%2Ffolder,video%2Fx-tivo-mpeg,video%2F* HTTP/1.1" 200 -
INFO:pyTivo:192.168.0.103 [03/Jul/2009 12:53:55] "GET /TiVoConnect?Command=QueryContainer&Container=Videos%20by%20Genre%2FAction&SortOrder=!CaptureDate&ItemCount=8&AnchorItem=%2FVideos%2520by%2520Genre%2F
Action%2F4%2520Batman%2520%2526%2520
Robin.mpg&AnchorOffset=-1&Filter=x-tivo-container%2Ftivo-videos,x-tivo-container%2Ffolder,video%2Fx-tivo-mpeg,video%2F* HTTP/1.1" 200 -
INFO:pyTivo:192.168.0.103 [03/Jul/2009 12:53:57] "GET /TiVoConnect?Command=QueryFormats&SourceFormat=video%2Fx-tivo-mpeg HTTP/1.1" 200 -
INFO:pyTivo:192.168.0.103 [03/Jul/2009 12:53:57] "GET /TiVoConnect?Command=QueryContainer&Container=Videos%20by%20Genre%2FAction&SortOrder=!CaptureDate&ItemCount=8&AnchorItem=%2FVideos%2520by%2520Genre%2F
Action%2FBatman%25201.mpg&AnchorOffset=-1&Filter=x-tivo-container%2Ftivo-videos,x-tivo-container%2Ffolder,video%2Fx-tivo-mpeg,video%2F* HTTP/1.1" 200 -
INFO:pyTivo:192.168.0.103 [03/Jul/2009 12:53:59] "GET /TiVoConnect?Command=QueryFormats&SourceFormat=video%2Fx-tivo-mpeg HTTP/1.1" 200 -
INFO:pyTivo:192.168.0.103 [03/Jul/2009 12:53:59] "GET /TiVoConnect?Command=QueryContainer&Container=Videos%20by%20Genre%2FAction&SortOrder=!CaptureDate&ItemCount=8&AnchorItem=%2FVideos%2520by%2520Genre%2F
Action%2FBlob%252C%2520The%25201988%2520
%2528Recorded%2520Sun%2520Sep%252030
%25202007%252008%252030PM%2520HDNETMV
%2529.mpg&AnchorOffset=-1&Filter=x-tivo-container%2Ftivo-videos,x-tivo-container%2Ffolder,video%2Fx-tivo-mpeg,video%2F* HTTP/1.1" 200 -
INFO:pyTivo:192.168.0.103 [03/Jul/2009 12:54:00] "GET /TiVoConnect?Command=QueryFormats&SourceFormat=video%2Fx-tivo-mpeg HTTP/1.1" 200 -
INFO:pyTivo:192.168.0.103 [03/Jul/2009 12:54:00] "GET /TiVoConnect?Command=QueryContainer&Container=Videos%20by%20Genre%2FAction&SortOrder=!CaptureDate&ItemCount=8&AnchorItem=%2FVideos%2520by%2520Genre%2F
Action%2FDances%2520With%2520Wolves.mpg&
AnchorOffset=-1&Filter=x-tivo-container%2Ftivo-videos,x-tivo-container%2Ffolder,video%2Fx-tivo-mpeg,video%2F* HTTP/1.1" 200 -
INFO:pyTivo:192.168.0.103 [03/Jul/2009 12:54:05] "GET /TiVoConnect?Command=QueryFormats&SourceFormat=video%2Fx-tivo-mpeg HTTP/1.1" 200 -
INFO:pyTivo:192.168.0.103 [03/Jul/2009 12:54:05] "GET /TiVoConnect?Command=QueryContainer&Container=Videos%20by%20Genre%2FAction&SortOrder=!CaptureDate&ItemCount=1&AnchorItem=%2FVideos%2520by%2520Genre%2F
Action%2FDances%2520With%2520Wolves.mpg&
AnchorOffset=-1&Filter=x-tivo-container%2Ftivo-videos,x-tivo-container%2Ffolder,video%2Fx-tivo-mpeg,video%2F* HTTP/1.1" 200 -
INFO:pyTivo:192.168.0.103 [03/Jul/2009 12:54:05] "GET /TiVoConnect?Command=TVBusQuery&Container=Videos%20by%20Genre&File=%2FAction%2FDances%20With%20Wolves.mpg HTTP/1.1" 200 -
INFO:pyTivo:192.168.0.103 [03/Jul/2009 12:54:11] "GET /TiVoConnect?Command=QueryFormats&SourceFormat=video%2Fx-tivo-mpeg HTTP/1.1" 200 -
INFO:pyTivo:192.168.0.103 [03/Jul/2009 12:54:11] "GET /TiVoConnect?Command=QueryContainer&Container=Videos%20by%20Genre%2FAction&SortOrder=!CaptureDate&ItemCount=8&Filter=x-tivo-container%2Ftivo-videos,x-tivo-container%2Ffolder,video%2Fx-tivo-mpeg,video%2F* HTTP/1.1" 200 -


My pyTivo.conf:

Code:
RAID-Server:/usr/share/pyTivo# cat pyTivo.conf
[Admin]
video shares = pyTiVo RAID Server
type = admin
tivo_mak = xxxxxxxx
togo_path = /RAID/Recordings

[_tivo_00000DEADBEEF]

[Server]
ffmpeg = /usr/bin/ffmpeg
port = 9032
tivo_username = xxxxxxxx
tivo_password = xxxxxxxx

[RAID Server]
type = video
path = /RAID/Recordings
force_alpha = True

[Videos by Genre]
type = video
path = /usr/share/pyTivo/pyshares
force_alpha = True

[Unverified]
type = video
path = /usr/share/pyTivo/Unverified


This log starts with me in the "Videos by Genre" folder, highlighting the top sub-folder, "Action", which contains 216 videos. I enter the sub-folder, press the Channel Down key three times, and hit <Select>. I then immediately hit the Left Arrow button and instead of being on the third page with Dances with Wolves highlighted, I am back at the first page, with Batman and Robin highlighted.

It's your fork, downloaded on May 25. I'm running python 2.5.2-3 under Debian "Lenny" Linux, kernel 2.6.26-2-amd64 on an AMD Athlon 64 x 2 processor. The effect is the same on both S3 TiVos and the THD.
Back to top
View user's profile Send private message Visit poster's website
reneg



Joined: 04 Jan 2008
Posts: 206

PostPosted: Sat Jul 04, 2009 12:40 am    Post subject: Reply with quote

Gah, my eyes. Edit out your tivo username & password.
Back to top
View user's profile Send private message
wmcbrine



Joined: 04 Jan 2008
Posts: 2629
Location: Maryland

PostPosted: Sat Jul 04, 2009 2:12 am    Post subject: Reply with quote

Edited.

Well, I'm not seeing the "Anchor not found" message. In fact it's not asking for an anchor at all. Strange.

I think I see a way to address this, but I'd like to be able to reproduce it first... I'll play around with it a bit more...

Edit: OK, I found a way to duplicate it... now to see if I can understand it...

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



Joined: 04 Jan 2008
Posts: 2629
Location: Maryland

PostPosted: Sat Jul 04, 2009 3:31 am    Post subject: Reply with quote

OK, fixed now in my repo.

This only manifested in subfolders (not at the top level), and only if they had more than 8 items, which is why I'd missed it before. Basically, the TiVo is expecting the server to remember where it was, so it doesn't add AnchorItem to the request, as it normally does. Perversely enough, pyTivo already was remembering the position, but was only using it as a starting point to search for the AnchorItem, and was starting at zero when no AnchorItem was given.

Note that if you want to use my latest, you need to move your tivo_mak and togo_path lines to the Server section, and remove the Admin section. (And I don't know what that "video shares" line is supposed to do, but I'm pretty sure it never did anything.)

Also, that DEADBEEF line is not useful. The line in pyTivo.conf.dist is just an example of how a TiVo-specific section would start -- "DEADBEEF" would be replaced by a real TSN, and you'd have some settings under that header that you wanted to apply to that TiVo only. (There is no purpose to a section header with no options under it.) Anyway, the TiVo-specific sections are less needed now that we have [_tivo_SD] and [_tivo_HD].

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



Joined: 08 Feb 2009
Posts: 27

PostPosted: Sun Jul 05, 2009 1:41 pm    Post subject: Reply with quote

I just installed the latest wmcbrine update.

I noticed this returning issue in sub-folders before, so I'm glad you fixed it! I've noticed a bug that popped up that I assume is related to this fix. Hitting the "jump to end" button to go from the top of the list to the bottom and vice versa now only brings you to the top or bottom the screen, not the complete list.

Has anyone else noticed this problem while navigating subfolders?
Back to top
View user's profile Send private message
wmcbrine



Joined: 04 Jan 2008
Posts: 2629
Location: Maryland

PostPosted: Sun Jul 05, 2009 5:27 pm    Post subject: Reply with quote

Ugh... yes, the fix for one necessarily breaks the other. I don't see how to reconcile these two issues. Sad
_________________
My pyTivo fork . My page
Back to top
View user's profile Send private message Visit poster's website
lrhorer



Joined: 04 Mar 2008
Posts: 171

PostPosted: Sun Jul 05, 2009 10:27 pm    Post subject: Reply with quote

wmcbrine wrote:
Ugh... yes, the fix for one necessarily breaks the other. I don't see how to reconcile these two issues. Sad

Oh, boy. That's bad. The jump to end is just about as important as maintaining the position in the list. I'm very hard pressed to decide which to abandon. Is it that the TiVo does not query the server for the entry information when the Jump key is pressed? How does it differ between the top level folders and lower level folders?

This is starting to sound like as much of a TiVo bug as a problem with pyTivo.
Back to top
View user's profile Send private message Visit poster's website
rdian06



Joined: 12 Apr 2008
Posts: 1420

PostPosted: Sun Jul 05, 2009 11:24 pm    Post subject: Reply with quote

If I have to choose, I vote for jump to end to work properly.
Back to top
View user's profile Send private message
wmcbrine



Joined: 04 Jan 2008
Posts: 2629
Location: Maryland

PostPosted: Mon Jul 06, 2009 1:07 am    Post subject: Reply with quote

According to the HMO spec, in the absence of an "AnchorItem", the anchor position is the start of the list. This is the behavior that the skip-to-end is relying on. Expecting the server to remember the last position is nonstandard -- the TiVo should be sending an AnchorItem there.

The only thing that gives me pause is that, when I try it with a remote TiVo, both features work. So there must be a way to do it... assuming that the TiVo-to-TiVo conversations work the same way as TiVo-to-HMO-server.

I guess I need to test with TiVo Desktop...

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



Joined: 04 Jan 2008
Posts: 2629
Location: Maryland

PostPosted: Mon Jul 06, 2009 7:40 am    Post subject: Reply with quote

After more careful testing, I was wrong: it doesn't work TiVo-to-TiVo, either -- the same losing-your-place behavior occurs.

So, regretfully, I'm going to declare this a TiVo-side bug, go with the spec, and revert the fix.

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



Joined: 04 Mar 2008
Posts: 171

PostPosted: Mon Jul 06, 2009 2:26 pm    Post subject: Reply with quote

As a developer, do you have a bug reporting mechanism not available to us?
Back to top
View user's profile Send private message Visit poster's website
wmcbrine



Joined: 04 Jan 2008
Posts: 2629
Location: Maryland

PostPosted: Mon Jul 06, 2009 2:34 pm    Post subject: Reply with quote

No. I have no special relationship with TiVo Inc. I'm just a customer.
_________________
My pyTivo fork . My page
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    pyTivo Discussion Forum Forum Index -> Support All times are GMT
Page 1 of 1

 
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.0650s ][ Queries: 17 (0.0126s) ][ GZIP on - Debug on ]