<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 09/16/2017 02:47 AM, Marc Rawji
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAJ14JXrNRLa7B9Dg0nOOKMgpwqMeOWEpgAX3Bo02m3Fwyoi=AQ@mail.gmail.com">
      <div dir="ltr">Hi Everyone,
        <div><br>
        </div>
        <div>The channel lineup has changed for my provider. I get the
          correct schedules (which is good) but the channel names are
          incorrect.</div>
        <div><br>
        </div>
        <div>For example, CBS was on Channel 10, and it's moved to
          channel 12 (where NBC was).</div>
        <div><br>
        </div>
        <div>The guide data is correct, as in it's showing CBS shows on
          channel 12.</div>
        <div><br>
        </div>
        <div>However the channel name remains NBC.The database entry
          looks like this:</div>
        <div><br>
        </div>
        <div>
          <div>mysql> select * from channel where channum = 12 limit
            1 \G</div>
          <div>*************************** 1. row
            ***************************</div>
          <div>           chanid: 1012</div>
          <div>          channum: 12</div>
          <div>           freqid: NULL</div>
          <div>         sourceid: 1</div>
          <div>         callsign: NBC</div>
          <div>             name: NBC</div>
        </div>
        <div><snip></div>
        <div><br>
        </div>
        <div>Which doesn't match what my grabber outputs (since the
          change).</div>
        <div>
          <div>  <channel id="12"></div>
          <div>    <display-name
            lang="en">CBS</display-name></div>
          <div>    <display-name lang="en">12</display-name></div>
          <div>    <display-name lang="en">12</display-name></div>
          <div>  </channel></div>
        </div>
        <div><br>
        </div>
        <div>I am not using "Schedules Direct" / Data Direct. This is a
          plain old XMLTV grabber.</div>
        <div><br>
        </div>
        <div>I tried running:</div>
        <div>mythfilldatabase --do-channel-updates (i think this only
          works for DD data)</div>
        <div>mythfilldatabase --only-update-channels<br>
        </div>
        <div><br>
        </div>
        <div>And it won't update the entries in the DB. What's the
          command I need to run to update the channels with their new
          metadata?</div>
        <div><br>
        </div>
        <div>Thanks!</div>
        <div>Marc</div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
    </blockquote>
    With XMLTV the options for mythfilldatabase are -<br>
    --only-update-guide or --only-update-channels. If you specify
    neither then it will update guide as well as channels. Personally I
    normally use --only-update-guide for daily updates and
    --only-update-channels when I know there are channel updates to be
    done. I don't know why --only-update-channels is not working for
    you, perhaps it does not update names for existing channels?<br>
    <br>
    You could try deleting all your channels before running the
    --only-update-channels. That should add them all back again with
    correct names. I recommend taking a database backup first in case it
    fails.<br>
    <br>
    You could using mythweb settings to update the channel names
    manually if there are not too many changes. If you don't have
    mythweb you can use  backend setup, although that is more difficult
    to work with.<br>
    <br>
    <br>
  </body>
</html>