Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MythMusic: Provide play time components to templates #793

Merged
merged 2 commits into from
Sep 26, 2023

Conversation

twitham1
Copy link
Contributor

@twitham1 twitham1 commented Aug 30, 2023

Improve #786 by providing the three time components to XML theme templates.

Like the current "playlistplayedtime" and "playlisttotaltime" that are available to XML templates, this adds the components of "time":

  • playedtime -- MM:SS or H:MM:SS
  • totaltime -- MM:SS or H:MM:SS
  • trackspeed -- empty for normal speed or 0.95, 1.05 and so on for abnormal playback speeds

This allows themers to format these separately if they wish. Trackspeed is an empty string until modified by speed changes (W/X keys). Documentation is updated at https://www.mythtv.org/wiki/Music-ui.xml#Generic_Attributes_Used_in_most_windows

@linuxdude42 linuxdude42 merged commit 850b63c into MythTV:master Sep 26, 2023
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants