[mythtv-users] Bugs in MythVideo?

Xavier Hervy maxpower44 at tiscali.fr
Mon Jul 19 12:55:22 EDT 2004


Steven wrote:

> Xavier Hervy wrote:
> 
>>
>>> If you post your patch I'll try it out and post feedback. Untill now 
>>> I've always removed all special characters from video filenames to 
>>> avoid trouble.
>>>
>>
>> Ok I will send you when i will can. However where did you live ? I 
>> would like to know you mother language ...
>> Xavier
>>
>>
> Mother language is Dutch-French-German and I live in the small country 
> to your north :-) (.be)

Don't wich language you prefer to use but i just send a movie 
information grabber for german user (ofdb.pl) ...


This patch fix the display of accent characters in mythvideo. but i 
forget to fix when you launch a movie. however video a add only one time 
in database and imdb info are displayed correctly.
I can't send a patch that fix the launch of video with accent because i 
don't use cvs (i use mythvideo cd support) then if i run cvs i will lost 
all information about video store on cds :(
But basicly, you just need to remove the local8bit() on the filename 
when mythvideo try to launch it or something like that
xavier
-------------- next part --------------
Index: mythvideo/mythvideo/main.cpp
===================================================================
RCS file: /var/lib/mythcvs/mythvideo/mythvideo/main.cpp,v
retrieving revision 1.31
diff -u -r1.31 main.cpp
--- mythvideo/mythvideo/main.cpp	12 Jun 2004 17:35:12 -0000	1.31
+++ mythvideo/mythvideo/main.cpp	6 Jul 2004 10:00:47 -0000
@@ -326,7 +326,7 @@
     {
         while (query.next())
         {
-            QString name = QString::fromUtf8(query.value(0).toString());
+            QString name = query.value(0).toString();
             if (name != QString::null)
             {
                 if ((iter = video_files.find(name)) != video_files.end())
Index: mythvideo/mythvideo/metadata.cpp
===================================================================
RCS file: /var/lib/mythcvs/mythvideo/mythvideo/metadata.cpp,v
retrieving revision 1.12
diff -u -r1.12 metadata.cpp
--- mythvideo/mythvideo/metadata.cpp	26 May 2004 19:58:03 -0000	1.12
+++ mythvideo/mythvideo/metadata.cpp	6 Jul 2004 10:00:49 -0000
@@ -173,18 +173,18 @@
     {
         query.next();
 
-        title = QString::fromUtf8(query.value(0).toString());
-        director = QString::fromUtf8(query.value(1).toString());
-        plot = QString::fromUtf8(query.value(2).toString());
-        rating = QString::fromUtf8(query.value(3).toString());
+        title = query.value(0).toString();
+        director = query.value(1).toString();
+        plot = query.value(2).toString();
+        rating = query.value(3).toString();
         year = query.value(4).toInt();
         userrating = (float)query.value(5).toDouble();
         length = query.value(6).toInt();
-        filename = QString::fromUtf8(query.value(7).toString());
+        filename = query.value(7).toString();
         showlevel = query.value(8).toInt();
         id = query.value(9).toUInt();
-        coverfile = QString::fromUtf8(query.value(10).toString());
-        inetref = QString::fromUtf8(query.value(11).toString());
+        coverfile = query.value(10).toString();
+        inetref = query.value(11).toString();
         childID = query.value(12).toUInt();
         browse = query.value(13).toBool();
         playcommand = query.value(14).toString();
@@ -211,17 +211,17 @@
     {
         query.next();
 
-        title = QString::fromUtf8(query.value(0).toString());
-        director = QString::fromUtf8(query.value(1).toString());
-        plot = QString::fromUtf8(query.value(2).toString());
+        title = query.value(0).toString();
+        director = query.value(1).toString();
+        plot = query.value(2).toString();
         rating = query.value(3).toString();
         year = query.value(4).toInt();
         userrating = (float)query.value(5).toDouble();
         length = query.value(6).toInt();
-        filename = QString::fromUtf8(query.value(7).toString());
+        filename = query.value(7).toString();
         showlevel = query.value(8).toInt();
-        coverfile = QString::fromUtf8(query.value(9).toString());
-        inetref = QString::fromUtf8(query.value(10).toString());
+        coverfile = query.value(9).toString();
+        inetref = query.value(10).toString();
         childID = query.value(11).toUInt();
         browse = query.value(12).toBool();
         playcommand = query.value(13).toString();
Index: mythvideo/mythvideo/videobrowser.cpp
===================================================================
RCS file: /var/lib/mythcvs/mythvideo/mythvideo/videobrowser.cpp,v
retrieving revision 1.33
diff -u -r1.33 videobrowser.cpp
--- mythvideo/mythvideo/videobrowser.cpp	30 May 2004 00:44:49 -0000	1.33
+++ mythvideo/mythvideo/videobrowser.cpp	6 Jul 2004 10:00:50 -0000
@@ -338,7 +338,6 @@
                         .arg(currentVideoFilter->BuildClauseFrom())
                         .arg(currentVideoFilter->BuildClauseWhere())
                         .arg(currentVideoFilter->BuildClauseOrderBy());
-
     QSqlQuery query(thequery,db);
     Metadata *myData;
 


More information about the mythtv-users mailing list