I cant get xmlTV to update without do it manually ?

Discussion in 'xmlTV' started by JGT, December 1, 2014.

  1. JGT

    JGT Portal Member

    Joined:
    February 2, 2010
    Messages:
    31
    Likes Received:
    0
    Ratings:
    +0 / 0
    Auto update is not working I must have done something wrong. Now I have to run update.bat then import "tvguide.xml" manually from mediaportal tvserver. Is there a easy way for someone to explain how i do it right maybe ?


     
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. mm1352000
    • Team MediaPortal

    mm1352000 Development Group

    Joined:
    September 1, 2008
    Messages:
    21,526
    Likes Received:
    4,734
    Ratings:
    +8,200 / 17
    Home Country:
    New Zealand New Zealand
    Did you restart the TV service after enabling and configuring the XMLTV plugin? It is important to do that.
     
  4. JGT

    JGT Portal Member

    Joined:
    February 2, 2010
    Messages:
    31
    Likes Received:
    0
    Ratings:
    +0 / 0
  5. mm1352000
    • Team MediaPortal

    mm1352000 Development Group

    Joined:
    September 1, 2008
    Messages:
    21,526
    Likes Received:
    4,734
    Ratings:
    +8,200 / 17
    Home Country:
    New Zealand New Zealand
    Okay, then please post log files... because I am not able to guess what the problem is without them.
     
  6. JGT

    JGT Portal Member

    Joined:
    February 2, 2010
    Messages:
    31
    Likes Received:
    0
    Ratings:
    +0 / 0
    How do I do that ? I only run tvserver on that machine.
     
  7. mm1352000
    • Team MediaPortal

    mm1352000 Development Group

    Joined:
    September 1, 2008
    Messages:
    21,526
    Likes Received:
    4,734
    Ratings:
    +8,200 / 17
    Home Country:
    New Zealand New Zealand
    1. Open TV Server configuration.
    2. Click "open log directory" in the top left corner.
    3. Zip up all the files in that folder.
    4. Post the zip file here.
     
  8. JGT

    JGT Portal Member

    Joined:
    February 2, 2010
    Messages:
    31
    Likes Received:
    0
    Ratings:
    +0 / 0
    ok.. Thanks.
     

    Attached Files:

    • TVService.9.zip
      File size:
      401.3 KB
      Uploaded:
      December 2, 2014
      Views:
      119
  9. mm1352000
    • Team MediaPortal

    mm1352000 Development Group

    Joined:
    September 1, 2008
    Messages:
    21,526
    Likes Received:
    4,734
    Ratings:
    +8,200 / 17
    Home Country:
    New Zealand New Zealand
    The service error log says:
    [2014-12-01 20:55:09,218] [Log ] [17 ] [ERROR] - plugin:xmltv StartImport - File [C:\Program Files\MyXmltv\tvguide.xml] doesn't have read access : The process cannot access the file 'C:\Program Files\MyXmltv\tvguide.xml' because it is being used by another process.

    So, I guess you are leaving the program that generates the file open, and this is blocking TV Server from accessing it.
     
  10. JGT

    JGT Portal Member

    Joined:
    February 2, 2010
    Messages:
    31
    Likes Received:
    0
    Ratings:
    +0 / 0
    Ok maybe so, its the update.bat that generates that file I think. How do I close that ? Maybe only restart the server ?
     
  11. mm1352000
    • Team MediaPortal

    mm1352000 Development Group

    Joined:
    September 1, 2008
    Messages:
    21,526
    Likes Received:
    4,734
    Ratings:
    +8,200 / 17
    Home Country:
    New Zealand New Zealand
    Maybe I am wrong...

    A closer look at the log file shows that message may have been generated while the file was being updated. After that the data seems to have been imported successfully:
    Show Spoiler

    [2014-12-01 20:55:09,218] [Log ] [17 ] [ERROR] - plugin:xmltv StartImport - File [C:\Program Files\MyXmltv\tvguide.xml] doesn't have read access : The process cannot access the file 'C:\Program Files\MyXmltv\tvguide.xml' because it is being used by another process.
    [2014-12-01 20:56:09,218] [Log ] [XmlTvImporter] [INFO ] - plugin:xmltv importing C:\Program Files\MyXmltv\tvguide.xml
    [2014-12-01 20:56:09,265] [Log ] [XmlTvImporter] [INFO ] - xmltv import C:\Program Files\MyXmltv\tvguide.xml
    [2014-12-01 20:56:09,281] [Log ] [XmlTvImporter] [INFO ] - channel#0 xmlid:kunskapskanalen.svt.se name:Kunskapskanalen.svt.se dbsid:2
    [2014-12-01 20:56:09,281] [Log ] [XmlTvImporter] [INFO ] - channel#0 xmlid:kunskapskanalen.svt.se name:Kunskapskanalen.svt.se dbsid:2
    [2014-12-01 20:56:09,281] [Log ] [XmlTvImporter] [INFO ] - channel#0 xmlid:kunskapskanalen.svt.se name:Kunskapskanalen.svt.se dbsid:2
    [2014-12-01 20:56:09,281] [Log ] [XmlTvImporter] [INFO ] - channel#0 xmlid:kunskapskanalen.svt.se name:Kunskapskanalen.svt.se dbsid:2
    [2014-12-01 20:56:09,281] [Log ] [XmlTvImporter] [INFO ] - channel#0 xmlid:kunskapskanalen.svt.se name:Kunskapskanalen.svt.se dbsid:2
    [2014-12-01 20:56:09,281] [Log ] [XmlTvImporter] [INFO ] - channel#1 xmlid:svt1.svt.se name:confused:VT1.svt.se dbsid:7
    [2014-12-01 20:56:09,281] [Log ] [XmlTvImporter] [INFO ] - channel#1 xmlid:svt1.svt.se name:confused:VT1.svt.se dbsid:7
    [2014-12-01 20:56:09,281] [Log ] [XmlTvImporter] [INFO ] - channel#1 xmlid:svt1.svt.se name:confused:VT1.svt.se dbsid:7
    [2014-12-01 20:56:09,281] [Log ] [XmlTvImporter] [INFO ] - channel#1 xmlid:svt1.svt.se name:confused:VT1.svt.se dbsid:7
    [2014-12-01 20:56:09,281] [Log ] [XmlTvImporter] [INFO ] - channel#1 xmlid:svt1.svt.se name:confused:VT1.svt.se dbsid:7
    [2014-12-01 20:56:09,281] [Log ] [XmlTvImporter] [INFO ] - channel#2 xmlid:svt2.svt.se name:confused:VT2.svt.se dbsid:5
    [2014-12-01 20:56:09,281] [Log ] [XmlTvImporter] [INFO ] - channel#2 xmlid:svt2.svt.se name:confused:VT2.svt.se dbsid:5
    [2014-12-01 20:56:09,281] [Log ] [XmlTvImporter] [INFO ] - channel#2 xmlid:svt2.svt.se name:confused:VT2.svt.se dbsid:5
    [2014-12-01 20:56:09,281] [Log ] [XmlTvImporter] [INFO ] - channel#2 xmlid:svt2.svt.se name:confused:VT2.svt.se dbsid:5
    [2014-12-01 20:56:09,281] [Log ] [XmlTvImporter] [INFO ] - channel#2 xmlid:svt2.svt.se name:confused:VT2.svt.se dbsid:5
    [2014-12-01 20:56:09,281] [Log ] [XmlTvImporter] [INFO ] - channel#4 xmlid:svtb.svt.se name:svtb.svt.se dbsid:1
    [2014-12-01 20:56:09,281] [Log ] [XmlTvImporter] [INFO ] - channel#4 xmlid:svtb.svt.se name:svtb.svt.se dbsid:1
    [2014-12-01 20:56:09,281] [Log ] [XmlTvImporter] [INFO ] - channel#4 xmlid:svtb.svt.se name:svtb.svt.se dbsid:1
    [2014-12-01 20:56:09,281] [Log ] [XmlTvImporter] [INFO ] - channel#4 xmlid:svtb.svt.se name:svtb.svt.se dbsid:1
    [2014-12-01 20:56:09,281] [Log ] [XmlTvImporter] [INFO ] - channel#4 xmlid:svtb.svt.se name:svtb.svt.se dbsid:1
    [2014-12-01 20:56:09,281] [Log ] [XmlTvImporter] [INFO ] - channel#5 xmlid:tv4.se name:tv4.se dbsid:14
    [2014-12-01 20:56:09,281] [Log ] [XmlTvImporter] [INFO ] - channel#5 xmlid:tv4.se name:tv4.se dbsid:14
    [2014-12-01 20:56:09,281] [Log ] [XmlTvImporter] [INFO ] - channel#5 xmlid:tv4.se name:tv4.se dbsid:14
    [2014-12-01 20:56:09,281] [Log ] [XmlTvImporter] [INFO ] - channel#5 xmlid:tv4.se name:tv4.se dbsid:14
    [2014-12-01 20:56:09,281] [Log ] [XmlTvImporter] [INFO ] - channel#5 xmlid:tv4.se name:tv4.se dbsid:14
    [2014-12-01 20:56:09,281] [Log ] [XmlTvImporter] [INFO ] - channel#6 xmlid:tv6.viasat.se name:tv6.viasat.se dbsid:9
    [2014-12-01 20:56:09,281] [Log ] [XmlTvImporter] [INFO ] - channel#6 xmlid:tv6.viasat.se name:tv6.viasat.se dbsid:9
    [2014-12-01 20:56:09,281] [Log ] [XmlTvImporter] [INFO ] - channel#6 xmlid:tv6.viasat.se name:tv6.viasat.se dbsid:9
    [2014-12-01 20:56:09,281] [Log ] [XmlTvImporter] [INFO ] - channel#6 xmlid:tv6.viasat.se name:tv6.viasat.se dbsid:9
    [2014-12-01 20:56:09,281] [Log ] [XmlTvImporter] [INFO ] - channel#6 xmlid:tv6.viasat.se name:tv6.viasat.se dbsid:9
    [2014-12-01 20:56:09,328] [Log ] [XmlTvImporter] [DEBUG] - xmltvimport: Reading TV programs
    [2014-12-01 20:56:09,531] [Log ] [XmlTvImporter] [DEBUG] - xmltvimport: Sorting TV programs
    [2014-12-01 20:56:09,546] [Log ] [XmlTvImporter] [INFO ] - XMLTVImport: Inserting 259 programs for Kunskapskanalen.svt.se
    [2014-12-01 20:56:09,546] [Log ] [XmlTvImporter] [INFO ] - XMLTVImport: Inserting 516 programs for SVT1.svt.se
    [2014-12-01 20:56:09,546] [Log ] [XmlTvImporter] [INFO ] - XMLTVImport: Inserting 657 programs for SVT2.svt.se
    [2014-12-01 20:56:09,546] [Log ] [XmlTvImporter] [INFO ] - XMLTVImport: Inserting 958 programs for svtb.svt.se
    [2014-12-01 20:56:09,546] [Log ] [SQL EPG importer] [DEBUG] - BusinessLayer: InsertProgramsThread started
    [2014-12-01 20:56:09,546] [Log ] [XmlTvImporter] [INFO ] - XMLTVImport: Inserting 470 programs for tv4.se
    [2014-12-01 20:56:09,546] [Log ] [XmlTvImporter] [INFO ] - XMLTVImport: Inserting 576 programs for tv6.viasat.se
    [2014-12-01 20:56:09,593] [Log ] [XmlTvImporter] [INFO ] - Xmltv: imported 7 channels, 3436 programs status:tvguide.xml:File imported successfully;
    [2014-12-01 20:56:09,625] [Log ] [XmlTvImporter] [INFO ] - Xmltv: waiting for database to finish inserting imported programs.
    [2014-12-01 20:56:11,625] [Log ] [SQL EPG importer] [DEBUG] - BusinessLayer: Inserted 259 programs to the database
    [2014-12-01 20:56:16,109] [Log ] [SQL EPG importer] [DEBUG] - BusinessLayer: Inserted 516 programs to the database
    [2014-12-01 20:56:21,250] [Log ] [SQL EPG importer] [DEBUG] - BusinessLayer: Inserted 657 programs to the database
    [2014-12-01 20:56:30,421] [Log ] [SQL EPG importer] [DEBUG] - BusinessLayer: Inserted 958 programs to the database
    [2014-12-01 20:56:34,906] [Log ] [SQL EPG importer] [DEBUG] - BusinessLayer: Inserted 470 programs to the database
    [2014-12-01 20:56:39,218] [Log ] [SQL EPG importer] [DEBUG] - BusinessLayer: Inserted 576 programs to the database
    [2014-12-01 20:57:22,921] [Log ] [8 ] [INFO ] - Controller: epg start
    [2014-12-01 20:57:49,234] [Log ] [SQL EPG importer] [INFO ] - schedule.SynchProgramStatesForAll
    [2014-12-01 20:57:49,234] [Log ] [SQL EPG importer] [DEBUG] - BusinessLayer: InsertProgramsThread exiting
    [2014-12-01 20:57:49,234] [Log ] [XmlTvImporter] [INFO ] - plugin:xmltv import done


    Did you run that update manually?

    I assume that you have somehow scheduled this "update.bat" to run daily or weekly or something? The XMLTV plugin will only import the tvguide.xml file if/when the tvguide.xml file changes. The file won't change unless "update.bat" runs. So something must cause "update.bat" to run, otherwise the EPG will never be updated...
     

Users Viewing Thread (Users: 0, Guests: 0)

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice
  • About The Project

    The vision of the MediaPortal project is to create a free open source media centre application, which supports all advanced media centre functions, and is accessible to all Windows users.

    In reaching this goal we are working every day to make sure our software is one of the best.

             

  • Support MediaPortal!

    The team works very hard to make sure the community is running the best HTPC-software. We give away MediaPortal for free but hosting and software is not for us.

    Care to support our work with a few bucks? We'd really appreciate it!