DOWNLOAD FILE (Myth Protocol Event)

From MythTV Official Wiki
Jump to: navigation, search

DOWNLOAD_FILE

This event is sent on file updates by the backend download manager.

UPDATE

Arguments

Argument Data: empty

List Data: remote URL, local URI, bytes received, bytes total

Examples

Event:

BACKEND_MESSAGE[]:[]DOWNLOAD_FILE UPDATE[]:[]http://mythtv.org/wiki[]:[]myth://Temp@10.254.1.101:6543/download_4f77ffe6.tmp[]:[]27561[]:[]32287

Description

This event is sent for an in-progress download, and updates the file size of the file. A downloaded file will not be available until the first of this event is issued.

FINISHED

Arguments

Argument Data: none

List Data: remote URL, local URI, bytes total, error string, error code

Examples

Event:

BACKEND_MESSAGE[]:[]DOWNLOAD_FILE FINISHED[]:[]http://mythtv.org/wiki[]:[]myth://Temp@10.254.1.101:6543/download_4f77ffe6.tmp[]:[]32287[]:[][]:[]0

Description

This event is sent for a completed download, and lists the final size along with any error that may have occurred.