[mythtv-commits] Ticket #5920: Play back Trailers for films in MythVideo

MythTV mythtv at cvs.mythtv.org
Thu Nov 20 04:35:09 UTC 2008


#5920: Play back Trailers for films in MythVideo
---------------------------------------+------------------------------------
 Reporter:  robert.mcnamara at gmail.com  |        Owner:  awithers
     Type:  enhancement                |       Status:  new     
 Priority:  minor                      |    Milestone:  unknown 
Component:  mythvideo                  |      Version:  head    
 Severity:  medium                     |   Resolution:          
  Mlocked:  0                          |  
---------------------------------------+------------------------------------

Comment(by anonymous):

 Okay, GUI added in the latest version of the patch.  This DB update is
 also necessary and patche's Myth's dbcheck.cpp:


 {{{
 Index: dbcheck.cpp
 ===================================================================
 --- dbcheck.cpp (revision 19122)
 +++ dbcheck.cpp (working copy)
 @@ -18,7 +18,7 @@
  #define MINIMUM_DBMS_VERSION 5,0,15

  /// This is the DB schema version expected by the running MythTV
 instance.
 -const QString currentDatabaseVersion = "1223";
 +const QString currentDatabaseVersion = "1224";

  static bool UpdateDBVersionNumber(const QString &newnumber);
  static bool performActualUpdate(
 @@ -4302,6 +4302,16 @@
              return false;
      }

 + if (dbver == "1223")
 +    {
 +        const char *updates[] = {
 +"ALTER TABLE `videometadata` ADD `trailer` TEXT NOT NULL ;",
 +NULL
 +};
 +if (!performActualUpdate(updates, "1224", dbver))
 +            return false;
 +    }
 +
      return true;
  }
 }}}

 So, Now works from the DB, has a GUI, and has the DB updates. I advise
 making the DB updates yourself until this hits trunk, though.

-- 
Ticket URL: <http://svn.mythtv.org/trac/ticket/5920#comment:8>
MythTV <http://www.mythtv.org/>
MythTV


More information about the mythtv-commits mailing list