Opened 17 years ago

Closed 15 years ago

#3579 closed enhancement (fixed)

Display movie's metadata image as folder icon

Reported by: anonymous Owned by: Anduin Withers
Priority: minor Milestone: 0.22
Component: mythvideo Version: head
Severity: medium Keywords: mythvideo folder image
Cc: Ticket locked: no

Description

If the user did not set his own folder icon by placing a folder.(png|jpg|gif) image into the folder, this patch will try to retrieve an image of the first file in the folder by checking if this file has metadata and then using the image stored there.

Attachments (5)

mythvideo.diff (1.5 KB) - added by vdr@… 17 years ago.
findfirstnodeimage.diff (1.7 KB) - added by robert.mcnamara@… 15 years ago.
update and improve for trunk
findfirstnodeimage.2.diff (1.9 KB) - added by robert.mcnamara@… 15 years ago.
Better still, loop through until a valid cover image is found.
findfirstnodeimage.3.diff (2.1 KB) - added by robert.mcnamara@… 15 years ago.
Do not try to load if it's the default image.
findfirstnodeimage.4.diff (2.4 KB) - added by robert.mcnamara@… 15 years ago.
Fix issue if no metadata was found in the folder.

Download all attachments as: .zip

Change History (10)

Changed 17 years ago by vdr@…

Attachment: mythvideo.diff added

comment:1 Changed 16 years ago by Anduin Withers

Milestone: 0.210.22

comment:2 Changed 15 years ago by Dibblah

Status: newinfoneeded_new

This no longer applies to trunk. Can you try and rework the patch, if it is still required?

comment:3 Changed 15 years ago by Anduin Withers

Status: infoneeded_newnew

It is fine, I'll rework the patch eventually.

Changed 15 years ago by robert.mcnamara@…

Attachment: findfirstnodeimage.diff added

update and improve for trunk

comment:4 Changed 15 years ago by robert.mcnamara@…

Updated for trunk with a slight improvement, it'll actually iterate through a directory until it finds a valid node (in case the folder's first few items are subfolders).

Changed 15 years ago by robert.mcnamara@…

Attachment: findfirstnodeimage.2.diff added

Better still, loop through until a valid cover image is found.

Changed 15 years ago by robert.mcnamara@…

Attachment: findfirstnodeimage.3.diff added

Do not try to load if it's the default image.

Changed 15 years ago by robert.mcnamara@…

Attachment: findfirstnodeimage.4.diff added

Fix issue if no metadata was found in the folder.

comment:5 Changed 15 years ago by robertm

Resolution: fixed
Status: newclosed

(In [21193]) Closes #3579. If a folder lacks an image, attempt to find a valid cover from one of the items within.

Note: See TracTickets for help on using tickets.