[mythtv-users] Mythstream parsers
Eric
ericgies at kabelfoon.nl
Sun Apr 6 23:37:39 UTC 2008
On 07 April 2008 00:53:30 Paul Bender wrote:
(...)
> I do not use the other parsers, but for youtube a minor change to the
> youtube/vid.pl parser fixed it for me. Below is the fixed line. It
> should be obvious which line it replaces. It appears that they added
> more parameters, which broke the previous parsing. This parsing should
> be somewhat more robust.
>
> if ( ($a, $b) = $data =~
> /,\s*"video\_id":\s*"([^"]+)".*,\s*"t":\s*"([^"]+)"/)
Right on the mark, and more robust than the regexp I used in the parser
uploaded a few hours ago. Maybe I am a bit too conservative in my
regexping...
Aside from this regexp another change is required to make the youtube parser
fully functional: open vid_p.pl and change "youvid.pl" to "vid.pl".
A heads up for this second issue was mailed to me a while ago by someone named
Paul Bender :)
(I have applied the other patches you sent me, but I'm not ready for a new
release yet)
Thanks,
Eric.
More information about the mythtv-users
mailing list