C# Class Business.DownloadPlaylistBusiness

Scans the playlist for videos with higher resolution available, or for broken links, and downloads those videos.
Afficher le fichier Open project: mysteryx93/NaturalGroundingPlayer

Méthodes publiques

Свойство Type Description
DownloadManager DownloadBusiness

Méthodes publiques

Méthode Description
DownloadPlaylistBusiness ( ) : System
IsHigherQualityAvailable ( string localFile, BestFormatInfo serverFile ) : Task

Returns whether the local file should be replaced by the YouTube version.

LoadStatusFromCache ( List list ) : void

Restores the Status and StatusText fields from the cache into specified data list.

SetStatus ( DataAccess.VideoListItem item, VideoListItemStatusEnum status ) : void
SetStatus ( DataAccess.VideoListItem item, VideoListItemStatusEnum status, string statusText ) : void
StartDownload ( List selection, bool upgradeAudio ) : Task
StartScan ( List selection, CancellationToken cancel ) : Task

Private Methods

Méthode Description
DownloadFile ( DataAccess.VideoListItem item, bool upgradeAudio ) : Task

Method Details

DownloadPlaylistBusiness() public méthode

public DownloadPlaylistBusiness ( ) : System
Résultat System

IsHigherQualityAvailable() public méthode

Returns whether the local file should be replaced by the YouTube version.
public IsHigherQualityAvailable ( string localFile, BestFormatInfo serverFile ) : Task
localFile string A path to the local file.
serverFile BestFormatInfo The information of the available server file.
Résultat Task

LoadStatusFromCache() public méthode

Restores the Status and StatusText fields from the cache into specified data list.
public LoadStatusFromCache ( List list ) : void
list List The list of data to restore cached data into.
Résultat void

SetStatus() public méthode

public SetStatus ( DataAccess.VideoListItem item, VideoListItemStatusEnum status ) : void
item DataAccess.VideoListItem
status VideoListItemStatusEnum
Résultat void

SetStatus() public méthode

public SetStatus ( DataAccess.VideoListItem item, VideoListItemStatusEnum status, string statusText ) : void
item DataAccess.VideoListItem
status VideoListItemStatusEnum
statusText string
Résultat void

StartDownload() public méthode

public StartDownload ( List selection, bool upgradeAudio ) : Task
selection List
upgradeAudio bool
Résultat Task

StartScan() public méthode

public StartScan ( List selection, CancellationToken cancel ) : Task
selection List
cancel System.Threading.CancellationToken
Résultat Task

Property Details

DownloadManager public_oe property

public DownloadBusiness,Business DownloadManager
Résultat DownloadBusiness