[mythtv-commits] Ticket #7091: Modification to VideoDialog::GetFirstImage, now will recursively search for an image

MythTV mythtv at cvs.mythtv.org
Thu Sep 17 23:47:50 UTC 2009


#7091: Modification to VideoDialog::GetFirstImage, now will recursively search for
an image
--------------------------------+-------------------------------------------
 Reporter:  andycarr at gmail.com  |       Owner:  awithers
     Type:  enhancement         |      Status:  new     
 Priority:  minor               |   Milestone:  0.22    
Component:  Plugin - MythVideo  |     Version:  head    
 Severity:  low                 |     Mlocked:  0       
--------------------------------+-------------------------------------------
 What it does:
 Updates VideoDialog::GetFirstImage, if image is not found in immediate
 children, it recurses into each subfolder until an image is found.
 Behavior is: try the files in a folder first, continue into subfolders
 only if no hit on files in current level.

 Why it is useful:
 This is nice for folder structures where like content is grouped together
 in a "master folder". For example, multiple seasons of House, each in
 their own folder, are in a "House" folder in the root of the storage
 directory. "root->House->House Season 4".  Without this patch, selecting
 the House folder while browsing root, no fanart is displayed (cover art
 was present for some items in my library however).  With this patch,
 fanart is now available when "House" is selected.

 This is my first patch submission.  I tried to follow the style guide
 100%, please let me know if there is anything I missed or corrections
 needed.  Thanks!

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


More information about the mythtv-commits mailing list