Ejemplo n.º 1
0
 private static JArray GetColumns(VideoData vd)
 {
     return(new JArray
            (
                vd.DataDir.Name,
                vd.UID,
                vd.FilenameBase,
                vd.Title,
                vd.ShouldTranscodeAndCacheVideo().ToString(),
                vd.IsCachedVideo.ToString(),
                vd.IsCachedPreview.ToString(),
                vd.IsCachedThumbnail.ToString(),
                vd.ExternalOrderIndex?.ToString() ?? "(null)",
                vd.PathVideo,
                vd.PathJSON ?? "(null)",
                vd.PathTOML ?? "(null)",
                vd.PathThumbnail,
                vd.PathDescription ?? "(null)",
                string.Join("\n", vd.PathSubtitles),
                vd.CacheVideoFile ?? "(null)",
                vd.CachePreviewFile ?? "(null)",
                FilesizeUtil.BytesToString(vd.Filesize),
                (vd.CacheVideoSize == 0)     ? "" : FilesizeUtil.BytesToString(vd.CacheVideoSize),
                (vd.CachePreviewSize == 0)   ? "" : FilesizeUtil.BytesToString(vd.CachePreviewSize),
                (vd.CacheThumbnailSize == 0) ? "" : FilesizeUtil.BytesToString(vd.CacheThumbnailSize),
                vd.UploadDate ?? "(null)",
                vd.Duration?.ToString() ?? "(null)",
                vd.WebpageURL ?? "(null)",
                vd.Extractor ?? "(null)"
            ));
 }