Remember last viewed channel (1 Viewer)

Razorblade

Portal Pro
May 22, 2010
99
3
Home Country
Germany Germany
Hello Forum,

Some days ago my MP SQL database crashed an I had to rebuilt it.

Until then my TV client did remember the last viewed TV channel even after a reboot. So even after rebooting my TV client and then turning on TV, the client automatically tuned to the last viewed channel, e.g. channel 5.

But after rebuilding the database my TV client always tunes to the first channel of the "All channels" group regardless of the last viewed channel.

Am I missing a checkbox?
Where's that option to remember that last viewed channel?

I am using MP 1.2.3 in a TV server / TV client environment

Thanks
 

mm1352000

Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,577
    8,224
    Home Country
    New Zealand New Zealand
    Hello Razorblade

    Some days ago my MP SQL database crashed an I had to rebuilt it.
    Did you rebuild from scratch as "rebuild" implies, or did you repair (mysqlcheck --auto-repair)?

    Am I missing a checkbox?
    Where's that option to remember that last viewed channel?
    It should be automatic. The channel is stored to your MediaPortal.xml file.

    mm
     

    Razorblade

    Portal Pro
    May 22, 2010
    99
    3
    Home Country
    Germany Germany
    Hello mm,

    thanks for your answer.

    I am using a MSSQL database. Due to an unrecoverable error in the database I had to export the server settings to an xml file, drop the database and then create a new one. After that I did an import of the xml settings.
    So far so good :)

    Since then one my two TV clients is showing that behaviour.
    I can't tell if the database error is the reason for that or if this is just coincidence.
     

    mm1352000

    Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,577
    8,224
    Home Country
    New Zealand New Zealand
    Since then one my two TV clients is showing that behaviour.
    I can't tell if the database error is the reason for that or if this is just coincidence.
    I would say coincidence. As previously mentioned, the last-viewed-channel is stored in MediaPortal.xml. In other words, it is totally a client-side concern and has no connection to the database.

    You can open the MediaPortal.xml file in any text editor:
    1. Open MP configuration.
    2. Click "User config files" in the top left corner, then "open log directory".
    3. Go one level up. Now you should see MediaPortal.xml.

    If you open it, look for the "mytv" section:
    Code:
      <section name="mytv"> 
        ...
        <entry name="group">All Channels</entry> 
        <entry name="channel">Channel 4</entry>
        ...
      </section>

    The two entries mentioned above store the last viewed channel and group.

    mm
     

    Razorblade

    Portal Pro
    May 22, 2010
    99
    3
    Home Country
    Germany Germany
    Thanks for that hint with the MediaPortal.xml file.

    I just opened that file in notepad, saved and closed it. That did the trick.
     

    Users who are viewing this thread

    Top Bottom