Video infoLabels={ "Duration":duration } in seconds
#1
Is there a way to specify seconds instead of minutes.

Thanks.
Reply
#2
Sorry doesn't match the topic.
Always read the online manual (wiki), FAQ (wiki) and search the forum before posting.
Do not e-mail Team Kodi members directly asking for support. Read/follow the forum rules (wiki).
Please read the pages on troubleshooting (wiki) and bug reporting (wiki) before reporting issues.
Reply
#3
To answer my own question, this takes a string so convert it to minutes before defining it.

This code I found on stack-overflow works well in case anyone else needs to do this.
Code:
def GetInHMS(seconds):
    hours = seconds / 3600
    seconds -= 3600*hours
    minutes = seconds / 60
    seconds -= 60*minutes
    if hours == 0:
        return "%02d:%02d" % (minutes, seconds)
    return "%02d:%02d:%02d" % (hours, minutes, seconds)
Reply

Logout Mark Read Team Forum Stats Members Help
Video infoLabels={ "Duration":duration } in seconds0