Re: Can't configure tv_grab_sd_json
Kevin Groeneveld <[email protected]> Mon, 23 Jan 2017 19:32:12 -0500
| Newsgroups | gmane.comp.tv.xmltv.general |
|---|---|
| Message-ID | <CABF+-6URretv+vY-PPF6viXQtvq1rjWbxKsknvERU3_t3sLsXQ@mail.gmail.com> |
--===============5472936298878693769== Content-Type: multipart/alternative; boundary=001a113ed7fe4da7900546cc3f01 --001a113ed7fe4da7900546cc3f01 Content-Type: text/plain; charset=UTF-8 On Mon, Jan 23, 2017 at 7:15 PM, Robert Eden <[email protected]> wrote: > On 1/23/2017 3:14 PM, Darron C. Knutson wrote: > > I then try to configure tv_grab_json with the following command: > > > > tv_grab_sd_json --configure --config-file > "~/.mythtv/Broadcast TV.xmltv" > > > > First, the config file isn't an XMLTV file it's a config file. Normally > the extension is .dat ( ~/.xmltv/tv_grab_sd_json.dat ) > Second, Spaces in file name are seldom a good idea on Windows, much less > Linux. > The default extension is actually .conf. But I think mythtv expects xmltv config files to end in .xmltv, so Darron's command line isn't entirely unusual. I think at least one problem with the command line is that the XMLTV perl libraries do not expand the "~". Normally the shell would expand the "~" but since it is in quotes (presumably because of the space in the filename) it does not get expanded. Instead of using the double quotes you can escape the space or instead of using the ~ use the full path. For example, one of the following should work better: tv_grab_sd_json --configure --config-file ~/.mythtv/Broadcast\ TV.xmltv or tv_grab_sd_json --configure --config-file /home/xxxxx/.mythtv/Broadcast TV.xmltv I didn't actually test that the space doesn't cause an issue further down the line, but the above command lines at least let me start the configure process. Kevin --001a113ed7fe4da7900546cc3f01 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div class=3D"gmail_extra"><div class=3D"gmail_quote">On M= on, Jan 23, 2017 at 7:15 PM, Robert Eden <span dir=3D"ltr"><<a href=3D"m= ailto:[email protected]" target=3D"_blank">[email protected]</a>></span> w= rote:<br><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8e= x;border-left:1px solid rgb(204,204,204);padding-left:1ex"> =20 =20 =20 <div bgcolor=3D"#FFFFFF"><span class=3D"gmail-"> <div class=3D"gmail-m_-5415590943159359615moz-cite-prefix">On 1/23/2017= 3:14 PM, Darron C. Knutson wrote:<br> </div> <blockquote type=3D"cite"> =20 =20 =20 <div class=3D"gmail-m_-5415590943159359615WordSection1">I then try to= configure tv_grab_json with the following command:<u></u><u></u> <p class=3D"MsoNormal"><u></u>=C2=A0<u></u></p> <p class=3D"MsoNormal">=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 tv_grab_sd_json --configur= e --config-file "~/.mythtv/Broadcast TV.xmltv"<u></u><u><= /u></p> <p class=3D"MsoNormal"><u></u>=C2=A0<u></u></p> </div> </blockquote></span> First, the config file isn't an XMLTV file it's a config file.= =C2=A0 Normally the extension is .dat ( ~/.xmltv/tv_grab_sd_json.dat )<br> Second,=C2=A0 Spaces in file name are seldom a good idea on Windows, mu= ch less Linux.<br></div></blockquote></div><br></div><div class=3D"gmail_e= xtra">The default extension is actually .conf.=C2=A0 But I think mythtv exp= ects xmltv config files to end in .xmltv, so Darron's command line isn&= #39;t entirely unusual.<br><br></div><div class=3D"gmail_extra">I think at = least one problem with the command line is that the XMLTV perl libraries do= not expand the "~".=C2=A0 Normally the shell would expand the &q= uot;~" but since it is in quotes (presumably because of the space in t= he filename) it does not get expanded.=C2=A0 Instead of using the double qu= otes you can escape the space or instead of using the ~ use the full path.= =C2=A0 For example, one of the following should work better:<br><br><div st= yle=3D"margin-left:40px"><span class=3D"gmail-">tv_grab_sd_json --configure --config-file ~/.mythtv/Broadcast\ TV.xmltv</span><br></div><div = style=3D"margin-left:40px"><span class=3D"gmail-"></span></div><span class= =3D"gmail-"><br></span></div><div class=3D"gmail_extra"><span class=3D"gmai= l-">or<br></span></div><div class=3D"gmail_extra"><span class=3D"gmail-"><b= r></span><div style=3D"margin-left:40px"><span class=3D"gmail-">tv_grab_sd_= json --configure --config-file /home/xxxxx/.mythtv/Broadcast TV.xmltv</span><br></= div><div style=3D"margin-left:40px"><span class=3D"gmail-"></span></div><sp= an class=3D"gmail-"><br></span></div><div class=3D"gmail_extra"><span class= =3D"gmail-">I didn't actually test that the space doesn't cause an = issue further down the line, but the above command lines at least let me st= art the configure process.<br></span></div><div class=3D"gmail_extra"><span= class=3D"gmail-"><br><br></span></div><div class=3D"gmail_extra"><span cla= ss=3D"gmail-">Kevin<br></span></div></div> --001a113ed7fe4da7900546cc3f01-- --===============5472936298878693769== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot --===============5472936298878693769== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ xmltv-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/xmltv-users --===============5472936298878693769==--