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 

gmd's python metadata generator
Goto page Previous  1, 2, 3 ... 17, 18, 19, 20  Next
 
Post new topic   Reply to topic    pyTivo Discussion Forum Forum Index -> Other Apps
 View previous topic :: View next topic  
Author Message
simard57



Joined: 12 Sep 2009
Posts: 27

PostPosted: Sat Jan 01, 2011 9:39 pm    Post subject: Reply with quote

kayman wrote:


Python version 2.6 required, which was not found in the registry.

I have UAC Disabled and I also did try right click run as admin anyhow.

Thanks for your time


The version @ http://www.python.org/ is 2.7.1. The installed burps when it does not find 2.6. Should I roll back to 2.6? I have not looked around the python site to see if I can install an older version
Back to top
View user's profile Send private message
rdian06



Joined: 12 Apr 2008
Posts: 1420

PostPosted: Sat Jan 01, 2011 10:01 pm    Post subject: Reply with quote

Are you talking about the Windows installer for pyTivo? I haven't updated it since before Python 2.7. The installer looks for a specific registry entry and an additional check needs to be added for 2.7 for it to work.

If you really want Python 2.7, then install Python 2.6 first and then install pyTivo. Then once pyTivo is done, you can install Python 2.7 to the SAME directory as Python 2.6. That will make things work with Python 2.7. But you'll also need to upgrade to wmcbrine's latest code. And if you care about the Photo plugin, then you'll need to install PIL for Python 2.7
Back to top
View user's profile Send private message
simard57



Joined: 12 Sep 2009
Posts: 27

PostPosted: Sun Jan 02, 2011 11:39 am    Post subject: Reply with quote

rdian06 wrote:
Are you talking about the Windows installer for pyTivo? I haven't updated it since before Python 2.7. The installer looks for a specific registry entry and an additional check needs to be added for 2.7 for it to work.

If you really want Python 2.7, then install Python 2.6 first and then install pyTivo. Then once pyTivo is done, you can install Python 2.7 to the SAME directory as Python 2.6. That will make things work with Python 2.7. But you'll also need to upgrade to wmcbrine's latest code. And if you care about the Photo plugin, then you'll need to install PIL for Python 2.7


sorry I must have clipped too much
I am trying to install pyTivoMetaThis.py
Back to top
View user's profile Send private message
rdian06



Joined: 12 Apr 2008
Posts: 1420

PostPosted: Sun Jan 02, 2011 5:04 pm    Post subject: Reply with quote

pyTivoMetaThis.py is just a script. It doesn't have an installer. Are you trying to install one of it's dependencies?
Back to top
View user's profile Send private message
simard57



Joined: 12 Sep 2009
Posts: 27

PostPosted: Tue Jan 04, 2011 11:46 pm    Post subject: Reply with quote

rdian06 wrote:
pyTivoMetaThis.py is just a script. It doesn't have an installer. Are you trying to install one of it's dependencies?


it is the imdbpy installer I was having trouble with cause I had 2.7 installed and it wanted 2.6. turns out my WHS DID have 2.6 so I installed it there

the trouble was the dependendencies that the tivometathis needed

now - I need to figure out the correct directory structure to get this to create the metadata correctly
Back to top
View user's profile Send private message
ercdvs



Joined: 11 Nov 2008
Posts: 8

PostPosted: Thu Jan 13, 2011 9:03 pm    Post subject: Reply with quote

I've made a couple (very) hack attempts to fix specific issues I have had, and i was wondering if a better python guru had the same issues.

For the tv show 'Tosh.0', the title parsing removed the '.' and it attempts to search Tosh 0 (which then fails.). I hacked out a simple if name ='Tosh 0' then rename it.

The 2nd is that out seriesId comes from thetvdb. Which in turn gets it from zap2it. In -most- cases, the original series id on zap2it is already in SHxxxx form, but in recent times i have seen the format of EPxxxxx. Through research, it seems that EP is perfectly valid and designated episode content on the site, but this snaps the tivo meta grouping on series id, expecting a SH.

I wrote a replace that switches EP0 (with one or more zeros) to 'SH' .

Anybody else running into this ?
Back to top
View user's profile Send private message
jcthorne



Joined: 30 Jan 2008
Posts: 243
Location: Houston, TX

PostPosted: Mon Jun 06, 2011 8:46 pm    Post subject: Reply with quote

txporter wrote:
Are you editting it with IDLE (the editor that comes with Python) or something like Notepad?

Here is my mod'd version that you can try using.


Could you point me somewhere that has basic instructions for setting this up and using it? I actually spent about a half hour searching but never could find anything showing what other parts are needed and syntax.

Thanks
Back to top
View user's profile Send private message
txporter



Joined: 11 Dec 2008
Posts: 263
Location: Austin, TX

PostPosted: Tue Jun 14, 2011 5:30 pm    Post subject: Reply with quote

jcthorne wrote:
txporter wrote:
Are you editting it with IDLE (the editor that comes with Python) or something like Notepad?

Here is my mod'd version that you can try using.


Could you point me somewhere that has basic instructions for setting this up and using it? I actually spent about a half hour searching but never could find anything showing what other parts are needed and syntax.

Thanks


Sorry, haven't visited the forums in a while. What are you trying to set up that you would like instructions for? This python script? I am running it in Windows and just need to double-click the .py file. I think I am not understanding your question though.
Back to top
View user's profile Send private message
zymurgist



Joined: 12 Jul 2011
Posts: 1

PostPosted: Sat Aug 27, 2011 2:27 am    Post subject: Latest and greatest? Reply with quote

Is the python script still supported? I downloaded the version I could find (original link fails) and it fails more often than it works, but it still works sometimes. Any updates?
Back to top
View user's profile Send private message
apastuszak



Joined: 29 Oct 2010
Posts: 11

PostPosted: Wed Aug 31, 2011 12:11 am    Post subject: Re: Latest and greatest? Reply with quote

zymurgist wrote:
Is the python script still supported? I downloaded the version I could find (original link fails) and it fails more often than it works, but it still works sometimes. Any updates?


I'm having the same problem. I know very little python, so I'm the wrong guy to look at this, but maybe when I have 5 min, I'll peek through the source.
Back to top
View user's profile Send private message AIM Address
dannymalt



Joined: 08 Jun 2010
Posts: 2

PostPosted: Fri Sep 16, 2011 5:22 pm    Post subject: pyTivoMetaThis Doesn't appear to work on Lion OSX Reply with quote

This program used to work for me, then I upgraded to Lion OSX, and now it doesn't work. Is anyone else using this on Lion and it does work for them? Does anyone know what I can do to fix this?
Back to top
View user's profile Send private message
catbastet



Joined: 27 Dec 2009
Posts: 1

PostPosted: Sat Sep 17, 2011 12:05 am    Post subject: Reply with quote

dannymalt wrote:
This program used to work for me, then I upgraded to Lion OSX, and now it doesn't work. Is anyone else using this on Lion and it does work for them? Does anyone know what I can do to fix this?


I am using it on Lion and it works, although recently there has been a message that seems to be generated by thetvdb.com that say "FutureWarning: The behavior of this method will change in future versions. Use specific 'len(elem)' or 'elem is not None' test instead." (I know nothing about programming, although it seems like it might be a simple change).

I didn't do anything special to make it work on Lion, although for other reasons after upgrading I reinstalled macports and at the same time manually installed imdbPY.
Back to top
View user's profile Send private message
dannymalt



Joined: 08 Jun 2010
Posts: 2

PostPosted: Mon Oct 17, 2011 5:07 am    Post subject: Reply with quote

catbastet wrote:
dannymalt wrote:
This program used to work for me, then I upgraded to Lion OSX, and now it doesn't work. Is anyone else using this on Lion and it does work for them? Does anyone know what I can do to fix this?


I am using it on Lion and it works, although recently there has been a message that seems to be generated by thetvdb.com that say "FutureWarning: The behavior of this method will change in future versions. Use specific 'len(elem)' or 'elem is not None' test instead." (I know nothing about programming, although it seems like it might be a simple change).

I didn't do anything special to make it work on Lion, although for other reasons after upgrading I reinstalled macports and at the same time manually installed imdbPY.


Unfortunately still doesn't work for me. Also recently since my last post asking for help, I had to wipe out my harddrive (for unrelated reasons) on my Mac and install everything clean. Still this doesn't work. I click the script in the folder with the shows I want it to generate info for. Terminal opens, says the Process is Complete, but doesn't generate anything.

Is there anything else I must do. Any other programs I must install and download, or settings I must change. I have also tried and installed MacPorts, imdbPY, XCode4, and Python 2.7.2 to see if it would help.
Back to top
View user's profile Send private message
lpwcomp



Joined: 09 Sep 2011
Posts: 70

PostPosted: Sun Nov 06, 2011 5:16 pm    Post subject: Reply with quote

ercdvs wrote:
I've made a couple (very) hack attempts to fix specific issues I have had, and i was wondering if a better python guru had the same issues.

For the tv show 'Tosh.0', the title parsing removed the '.' and it attempts to search Tosh 0 (which then fails.). I hacked out a simple if name ='Tosh 0' then rename it.

The 2nd is that out seriesId comes from thetvdb. Which in turn gets it from zap2it. In -most- cases, the original series id on zap2it is already in SHxxxx form, but in recent times i have seen the format of EPxxxxx. Through research, it seems that EP is perfectly valid and designated episode content on the site, but this snaps the tivo meta grouping on series id, expecting a SH.

I wrote a replace that switches EP0 (with one or more zeros) to 'SH' .

Anybody else running into this ?
With the recent mass update to theTVDB, this became more of a widespread issue. After some investigation, dflannery and I determined what is probably the best solution. Accordingly, I have written code to implement that solution:

Code:

                       
                        if ( tvTag == 'seriesId' ):
                                texttmp = str(text).translate(None,' ') # remove all blanks
                                if ( texttmp.startswith('EP') ):
                                        texttmp = texttmp.lstrip('EP') # strip off leading 'EP' if there is one
                                if ( texttmp.startswith('SH') ) :
                                        texttmp = texttmp.lstrip('SH') # same for SH
                                if ( texttmp.isdigit() ): # if remaining is numeric
                                        texttmp = texttmp.lstrip('0') # strip leading zeros
                                        if (int(texttmp) < 1000000 ): #  6 digit format
                                                texttmp = texttmp.zfill(6)
                                        else:
                                                texttmp = texttmp.zfill(8)
                                       
                                        text = "SH" + texttmp # add leading 'SH' to numeric ID


Note that in Python, leading blanks are significant so the code should be inserted exactly as it is formatted. I inserted it after:
Code:

                        if ( ( tvTag == 'originalAirDate' ) or  ( tvTag == 'time' )):
                                text = datetime(*strptime(text, "%Y-%m-%d")[0:6]).strftime("%Y-%m-%dT23:%M:%SZ")


but you are free to put it wherever you like as long as you don't tell me where to put it.Smile
Back to top
View user's profile Send private message
lpwcomp



Joined: 09 Sep 2011
Posts: 70

PostPosted: Mon Nov 21, 2011 3:52 pm    Post subject: Reply with quote

I have heard from the current project admin and have sent him the changes. Hopefully, they will be incorporated into the official release.

On a slightly different issue, I am trying to get the zap2it program/episode Id, In order to do this, I must access the data from a specific season. Unfortunately, no matter what url I use, I can only get the current or final season data. Even if I put the url in a browser, I get the same page. If I refresh it, I get the correct page, but there doesn't seem to be any way to do that within a Python program.

Example:
Code:

        url = "http://tvlistings.zap2it.com/tv/perry-mason/episode-guide/EP00003343/1"
        rawHTMLfile = urllib.urlopen(url)
        rawHTML = rawHTMLfile.read()


rawHTML should have the data for the episode guide for season 1 of "Perry Mason". Instead, it has the data for season 9, which was the final season.

This may be a feature of zap2it to prevent someone from doing exactly what I am trying to do but does anyone have any ideas?
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 -> Other Apps All times are GMT
Goto page Previous  1, 2, 3 ... 17, 18, 19, 20  Next
Page 18 of 20

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