Property | Type | Description | |
---|---|---|---|
Extras | List |
||
MainResource | DownloadItem | ||
View | InfoReportProxy |
Method | Description | |
---|---|---|
Download ( bool ignoreExtras = false ) : Task |
Downloads the Sound representation and any extra files that accompany it If true, extra files will not be downloaded. (Useful for retrying the main download)
|
|
Finish ( bool close = true ) : bool |
Called once the whole process is finished. Clears any log data and closes the connection to the view. If this method is overridden, base.Finish() should be called AT THE END of the function.
|
|
Validate ( ) : Task |
Validates the download. The base stream does not do any validation.
|
Method | Description | |
---|---|---|
BaseStream ( String url, InfoReportProxy view ) : System |
Creates a base stream that downloads from a remote url
|
|
GenerateRandomString ( int size ) : String |
Generate a random string of a given length
|
|
GetCleanFileName ( string value ) : string |
Get the clean filename for a title
|
Method | Description | |
---|---|---|
DownloadExtra ( DownloadItem item ) : System.Threading.Tasks.Task |
Asynchronous method for downloading an item that does not track progress
|
protected BaseStream ( String url, InfoReportProxy view ) : System | ||
url | String | The url to process |
view | InfoReportProxy | The view to report information back to |
return | System |
public Download ( bool ignoreExtras = false ) : Task |
||
ignoreExtras | bool | |
return | Task |
protected static GenerateRandomString ( int size ) : String | ||
size | int | Length of the string |
return | String |
protected static GetCleanFileName ( string value ) : string | ||
value | string | The title of the song |
return | string |