MUSIC CALC TRACK LENGTH (Myth Protocol)

From MythTV Official Wiki
Revision as of 10:42, 19 March 2014 by Paulh (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

MUSIC_CALC_TRACK_LENGTH

Arguments

Command arguments: none

List arguments: <hostname> <songid>

Examples

Command:

45      MUSIC_CALC_TRACK_LENGTH[]:[]masterbe[]:[]1234

Successful response:

2       OK

Unsuccessful response:

22       ERROR: slave not found


Description

This command will update the track length of a music track by decoding the track to determine its exact length. The command will run mythutil --calctracklen to do the update and will return immediately. mythutil will send a MUSIC_METADATA_CHANGED <songid> event on success to let all clients know the metadata for the indicated track has changed. The master backend will forward the command to a slave for processing if the track is on a slave.

Returns

An OK or ERROR response.

Changelog

version changeset description
80 [b257f3c860]cgitgithub Initial version