<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 5/22/2016 1:08 PM, Ian Evans wrote:<br>
</div>
<blockquote
cite="mid:CABiY0=iNknwAyZoNmZwx0_rNN+nVvti-Y5fhCKDc10jie1n=TQ@mail.gmail.com"
type="cite">
<p dir="ltr"><br>
On May 22, 2016 2:01 PM, "William Jacoby" <<a
moz-do-not-send="true" href="mailto:bonelifer@gmail.com"><a class="moz-txt-link-abbreviated" href="mailto:bonelifer@gmail.com">bonelifer@gmail.com</a></a>>
wrote:<br>
><br>
> On 5/22/2016 12:46 PM, Ian Evans wrote:<br>
>><br>
>> Thought I'd fork this from the recent json grabber
threads so as not to confuse things with an edge case.<br>
>><br>
>> I currently have an OTA source for North America and a
few HLS sources for 2 North American HLS channels and one UK HLS
channel. Currently handled with one SD run and one Atlas run.<br>
>><br>
>> If I switch the whole shebang over to Schedules Direct,
do I just configure one source to run the grabber and leave the
other sources without a grabber as the listings data for both
US/Canada and UK will be downloaded together in one daily run?<br>
>><br>
>><br>
>><br>
>> _______________________________________________<br>
>> mythtv-users mailing list<br>
>> <a moz-do-not-send="true"
href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a><br>
>> <a moz-do-not-send="true"
href="http://lists.mythtv.org/mailman/listinfo/mythtv-users">http://lists.mythtv.org/mailman/listinfo/mythtv-users</a><br>
>> <a moz-do-not-send="true"
href="http://wiki.mythtv.org/Mailing_List_etiquette">http://wiki.mythtv.org/Mailing_List_etiquette</a><br>
>> MythTV Forums: <a moz-do-not-send="true"
href="https://forum.mythtv.org">https://forum.mythtv.org</a><br>
><br>
> No you'd have seperate sources for them in Myth:<br>
><br>
><br>
> Configure<br>
> tv_grab_sd_json --configure --config-file
/media/FILE/FOLDER/us.conf<br>
> tv_grab_sd_json --configure --config-file
/media/FILE/FOLDER/uk.conf<br>
> tv_grab_sd_json --configure --config-file
/media/FILE/FOLDER/canada.conf<br>
><br>
> Actual update<br>
><br>
> #! /bin/bash<br>
> tv_grab_sd_json --days 1 --config-file
/media/FILE/FOLDER/us.conf --output us.xml<br>
> tv_grab_sd_json --days 1 --config-file
/media/FILE/FOLDER/uk.conf --output uk.xml<br>
> tv_grab_sd_json --days 1 --config-file
/media/FILE/FOLDER/canada.conf --output canada.xml<br>
> mythfilldatabase --file --sourceid 7 --xmlfile
/var/tmp/us.xml<br>
> mythfilldatabase --file --sourceid 5 --xmlfile
/var/tmp/uk.xml<br>
> mythfilldatabase --file --sourceid 4 --xmlfile
/var/tmp/canada.xml</p>
<p dir="ltr">Is the bash file something that has to be run by
cron? Or is there a way to tie it into SD's automatic suggested
run times? <br>
</p>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
mythtv-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a>
<a class="moz-txt-link-freetext" href="http://lists.mythtv.org/mailman/listinfo/mythtv-users">http://lists.mythtv.org/mailman/listinfo/mythtv-users</a>
<a class="moz-txt-link-freetext" href="http://wiki.mythtv.org/Mailing_List_etiquette">http://wiki.mythtv.org/Mailing_List_etiquette</a>
MythTV Forums: <a class="moz-txt-link-freetext" href="https://forum.mythtv.org">https://forum.mythtv.org</a>
</pre>
</blockquote>
<p>You can replace mythfilldatabase with the bash script. You'll
need to do so in mythbackend. See step 5 on this wiki article:
<a class="moz-txt-link-freetext" href="https://www.mythtv.org/wiki/XMLTV_CH">https://www.mythtv.org/wiki/XMLTV_CH</a><br>
</p>
<p><br>
</p>
<p>Also make sure to run the configure commands with</p>
<p>sudo -H -u mythtv <br>
</p>
<p>So that they are owned by the mythtv user(ie the user that runs
myth), so that it'll be able to read the config files. obviously
the mythtv user should also be able to access where ever the
result .xml files get made. I'd probably use "/var/tmp" for this.<br>
</p>
<p>sudo -H -u mythtv tv_grab_sd_json --configure --config-file
/media/FILE/FOLDER/us.conf</p>
<p><br>
</p>
</body>
</html>