<div dir="ltr"><div dir="ltr"><blockquote style="margin:0 0 0 40px;border:none;padding:0px">On Sat, Jul 25, 2020 at 5:30 PM Bill Meek <<a href="mailto:keemllib@gmail.com" target="_blank">keemllib@gmail.com</a>> wrote:<br><br></blockquote></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">[snip]<br>
<br>
The intent of doing the setup as user mythtv is to end up with a single set of files<br>
in ~mythtv/.mythtv/*.xmltv and ~mythtv/.xmltv/* where the latter depends on the grabber<br>
selected.<br>
<br>
Doing links (hard or symbolic) defeats that and makes a difficult process even harder<br>
to setup and maintain.<br>
<br>
Here's the way to run mythfilldatabase from the command line:<br>
<br>
sudo --login --user=mythtv mythfilldatabase<br>
<br>
When the backend runs it, it will just work because the files are in it's .mythtv<br>
and .xmltv directories.<br>
<br>
Run the above with the -v system command and you'll see the tv_grab_zz_sdjson command<br>
line that mythfilldatabase is executing. Run that from the command line to see if<br>
there are more clues to the problem. The file (--output /tmp/blah) won't be removed<br>
so you can look at it too. You can even add --debug to the tv_grab_zz_sdjson command<br>
but don't do that 1st as it's pretty verbose.<br>
<br>
I use tv_grab_zz_sdjson_sqlite so won't be of much more help.<br>
<br>
Here's a picture of the desired files. Again for the *SQLite version*:<br>
<br>
Example for distributions that store MythTV data relative to ~mythtv/.mythtv,<br>
<br>
/<br>
└── home<br>
└── mythtv<br>
├── .mythtv<br>
│ ├── OTA.xmltv # Which contains:<br>
│ │ database=/home/mythtv/.xmltv/SchedulesDirect.DB<br>
│ │ lineup=USA-OTA-90210<br>
│ │ mythtv-categories=enabled<br>
│ │<br>
│ └── CABLE.xmltv # Which contains:<br>
│ database=/home/mythtv/.xmltv/SchedulesDirect.DB<br>
│ lineup=USA-IL90210-X<br>
│ mythtv-categories=enabled<br>
│<br>
└── .xmltv<br>
└── SchedulesDirect.DB<br>
<br>
Note that nothing is stored under the login user's .mythtv or .xmltv<br><br></blockquote><div> </div>OK I am close. My contents are the same as yours. The only issue I'm having is that when I did the second (OTA) configuration, it seems to have deleted the entries from the first (cable) configuration in the DB. When I query with select distinct(lineup) from channels it gives only the US-OTA-XXXXX lineup. And select * from lineups returns only one record for the same lineup. <div><br></div><div>To be clear, I followed wiki directions from heading "Setup with tv_grab_zz_sdjson_sqlite" by cutting from the wiki and pasting to the terminal, substituting cable for SD the first time, and ota for SD the second time. I assumed I had to do it twice to get the separate .xmltv entries. Is there maybe an argument to <span style="background-color:rgb(249,249,249);color:black;font-family:monospace,Courier;font-size:17.5px;white-space:pre-wrap">tv_grab_zz_sdjson_sqlite</span> that's not noted in the wiki that I have to use to tell sqlite3 I'm appending a second .xmltv config rather than starting a new DB? I was going to have a look at the code (assuming it's not binary) but I can't locate the file. </div><div><br></div></div>
</div>