Re: Can't configure tv_grab_sd_json

"Darron C. Knutson" <[email protected]> Tue, 24 Jan 2017 11:52:07 -0600
Newsgroups gmane.comp.tv.xmltv.general
Message-ID <[email protected]>
This is a multi-part message in MIME format.

--===============8190638333474060910==
Content-Type: multipart/alternative;
	boundary="----=_NextPart_000_001C_01D27638.4A7A2250"
Content-Language: en-us

This is a multi-part message in MIME format.

------=_NextPart_000_001C_01D27638.4A7A2250
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit

On Mon, Jan 23, 2017 at 7:32 PM, Kevin Groeneveld <[email protected]>
wrote: 

 

>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

 

Robert and Kevin: Thanks for the suggestions and explanation of what might
be going on here. I'm going to install the new release from yesterday and
try again with the tv_grab_zz_sdjson grabber from yesterday's release. 

 

Darron


------=_NextPart_000_001C_01D27638.4A7A2250
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" =
xmlns=3D"http://www.w3.org/TR/REC-html40"><head><meta =
http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii"><meta name=3DGenerator content=3D"Microsoft Word 12 =
(filtered medium)"><style><!--
/* Font Definitions */
@font-face
	{font-family:"Cambria Math";
	panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
	{font-family:Consolas;
	panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:purple;
	text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
	{mso-style-priority:99;
	mso-style-link:"Plain Text Char";
	margin:0in;
	margin-bottom:.0001pt;
	font-size:10.5pt;
	font-family:Consolas;}
span.EmailStyle17
	{mso-style-type:personal-compose;
	font-family:"Calibri","sans-serif";
	color:windowtext;}
span.PlainTextChar
	{mso-style-name:"Plain Text Char";
	mso-style-priority:99;
	mso-style-link:"Plain Text";
	font-family:Consolas;}
.MsoChpDefault
	{mso-style-type:export-only;}
@page WordSection1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]--></head><body lang=3DEN-US link=3Dblue =
vlink=3Dpurple><div class=3DWordSection1><p class=3DMsoPlainText>On Mon, =
Jan 23, 2017 at 7:32 PM, Kevin Groeneveld &lt;<a =
href=3D"mailto:[email protected]">[email protected]</a>&gt; =
wrote: <o:p></o:p></p><p class=3DMsoPlainText><o:p>&nbsp;</o:p></p><p =
class=3DMsoPlainText>&gt;On Mon, Jan 23, 2017 at 7:15 PM, Robert Eden =
&lt;<a href=3D"mailto:[email protected]">[email protected]</a>&gt; =
wrote:<o:p></o:p></p><p class=3DMsoPlainText><o:p>&nbsp;</o:p></p><p =
class=3DMsoPlainText>&gt;&gt; On 1/23/2017 3:14 PM, Darron C. Knutson =
wrote:<o:p></o:p></p><p =
class=3DMsoPlainText>&gt;&gt;<o:p>&nbsp;</o:p></p><p =
class=3DMsoPlainText>&gt;&gt; I then try to configure tv_grab_json with =
the following command:<o:p></o:p></p><p =
class=3DMsoPlainText>&gt;&gt;<o:p>&nbsp;</o:p></p><p =
class=3DMsoPlainText>&gt;&gt;<o:p>&nbsp;</o:p></p><p =
class=3DMsoPlainText>&gt;&gt;<o:p>&nbsp;</o:p></p><p =
class=3DMsoPlainText>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; tv_grab_sd_json =
--configure --config-file <o:p></o:p></p><p =
class=3DMsoPlainText>&gt;&gt; &quot;~/.mythtv/Broadcast =
TV.xmltv&quot;<o:p></o:p></p><p =
class=3DMsoPlainText>&gt;&gt;<o:p>&nbsp;</o:p></p><p =
class=3DMsoPlainText>&gt;&gt;<o:p>&nbsp;</o:p></p><p =
class=3DMsoPlainText>&gt;&gt;<o:p>&nbsp;</o:p></p><p =
class=3DMsoPlainText>&gt;&gt; First, the config file isn't an XMLTV file =
it's a config file.&nbsp; <o:p></o:p></p><p =
class=3DMsoPlainText>&gt;&gt; Normally the extension is .dat ( =
~/.xmltv/tv_grab_sd_json.dat ) <o:p></o:p></p><p =
class=3DMsoPlainText>&gt;&gt; Second,&nbsp; Spaces in file name are =
seldom a good idea on Windows, much <o:p></o:p></p><p =
class=3DMsoPlainText>&gt;&gt; less Linux.<o:p></o:p></p><p =
class=3DMsoPlainText>&gt;&gt;<o:p>&nbsp;</o:p></p><p =
class=3DMsoPlainText>&gt;<o:p>&nbsp;</o:p></p><p =
class=3DMsoPlainText>&gt;The default extension is actually .conf.&nbsp; =
But I think mythtv expects xmltv config files to end in .xmltv, so =
Darron's command line isn't &gt;entirely unusual.<o:p></o:p></p><p =
class=3DMsoPlainText>&gt;<o:p>&nbsp;</o:p></p><p =
class=3DMsoPlainText>&gt;I think at least one problem with the command =
line is that the XMLTV perl libraries do not expand the =
&quot;~&quot;.&nbsp; Normally the shell would expand &gt;the =
&quot;~&quot;<o:p></o:p></p><p class=3DMsoPlainText>&gt;but since it is =
in quotes (presumably because of the space in the filename) it does not =
get expanded.&nbsp; Instead of using the double quotes &gt;you can =
escape the space or instead of using the ~ use the full path.&nbsp; For =
example, one of the following should work better:<o:p></o:p></p><p =
class=3DMsoPlainText>&gt;<o:p>&nbsp;</o:p></p><p =
class=3DMsoPlainText>&gt;tv_grab_sd_json --configure --config-file =
~/.mythtv/Broadcast\ TV.xmltv<o:p></o:p></p><p =
class=3DMsoPlainText>&gt;<o:p>&nbsp;</o:p></p><p =
class=3DMsoPlainText>&gt;or<o:p></o:p></p><p =
class=3DMsoPlainText>&gt;<o:p>&nbsp;</o:p></p><p =
class=3DMsoPlainText>&gt;tv_grab_sd_json --configure --config-file =
/home/xxxxx/.mythtv/Broadcast TV.xmltv<o:p></o:p></p><p =
class=3DMsoPlainText>&gt;<o:p>&nbsp;</o:p></p><p =
class=3DMsoPlainText>&gt;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 &gt;configure process.<o:p></o:p></p><p =
class=3DMsoPlainText>&gt;<o:p>&nbsp;</o:p></p><p =
class=3DMsoPlainText>&gt;<o:p>&nbsp;</o:p></p><p =
class=3DMsoPlainText>&gt;Kevin<o:p></o:p></p><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p><p class=3DMsoNormal>Robert and =
Kevin: Thanks for the suggestions and explanation of what might be going =
on here. I&#8217;m going to install the new release from yesterday and =
try again with the tv_grab_zz_sdjson grabber from yesterday&#8217;s =
release. <o:p></o:p></p><p class=3DMsoNormal><o:p>&nbsp;</o:p></p><p =
class=3DMsoNormal>Darron<o:p></o:p></p></div></body></html>
------=_NextPart_000_001C_01D27638.4A7A2250--



--===============8190638333474060910==
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
--===============8190638333474060910==
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

--===============8190638333474060910==--