示例#1
0
 public ItemDownloading(IDownloadInformation dl, ProcessedEpisode pe, string desiredLocationNoExt, DownloadingFinder.DownloadApp tApp)
 {
     Episode = pe;
     DesiredLocationNoExt = desiredLocationNoExt;
     entry      = dl;
     IconNumber = tApp == DownloadingFinder.DownloadApp.uTorrent ? 2 :
                  tApp == DownloadingFinder.DownloadApp.SABnzbd  ? 8 :
                  tApp == DownloadingFinder.DownloadApp.qBitTorrent ? 10 : 0;
 }
示例#2
0
 public ItemDownloading(IDownloadInformation dl, ProcessedEpisode pe, string desiredLocationNoExt, DownloadingFinder.DownloadApp tApp, ItemMissing me) : this(dl, desiredLocationNoExt, tApp, me)
 {
     Episode = pe;
 }
示例#3
0
 public ItemDownloading(IDownloadInformation dl, MovieConfiguration mc, string desiredLocationNoExt, DownloadingFinder.DownloadApp tApp, ItemMissing me) : this(dl, desiredLocationNoExt, tApp, me)
 {
     Episode = null;
     Movie   = mc;
 }
示例#4
0
 private ItemDownloading(IDownloadInformation dl, string desiredLocationNoExt, DownloadingFinder.DownloadApp tApp, ItemMissing undoItem)
 {
     DesiredLocationNoExt = desiredLocationNoExt;
     entry           = dl;
     UndoItemMissing = undoItem;
     IconNumber      = tApp switch
     {
         DownloadingFinder.DownloadApp.uTorrent => 2,
         DownloadingFinder.DownloadApp.SABnzbd => 8,
         DownloadingFinder.DownloadApp.qBitTorrent => 10,
         _ => 0
     };
 }