Modify
Warning Please read the Ticket HowTo before creating or commenting on a ticket. Failure to do so may cause your ticket to be rejected or result in a slower response.

Opened 2 years ago

Last modified 15 months ago

#9597 new Patch - Feature

Add support for random artwork in mythui

Reported by: erictsmith@… Owned by:
Priority: minor Milestone: unknown
Component: MythTV - User Interface Library Version: Master Head
Severity: medium Keywords:
Cc: Ticket locked: no

Description

This patch adds support for mythui images to be pulled randomly from the fanart, coverart, and banners directories as defined by the front end mythvideo settings. It does not currently support storage groups. To use, simply add an imagestate to your ui xml and add a filename using of the special tags: %FANART% %BANNERART% or %COVERART%

Patches for fixes/0.24 and master are attached. Only the fixes/0.24 patch is tested as I do not currently have a box running master.

Attachments (4)

randomfanart_fixes24.patch (1.5 KB) - added by erictsmith@… 2 years ago.
fixes/0.24 patch
randomfanart_master.patch (1.5 KB) - added by erictsmith@… 2 years ago.
master patch
randomsg_fixes24.patch (2.3 KB) - added by erictsmith@… 2 years ago.
fixes/0.24 patch with storage group support
randomsg_master.patch (2.3 KB) - added by erictsmith@… 2 years ago.
master patch with storage group support

Download all attachments as: .zip

Change History (10)

Changed 2 years ago by erictsmith@…

fixes/0.24 patch

Changed 2 years ago by erictsmith@…

master patch

comment:1 Changed 2 years ago by robertm

  • Owner changed from stuartm to robertm
  • Status changed from new to assigned

Patch is not acceptable, needs to support storage groups, and variable names should be "BANNERS" rather than bannerart, and screenshots need to be supported.

If you would do the preceding we can think about this, but using the legacy local locations is probably a non-starter.

comment:2 Changed 2 years ago by robertm

  • Status changed from assigned to infoneeded

Changed 2 years ago by erictsmith@…

fixes/0.24 patch with storage group support

Changed 2 years ago by erictsmith@…

master patch with storage group support

comment:3 Changed 2 years ago by erictsmith@…

  • Status changed from infoneeded to assigned

Updated patch adds support for mythui images to be pulled randomly from any storage group. To use, simply add an imagestate to your ui xml and add a filename using of the special tag: %SG_<storage group name>%. Likely storage groups would be the special metadata groups, but any could be used. Storage group code will fall back to the Default group if the specified group does not exist and make up to 10 attempts at finding a random image file in the given group.

Patches for fixes/0.24 and master are attached. Only the fixes/0.24 patch is tested as I do not currently have a box running master.

comment:4 Changed 2 years ago by wagnerrp

  • Version changed from Unspecified to Trunk Head

comment:5 Changed 15 months ago by robertm

  • Owner robertm deleted

comment:6 Changed 15 months ago by wagnerrp

  • Status changed from assigned to new

Add Comment

Modify Ticket

Action
as new .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.