[mythtv-users] MythIPTV Beta 2

Michael Still mikal at stillhq.com
Mon Feb 26 15:42:39 UTC 2007


Phill Edwards wrote:

> 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.

Hmmm. I'm going to have to think more about this one. urllib isn't going
to work for those protocols, so something else is going to have to be
used. I think that's on the cards anyway though because I have been
toying with the idea of implementing bittorrent as well. Let me think
more about that.

> 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.

Well, you would only need to clear the mythnettv_programs table to
remote the TODO list. I've added a command line flag for that just now
(--cleartodo).

> 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

Note that you could have just done a --importremote, which does all this
in one step.

> 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?

This means mplayer couldn't determine the length of the video. What
happens if you execute:

mplayer -frames 0 -identify <wmv file>

On the command line?

> PS, I have python-feedparser-4.1-1.fc5 installed.

Cool.

Mikal


More information about the mythtv-users mailing list