<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p><br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 01/26/2018 12:40 PM, Jerry wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAO_Sck7Mxbp7CgPSFLYU-FT4QbyJQxXDeedbt2vNXPzmbm6wyg@mail.gmail.com">
      <div dir="ltr">
        <div class="gmail_extra">
          <div class="gmail_quote">On Fri, Jan 26, 2018 at 11:43 AM, Jim
            Abernathy <span dir="ltr"><<a
                href="mailto:jfabernathy@gmail.com" target="_blank"
                moz-do-not-send="true">jfabernathy@gmail.com</a>></span>
            wrote:<br>
            <blockquote class="gmail_quote" style="margin:0px 0px 0px
              0.8ex;border-left:1px solid
              rgb(204,204,204);padding-left:1ex">
              <div bgcolor="#FFFFFF"><span
                  class="m_-2730072724370619050gmail-"> on Ubuntu 16.04
                  I just installed xmltv using apt and I got a lot of
                  tv_grabber, but not the tv_grab_zz_sdjson ones.  Do I
                  need to install the xmltv from the debian repository??<span
class="m_-2730072724370619050gmail-m_5034445131045000767m_-3149098714748662159gmail-"></span><br>
                  <span
class="m_-2730072724370619050gmail-m_5034445131045000767m_-3149098714748662159gmail-"></span>
                  <blockquote type="cite">
                    <div dir="ltr">
                      <div class="gmail_extra">
                        <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">
                            <div bgcolor="#FFFFFF"><span
class="m_-2730072724370619050gmail-m_5034445131045000767m_-3149098714748662159gmail-">
                                <br>
                                Jim A</span></div>
                          </blockquote>
                          <div><br>
                          </div>
                          <div>You need to clone this Git repo: <a
                              href="https://github.com/garybuhrmaster/tv_grab_zz_sdjson_sqlite"
                              target="_blank" moz-do-not-send="true">https://github.com/garybuhrmas<wbr>ter/tv_grab_zz_sdjson_sqlite</a><br>
                            <br>
                          </div>
                          <div>git clone <a
                              href="https://github.com/garybuhrmaster/tv_grab_zz_sdjson_sqlite"
                              target="_blank" moz-do-not-send="true">https://github.com/garybuhrmas<wbr>ter/tv_grab_zz_sdjson_sqlite</a><br>
                            <br>
                          </div>
                          <div>If you don't have git installed, you'll
                            need to install that as well.<br>
                            <br>
                          </div>
                          <div>sudo apt-get install git<br>
                            <br>
                          </div>
                          <div>I had to copy the files from the cloned
                            repo to /usr/bin.  They are then seen by
                            mythtv-setup.  You could just browse the
                            files on the webpage and copy and paste the
                            content yourself but you lose the ability to
                            easily update when Gary updates his code.<br>
                            <br>
                          </div>
                          <div>If you're in the repo you've cloned, you
                            can just<br>
                            <br>
                          </div>
                          <div>git pull<br>
                            <br>
                          </div>
                          <div>and get the new content when it comes
                            down the pike.  There is a hell of a lot of
                            detail to Git but that will get you the
                            files you need.<br>
                          </div>
                        </div>
                      </div>
                    </div>
                    <br>
                  </blockquote>
                  <br>
                </span> Okay, I cloned the git and now have the right
                commands in /usr/bin.  I first tried to run the --info
                to see if it was installed right but I got errors.  Are
                there other things to do first??<br>
                <br>
                tv_grab_zz_sdjson_sqlite --info<br>
                <br>
                Can't locate File/Which.pm in @INC (you may need to
                install the File::Which module) (@INC contains:
                /etc/perl /usr/local/lib/x86_64-linux-gn<wbr>u/perl/5.22.1
                /usr/local/share/perl/5.22.1
                /usr/lib/x86_64-linux-gnu/perl<wbr>5/5.22
                /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl<wbr>/5.22
                /usr/share/perl/5.22 /usr/local/lib/site_perl
                /usr/lib/x86_64-linux-gnu/perl<wbr>-base .) at
                /usr/bin/tv_grab_zz_sdjson_sql<wbr>ite line 107.<br>
                BEGIN failed--compilation aborted at
                /usr/bin/tv_grab_zz_sdjson_sql<wbr>ite line 107.<br>
                <br>
                Not sure if I've missed a step.<span
                  class="m_-2730072724370619050gmail-"><br>
                  <br>
                  Jim A</span></div>
            </blockquote>
            <div><br>
            </div>
            <div>One more thing.  When you set up the initial database,
              the script should be running as the user which runs
              mythbackend, which is mythtv in my case.  The files get
              put in the currrent user's home directory so this is
              important.<br>
              <br>
            </div>
            <div>If you do this as a different user, you can try to copy
              the relevant folder (~/.xmltv) to your mythbackend user's
              home directory, but it's easy to make a mistake there. 
              You can try it though.  'sudo cp -R ~/.xmltv
              /<mythtv_home_dir>/'.  Be sure to 'chown -R
              mythtv:mythtv .xmltv' (or whatever user it happens to be
              in Ubuntu)  If in doubt where that home directory is, you
              can check the user's entry in /etc/passwd.<br>
              <br>
            </div>
            <div>This is the sort of thing that I like to try but it's
              really safer to do it the right way and just log in as the
              mythtv user.   It will probably save you time in the long
              run.  I happen to have a password for the mythtv user.  I
              finally just set a password for the mythtv user because I
              have to log in as that user a lot.  'sudo passwd mythtv'
              will do that for you.  And you may have to add a shell for
              him in /etc/passwd.  Then you can just 'su - mythtv' and
              login.  Again, I don't know the way that Ubuntu is set up.<br>
              <br>
              Sorry if this is too simplistic.<br>
              <br>
            </div>
            <div>Running 'su - mythtv -c '/usr/bin/tv_grab_zz_sdjson_<wbr>sqlite'
              may do the trick if you don't have a password for mythtv.<br>
            </div>
          </div>
        </div>
      </div>
    </blockquote>
    <br>
    I know permissions are important, so I want to understand this
    completely.  I know I have a mythtv user and group because it got
    created when I installed and it made my user "jim" a part of the
    mythtv group. I did all the mythtv-setup as "jim" and the
    .xmltv/database is in /home/jim. And the permissions are r/w for
    "jim". I can run mythfilldatabase as "jim" and it seems to work
    without any issues.  Mythfilldatabase also runs at the end of
    mythtv-setup after you enter the sudo password to restart
    mythbackend.  That seems to work.  So I'm not sure if I have an
    issue to correct or not.  I can always watch each day to see the
    status of the schedules.  But so far with the tips I got on this
    mailing list and the wiki I've switched over from the internal
    grabber for SD to the newer XMLTV grabber. I seem to have 21 days of
    schedules, so that's great.<br>
    <br>
    Thanks everyone,<br>
    <br>
    Jim A<br>
    <br>
    <blockquote type="cite"
cite="mid:CAO_Sck7Mxbp7CgPSFLYU-FT4QbyJQxXDeedbt2vNXPzmbm6wyg@mail.gmail.com"><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>
    <br>
  </body>
</html>