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, 4, 5, 6, 7, 8  Next
 
Post new topic   Reply to topic    pyTivo Discussion Forum Forum Index -> Other Apps
 View previous topic :: View next topic  
Author Message
gmd



Joined: 08 Jan 2008
Posts: 28

PostPosted: Wed Mar 12, 2008 5:56 pm    Post subject: Reply with quote

<AOL> Exclamation
Back to top
View user's profile Send private message
chazlarson



Joined: 16 Jan 2008
Posts: 7

PostPosted: Fri Mar 14, 2008 5:04 pm    Post subject: Reply with quote

You'll want to add the indicated line below, and then indent the line following to match this.

Code:

            ...
            if (options.isMovie):
                if (options.debug): print "Writing information for %s in IMDB to %s" % (title, metadataFileName)

                if (not os.path.exists(metadataFileName)): // <<----- add this line
                        formatMovieData(title, metadataFileName)
            else:
            ...
Back to top
View user's profile Send private message
gmd



Joined: 08 Jan 2008
Posts: 28

PostPosted: Fri Mar 14, 2008 7:11 pm    Post subject: Reply with quote

chazlarson wrote:
You'll want to add the indicated line below, and then indent the line following to match this.

Code:

            ...
            if (options.isMovie):
                if (options.debug): print "Writing information for %s in IMDB to %s" % (title, metadataFileName)

                if (not os.path.exists(metadataFileName)): // <<----- add this line
                        formatMovieData(title, metadataFileName)
            else:
            ...


I've updated so that if there's a metadata file, don't bother looking up anything (for movie or tv). I've also added a -f flag to force overwriting, if desired.

Version 0.16 @ http://trac.kurai.org
Back to top
View user's profile Send private message
sicklybutsexy



Joined: 05 Mar 2008
Posts: 91
Location: chicago

PostPosted: Sat Mar 15, 2008 5:20 am    Post subject: Reply with quote

Can you tell me what I type in the command window to search for individual movie files. It still keeps going through my entire folder.
Back to top
View user's profile Send private message
gmd



Joined: 08 Jan 2008
Posts: 28

PostPosted: Sat Mar 15, 2008 11:53 am    Post subject: Reply with quote

sicklybutsexy wrote:
Can you tell me what I type in the command window to search for individual movie files. It still keeps going through my entire folder.


What happens with
Code:

pyTivoMetaThis.py -d -m

?

_________________
pyTivoMetaThis - metadata via python - http://trac.kurai.org
Back to top
View user's profile Send private message
sicklybutsexy



Joined: 05 Mar 2008
Posts: 91
Location: chicago

PostPosted: Sat Mar 15, 2008 4:48 pm    Post subject: Reply with quote

It's all good. I guess it doesn't overwrite previous metadata and is very fast so it is as good as choosing individual files to get metadata. thanks. great program. By the way, have you noticed tivo no allowng some programs to be transfered because of their name. For instance, I "legally" acquired Casino Royale and put it as an mpeg on my hard drive. When I tried to transfer it, the tivo says that the transferring of this video has been blocked blocked by the copyright holder. However, if I changed the name just a little bit for instance instead of Casino Royale called it Casino Royale 2007, no problem. I had a similar problem with a recent episode of Lost. Anyone else notice this?
Back to top
View user's profile Send private message
wmcbrine



Joined: 04 Jan 2008
Posts: 514

PostPosted: Sat Mar 15, 2008 7:33 pm    Post subject: Reply with quote

sicklybutsexy wrote:
When I tried to transfer it, the tivo says that the transferring of this video has been blocked blocked by the copyright holder.

This is just the message it gives you when pyTivo can't read the file. I seriously doubt that TiVo Inc. is blocking anything by name. I can't account for why a name change would help, but it's probably not actually that, but some other incidental change that you made without realizing it.

_________________
My pyTivo fork
Back to top
View user's profile Send private message
sicklybutsexy



Joined: 05 Mar 2008
Posts: 91
Location: chicago

PostPosted: Mon Mar 31, 2008 7:38 am    Post subject: Reply with quote

I'm trying to schedule with windows scheduler for pytivmetathis every 10 minutes or so. This works great for TV shows where the cmd prompt does not ask you for the correct series ID say if there are more than one show called the tudors, for example...

1. Is there a way to pick the same one every 10 minutes with the scheduler so that the command prompt doesn't have to be answered...

2. Also, using the scheduler does not work for movies (I'm guessing because the program needs the "pytivometathis -m" command and so is just checking against the tv database. Is there a way around this?

Any help with scheduling this would be much appreciated...
Back to top
View user's profile Send private message
sicklybutsexy



Joined: 05 Mar 2008
Posts: 91
Location: chicago

PostPosted: Mon Mar 31, 2008 11:19 am    Post subject: Reply with quote

I have been messing around with pycron but can't get it to work...any suggestions?
Back to top
View user's profile Send private message
sicklybutsexy



Joined: 05 Mar 2008
Posts: 91
Location: chicago

PostPosted: Mon Mar 31, 2008 4:00 pm    Post subject: Reply with quote

Ok, I figured it out by making batch files so now my files are updated every 10 minutes around the clock. There is still the issue of automatically picking a series ID. Is there any way to hard code the program to just automatically pick the first series ID option there is?
Back to top
View user's profile Send private message
sicklybutsexy



Joined: 05 Mar 2008
Posts: 91
Location: chicago

PostPosted: Wed Apr 02, 2008 2:41 pm    Post subject: Reply with quote

I think this would be a great program to add automatically to Pytivo. You can have you directories automatically updated and have the metadata added every hour or so. The problem I'm having is that if you have to choose a series ID. Is there a way to make the first series ID the default so that you don't have to enter the series ID every time? thanks.
Back to top
View user's profile Send private message
gmd



Joined: 08 Jan 2008
Posts: 28

PostPosted: Wed Apr 02, 2008 5:18 pm    Post subject: Reply with quote

sicklybutsexy wrote:
I think this would be a great program to add automatically to Pytivo. You can have you directories automatically updated and have the metadata added every hour or so. The problem I'm having is that if you have to choose a series ID. Is there a way to make the first series ID the default so that you don't have to enter the series ID every time? thanks.


I was thinking of creating a .seriesid file on the first run, then looking for that file, and if it existed, use that (maybe allowing forcing lookup a la -f). So you'd have to run it once by hand, but then it would keep using the same seriesid.

I've just updated to handle multiple actors/directors/etc properly when looking up TV shows, I'll see what I can do.

EDIT:

OK, support as described for maintaining a seriesID on disk is in there. This'll let you run it once by hand, pick the seriesID you want, and then whenever ptmt hits that series name (in that directory), it'll use the seriesID right out of the file, rather than getting it from the network again.

Test it out, and and let me know how it works. I'd also like to include your windows AT setup if possible (I use cron under linux, which is pretty boring and straightforward) on the wiki.

_________________
pyTivoMetaThis - metadata via python - http://trac.kurai.org
Back to top
View user's profile Send private message
sicklybutsexy



Joined: 05 Mar 2008
Posts: 91
Location: chicago

PostPosted: Thu Apr 03, 2008 1:27 pm    Post subject: Reply with quote

Ok. I've used it and it works great. Thanks, it really adds functionality to this program where all you have to do is download a tv show or movie and the metadata will automatically be added.

My set-up is really using windows scheduler on the control panel. I couldn't get an AT to work and pycron wouldn't work with this program either for some reason. What I do is I put pytivometathis in each folder that I want metadata in and I point windows scheduler to pytivometathis and schedule every 1 hour 24 hours a day. It was a little problematic with my movie folder because it requred the "-m" parameter, but what I did was just made a batch file using batchrun (freeware) with that parameter and pointed windows scheduler to that batch file.

Anyway, thanks again, this program kicks ass.
Back to top
View user's profile Send private message
sicklybutsexy



Joined: 05 Mar 2008
Posts: 91
Location: chicago

PostPosted: Fri May 02, 2008 2:07 pm    Post subject: Reply with quote

This program works great and is probably underutilized...I was wondering if an added feature could be included for it to recognize .mkv files or other type of files besides .avi and also if it could be made to recognize different formats of season/episdoe ie...1x10 (I've noticed this is a common way of displaying it also. Thanks again, great program.
Back to top
View user's profile Send private message
sicklybutsexy



Joined: 05 Mar 2008
Posts: 91
Location: chicago

PostPosted: Wed Jun 04, 2008 7:38 am    Post subject: Reply with quote

pytivometathis isn't working. When I try to use it I get the text file below...


textfile.txt
 Description:

Download
 Filename:  textfile.txt
 Filesize:  1.3 KB
 Downloaded:  27 Time(s)

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 - 8 Hours
Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8  Next
Page 4 of 8

 
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
[ Time: 0.3285s ][ Queries: 14 (0.0941s) ][ Debug on ]