示例#1
0
 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;
 }
示例#2
0
 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);
             }
         }
     }
 }
示例#3
0
 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);
             }
         }
     }
 }