[mythtv-commits] Ticket #2845: mythvideo treeview directory structure glitch

MythTV mythtv at cvs.mythtv.org
Fri Dec 29 13:57:22 UTC 2006


#2845: mythvideo treeview directory structure glitch
----------------------------+-----------------------------------------------
 Reporter:  ric at haywire.dk  |       Owner:  awithers
     Type:  patch           |      Status:  new     
 Priority:  minor           |   Milestone:  unknown 
Component:  mythvideo       |     Version:  head    
 Severity:  medium          |  
----------------------------+-----------------------------------------------
 When mythvideo builds the treeview directory structure from metadata it
 looks for "/path/to/current/dir" in the next filepath. It should look for
 "/path/to/current/dir/" (including the end "/").

 Example:

 {{{
   /path/to/dir/file1
   /path/to/dir B/file2
   /path/to/dir B/file3
 }}}
 is parsed as

 {{{
   /path/to/dir/file1
   /path/to/dir/B/file2
   /path/to/dir B/file3
 }}}

 Patch to solve the problem:


 {{{
 Index: mythvideo/mythvideo/videolist.cpp
 ===================================================================
 --- mythvideo/mythvideo/videolist.cpp   (revision 12351)
 +++ mythvideo/mythvideo/videolist.cpp   (working copy)
 @@ -348,7 +348,7 @@

          if (hint)
          {
 -            if (metadata->Filename().startsWith(hint->getFQPath()))
 +            if (metadata->Filename().startsWith(hint->getFQPath() + "/"))
              {
                  start = hint;
                  insert_chunk =
 }}}

-- 
Ticket URL: <http://svn.mythtv.org/trac/ticket/2845>
MythTV <http://www.mythtv.org/>
MythTV


More information about the mythtv-commits mailing list