patch - centralized DB fixes. (1 Viewer)

gibman

Retired Team Member
  • Premium Supporter
  • October 4, 2006
    2,998
    1,372
    Usa
    Home Country
    Ethiopia Ethiopia
    Hi!

    As in this thread:
    https://forum.team-mediaportal.com/moving-pictures-284/patch-centralized-db-fixes-76414/

    tvseries is in similar ways to movpics also plagued by centralized database issues.

    My fixes include:

    1) The database connection was not closed when going into standby/hibernation mode. This would cause all kinds of SQL lite exceptions once the HTPC was resumed again. This would often cause the db image (file) to become malformed. The only solution in these situations would be to rebuild the database once again. Tedious job.

    My fix for this includes having the tvseries plugin now properly react to the onsuspend and onresume events.
    On "OnSuspend" it will close the DB connection. On resume it will reestablish connection.

    /gibman
     

    Attachments

    • centralized_db_fixes.0.1-svn868.patch
      30.7 KB

    disaster123

    MP Donator
  • Premium Supporter
  • May 14, 2008
    3,558
    434
    Home Country
    Germany Germany
    AW: patch - centralized DB fixes.

    THere seems to be a bug still in it:
    Code:
    00000001 - 22.01.2010 23:17:51 - MP-TVSeries is entering standby
    00000001 - 22.01.2010 23:17:51 - Successfully closed Database: \\192.168.178.100\mp.data\DB\TVSeriesDatabase4.db3
    00000065 - 22.01.2010 23:17:54 - Successfully opened database '\\192.168.178.100\mp.data\DB\TVSeriesDatabase4.db3'
    00000065 - 22.01.2010 23:17:54 - Commit failed on this command: <update local_episodes set DownloadPending = '0' where EpisodeFilename = '\\192.168.178.100\mp.data\VID\Monk\Monk - (Mr. Monk als Wahlhelfer) S3E15 - 2009-10-20 - 22_15.ts'> (SQLiteClient: TVSeriesDatabase4.db3 cmd:sqlite3_prepare16:pvm=null err:ERROR detailed:no such column: DownloadPending query:update local_episodes set DownloadPending = '0' where EpisodeFilename = '\\192.168.178.100\mp.data\VID\Monk\Monk - (Mr. Monk als Wahlhelfer) S3E15 - 2009-10-20 - 22_15.ts').

    The DB was right again opened when i started to send the system to standby
     

    Users who are viewing this thread

    Top Bottom