 |
pyTivo Discussion Forum Answers and the development of pyTivo a TiVo transcoding server
|
|
| Author |
Message |
philhu
Joined: 04 Jan 2008 Posts: 474
|
Posted: Sat Feb 13, 2010 12:50 am Post subject: |
|
|
The hacked ones
the one I use is for episode numbers in episode titles |
|
| Back to top |
|
 |
wmcbrine

Joined: 04 Jan 2008 Posts: 2009 Location: Maryland
|
Posted: Sat Feb 13, 2010 2:16 am Post subject: |
|
|
Yeah, there's a reason those are in the "Hacks" section. I don't use them and am really not enthusiastic about them, so whoever wants to keep them current, needs to do so. I won't be testing them for ongoing compatibility. (I'm not going out of my way to break them, either; I just don't care if they do.) Sorry. _________________ My pyTivo fork . My page |
|
| Back to top |
|
 |
philhu
Joined: 04 Jan 2008 Posts: 474
|
Posted: Sat Feb 13, 2010 2:43 am Post subject: |
|
|
Wmcbrine,
I know you did alot of work for pushing
metadata and especially epsnum, you think
an option to pull with episode number in episode
title can be added easily?
That is what most people use the templates for, since
epsnum doesn't make it into the TiVo anymore
phil |
|
| Back to top |
|
 |
rdian06
Joined: 12 Apr 2008 Posts: 1420
|
Posted: Sat Feb 13, 2010 4:07 am Post subject: |
|
|
philhu, which hacked templates are you using?
I just checked and my hacked templates still allow the actor and date information to be transferred. I'm using the ones choekstr modified from my last iteration from this post:
http://pytivo.sourceforge.net/forum/post6880.html#6880
Then again, I use gmd's python metadata generator and I haven't updated pyTivo in a month or so. Here's an example of what it generated:
| Code: |
seriesTitle : How I Met Your Mother
title : Definitions
episodeTitle : Definitions
originalAirDate : 2009-09-21T00:00:00Z
description : After sharing a kiss at the beginning of the summer, Robin and Barney are unsure how to handle their mutual attraction. After some consideration they tell the gang they have decided to remain just friends, but secretly continue seeing each other. They are able to get away with their secret romance for a couple months, but are discovered when Ted, Marshall and Lily walk in on them together. They explain to the gang that they are happy with their casual relationship, and didn't want to complicate it by defining it. This is unacceptable to Lily, who pressures them to label their situation, and ultimately locks them in Robin's room to force them to address it. Meanwhile, Ted is anxious about his first days as a professor at Columbia, which is made worse when he shows up at the wrong class and starts his lecture.
isEpisode : true
seriesId : SH753796
episodeNumber : 501
vProgramGenre : Comedy
vSeriesGenre : Comedy
vDirector : Pamela Fryman
vWriter : Carter Bays
vWriter : Craig Thomas
vActor : Josh Radnor
vActor : Cobie Smulders
vActor : Neil Patrick Harris
vActor : Jason Segel
vActor : Alyson Hannigan
vActor : Bob Saget
|
|
|
| Back to top |
|
 |
philhu
Joined: 04 Jan 2008 Posts: 474
|
Posted: Sat Feb 13, 2010 2:46 pm Post subject: |
|
|
That metadata looks just like mine
*EDIT*
I just tried a new wMcBrine pull of 2/20/2010 and it all works as the 1/04 one does, same things move and same things don't
I grabbed Choekster's template2.zip and tried them. The titles work as he described, so I know I got the right one, but the Metadata IS missing, just like I described before, so there definitely is something in new ones that breaks with those templates.
I again ask WMcBrine if he can add the EPSNUM to the Episode title AS AN OPTION. I know he did this as an option for PUSHED shows. Can he make the PULLED work the same way so they are work identically, no matter the push or pull method?
I think that would fix most of the modified template users |
|
| Back to top |
|
 |
rdian06
Joined: 12 Apr 2008 Posts: 1420
|
Posted: Sat Feb 13, 2010 5:05 pm Post subject: |
|
|
| philhu wrote: | That metadata looks just like mine
*EDIT*
I just tried a new wMcBrine pull of 2/20/2010 and it all works as the 1/04 one does, same things move and same things don't
I grabbed Choekster's template2.zip and tried them. The titles work as he described, so I know I got the right one, but the Metadata IS missing, just like I described before, so there definitely is something in new ones that breaks with those templates.
|
I'll update to wmcbrine's latest version and retest later today. I've read your previous posts, but still am a little confused. What metadata fields are missing after the transfer using the hacked templates versus the standard ones? |
|
| Back to top |
|
 |
wmcbrine

Joined: 04 Jan 2008 Posts: 2009 Location: Maryland
|
Posted: Sat Feb 13, 2010 5:41 pm Post subject: |
|
|
| philhu wrote: | I again ask WMcBrine if he can add the EPSNUM to the Episode title AS AN OPTION. |
No need to shout. I'll consider it.
| Quote: | I know he did this as an option for PUSHED shows. |
Uh, no I didn't. _________________ My pyTivo fork . My page |
|
| Back to top |
|
 |
philhu
Joined: 04 Jan 2008 Posts: 474
|
Posted: Sat Feb 13, 2010 5:50 pm Post subject: |
|
|
| wmcbrine wrote: | | philhu wrote: | I again ask WMcBrine if he can add the EPSNUM to the Episode title AS AN OPTION. |
No need to shout. I'll consider it.
| Quote: | I know he did this as an option for PUSHED shows. |
Uh, no I didn't. |
Ooops sorry. I thought you addeed a bunch of Push stuff and episode was one of them.
Anyways, thanks for considering it.
I was playing some more and the problem is definitely in the NEW tvbus code in the new templates. You put it in place and it throws all the meta off. Even if you use the original Container file, so something in the XML TVBus generates is broken.
I don't know enough about the code, but in TVBus, the new one has a double #IF statement added and no double #ENDIF as you would expect.
I was wondering if that can be what is causing it to break, it isn't executing the rest of the code after that IF statement.
Did we ever figure out why EpisodeNum doesn't make it over under any circumstances but shows in the pytivo NPL for files with it in the metadata? |
|
| Back to top |
|
 |
rdian06
Joined: 12 Apr 2008 Posts: 1420
|
Posted: Sat Feb 13, 2010 6:11 pm Post subject: |
|
|
| philhu wrote: |
I was playing some more and the problem is definitely in the NEW tvbus code in the new templates. You put it in place and it throws all the meta off. Even if you use the original Container file, so something in the XML TVBus generates is broken.
|
Please list EXACTLY which fields aren't showing up after the transfer when you use the hacked templates vs the standard ones. |
|
| Back to top |
|
 |
wmcbrine

Joined: 04 Jan 2008 Posts: 2009 Location: Maryland
|
Posted: Sat Feb 13, 2010 6:13 pm Post subject: |
|
|
I tried to add a bunch of stuff to push. My only success was tvRating. I think someone else may have posted an episode-num-in-title hack.
I assume you're still talking about the hacked templates when you speak of the "new templates"?
I think it's impossible to know why something would show up in the share, and not on the TiVo, without examining the TiVo-side code. _________________ My pyTivo fork . My page |
|
| Back to top |
|
 |
philhu
Joined: 04 Jan 2008 Posts: 474
|
Posted: Sat Feb 13, 2010 7:32 pm Post subject: |
|
|
| rdian06 wrote: | | philhu wrote: |
I was playing some more and the problem is definitely in the NEW tvbus code in the new templates. You put it in place and it throws all the meta off. Even if you use the original Container file, so something in the XML TVBus generates is broken.
|
Please list EXACTLY which fields aren't showing up after the transfer when you use the hacked templates vs the standard ones. |
Well, it's not just after the transfer. They don't show up in the pyTivo NPL either. The missing are Genre, Actors, Directors, Writers, Guest Stars, Year and Episode Num. After they transfer, they only show the same as what was displayed in the Pytivo NPL. Maybe a few more, not sure or what SHOULD be there, but those are definitely in my metadata and not showing in the Info screen/NPL on the Pytivo NPL.
You can see this by bringing up a show through PyTivo in the NPL, and click 'info'. It shows every field found. |
|
| Back to top |
|
 |
philhu
Joined: 04 Jan 2008 Posts: 474
|
Posted: Sat Feb 13, 2010 7:33 pm Post subject: |
|
|
| wmcbrine wrote: | I tried to add a bunch of stuff to push. My only success was tvRating. I think someone else may have posted an episode-num-in-title hack.
I assume you're still talking about the hacked templates when you speak of the "new templates"?
I think it's impossible to know why something would show up in the share, and not on the TiVo, without examining the TiVo-side code. |
Oh, ok. The wierdest is the Episode number. With the standard templates, it DOES show up in the PyTivo NPL, and doesn't make it to the Tivo.
Looking at my old Tivo Slice maker/parser, I think we might be using the wrong xml name for this field.
It looks like it is either 'episode-num' or 'episodenum' in the Tivo xml input list. At least that is what I keyed off of when generating a guide slice. |
|
| Back to top |
|
 |
rdian06
Joined: 12 Apr 2008 Posts: 1420
|
Posted: Sat Feb 13, 2010 9:04 pm Post subject: |
|
|
Ok, using wmcbrine's latest (http://repo.or.cz/w/pyTivo/wmcbrine.git/commit/7a059ad99876c8a81630aeb138b32ad62f15bf48), and Choekster's hacked template, I can confirm the missing metadata.
And the console shows:
| Code: | Traceback (most recent call last):
File "E:\Python26\lib\SocketServer.py", line 558, in process_request_thread
self.finish_request(request, client_address)
File "E:\Python26\lib\SocketServer.py", line 320, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "E:\Program Files\pyTivo\httpserver.py", line 57, in __init__
client_address, server)
File "E:\Python26\lib\SocketServer.py", line 615, in __init__
self.handle()
File "E:\Python26\lib\BaseHTTPServer.py", line 329, in handle
self.handle_one_request()
File "E:\Python26\lib\BaseHTTPServer.py", line 323, in handle_one_request
method()
File "E:\Program Files\pyTivo\httpserver.py", line 83, in do_GET
self.handle_query(query, tsn)
File "E:\Program Files\pyTivo\httpserver.py", line 127, in handle_query
method(self, query)
File "E:\Program Files\pyTivo\plugins\video\video.py", line 326, in TVBusQuery
handler.wfile.write(t)
File "E:\Python26\lib\socket.py", line 290, in write
data = str(data) # XXX Should really reject non-string non-buffers
File "E:\Program Files\pyTivo\Cheetah\Template.py", line 982, in __str__
def __str__(self): return getattr(self, mainMethName)()
File "cheetah_DynamicallyCompiledCheetahTemplate_1266095001_97_57153.py", line
384, in respond
IndexError: string index out of range |
Now to go figure out what's causing it. |
|
| Back to top |
|
 |
reneg
Joined: 04 Jan 2008 Posts: 160
|
Posted: Sat Feb 13, 2010 9:14 pm Post subject: |
|
|
| philhu wrote: | Looking at my old Tivo Slice maker/parser, I think we might be using the wrong xml name for this field.
It looks like it is either 'episode-num' or 'episodenum' in the Tivo xml input list. At least that is what I keyed off of when generating a guide slice. |
Can you post the output from your Tivo Slice maker/parser? |
|
| Back to top |
|
 |
philhu
Joined: 04 Jan 2008 Posts: 474
|
Posted: Sat Feb 13, 2010 9:20 pm Post subject: |
|
|
I output the slice files created from the XML input. I did post the xml fields in a new post, to not muddy up the thread.
One for a show and one for a movie. |
|
| Back to top |
|
 |
|
|
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
|
|