riothamus 51 Posted August 25, 2018 Share Posted August 25, 2018 Currently, the playlist will report the total runtime of all of its items in just total minutes. Could we have an option to show days - hours - minutes as well (or instead?). Here is a Bash function that I use that calculates total minutes into the above format. The same math could be used in Emby: function show_time () { num=$1/1000 min=0 hour=0 day=0 if((num>59));then ((sec=num%60)) ((num=num/60)) if((num>59));then ((min=num%60)) ((num=num/60)) if((num>23));then ((hour=num%24)) ((day=num/24)) else ((hour=num)) fi else ((min=num)) fi else ((sec=num)) fi echo "$day"d "$hour"h "$min"m "$sec"s } 1 Link to comment Share on other sites More sharing options...
Luke 36999 Posted August 25, 2018 Share Posted August 25, 2018 Yes it's a good idea. Thanks. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now