public BackupMovieMakeMKVJob(MakeMKVService makeMKVService, HandBrakeService handBrakeService, DiskTitle diskTitle, bool keepMovies = false) { System.Diagnostics.Debug.Assert(diskTitle != null); this.makeMKVService = makeMKVService; this.handBrakeService = handBrakeService; this.diskTitle = diskTitle; this.keepMovies = keepMovies; }
private static int ComparDiskTitleByHorizontalResolution(DiskTitle x, DiskTitle y) { if (x == null) { if (y == null) { return(0); } else { return(-1); } } else { if (y == null) { return(1); } else { if (x.HorizontalResolution < y.HorizontalResolution) { return(-1); } else if (x.HorizontalResolution == y.HorizontalResolution) { return(0); } else { return(1); } } } }
private static int ComparDiskTitleByDuration(DiskTitle x, DiskTitle y) { if (x == null) { if (y == null) { return(0); } else { return(-1); } } else { if (y == null) { return(1); } else { if (x.Seconds < y.Seconds) { return(-1); } else if (x.Seconds == y.Seconds) { return(0); } else { return(1); } } } }