[mythtv-users] MythIPTV Beta 2
Phill Edwards
philledwards at gmail.com
Mon Feb 26 12:16:02 UTC 2007
> > The problem with --todoremote is that it expects to be told about the
> > video on stdin. I'm happy to change that though...
>
> I've just tweaked the code to allow you to add remote videos after
> specifying everything on the command line. Checkout:
>
> http://www.stillhq.com/mythtv/mythnettv/000003.html
>
> --todoremote <url> <title> <subtitle> <description>
> : the same as above, but don't prompt for
> anything
I've been having a play with this. I thought I'd just enter data from
stdin for now to make sure I'm giving it the right data etc. Here's
what I found:
1) It doesn't like rtsp or mms URLs - only http. Urllib.py is the one
that gives an error here. I think a lot of video content is likely to
be delivered over those protocols.
2) It would be good if there was a command line switch that just
cleared everything out. Because I'd run it with rtsp and mms URLs the
download switch kept giving me errors which I think I may have been
getting stuck on. In the end I dropped the 4 mythnettv tables and
started again.
3) After dropping the tables I re-ran with the todoremote switch (and
an http URL this time) and then I ran with the download switch and
this is what I got:
[mythtv at elm mythnettv]$ ./mythnettv --todoremote
Info: Creating log table
Info: Creating settings table
Info: Creating programs table
Info: Creating subscriptions table
url >> http://media3.abc.net.au/winlibrary/news/200702/20070226-opener-am2_16_9_bband.wmv
title >> ABC Broadband News
subtitle >> Latest Bulletin
description >> Former TV host to rival PM in Bennelong
[mythtv at elm mythnettv]$ ./mythnettv --download 10
Downloading http://media3.abc.net.au/winlibrary/news/200702/20070226-opener-am2_16_9_bband.wmv
Destination will be data/20070226-opener-am2_16_9_bband.wmv
Downloading
Finished
Done
Traceback (most recent call last):
File "./mythnettv", line 957, in ?
DownloadAndImport(db, guid)
File "./mythnettv", line 850, in DownloadAndImport
program.Import()
File "./mythnettv", line 651, in Import
duration = datetime.timedelta(seconds = video.Length())
File "./mythnettv", line 52, in Length
return float(self.values['ID_LENGTH'])
KeyError: 'ID_LENGTH'
Is this because I've done something wrong, or is there a bug?
PS, I have python-feedparser-4.1-1.fc5 installed.
Regards,
Phill
More information about the mythtv-users
mailing list