示例#1
0
        public DownloadItem(int index, Track track = null, Video video = null, Album album = null, Playlist plist = null)
        {
            TidalPlaylist     = plist;
            TidalAlbum        = album;
            TidalVideo        = video;
            TidalTrack        = track;
            Quality           = TidalTool.getQuality(Config.Quality());
            Resolution        = TidalTool.getResolution(Config.Resolution());
            OutputDir         = Config.OutputDir();
            Index             = index;
            Progress          = new ProgressHelper();
            OnlyM4a           = Config.OnlyM4a();
            AddHyphen         = Config.AddHyphen();
            Own               = album == null?null : album.Title;
            ToChinese         = Config.ToChinese();
            CheckExist        = Config.CheckExist();
            ArtistBeforeTitle = Config.ArtistBeforeTitle();

            if (TidalTrack != null)
            {
                Title = track.Title;
                sType = "MusicCircle";
            }
            else
            {
                Title = video.Title;
                sType = "PlayCircle";
            }
        }
        public VideoTask(Video data, int index, TELL_PARENT_OVER tellparent, Album album = null, Playlist playlist = null)
        {
            Index          = index;
            Title          = data.Title;
            Own            = data.Artist.Name;
            Progress       = new ProgressHelper(false);
            TellParentOver = tellparent;

            TidalVideo        = data;
            TidalAlbum        = album;
            TidalPlaylist     = playlist;
            Resolution        = TidalTool.getResolution(Config.Resolution());
            AddHyphen         = Config.AddHyphen();
            ArtistBeforeTitle = Config.ArtistBeforeTitle();
            AddYear           = Config.AddYear();
            OutputDir         = Config.OutputDir();
            Start();
        }
示例#3
0
        public DownloadItem(int index, Track track = null, Video video = null, Album album = null)
        {
            TidalAlbum = album;
            TidalVideo = video;
            TidalTrack = track;
            Quality    = TidalTool.getQuality(Config.Quality());
            Resolution = TidalTool.getResolution(Config.Resolution());
            OutputDir  = Config.OutputDir();
            Index      = index;
            Progress   = new ProgressHelper();
            OnlyM4a    = Config.OnlyM4a();
            Own        = album == null?null : album.Title;

            if (TidalTrack != null)
            {
                Title = track.Title;
                sType = "MusicCircle";
            }
            else
            {
                Title = video.Title;
                sType = "PlayCircle";
            }
        }