diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md
index 6bd416a38..50d8f9832 100644
--- a/.github/ISSUE_TEMPLATE.md
+++ b/.github/ISSUE_TEMPLATE.md
@@ -2,4 +2,6 @@
Provide a description of the feature request or bug, the more details the better.
-Please use https://forums.sonarr.tv/ for support or other questions. (When in doubt, use the forums)
+When possible include a log!
+
+Please use our [Discord server](https://discord.gg/NWYch8M) for support or longer discussions.
diff --git a/.gitignore b/.gitignore
index 8413af8f8..2a5850895 100644
--- a/.gitignore
+++ b/.gitignore
@@ -127,9 +127,18 @@ bin
obj
output/*
+#Packages
+Radarr_*/
+Radarr_*.zip
+Radarr_*.gz
#OS X metadata files
._*
+.DS_Store
_start
_temp_*/**/*
+
+#AppVeyor
+/tools-cake/
+/_artifacts/
\ No newline at end of file
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 000000000..3cea8954a
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,14 @@
+language: csharp
+solution: src/NzbDrone.sln
+script: # the following commands are just examples, use whatever your build process requires
+ - ./build.sh
+ - chmod +x test.sh
+# - ./test.sh Linux Unit Takes far too long, maybe even crashes travis :/
+install:
+ - sudo apt-get install nodejs
+ - sudo apt-get install npm
+after_success:
+ - chmod +x package.sh
+ - ./package.sh
+notifications:
+ - webhooks: https://discordapp.com/api/webhooks/266910310219251712/V-QvCcnYkg3O8PMevcAJOJyCgrYkZQoF2pupLDGbaISNUECmYPd6LRwl3avKHsPyfgWP
diff --git a/7za.dll b/7za.dll
new file mode 100644
index 000000000..f2657b610
Binary files /dev/null and b/7za.dll differ
diff --git a/7za.exe b/7za.exe
new file mode 100644
index 000000000..dd6cc759b
Binary files /dev/null and b/7za.exe differ
diff --git a/7zxa.dll b/7zxa.dll
new file mode 100644
index 000000000..21ec79dc2
Binary files /dev/null and b/7zxa.dll differ
diff --git a/CLA.md b/CLA.md
index 40adac7f6..05ce7890d 100644
--- a/CLA.md
+++ b/CLA.md
@@ -1,6 +1,6 @@
-# Sonarr Individual Contributor License Agreement #
+# Radarr Individual Contributor License Agreement #
-Thank you for your interest in contributing to Sonarr ("We" or "Us").
+Thank you for your interest in contributing to Radarr ("We" or "Us").
This contributor agreement ("Agreement") documents the rights granted by contributors to Us. To make this document effective, please complete the form below. This is a legally binding document, so please read it carefully before agreeing to it. The Agreement may cover more than one software project managed by Us.
## 1. Definitions ##
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index ab945cb0c..3ae50843d 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -1,6 +1,6 @@
# How to Contribute #
-We're always looking for people to help make Sonarr even better, there are a number of ways to contribute.
+We're always looking for people to help make Radarr even better, there are a number of ways to contribute.
## Documentation ##
Setup guides, FAQ, the more information we have on the wiki the better.
@@ -15,7 +15,7 @@ Setup guides, FAQ, the more information we have on the wiki the better.
### Getting started ###
-1. Fork Sonarr
+1. Fork Radarr
2. Clone (develop branch) *you may need pull in submodules separately if you client doesn't clone them automatically (CurlSharp)*
3. Run `npm install`
4. Run `npm start` - Used to compile the UI components and copy them.
@@ -24,8 +24,8 @@ Setup guides, FAQ, the more information we have on the wiki the better.
5. Compile in Visual Studio
### Contributing Code ###
-- If you're adding a new, already requested feature, please comment on [Github Issues](https://github.com/Sonarr/Sonarr/issues "Github Issues") so work is not duplicated (If you want to add something not already on there, please talk to us first)
-- Rebase from Sonarr's develop branch, don't merge
+- If you're adding a new, already requested feature, please comment on [Github Issues](https://github.com/Radarr/Radarr/issues "Github Issues") so work is not duplicated (If you want to add something not already on there, please talk to us first)
+- Rebase from Radarr's develop branch, don't merge
- Make meaningful commits, or squash them
- Feel free to make a pull request before work is complete, this will let us see where its at and make comments/suggest improvements
- Reach out to us on the forums or on IRC if you have any questions
diff --git a/Logo/1024.png b/Logo/1024.png
index 9979d55d4..6923c2554 100644
Binary files a/Logo/1024.png and b/Logo/1024.png differ
diff --git a/Logo/128.png b/Logo/128.png
index ae8cf56c7..5e143b52e 100644
Binary files a/Logo/128.png and b/Logo/128.png differ
diff --git a/Logo/16.png b/Logo/16.png
index 00078bfdd..0a042f4bb 100644
Binary files a/Logo/16.png and b/Logo/16.png differ
diff --git a/Logo/256.png b/Logo/256.png
index 815750aa0..c958e1bbf 100644
Binary files a/Logo/256.png and b/Logo/256.png differ
diff --git a/Logo/32.png b/Logo/32.png
index a079d7afc..f1fe93db5 100644
Binary files a/Logo/32.png and b/Logo/32.png differ
diff --git a/Logo/400.png b/Logo/400.png
index f445977bf..dac41bfd8 100644
Binary files a/Logo/400.png and b/Logo/400.png differ
diff --git a/Logo/48.png b/Logo/48.png
index b4a009323..8b9d0fc88 100644
Binary files a/Logo/48.png and b/Logo/48.png differ
diff --git a/Logo/512.png b/Logo/512.png
index 36e87c0da..d2f56252f 100644
Binary files a/Logo/512.png and b/Logo/512.png differ
diff --git a/Logo/64.png b/Logo/64.png
index 33387d7f9..80edc7894 100644
Binary files a/Logo/64.png and b/Logo/64.png differ
diff --git a/Logo/800.png b/Logo/800.png
index a0081ab5c..4a1d25228 100644
Binary files a/Logo/800.png and b/Logo/800.png differ
diff --git a/Logo/Radarr.svg b/Logo/Radarr.svg
new file mode 100644
index 000000000..a9ce35970
--- /dev/null
+++ b/Logo/Radarr.svg
@@ -0,0 +1,572 @@
+
+
\ No newline at end of file
diff --git a/Logo/Sonarr.svg b/Logo/Sonarr.svg
deleted file mode 100644
index cc8e1370e..000000000
--- a/Logo/Sonarr.svg
+++ /dev/null
@@ -1,240 +0,0 @@
-
-
-
-
diff --git a/Logo/Thumbs.db b/Logo/Thumbs.db
new file mode 100644
index 000000000..f01582531
Binary files /dev/null and b/Logo/Thumbs.db differ
diff --git a/appveyor.yml b/appveyor.yml
new file mode 100644
index 000000000..b529317ee
--- /dev/null
+++ b/appveyor.yml
@@ -0,0 +1,48 @@
+version: '0.2.0.{build}'
+
+branches:
+ only:
+ - develop
+
+assembly_info:
+ patch: true
+ file: 'src\NzbDrone.Common\Properties\SharedAssemblyInfo.cs'
+ assembly_version: '{version}'
+ assembly_file_version: '{version}'
+ assembly_informational_version: '{version}-rc1'
+
+environment:
+ DOTNET_CLI_TELEMETRY_OPTOUT: 1
+
+install:
+ - git submodule update --init --recursive
+
+build_script:
+ - ps: ./build-appveyor.ps1
+
+test: off
+# test:
+# assemblies:
+# - '_tests\*Test.dll'
+# categories:
+# except:
+# - IntegrationTest
+# - AutomationTest
+
+artifacts:
+ - path: '_artifacts\*.zip'
+ - path: '_artifacts\*.tar.gz'
+
+cache:
+ - '%USERPROFILE%\.nuget\packages'
+ - node_modules
+
+pull_requests:
+ do_not_increment_build_number: true
+
+only_commits:
+ files:
+ - src/
+ - osx/
+ - gulp/
+ - logo/
diff --git a/build-appveyor.cake b/build-appveyor.cake
new file mode 100644
index 000000000..8d806e663
--- /dev/null
+++ b/build-appveyor.cake
@@ -0,0 +1,303 @@
+#addin "Cake.Npm"
+#addin "SharpZipLib"
+#addin "Cake.Compression"
+
+// Build variables
+var outputFolder = "./_output";
+var outputFolderMono = outputFolder + "_mono";
+var outputFolderOsx = outputFolder + "_osx";
+var outputFolderOsxApp = outputFolderOsx + "_app";
+var testPackageFolder = "./_tests";
+var testSearchPattern = "*.Test/bin/x86/Release";
+var sourceFolder = "./src";
+var solutionFile = sourceFolder + "/NzbDrone.sln";
+var updateFolder = outputFolder + "/NzbDrone.Update";
+var updateFolderMono = outputFolderMono + "/NzbDrone.Update";
+
+// Artifact variables
+var artifactsFolder = "./_artifacts";
+var artifactsFolderWindows = artifactsFolder + "/windows";
+var artifactsFolderLinux = artifactsFolder + "/linux";
+var artifactsFolderOsx = artifactsFolder + "/osx";
+var artifactsFolderOsxApp = artifactsFolder + "/osx-app";
+
+// Utility methods
+public void RemoveEmptyFolders(string startLocation) {
+ foreach (var directory in System.IO.Directory.GetDirectories(startLocation))
+ {
+ RemoveEmptyFolders(directory);
+
+ if (System.IO.Directory.GetFiles(directory).Length == 0 &&
+ System.IO.Directory.GetDirectories(directory).Length == 0)
+ {
+ DeleteDirectory(directory, false);
+ }
+ }
+}
+
+public void CleanFolder(string path, bool keepConfigFiles) {
+ DeleteFiles(path + "/**/*.transform");
+
+ if (!keepConfigFiles) {
+ DeleteFiles(path + "/**/*.dll.config");
+ }
+
+ DeleteFiles(path + "/**/FluentValidation.resources.dll");
+ DeleteFiles(path + "/**/App.config");
+
+ DeleteFiles(path + "/**/*.less");
+
+ DeleteFiles(path + "/**/*.vshost.exe");
+
+ DeleteFiles(path + "/**/*.dylib");
+
+ RemoveEmptyFolders(path);
+}
+
+public void CreateMdbs(string path) {
+ foreach (var file in System.IO.Directory.EnumerateFiles(path, "*.pdb", System.IO.SearchOption.AllDirectories)) {
+ var actualFile = file.Substring(0, file.Length - 4);
+
+ if (FileExists(actualFile + ".exe")) {
+ StartProcess("./tools/pdb2mdb/pdb2mdb.exe", new ProcessSettings()
+ .WithArguments(args => args.Append(actualFile + ".exe")));
+ }
+
+ if (FileExists(actualFile + ".dll")) {
+ StartProcess("./tools/pdb2mdb/pdb2mdb.exe", new ProcessSettings()
+ .WithArguments(args => args.Append(actualFile + ".dll")));
+ }
+ }
+}
+
+// Build Tasks
+Task("Compile").Does(() => {
+ // Build
+ if (DirectoryExists(outputFolder)) {
+ DeleteDirectory(outputFolder, true);
+ }
+
+ MSBuild(solutionFile, config =>
+ config.UseToolVersion(MSBuildToolVersion.VS2015)
+ .WithTarget("Clean")
+ .SetVerbosity(Verbosity.Minimal));
+
+ NuGetRestore(solutionFile);
+
+ MSBuild(solutionFile, config =>
+ config.UseToolVersion(MSBuildToolVersion.VS2015)
+ .SetPlatformTarget(PlatformTarget.x86)
+ .SetConfiguration("Release")
+ .WithProperty("AllowedReferenceRelatedFileExtensions", new string[] { ".pdb" })
+ .WithTarget("Build")
+ .SetVerbosity(Verbosity.Minimal));
+
+ CleanFolder(outputFolder, false);
+
+ // Add JsonNet
+ DeleteFiles(outputFolder + "/Newtonsoft.Json.*");
+ CopyFiles(sourceFolder + "/packages/Newtonsoft.Json.*/lib/net35/*.dll", outputFolder);
+ CopyFiles(sourceFolder + "/packages/Newtonsoft.Json.*/lib/net35/*.dll", updateFolder);
+
+ // Remove Mono stuff
+ DeleteFile(outputFolder + "/Mono.Posix.dll");
+});
+
+Task("Gulp").Does(() => {
+ Npm
+ .WithLogLevel(NpmLogLevel.Silent)
+ .FromPath(".")
+ .Install()
+ .RunScript("build");
+});
+
+Task("PackageMono").Does(() => {
+ // Start mono package
+ if (DirectoryExists(outputFolderMono)) {
+ DeleteDirectory(outputFolderMono, true);
+ }
+
+ CopyDirectory(outputFolder, outputFolderMono);
+
+ // Create MDBs
+ CreateMdbs(outputFolderMono);
+
+ // Remove PDBs
+ DeleteFiles(outputFolderMono + "/**/*.pdb");
+
+ // Remove service helpers
+ DeleteFiles(outputFolderMono + "/ServiceUninstall.*");
+ DeleteFiles(outputFolderMono + "/ServiceInstall.*");
+
+ // Remove native windows binaries
+ DeleteFiles(outputFolderMono + "/sqlite3.*");
+ DeleteFiles(outputFolderMono + "/MediaInfo.*");
+
+ // Adding NzbDrone.Core.dll.config (for dllmap)
+ CopyFile(sourceFolder + "/NzbDrone.Core/NzbDrone.Core.dll.config", outputFolderMono + "/NzbDrone.Core.dll.config");
+
+ // Adding CurlSharp.dll.config (for dllmap)
+ CopyFile(sourceFolder + "/NzbDrone.Common/CurlSharp.dll.config", outputFolderMono + "/CurlSharp.dll.config");
+
+ // Renaming Radarr.Console.exe to Radarr.exe
+ DeleteFiles(outputFolderMono + "/Radarr.exe*");
+ MoveFile(outputFolderMono + "/Radarr.Console.exe", outputFolderMono + "/Radarr.exe");
+ MoveFile(outputFolderMono + "/Radarr.Console.exe.config", outputFolderMono + "/Radarr.exe.config");
+ MoveFile(outputFolderMono + "/Radarr.Console.exe.mdb", outputFolderMono + "/Radarr.exe.mdb");
+
+ // Remove NzbDrone.Windows.*
+ DeleteFiles(outputFolderMono + "/NzbDrone.Windows.*");
+
+ // Adding NzbDrone.Mono to updatePackage
+ CopyFiles(outputFolderMono + "/NzbDrone.Mono.*", updateFolderMono);
+});
+
+Task("PackageOsx").Does(() => {
+ // Start osx package
+ if (DirectoryExists(outputFolderOsx)) {
+ DeleteDirectory(outputFolderOsx, true);
+ }
+
+ CopyDirectory(outputFolderMono, outputFolderOsx);
+
+ // Adding sqlite dylibs
+ CopyFiles(sourceFolder + "/Libraries/Sqlite/*.dylib", outputFolderOsx);
+
+ // Adding MediaInfo dylib
+ CopyFiles(sourceFolder + "/Libraries/MediaInfo/*.dylib", outputFolderOsx);
+
+ // Adding Startup script
+ CopyFile("./osx/Sonarr", outputFolderOsx + "/Sonarr");
+});
+
+Task("PackageOsxApp").Does(() => {
+ // Start osx app package
+ if (DirectoryExists(outputFolderOsxApp)) {
+ DeleteDirectory(outputFolderOsxApp, true);
+ }
+
+ CreateDirectory(outputFolderOsxApp);
+
+ // Copy osx package files
+ CopyDirectory("./osx/Radarr.app", outputFolderOsxApp + "/Radarr.app");
+ CopyDirectory(outputFolderOsx, outputFolderOsxApp + "/Radarr.app/Contents/MacOS");
+});
+
+Task("PackageTests").Does(() => {
+ // Start tests package
+ if (DirectoryExists(testPackageFolder)) {
+ DeleteDirectory(testPackageFolder, true);
+ }
+
+ CreateDirectory(testPackageFolder);
+
+ // Copy tests
+ CopyFiles(sourceFolder + "/" + testSearchPattern + "/*", testPackageFolder);
+ foreach (var directory in System.IO.Directory.GetDirectories(sourceFolder, "*.Test")) {
+ var releaseDirectory = directory + "/bin/x86/Release";
+ if (DirectoryExists(releaseDirectory)) {
+ foreach (var releaseSubDirectory in System.IO.Directory.GetDirectories(releaseDirectory)) {
+ Information(System.IO.Path.GetDirectoryName(releaseSubDirectory));
+ CopyDirectory(releaseSubDirectory, testPackageFolder + "/" + System.IO.Path.GetFileName(releaseSubDirectory));
+ }
+ }
+ }
+
+ // Install NUnit.ConsoleRunner
+ NuGetInstall("NUnit.ConsoleRunner", new NuGetInstallSettings {
+ Version = "3.2.0",
+ OutputDirectory = testPackageFolder
+ });
+
+ // Copy dlls
+ CopyFiles(outputFolder + "/*.dll", testPackageFolder);
+
+ // Copy scripts
+ CopyFiles("./*.sh", testPackageFolder);
+
+ // Create MDBs for tests
+ CreateMdbs(testPackageFolder);
+
+ // Remove config
+ DeleteFiles(testPackageFolder + "/*.log.config");
+
+ // Clean
+ CleanFolder(testPackageFolder, true);
+
+ // Adding NzbDrone.Core.dll.config (for dllmap)
+ CopyFile(sourceFolder + "/NzbDrone.Core/NzbDrone.Core.dll.config", testPackageFolder + "/NzbDrone.Core.dll.config");
+
+ // Adding CurlSharp.dll.config (for dllmap)
+ CopyFile(sourceFolder + "/NzbDrone.Common/CurlSharp.dll.config", testPackageFolder + "/CurlSharp.dll.config");
+
+ // Adding CurlSharp libraries
+ CopyFiles(sourceFolder + "/ExternalModules/CurlSharp/libs/i386/*", testPackageFolder);
+});
+
+Task("CleanupWindowsPackage").Does(() => {
+ // Remove mono
+ DeleteFiles(outputFolder + "/NzbDrone.Mono.*");
+
+ // Adding NzbDrone.Windows to updatePackage
+ CopyFiles(outputFolder + "/NzbDrone.Windows.*", updateFolder);
+});
+
+Task("Build")
+ .IsDependentOn("Compile")
+ .IsDependentOn("Gulp")
+ .IsDependentOn("PackageMono")
+ .IsDependentOn("PackageOsx")
+ .IsDependentOn("PackageOsxApp")
+ .IsDependentOn("PackageTests")
+ .IsDependentOn("CleanupWindowsPackage");
+
+// Build Artifacts
+Task("CleanArtifacts").Does(() => {
+ if (DirectoryExists(artifactsFolder)) {
+ DeleteDirectory(artifactsFolder, true);
+ }
+
+ CreateDirectory(artifactsFolder);
+});
+
+Task("ArtifactsWindows").Does(() => {
+ CopyDirectory(outputFolder, artifactsFolderWindows + "/Radarr");
+});
+
+Task("ArtifactsLinux").Does(() => {
+ CopyDirectory(outputFolderMono, artifactsFolderLinux + "/Radarr");
+});
+
+Task("ArtifactsOsx").Does(() => {
+ CopyDirectory(outputFolderOsx, artifactsFolderOsx + "/Radarr");
+});
+
+Task("ArtifactsOsxApp").Does(() => {
+ CopyDirectory(outputFolderOsxApp, artifactsFolderOsxApp);
+});
+
+Task("CompressArtifacts").Does(() => {
+ var prefix = "";
+
+ if (AppVeyor.IsRunningOnAppVeyor) {
+ prefix += AppVeyor.Environment.Repository.Branch + ".";
+ prefix += AppVeyor.Environment.Build.Version + ".";
+ }
+
+ Zip(artifactsFolderWindows, artifactsFolder + "/Radarr." + prefix + "windows.zip");
+ GZipCompress(artifactsFolderLinux, artifactsFolder + "/Radarr." + prefix + "linux.tar.gz");
+ GZipCompress(artifactsFolderOsx, artifactsFolder + "/Radarr." + prefix + "osx.tar.gz");
+ Zip(artifactsFolderOsxApp, artifactsFolder + "/Radarr." + prefix + "osx-app.zip");
+});
+
+Task("Artifacts")
+ .IsDependentOn("CleanArtifacts")
+ .IsDependentOn("ArtifactsWindows")
+ .IsDependentOn("ArtifactsLinux")
+ .IsDependentOn("ArtifactsOsx")
+ .IsDependentOn("ArtifactsOsxApp")
+ .IsDependentOn("CompressArtifacts");
+
+// Run
+RunTarget("Build");
+RunTarget("Artifacts");
\ No newline at end of file
diff --git a/build-appveyor.ps1 b/build-appveyor.ps1
new file mode 100644
index 000000000..fd3bea746
--- /dev/null
+++ b/build-appveyor.ps1
@@ -0,0 +1,184 @@
+##########################################################################
+# This is the Cake bootstrapper script for PowerShell.
+# This file was downloaded from https://github.com/cake-build/resources
+# Feel free to change this file to fit your needs.
+##########################################################################
+
+<#
+.SYNOPSIS
+This is a Powershell script to bootstrap a Cake build.
+.DESCRIPTION
+This Powershell script will download NuGet if missing, restore NuGet tools (including Cake)
+and execute your Cake build script with the parameters you provide.
+.PARAMETER Script
+The build script to execute.
+.PARAMETER Target
+The build script target to run.
+.PARAMETER Configuration
+The build configuration to use.
+.PARAMETER Verbosity
+Specifies the amount of information to be displayed.
+.PARAMETER Experimental
+Tells Cake to use the latest Roslyn release.
+.PARAMETER WhatIf
+Performs a dry run of the build script.
+No tasks will be executed.
+.PARAMETER Mono
+Tells Cake to use the Mono scripting engine.
+.PARAMETER SkipToolPackageRestore
+Skips restoring of packages.
+.PARAMETER ScriptArgs
+Remaining arguments are added here.
+.LINK
+http://cakebuild.net
+#>
+
+[CmdletBinding()]
+Param(
+ [string]$Script = "build-appveyor.cake",
+ [string]$Target = "Default",
+ [ValidateSet("Release", "Debug")]
+ [string]$Configuration = "Release",
+ [ValidateSet("Quiet", "Minimal", "Normal", "Verbose", "Diagnostic")]
+ [string]$Verbosity = "Verbose",
+ [switch]$Experimental,
+ [Alias("DryRun","Noop")]
+ [switch]$WhatIf,
+ [switch]$Mono,
+ [switch]$SkipToolPackageRestore,
+ [Parameter(Position=0,Mandatory=$false,ValueFromRemainingArguments=$true)]
+ [string[]]$ScriptArgs
+)
+
+[Reflection.Assembly]::LoadWithPartialName("System.Security") | Out-Null
+function MD5HashFile([string] $filePath)
+{
+ if ([string]::IsNullOrEmpty($filePath) -or !(Test-Path $filePath -PathType Leaf))
+ {
+ return $null
+ }
+
+ [System.IO.Stream] $file = $null;
+ [System.Security.Cryptography.MD5] $md5 = $null;
+ try
+ {
+ $md5 = [System.Security.Cryptography.MD5]::Create()
+ $file = [System.IO.File]::OpenRead($filePath)
+ return [System.BitConverter]::ToString($md5.ComputeHash($file))
+ }
+ finally
+ {
+ if ($file -ne $null)
+ {
+ $file.Dispose()
+ }
+ }
+}
+
+Write-Host "Preparing to run build script..."
+
+if(!$PSScriptRoot){
+ $PSScriptRoot = Split-Path $MyInvocation.MyCommand.Path -Parent
+}
+
+$TOOLS_DIR = Join-Path $PSScriptRoot "tools-cake"
+$NUGET_EXE = Join-Path $TOOLS_DIR "nuget.exe"
+$CAKE_EXE = Join-Path $TOOLS_DIR "Cake/Cake.exe"
+$NUGET_URL = "https://dist.nuget.org/win-x86-commandline/latest/nuget.exe"
+$PACKAGES_CONFIG = Join-Path $TOOLS_DIR "packages.config"
+$PACKAGES_CONFIG_MD5 = Join-Path $TOOLS_DIR "packages.config.md5sum"
+
+# Should we use mono?
+$UseMono = "";
+if($Mono.IsPresent) {
+ Write-Verbose -Message "Using the Mono based scripting engine."
+ $UseMono = "-mono"
+}
+
+# Should we use the new Roslyn?
+$UseExperimental = "";
+if($Experimental.IsPresent -and !($Mono.IsPresent)) {
+ Write-Verbose -Message "Using experimental version of Roslyn."
+ $UseExperimental = "-experimental"
+}
+
+# Is this a dry run?
+$UseDryRun = "";
+if($WhatIf.IsPresent) {
+ $UseDryRun = "-dryrun"
+}
+
+# Make sure tools folder exists
+if ((Test-Path $PSScriptRoot) -and !(Test-Path $TOOLS_DIR)) {
+ Write-Verbose -Message "Creating tools directory..."
+ New-Item -Path $TOOLS_DIR -Type directory | out-null
+}
+
+# Make sure that packages.config exist.
+if (!(Test-Path $PACKAGES_CONFIG)) {
+ Write-Verbose -Message "Downloading packages.config..."
+ try { (New-Object System.Net.WebClient).DownloadFile("http://cakebuild.net/download/bootstrapper/packages", $PACKAGES_CONFIG) } catch {
+ Throw "Could not download packages.config."
+ }
+}
+
+# Try find NuGet.exe in path if not exists
+if (!(Test-Path $NUGET_EXE)) {
+ Write-Verbose -Message "Trying to find nuget.exe in PATH..."
+ $existingPaths = $Env:Path -Split ';' | Where-Object { (![string]::IsNullOrEmpty($_)) -and (Test-Path $_) }
+ $NUGET_EXE_IN_PATH = Get-ChildItem -Path $existingPaths -Filter "nuget.exe" | Select -First 1
+ if ($NUGET_EXE_IN_PATH -ne $null -and (Test-Path $NUGET_EXE_IN_PATH.FullName)) {
+ Write-Verbose -Message "Found in PATH at $($NUGET_EXE_IN_PATH.FullName)."
+ $NUGET_EXE = $NUGET_EXE_IN_PATH.FullName
+ }
+}
+
+# Try download NuGet.exe if not exists
+if (!(Test-Path $NUGET_EXE)) {
+ Write-Verbose -Message "Downloading NuGet.exe..."
+ try {
+ (New-Object System.Net.WebClient).DownloadFile($NUGET_URL, $NUGET_EXE)
+ } catch {
+ Throw "Could not download NuGet.exe."
+ }
+}
+
+# Save nuget.exe path to environment to be available to child processed
+$ENV:NUGET_EXE = $NUGET_EXE
+
+# Restore tools from NuGet?
+if(-Not $SkipToolPackageRestore.IsPresent) {
+ Push-Location
+ Set-Location $TOOLS_DIR
+
+ # Check for changes in packages.config and remove installed tools if true.
+ [string] $md5Hash = MD5HashFile($PACKAGES_CONFIG)
+ if((!(Test-Path $PACKAGES_CONFIG_MD5)) -Or
+ ($md5Hash -ne (Get-Content $PACKAGES_CONFIG_MD5 ))) {
+ Write-Verbose -Message "Missing or changed package.config hash..."
+ Remove-Item * -Recurse -Exclude packages.config,nuget.exe
+ }
+
+ Write-Verbose -Message "Restoring tools from NuGet..."
+ $NuGetOutput = Invoke-Expression "&`"$NUGET_EXE`" install -ExcludeVersion -OutputDirectory `"$TOOLS_DIR`""
+
+ if ($LASTEXITCODE -ne 0) {
+ Throw "An error occured while restoring NuGet tools."
+ }
+ else
+ {
+ $md5Hash | Out-File $PACKAGES_CONFIG_MD5 -Encoding "ASCII"
+ }
+ Write-Verbose -Message ($NuGetOutput | out-string)
+ Pop-Location
+}
+
+# Make sure that Cake has been installed.
+if (!(Test-Path $CAKE_EXE)) {
+ Throw "Could not find Cake.exe at $CAKE_EXE"
+}
+
+# Start Cake
+Write-Host "Running build script..."
+Invoke-Expression "& `"$CAKE_EXE`" `"$Script`" -target=`"$Target`" -configuration=`"$Configuration`" -verbosity=`"$Verbosity`" $UseMono $UseDryRun $UseExperimental $ScriptArgs"
+exit $LASTEXITCODE
\ No newline at end of file
diff --git a/build.sh b/build.sh
index e45c949e9..a3a6eb568 100755
--- a/build.sh
+++ b/build.sh
@@ -154,8 +154,8 @@ PackageMono()
cp $sourceFolder/NzbDrone.Common/CurlSharp.dll.config $outputFolderMono
echo "Renaming NzbDrone.Console.exe to NzbDrone.exe"
- rm $outputFolderMono/NzbDrone.exe*
- for file in $outputFolderMono/NzbDrone.Console.exe*; do
+ rm $outputFolderMono/Radarr.exe*
+ for file in $outputFolderMono/Radarr.Console.exe*; do
mv "$file" "${file//.Console/}"
done
@@ -192,8 +192,8 @@ PackageOsxApp()
rm -rf $outputFolderOsxApp
mkdir $outputFolderOsxApp
- cp -r ./osx/Sonarr.app $outputFolderOsxApp
- cp -r $outputFolderOsx $outputFolderOsxApp/Sonarr.app/Contents/MacOS
+ cp -r ./osx/Radarr.app $outputFolderOsxApp
+ cp -r $outputFolderOsx $outputFolderOsxApp/Radarr.app/Contents/MacOS
echo "##teamcity[progressFinish 'Creating OS X App Package']"
}
diff --git a/gulp/less.js b/gulp/less.js
index 76e04b8dc..92d50a43e 100644
--- a/gulp/less.js
+++ b/gulp/less.js
@@ -19,13 +19,16 @@ gulp.task('less', function() {
paths.src.root + 'Series/series.less',
paths.src.root + 'Activity/activity.less',
paths.src.root + 'AddSeries/addSeries.less',
+ paths.src.root + 'AddMovies/addMovies.less',
paths.src.root + 'Calendar/calendar.less',
paths.src.root + 'Cells/cells.less',
paths.src.root + 'ManualImport/manualimport.less',
paths.src.root + 'Settings/settings.less',
paths.src.root + 'System/Logs/logs.less',
paths.src.root + 'System/Update/update.less',
- paths.src.root + 'System/Info/info.less'
+ paths.src.root + 'System/Info/info.less',
+ paths.src.root + 'Movies/movies.less',
+
];
return gulp.src(src)
diff --git a/osx/Sonarr.app/Contents/Info.plist b/osx/Radarr.app/Contents/Info.plist
similarity index 97%
rename from osx/Sonarr.app/Contents/Info.plist
rename to osx/Radarr.app/Contents/Info.plist
index eeae50f41..345002166 100644
--- a/osx/Sonarr.app/Contents/Info.plist
+++ b/osx/Radarr.app/Contents/Info.plist
@@ -13,7 +13,7 @@
CFBundleExecutable
Sonarr
CFBundleIconFile
- sonarr.icns
+ radarr.icns
CFBundleIdentifier
com.osx.sonarr.tv
CFBundleInfoDictionaryVersion
diff --git a/osx/Radarr.app/Contents/Resources/radarr.icns b/osx/Radarr.app/Contents/Resources/radarr.icns
new file mode 100644
index 000000000..5284eec97
Binary files /dev/null and b/osx/Radarr.app/Contents/Resources/radarr.icns differ
diff --git a/osx/Sonarr.app/Contents/Resources/sonarr.icns b/osx/Radarr.app/Contents/Resources/sonarr.icns
similarity index 100%
rename from osx/Sonarr.app/Contents/Resources/sonarr.icns
rename to osx/Radarr.app/Contents/Resources/sonarr.icns
diff --git a/osx/Sonarr b/osx/Sonarr
index db2a35399..bb5d9d6bd 100644
--- a/osx/Sonarr
+++ b/osx/Sonarr
@@ -4,9 +4,9 @@
DIR=$(cd "$(dirname "$0")"; pwd)
#change these values to match your app
-EXE_PATH="$DIR/NzbDrone.exe"
+EXE_PATH="$DIR/Radarr.exe"
APPNAME="Sonarr"
-
+
#set up environment
if [[ -x '/opt/local/bin/mono' ]]; then
export PATH="/opt/local/bin:$PATH"
@@ -29,11 +29,11 @@ export DYLD_FALLBACK_LIBRARY_PATH="$DYLD_FALLBACK_LIBRARY_PATH:$HOME/lib:/usr/lo
#mono version check
REQUIRED_MAJOR=3
REQUIRED_MINOR=10
-
+
VERSION_TITLE="Cannot launch $APPNAME"
VERSION_MSG="$APPNAME requires Mono Runtime Environment(MRE) $REQUIRED_MAJOR.$REQUIRED_MINOR or later."
DOWNLOAD_URL="http://www.mono-project.com/download/#download-mac"
-
+
MONO_VERSION="$(mono --version | grep 'Mono JIT compiler version ' | cut -f5 -d\ )"
# if [[ -o DEBUG ]]; then osascript -e "display dialog \"MONO_VERSION: $MONO_VERSION\""; fi
@@ -42,7 +42,7 @@ MONO_VERSION_MAJOR="$(echo $MONO_VERSION | cut -f1 -d.)"
MONO_VERSION_MINOR="$(echo $MONO_VERSION | cut -f2 -d.)"
if [ -z "$MONO_VERSION" ] \
|| [ $MONO_VERSION_MAJOR -lt $REQUIRED_MAJOR ] \
- || [ $MONO_VERSION_MAJOR -eq $REQUIRED_MAJOR -a $MONO_VERSION_MINOR -lt $REQUIRED_MINOR ]
+ || [ $MONO_VERSION_MAJOR -eq $REQUIRED_MAJOR -a $MONO_VERSION_MINOR -lt $REQUIRED_MINOR ]
then
osascript \
-e "set question to display dialog \"$VERSION_MSG\" with title \"$VERSION_TITLE\" buttons {\"Cancel\", \"Download...\"} default button 2" \
@@ -51,8 +51,8 @@ then
echo "$VERSION_MSG"
exit 1
fi
-
+
MONO_EXEC="exec mono --debug"
-
+
#run app using mono
-$MONO_EXEC "$EXE_PATH"
\ No newline at end of file
+$MONO_EXEC "$EXE_PATH"
diff --git a/package.sh b/package.sh
new file mode 100644
index 000000000..679786658
--- /dev/null
+++ b/package.sh
@@ -0,0 +1,68 @@
+if [ $# -eq 0 ]; then
+ if [ "$TRAVIS_PULL_REQUEST" != false ]; then
+ echo "Need to supply version argument" && exit;
+ fi
+fi
+
+# Use mono or .net depending on OS
+case "$(uname -s)" in
+ CYGWIN*|MINGW32*|MINGW64*|MSYS*)
+ # on windows, use dotnet
+ runtime="dotnet"
+ ;;
+ *)
+ # otherwise use mono
+ runtime="mono"
+ ;;
+esac
+
+if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then
+ VERSION="`date +%H:%M:%S`"
+ YEAR="`date +%Y`"
+ MONTH="`date +%m`"
+ DAY="`date +%d`"
+else
+ VERSION=$1
+fi
+outputFolder='./_output'
+outputFolderMono='./_output_mono'
+outputFolderOsx='./_output_osx'
+outputFolderOsxApp='./_output_osx_app'
+
+tr -d "\r" < $outputFolderOsxApp/Radarr.app/Contents/MacOS/Sonarr > $outputFolderOsxApp/Radarr.app/Contents/MacOS/Sonarr2
+rm $outputFolderOsxApp/Radarr.app/Contents/MacOS/Sonarr
+chmod +x $outputFolderOsxApp/Radarr.app/Contents/MacOS/Sonarr2
+mv $outputFolderOsxApp/Radarr.app/Contents/MacOS/Sonarr2 $outputFolderOsxApp/Radarr.app/Contents/MacOS/Sonarr >& error.log
+
+cp -r $outputFolder/ Radarr_Windows_$VERSION
+cp -r $outputFolderMono/ Radarr_Mono_$VERSION
+cp -r $outputFolderOsxApp/ Radarr_OSX_$VERSION
+
+if [ $runtime = "dotnet" ] ; then
+ ./7za.exe a Radarr_Windows_$VERSION.zip ./Radarr_Windows_$VERSION/*
+ ./7za.exe a -ttar -so Radarr_Mono_$VERSION.tar ./Radarr_Mono_$VERSION/* | ./7za.exe a -si Radarr_Mono_$VERSION.tar.gz
+ ./7za.exe a -ttar -so Radarr_OSX_$VERSION.tar ./_output_osx/* | ./7za.exe a -si Radarr_OSX_$VERSION.tar.gz
+ ./7za.exe a -ttar -so Radarr_OSX_App_$VERSION.tar ./_output_osx_app/* | ./7za.exe a -si Radarr_OSX_App_$VERSION.tar.gz
+else
+zip -r Radarr_Windows_$VERSION.zip Radarr_Windows_$VERSION/* >& /dev/null
+zip -r Radarr_Mono_$VERSION.zip Radarr_Mono_$VERSION/* >& /dev/null #TODO update for tar.gz
+zip -r Radarr_OSX_$VERSION_App.zip Radarr_OSX_$VERSION/* >& /dev/null
+fi
+ftp -n ftp.leonardogalli.ch << END_SCRIPT
+passive
+quote USER $FTP_USER
+quote PASS $FTP_PASS
+mkdir builds
+cd builds
+mkdir $YEAR
+cd $YEAR
+mkdir $MONTH
+cd $MONTH
+mkdir $DAY
+cd $DAY
+binary
+put Radarr_Windows_$VERSION.zip
+put Radarr_Mono_$VERSION.zip
+put Radarr_OSX_$VERSION.zip
+quit
+END_SCRIPT
diff --git a/readme.md b/readme.md
index 495dd4155..86665c6fd 100644
--- a/readme.md
+++ b/readme.md
@@ -1,27 +1,57 @@
-# Sonarr #
+# Radarr
+| Service | Master | Develop |
+|----------|:---------------------------:|:----------------------------:|
+| AppVeyor | [](https://ci.appveyor.com/project/galli-leo/Radarr) | [](https://ci.appveyor.com/project/galli-leo/Radarr-usby1) |
+| Travis | [](https://travis-ci.org/galli-leo/Radarr) | [](https://travis-ci.org/galli-leo/Radarr) |
-Sonarr is a PVR for Usenet and BitTorrent users. It can monitor multiple RSS feeds for new episodes of your favorite shows and will grab, sort and rename them. It can also be configured to automatically upgrade the quality of files already downloaded when a better quality format becomes available.
+This fork of Sonarr aims to turn it into something like Couchpotato.
+
+## Currently working:
+* Adding new movies
+* Manually searching for releases of movies.
+* Automatically searching for releases.
+* Automatically importing downloaded movies.
+* Recognizing Special Editions, Director's Cut, etc.
+* Identifying releases with hardcoded subs.
+* Rarbg.to, Torznab and Newznab Indexer.
+* QBittorrent and Deluge download client (Other clients are coming)
+* New TorrentPotato Indexer (Works well with [Jackett](https://github.com/Jackett/Jackett))
+
+## Planned Features:
+* Scanning PreDB to know when a new release is available.
+* Fixing the other Indexers and download clients.
+* Importing of Sonarr config.
+
+## Download
+The latest precompiled binary versions can be found here: https://github.com/galli-leo/Radarr/releases.
+
+To connect to the UI, fire up your browser and open localhost:7878 or your-ip:7878.
+
+Docker containers from [linuxserver.io](https://linuxserver.io) can be found here.
+* [Radarr (x64)](https://hub.docker.com/r/linuxserver/radarr/)
+* [Radarr (armhf)](https://hub.docker.com/r/lsioarmhf/radarr/)
+* [Radarr (aarch64)](https://hub.docker.com/r/lsioarmhf/radarr-aarch64/)
+
+For more up to date versions (but also sometimes broken), daily builds can be found here:
+* [OSX](https://leonardogalli.ch/radarr/builds/latest.php?os=osx)
+* [Windows](https://leonardogalli.ch/radarr/builds/latest.php?os=windows)
+* [Linux](https://leonardogalli.ch/radarr/builds/latest.php?os=mono)
## Major Features Include: ##
* Support for major platforms: Windows, Linux, OSX, Raspberry Pi, etc.
-* Automatically detects new episodes
-* Can scan your existing library and download any missing episodes
-* Can watch for better quality of the episodes you already have and do an automatic upgrade. *eg. from DVD to Blu-Ray*
+* Can watch for better quality of the movies you have and do an upgrade.
* Automatic failed download handling will try another release if one fails
-* Manual search so you can pick any release or to see why a release was not downloaded automatically
-* Fully configurable episode renaming
-* Full integration with SABNzbd and NzbGet
-* Full integration with XBMC, Plex (notification, library update, metadata)
-* Full support for specials and multi-episode releases
+* Manual search so you can pick any release or to see why a release was not downloaded automatically.
+* Full integration with SABNzbd and NzbGet.
+* Full integration with XBMC, Plex (notification, library update, metadata).
* And a beautiful UI
-
## Configuring Development Environment: ##
### Requirements ###
-- Visual Studio 2015 [Free Community Edition](https://www.visualstudio.com/en-us/products/visual-studio-community-vs.aspx)
+- Visual Studio 2015 [Free Community Edition](https://www.visualstudio.com/en-us/products/visual-studio-community-vs.aspx) or Mono
- [Git](http://git-scm.com/downloads)
- [NodeJS](http://nodejs.org/download/)
@@ -37,7 +67,7 @@ Sonarr is a PVR for Usenet and BitTorrent users. It can monitor multiple RSS fee
### Development ###
-- Open `NzbDrone.sln` in Visual Studio
+- Open `NzbDrone.sln` in Visual Studio or run the build.sh script, if Mono is installed.
- Make sure `NzbDrone.Console` is set as the startup project
diff --git a/sonarr.icns b/sonarr.icns
new file mode 100644
index 000000000..5284eec97
Binary files /dev/null and b/sonarr.icns differ
diff --git a/src/Common/CommonVersionInfo.cs b/src/Common/CommonVersionInfo.cs
index d674c376f..f7e96bcb8 100644
--- a/src/Common/CommonVersionInfo.cs
+++ b/src/Common/CommonVersionInfo.cs
@@ -2,4 +2,4 @@
using System.Reflection;
-[assembly: AssemblyVersion("10.0.0.*")]
+[assembly: AssemblyVersion("0.1.0.*")]
diff --git a/src/NzbDrone.Api.Test/Properties/AssemblyInfo.cs b/src/NzbDrone.Api.Test/Properties/AssemblyInfo.cs
index 4d2901c1a..b45cbd098 100644
--- a/src/NzbDrone.Api.Test/Properties/AssemblyInfo.cs
+++ b/src/NzbDrone.Api.Test/Properties/AssemblyInfo.cs
@@ -21,4 +21,3 @@ using System.Runtime.InteropServices;
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("260b2ff9-d3b7-4d8a-b720-a12c93d045e5")]
-[assembly: AssemblyVersion("10.0.0.*")]
diff --git a/src/NzbDrone.Api/Calendar/CalendarFeedModule.cs b/src/NzbDrone.Api/Calendar/CalendarFeedModule.cs
index 0e62517f9..685c5cf16 100644
--- a/src/NzbDrone.Api/Calendar/CalendarFeedModule.cs
+++ b/src/NzbDrone.Api/Calendar/CalendarFeedModule.cs
@@ -27,6 +27,7 @@ namespace NzbDrone.Api.Calendar
Get["/NzbDrone.ics"] = options => GetCalendarFeed();
Get["/Sonarr.ics"] = options => GetCalendarFeed();
+ Get["/Radarr.ics"] = options => GetCalendarFeed();
}
private Response GetCalendarFeed()
diff --git a/src/NzbDrone.Api/Config/NamingConfigModule.cs b/src/NzbDrone.Api/Config/NamingConfigModule.cs
index 0b72e0b0c..94b515473 100644
--- a/src/NzbDrone.Api/Config/NamingConfigModule.cs
+++ b/src/NzbDrone.Api/Config/NamingConfigModule.cs
@@ -34,11 +34,13 @@ namespace NzbDrone.Api.Config
Get["/samples"] = x => GetExamples(this.Bind());
SharedValidator.RuleFor(c => c.MultiEpisodeStyle).InclusiveBetween(0, 5);
- SharedValidator.RuleFor(c => c.StandardEpisodeFormat).ValidEpisodeFormat();
+ /*SharedValidator.RuleFor(c => c.StandardEpisodeFormat).ValidEpisodeFormat();
SharedValidator.RuleFor(c => c.DailyEpisodeFormat).ValidDailyEpisodeFormat();
SharedValidator.RuleFor(c => c.AnimeEpisodeFormat).ValidAnimeEpisodeFormat();
SharedValidator.RuleFor(c => c.SeriesFolderFormat).ValidSeriesFolderFormat();
- SharedValidator.RuleFor(c => c.SeasonFolderFormat).ValidSeasonFolderFormat();
+ SharedValidator.RuleFor(c => c.SeasonFolderFormat).ValidSeasonFolderFormat();*/
+ SharedValidator.RuleFor(c => c.StandardMovieFormat).ValidMovieFormat();
+ SharedValidator.RuleFor(c => c.MovieFolderFormat).ValidMovieFolderFormat();
}
private void UpdateNamingConfig(NamingConfigResource resource)
@@ -54,7 +56,13 @@ namespace NzbDrone.Api.Config
var nameSpec = _namingConfigService.GetConfig();
var resource = nameSpec.ToResource();
- if (resource.StandardEpisodeFormat.IsNotNullOrWhiteSpace())
+ //if (resource.StandardEpisodeFormat.IsNotNullOrWhiteSpace())
+ //{
+ // var basicConfig = _filenameBuilder.GetBasicNamingConfig(nameSpec);
+ // basicConfig.AddToResource(resource);
+ //}
+
+ if (resource.StandardMovieFormat.IsNotNullOrWhiteSpace())
{
var basicConfig = _filenameBuilder.GetBasicNamingConfig(nameSpec);
basicConfig.AddToResource(resource);
@@ -73,39 +81,50 @@ namespace NzbDrone.Api.Config
var nameSpec = config.ToModel();
var sampleResource = new NamingSampleResource();
- var singleEpisodeSampleResult = _filenameSampleService.GetStandardSample(nameSpec);
- var multiEpisodeSampleResult = _filenameSampleService.GetMultiEpisodeSample(nameSpec);
- var dailyEpisodeSampleResult = _filenameSampleService.GetDailySample(nameSpec);
- var animeEpisodeSampleResult = _filenameSampleService.GetAnimeSample(nameSpec);
- var animeMultiEpisodeSampleResult = _filenameSampleService.GetAnimeMultiEpisodeSample(nameSpec);
+ //var singleEpisodeSampleResult = _filenameSampleService.GetStandardSample(nameSpec);
+ //var multiEpisodeSampleResult = _filenameSampleService.GetMultiEpisodeSample(nameSpec);
+ //var dailyEpisodeSampleResult = _filenameSampleService.GetDailySample(nameSpec);
+ //var animeEpisodeSampleResult = _filenameSampleService.GetAnimeSample(nameSpec);
+ //var animeMultiEpisodeSampleResult = _filenameSampleService.GetAnimeMultiEpisodeSample(nameSpec);
- sampleResource.SingleEpisodeExample = _filenameValidationService.ValidateStandardFilename(singleEpisodeSampleResult) != null
- ? "Invalid format"
- : singleEpisodeSampleResult.FileName;
+ var movieSampleResult = _filenameSampleService.GetMovieSample(nameSpec);
+
- sampleResource.MultiEpisodeExample = _filenameValidationService.ValidateStandardFilename(multiEpisodeSampleResult) != null
- ? "Invalid format"
- : multiEpisodeSampleResult.FileName;
+ //sampleResource.SingleEpisodeExample = _filenameValidationService.ValidateStandardFilename(singleEpisodeSampleResult) != null
+ // ? "Invalid format"
+ // : singleEpisodeSampleResult.FileName;
- sampleResource.DailyEpisodeExample = _filenameValidationService.ValidateDailyFilename(dailyEpisodeSampleResult) != null
- ? "Invalid format"
- : dailyEpisodeSampleResult.FileName;
+ //sampleResource.MultiEpisodeExample = _filenameValidationService.ValidateStandardFilename(multiEpisodeSampleResult) != null
+ // ? "Invalid format"
+ // : multiEpisodeSampleResult.FileName;
- sampleResource.AnimeEpisodeExample = _filenameValidationService.ValidateAnimeFilename(animeEpisodeSampleResult) != null
- ? "Invalid format"
- : animeEpisodeSampleResult.FileName;
+ //sampleResource.DailyEpisodeExample = _filenameValidationService.ValidateDailyFilename(dailyEpisodeSampleResult) != null
+ // ? "Invalid format"
+ // : dailyEpisodeSampleResult.FileName;
- sampleResource.AnimeMultiEpisodeExample = _filenameValidationService.ValidateAnimeFilename(animeMultiEpisodeSampleResult) != null
- ? "Invalid format"
- : animeMultiEpisodeSampleResult.FileName;
+ //sampleResource.AnimeEpisodeExample = _filenameValidationService.ValidateAnimeFilename(animeEpisodeSampleResult) != null
+ // ? "Invalid format"
+ // : animeEpisodeSampleResult.FileName;
- sampleResource.SeriesFolderExample = nameSpec.SeriesFolderFormat.IsNullOrWhiteSpace()
+ //sampleResource.AnimeMultiEpisodeExample = _filenameValidationService.ValidateAnimeFilename(animeMultiEpisodeSampleResult) != null
+ // ? "Invalid format"
+ // : animeMultiEpisodeSampleResult.FileName;
+
+ sampleResource.MovieExample = nameSpec.StandardMovieFormat.IsNullOrWhiteSpace()
+ ? "Invalid Format"
+ : movieSampleResult.FileName;
+
+ //sampleResource.SeriesFolderExample = nameSpec.SeriesFolderFormat.IsNullOrWhiteSpace()
+ // ? "Invalid format"
+ // : _filenameSampleService.GetSeriesFolderSample(nameSpec);
+
+ //sampleResource.SeasonFolderExample = nameSpec.SeasonFolderFormat.IsNullOrWhiteSpace()
+ // ? "Invalid format"
+ // : _filenameSampleService.GetSeasonFolderSample(nameSpec);
+
+ sampleResource.MovieFolderExample = nameSpec.MovieFolderFormat.IsNullOrWhiteSpace()
? "Invalid format"
- : _filenameSampleService.GetSeriesFolderSample(nameSpec);
-
- sampleResource.SeasonFolderExample = nameSpec.SeasonFolderFormat.IsNullOrWhiteSpace()
- ? "Invalid format"
- : _filenameSampleService.GetSeasonFolderSample(nameSpec);
+ : _filenameSampleService.GetMovieFolderSample(nameSpec);
return sampleResource.AsResponse();
}
@@ -118,19 +137,25 @@ namespace NzbDrone.Api.Config
var animeEpisodeSampleResult = _filenameSampleService.GetAnimeSample(nameSpec);
var animeMultiEpisodeSampleResult = _filenameSampleService.GetAnimeMultiEpisodeSample(nameSpec);
+ var movieSampleResult = _filenameSampleService.GetMovieSample(nameSpec);
+
var singleEpisodeValidationResult = _filenameValidationService.ValidateStandardFilename(singleEpisodeSampleResult);
var multiEpisodeValidationResult = _filenameValidationService.ValidateStandardFilename(multiEpisodeSampleResult);
var dailyEpisodeValidationResult = _filenameValidationService.ValidateDailyFilename(dailyEpisodeSampleResult);
var animeEpisodeValidationResult = _filenameValidationService.ValidateAnimeFilename(animeEpisodeSampleResult);
var animeMultiEpisodeValidationResult = _filenameValidationService.ValidateAnimeFilename(animeMultiEpisodeSampleResult);
+ //var standardMovieValidationResult = _filenameValidationService.ValidateMovieFilename(movieSampleResult); For now, let's hope the user is not stupid enough :/
+
var validationFailures = new List();
- validationFailures.AddIfNotNull(singleEpisodeValidationResult);
- validationFailures.AddIfNotNull(multiEpisodeValidationResult);
- validationFailures.AddIfNotNull(dailyEpisodeValidationResult);
- validationFailures.AddIfNotNull(animeEpisodeValidationResult);
- validationFailures.AddIfNotNull(animeMultiEpisodeValidationResult);
+ //validationFailures.AddIfNotNull(singleEpisodeValidationResult);
+ //validationFailures.AddIfNotNull(multiEpisodeValidationResult);
+ //validationFailures.AddIfNotNull(dailyEpisodeValidationResult);
+ //validationFailures.AddIfNotNull(animeEpisodeValidationResult);
+ //validationFailures.AddIfNotNull(animeMultiEpisodeValidationResult);
+
+ //validationFailures.AddIfNotNull(standardMovieValidationResult);
if (validationFailures.Any())
{
diff --git a/src/NzbDrone.Api/Config/NamingConfigResource.cs b/src/NzbDrone.Api/Config/NamingConfigResource.cs
index 39147b993..f65d90e48 100644
--- a/src/NzbDrone.Api/Config/NamingConfigResource.cs
+++ b/src/NzbDrone.Api/Config/NamingConfigResource.cs
@@ -7,6 +7,8 @@ namespace NzbDrone.Api.Config
{
public bool RenameEpisodes { get; set; }
public bool ReplaceIllegalCharacters { get; set; }
+ public string StandardMovieFormat { get; set; }
+ public string MovieFolderFormat { get; set; }
public int MultiEpisodeStyle { get; set; }
public string StandardEpisodeFormat { get; set; }
public string DailyEpisodeFormat { get; set; }
@@ -36,7 +38,9 @@ namespace NzbDrone.Api.Config
DailyEpisodeFormat = model.DailyEpisodeFormat,
AnimeEpisodeFormat = model.AnimeEpisodeFormat,
SeriesFolderFormat = model.SeriesFolderFormat,
- SeasonFolderFormat = model.SeasonFolderFormat
+ SeasonFolderFormat = model.SeasonFolderFormat,
+ StandardMovieFormat = model.StandardMovieFormat,
+ MovieFolderFormat = model.MovieFolderFormat
//IncludeSeriesTitle
//IncludeEpisodeTitle
//IncludeQuality
@@ -64,12 +68,14 @@ namespace NzbDrone.Api.Config
RenameEpisodes = resource.RenameEpisodes,
ReplaceIllegalCharacters = resource.ReplaceIllegalCharacters,
- MultiEpisodeStyle = resource.MultiEpisodeStyle,
- StandardEpisodeFormat = resource.StandardEpisodeFormat,
- DailyEpisodeFormat = resource.DailyEpisodeFormat,
- AnimeEpisodeFormat = resource.AnimeEpisodeFormat,
- SeriesFolderFormat = resource.SeriesFolderFormat,
- SeasonFolderFormat = resource.SeasonFolderFormat
+ //MultiEpisodeStyle = resource.MultiEpisodeStyle,
+ //StandardEpisodeFormat = resource.StandardEpisodeFormat,
+ //DailyEpisodeFormat = resource.DailyEpisodeFormat,
+ //AnimeEpisodeFormat = resource.AnimeEpisodeFormat,
+ //SeriesFolderFormat = resource.SeriesFolderFormat,
+ //SeasonFolderFormat = resource.SeasonFolderFormat,
+ StandardMovieFormat = resource.StandardMovieFormat,
+ MovieFolderFormat = resource.MovieFolderFormat
};
}
}
diff --git a/src/NzbDrone.Api/Config/NamingSampleResource.cs b/src/NzbDrone.Api/Config/NamingSampleResource.cs
index 1f9c7f066..3430050e0 100644
--- a/src/NzbDrone.Api/Config/NamingSampleResource.cs
+++ b/src/NzbDrone.Api/Config/NamingSampleResource.cs
@@ -9,5 +9,8 @@
public string AnimeMultiEpisodeExample { get; set; }
public string SeriesFolderExample { get; set; }
public string SeasonFolderExample { get; set; }
+
+ public string MovieExample { get; set; }
+ public string MovieFolderExample { get; set; }
}
}
\ No newline at end of file
diff --git a/src/NzbDrone.Api/Frontend/Mappers/BackupFileMapper.cs b/src/NzbDrone.Api/Frontend/Mappers/BackupFileMapper.cs
index 9e4912524..8e8393ef6 100644
--- a/src/NzbDrone.Api/Frontend/Mappers/BackupFileMapper.cs
+++ b/src/NzbDrone.Api/Frontend/Mappers/BackupFileMapper.cs
@@ -25,7 +25,7 @@ namespace NzbDrone.Api.Frontend.Mappers
public override bool CanHandle(string resourceUrl)
{
- return resourceUrl.StartsWith("/backup/") && resourceUrl.ContainsIgnoreCase("nzbdrone_backup_") && resourceUrl.EndsWith(".zip");
+ return resourceUrl.StartsWith("/backup/") && resourceUrl.ContainsIgnoreCase("radarr_backup_") && resourceUrl.EndsWith(".zip");
}
}
}
\ No newline at end of file
diff --git a/src/NzbDrone.Api/History/HistoryModule.cs b/src/NzbDrone.Api/History/HistoryModule.cs
index d85cf74d8..a17b9963c 100644
--- a/src/NzbDrone.Api/History/HistoryModule.cs
+++ b/src/NzbDrone.Api/History/HistoryModule.cs
@@ -3,6 +3,7 @@ using Nancy;
using NzbDrone.Api.Episodes;
using NzbDrone.Api.Extensions;
using NzbDrone.Api.Series;
+using NzbDrone.Api.Movie;
using NzbDrone.Core.Datastore;
using NzbDrone.Core.DecisionEngine;
using NzbDrone.Core.Download;
@@ -34,12 +35,18 @@ namespace NzbDrone.Api.History
resource.Series = model.Series.ToResource();
resource.Episode = model.Episode.ToResource();
+ resource.Movie = model.Movie.ToResource();
if (model.Series != null)
{
resource.QualityCutoffNotMet = _qualityUpgradableSpecification.CutoffNotMet(model.Series.Profile.Value, model.Quality);
}
+ if (model.Movie != null)
+ {
+ resource.QualityCutoffNotMet = _qualityUpgradableSpecification.CutoffNotMet(model.Movie.Profile.Value, model.Quality);
+ }
+
return resource;
}
@@ -47,6 +54,8 @@ namespace NzbDrone.Api.History
{
var episodeId = Request.Query.EpisodeId;
+ var movieId = Request.Query.MovieId;
+
var pagingSpec = pagingResource.MapToPagingSpec("date", SortDirection.Descending);
if (pagingResource.FilterKey == "eventType")
@@ -61,6 +70,12 @@ namespace NzbDrone.Api.History
pagingSpec.FilterExpression = h => h.EpisodeId == i;
}
+ if (movieId.HasValue)
+ {
+ int i = (int)movieId;
+ pagingSpec.FilterExpression = h => h.MovieId == i;
+ }
+
return ApplyToPage(_historyService.Paged, pagingSpec, MapToResource);
}
diff --git a/src/NzbDrone.Api/History/HistoryResource.cs b/src/NzbDrone.Api/History/HistoryResource.cs
index dba4149dd..93ec372c7 100644
--- a/src/NzbDrone.Api/History/HistoryResource.cs
+++ b/src/NzbDrone.Api/History/HistoryResource.cs
@@ -3,6 +3,7 @@ using System.Collections.Generic;
using NzbDrone.Api.Episodes;
using NzbDrone.Api.REST;
using NzbDrone.Api.Series;
+using NzbDrone.Api.Movie;
using NzbDrone.Core.History;
using NzbDrone.Core.Qualities;
@@ -12,6 +13,7 @@ namespace NzbDrone.Api.History
public class HistoryResource : RestResource
{
public int EpisodeId { get; set; }
+ public int MovieId { get; set; }
public int SeriesId { get; set; }
public string SourceTitle { get; set; }
public QualityModel Quality { get; set; }
@@ -22,7 +24,7 @@ namespace NzbDrone.Api.History
public HistoryEventType EventType { get; set; }
public Dictionary Data { get; set; }
-
+ public MovieResource Movie { get; set; }
public EpisodeResource Episode { get; set; }
public SeriesResource Series { get; set; }
}
@@ -39,6 +41,7 @@ namespace NzbDrone.Api.History
EpisodeId = model.EpisodeId,
SeriesId = model.SeriesId,
+ MovieId = model.MovieId,
SourceTitle = model.SourceTitle,
Quality = model.Quality,
//QualityCutoffNotMet
diff --git a/src/NzbDrone.Api/Indexers/ReleaseModule.cs b/src/NzbDrone.Api/Indexers/ReleaseModule.cs
index 5729af932..7f92215fb 100644
--- a/src/NzbDrone.Api/Indexers/ReleaseModule.cs
+++ b/src/NzbDrone.Api/Indexers/ReleaseModule.cs
@@ -26,6 +26,7 @@ namespace NzbDrone.Api.Indexers
private readonly Logger _logger;
private readonly ICached _remoteEpisodeCache;
+ private readonly ICached _remoteMovieCache;
public ReleaseModule(IFetchAndParseRss rssFetcherAndParser,
ISearchForNzb nzbSearchService,
@@ -49,6 +50,7 @@ namespace NzbDrone.Api.Indexers
PostValidator.RuleFor(s => s.Guid).NotEmpty();
_remoteEpisodeCache = cacheManager.GetCache(GetType(), "remoteEpisodes");
+ _remoteMovieCache = cacheManager.GetCache(GetType(), "remoteMovies");
}
private Response DownloadRelease(ReleaseResource release)
@@ -59,7 +61,26 @@ namespace NzbDrone.Api.Indexers
{
_logger.Debug("Couldn't find requested release in cache, cache timeout probably expired.");
- return new NotFoundResponse();
+ var remoteMovie = _remoteMovieCache.Find(release.Guid);
+
+ if (remoteMovie == null)
+ {
+ return new NotFoundResponse();
+ }
+
+ try
+ {
+ _downloadService.DownloadReport(remoteMovie);
+ }
+ catch (ReleaseDownloadException ex)
+ {
+ _logger.Error(ex, ex.Message);
+ throw new NzbDroneClientException(HttpStatusCode.Conflict, "Getting release from indexer failed");
+ }
+
+ return release.AsResponse();
+
+
}
try
@@ -82,6 +103,11 @@ namespace NzbDrone.Api.Indexers
return GetEpisodeReleases(Request.Query.episodeId);
}
+ if (Request.Query.movieId != null)
+ {
+ return GetMovieReleases(Request.Query.movieId);
+ }
+
return GetRss();
}
@@ -102,6 +128,27 @@ namespace NzbDrone.Api.Indexers
return new List();
}
+ private List GetMovieReleases(int movieId)
+ {
+ try
+ {
+ var decisions = _nzbSearchService.MovieSearch(movieId, true);
+ var prioritizedDecisions = _prioritizeDownloadDecision.PrioritizeDecisionsForMovies(decisions);
+
+ return MapDecisions(prioritizedDecisions);
+ }
+ catch (NotImplementedException ex)
+ {
+ _logger.Error(ex, "One or more indexer you selected does not support movie search yet: " + ex.Message);
+ }
+ catch (Exception ex)
+ {
+ _logger.Error(ex, "Movie search failed: " + ex.Message);
+ }
+
+ return new List();
+ }
+
private List GetRss()
{
var reports = _rssFetcherAndParser.Fetch();
@@ -113,7 +160,15 @@ namespace NzbDrone.Api.Indexers
protected override ReleaseResource MapDecision(DownloadDecision decision, int initialWeight)
{
- _remoteEpisodeCache.Set(decision.RemoteEpisode.Release.Guid, decision.RemoteEpisode, TimeSpan.FromMinutes(30));
+ if (decision.IsForMovie)
+ {
+ _remoteMovieCache.Set(decision.RemoteMovie.Release.Guid, decision.RemoteMovie, TimeSpan.FromMinutes(30));
+ }
+ else
+ {
+ _remoteEpisodeCache.Set(decision.RemoteEpisode.Release.Guid, decision.RemoteEpisode, TimeSpan.FromMinutes(30));
+ }
+
return base.MapDecision(decision, initialWeight);
}
}
diff --git a/src/NzbDrone.Api/Indexers/ReleaseResource.cs b/src/NzbDrone.Api/Indexers/ReleaseResource.cs
index b951b0fe0..2be0acbb9 100644
--- a/src/NzbDrone.Api/Indexers/ReleaseResource.cs
+++ b/src/NzbDrone.Api/Indexers/ReleaseResource.cs
@@ -24,6 +24,7 @@ namespace NzbDrone.Api.Indexers
public string Indexer { get; set; }
public string ReleaseGroup { get; set; }
public string ReleaseHash { get; set; }
+ public string Edition { get; set; }
public string Title { get; set; }
public bool FullSeason { get; set; }
public int SeasonNumber { get; set; }
@@ -86,6 +87,60 @@ namespace NzbDrone.Api.Indexers
var parsedEpisodeInfo = model.RemoteEpisode.ParsedEpisodeInfo;
var remoteEpisode = model.RemoteEpisode;
var torrentInfo = (model.RemoteEpisode.Release as TorrentInfo) ?? new TorrentInfo();
+ var downloadAllowed = model.RemoteEpisode.DownloadAllowed;
+ if (model.IsForMovie)
+ {
+ downloadAllowed = model.RemoteMovie.DownloadAllowed;
+ var parsedMovieInfo = model.RemoteMovie.ParsedMovieInfo;
+
+ return new ReleaseResource
+ {
+ Guid = releaseInfo.Guid,
+ Quality = parsedMovieInfo.Quality,
+ QualityWeight = parsedMovieInfo.Quality.Quality.Id, //Id kinda hacky for wheight, but what you gonna do? TODO: Fix this shit!
+ Age = releaseInfo.Age,
+ AgeHours = releaseInfo.AgeHours,
+ AgeMinutes = releaseInfo.AgeMinutes,
+ Size = releaseInfo.Size,
+ IndexerId = releaseInfo.IndexerId,
+ Indexer = releaseInfo.Indexer,
+ ReleaseGroup = parsedMovieInfo.ReleaseGroup,
+ ReleaseHash = parsedMovieInfo.ReleaseHash,
+ Title = releaseInfo.Title,
+ //FullSeason = parsedMovieInfo.FullSeason,
+ //SeasonNumber = parsedMovieInfo.SeasonNumber,
+ Language = parsedMovieInfo.Language,
+ AirDate = "",
+ SeriesTitle = parsedMovieInfo.MovieTitle,
+ EpisodeNumbers = new int[0],
+ AbsoluteEpisodeNumbers = new int[0],
+ Approved = model.Approved,
+ TemporarilyRejected = model.TemporarilyRejected,
+ Rejected = model.Rejected,
+ TvdbId = releaseInfo.TvdbId,
+ TvRageId = releaseInfo.TvRageId,
+ Rejections = model.Rejections.Select(r => r.Reason).ToList(),
+ PublishDate = releaseInfo.PublishDate,
+ CommentUrl = releaseInfo.CommentUrl,
+ DownloadUrl = releaseInfo.DownloadUrl,
+ InfoUrl = releaseInfo.InfoUrl,
+ DownloadAllowed = downloadAllowed,
+ //ReleaseWeight
+
+ MagnetUrl = torrentInfo.MagnetUrl,
+ InfoHash = torrentInfo.InfoHash,
+ Seeders = torrentInfo.Seeders,
+ Leechers = (torrentInfo.Peers.HasValue && torrentInfo.Seeders.HasValue) ? (torrentInfo.Peers.Value - torrentInfo.Seeders.Value) : (int?)null,
+ Protocol = releaseInfo.DownloadProtocol,
+
+ Edition = parsedMovieInfo.Edition,
+
+ IsDaily = false,
+ IsAbsoluteNumbering = false,
+ IsPossibleSpecialEpisode = false,
+ //Special = parsedMovieInfo.Special,
+ };
+ }
// TODO: Clean this mess up. don't mix data from multiple classes, use sub-resources instead? (Got a huge Deja Vu, didn't we talk about this already once?)
return new ReleaseResource
@@ -119,7 +174,7 @@ namespace NzbDrone.Api.Indexers
CommentUrl = releaseInfo.CommentUrl,
DownloadUrl = releaseInfo.DownloadUrl,
InfoUrl = releaseInfo.InfoUrl,
- DownloadAllowed = remoteEpisode.DownloadAllowed,
+ DownloadAllowed = downloadAllowed,
//ReleaseWeight
MagnetUrl = torrentInfo.MagnetUrl,
diff --git a/src/NzbDrone.Api/Movies/MovieEditorModule.cs b/src/NzbDrone.Api/Movies/MovieEditorModule.cs
new file mode 100644
index 000000000..ca744a099
--- /dev/null
+++ b/src/NzbDrone.Api/Movies/MovieEditorModule.cs
@@ -0,0 +1,31 @@
+using System.Collections.Generic;
+using System.Linq;
+using Nancy;
+using NzbDrone.Api.Extensions;
+using NzbDrone.Core.Tv;
+
+namespace NzbDrone.Api.Movie
+{
+ public class MovieEditorModule : NzbDroneApiModule
+ {
+ private readonly IMovieService _movieService;
+
+ public MovieEditorModule(IMovieService movieService)
+ : base("/movie/editor")
+ {
+ _movieService = movieService;
+ Put["/"] = Movie => SaveAll();
+ }
+
+ private Response SaveAll()
+ {
+ var resources = Request.Body.FromJson>();
+
+ var Movie = resources.Select(MovieResource => MovieResource.ToModel(_movieService.GetMovie(MovieResource.Id))).ToList();
+
+ return _movieService.UpdateMovie(Movie)
+ .ToResource()
+ .AsResponse(HttpStatusCode.Accepted);
+ }
+ }
+}
diff --git a/src/NzbDrone.Api/Movies/MovieFileModule.cs b/src/NzbDrone.Api/Movies/MovieFileModule.cs
new file mode 100644
index 000000000..a45fbefad
--- /dev/null
+++ b/src/NzbDrone.Api/Movies/MovieFileModule.cs
@@ -0,0 +1,89 @@
+using System.Collections.Generic;
+using System.IO;
+using NLog;
+using NzbDrone.Api.REST;
+using NzbDrone.Api.Movie;
+using NzbDrone.Core.Datastore.Events;
+using NzbDrone.Core.MediaFiles;
+using NzbDrone.Core.MediaFiles.Events;
+using NzbDrone.Core.Messaging.Events;
+using NzbDrone.Core.Tv;
+using NzbDrone.Core.DecisionEngine;
+using NzbDrone.SignalR;
+
+namespace NzbDrone.Api.EpisodeFiles
+{
+ public class MovieFileModule : NzbDroneRestModuleWithSignalR
+ //IHandle
+ {
+ private readonly IMediaFileService _mediaFileService;
+ private readonly IRecycleBinProvider _recycleBinProvider;
+ private readonly IMovieService _seriesService;
+ private readonly IQualityUpgradableSpecification _qualityUpgradableSpecification;
+ private readonly Logger _logger;
+
+ public MovieFileModule(IBroadcastSignalRMessage signalRBroadcaster,
+ IMediaFileService mediaFileService,
+ IRecycleBinProvider recycleBinProvider,
+ IMovieService seriesService,
+ IQualityUpgradableSpecification qualityUpgradableSpecification,
+ Logger logger)
+ : base(signalRBroadcaster)
+ {
+ _mediaFileService = mediaFileService;
+ _recycleBinProvider = recycleBinProvider;
+ _seriesService = seriesService;
+ _qualityUpgradableSpecification = qualityUpgradableSpecification;
+ _logger = logger;
+ /*GetResourceById = GetEpisodeFile;
+ GetResourceAll = GetEpisodeFiles;
+ UpdateResource = SetQuality;*/
+ DeleteResource = DeleteEpisodeFile;
+ }
+
+ /*private EpisodeFileResource GetEpisodeFile(int id)
+ {
+ var episodeFile = _mediaFileService.Get(id);
+ var series = _seriesService.GetSeries(episodeFile.SeriesId);
+
+ return episodeFile.ToResource(series, _qualityUpgradableSpecification);
+ }
+
+ private List GetEpisodeFiles()
+ {
+ if (!Request.Query.SeriesId.HasValue)
+ {
+ throw new BadRequestException("seriesId is missing");
+ }
+
+ var seriesId = (int)Request.Query.SeriesId;
+
+ var series = _seriesService.GetSeries(seriesId);
+
+ return _mediaFileService.GetFilesBySeries(seriesId).ConvertAll(f => f.ToResource(series, _qualityUpgradableSpecification));
+ }
+
+ private void SetQuality(EpisodeFileResource episodeFileResource)
+ {
+ var episodeFile = _mediaFileService.Get(episodeFileResource.Id);
+ episodeFile.Quality = episodeFileResource.Quality;
+ _mediaFileService.Update(episodeFile);
+ }*/
+
+ private void DeleteEpisodeFile(int id)
+ {
+ var episodeFile = _mediaFileService.GetMovie(id);
+ var series = _seriesService.GetMovie(episodeFile.MovieId);
+ var fullPath = Path.Combine(series.Path, episodeFile.RelativePath);
+
+ _logger.Info("Deleting episode file: {0}", fullPath);
+ _recycleBinProvider.DeleteFile(fullPath);
+ _mediaFileService.Delete(episodeFile, DeleteMediaFileReason.Manual);
+ }
+
+ public void Handle(EpisodeFileAddedEvent message)
+ {
+ BroadcastResourceChange(ModelAction.Updated, message.EpisodeFile.Id);
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/NzbDrone.Api/Movies/MovieModule.cs b/src/NzbDrone.Api/Movies/MovieModule.cs
new file mode 100644
index 000000000..2a4d405fc
--- /dev/null
+++ b/src/NzbDrone.Api/Movies/MovieModule.cs
@@ -0,0 +1,11 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+
+namespace NzbDrone.Api.Movies
+{
+ class MovieModule
+ {
+ }
+}
diff --git a/src/NzbDrone.Api/Movies/RenameMovieModule.cs b/src/NzbDrone.Api/Movies/RenameMovieModule.cs
new file mode 100644
index 000000000..8736cccb0
--- /dev/null
+++ b/src/NzbDrone.Api/Movies/RenameMovieModule.cs
@@ -0,0 +1,35 @@
+using NzbDrone.Api.REST;
+using NzbDrone.Core.MediaFiles;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+
+namespace NzbDrone.Api.Movies
+{
+ public class RenameMovieModule : NzbDroneRestModule
+ {
+ private readonly IRenameMovieFileService _renameMovieFileService;
+
+ public RenameMovieModule(IRenameMovieFileService renameMovieFileService)
+ : base("rename")
+ {
+ _renameMovieFileService = renameMovieFileService;
+
+ GetResourceAll = GetMovies; //TODO: GetResourceSingle?
+ }
+
+ private List GetMovies()
+ {
+ if(!Request.Query.MovieId.HasValue)
+ {
+ throw new BadRequestException("movieId is missing");
+ }
+
+ var movieId = (int)Request.Query.MovieId;
+
+ return _renameMovieFileService.GetRenamePreviews(movieId).ToResource();
+ }
+
+ }
+}
diff --git a/src/NzbDrone.Api/Movies/RenameMovieResource.cs b/src/NzbDrone.Api/Movies/RenameMovieResource.cs
new file mode 100644
index 000000000..d71f1bbcf
--- /dev/null
+++ b/src/NzbDrone.Api/Movies/RenameMovieResource.cs
@@ -0,0 +1,35 @@
+using NzbDrone.Api.REST;
+using System.Collections.Generic;
+using System.Linq;
+
+namespace NzbDrone.Api.Movies
+{
+ public class RenameMovieResource : RestResource
+ {
+ public int MovieId { get; set; }
+ public int MovieFileId { get; set; }
+ public string ExistingPath { get; set; }
+ public string NewPath { get; set; }
+ }
+
+ public static class RenameMovieResourceMapper
+ {
+ public static RenameMovieResource ToResource(this Core.MediaFiles.RenameMovieFilePreview model)
+ {
+ if (model == null) return null;
+
+ return new RenameMovieResource
+ {
+ MovieId = model.MovieId,
+ MovieFileId = model.MovieFileId,
+ ExistingPath = model.ExistingPath,
+ NewPath = model.NewPath
+ };
+ }
+
+ public static List ToResource(this IEnumerable models)
+ {
+ return models.Select(ToResource).ToList();
+ }
+ }
+}
diff --git a/src/NzbDrone.Api/NzbDrone.Api.csproj b/src/NzbDrone.Api/NzbDrone.Api.csproj
index 4ade4bcdf..6a61d84fc 100644
--- a/src/NzbDrone.Api/NzbDrone.Api.csproj
+++ b/src/NzbDrone.Api/NzbDrone.Api.csproj
@@ -116,6 +116,11 @@
+
+
+
+
+
@@ -228,11 +233,15 @@
+
+
+
+
diff --git a/src/NzbDrone.Api/Properties/AssemblyInfo.cs b/src/NzbDrone.Api/Properties/AssemblyInfo.cs
index 6149a06c4..300ee6fc1 100644
--- a/src/NzbDrone.Api/Properties/AssemblyInfo.cs
+++ b/src/NzbDrone.Api/Properties/AssemblyInfo.cs
@@ -6,6 +6,5 @@ using System.Runtime.InteropServices;
[assembly: Guid("4c0922d7-979e-4ff7-b44b-b8ac2100eeb5")]
-[assembly: AssemblyVersion("10.0.0.*")]
[assembly: InternalsVisibleTo("NzbDrone.Core")]
diff --git a/src/NzbDrone.Api/Queue/QueueResource.cs b/src/NzbDrone.Api/Queue/QueueResource.cs
index cf1356c49..e90a9bace 100644
--- a/src/NzbDrone.Api/Queue/QueueResource.cs
+++ b/src/NzbDrone.Api/Queue/QueueResource.cs
@@ -4,6 +4,7 @@ using NzbDrone.Api.REST;
using NzbDrone.Core.Qualities;
using NzbDrone.Api.Series;
using NzbDrone.Api.Episodes;
+using NzbDrone.Api.Movie;
using NzbDrone.Core.Download.TrackedDownloads;
using NzbDrone.Core.Indexers;
using System.Linq;
@@ -14,6 +15,7 @@ namespace NzbDrone.Api.Queue
{
public SeriesResource Series { get; set; }
public EpisodeResource Episode { get; set; }
+ public MovieResource Movie { get; set; }
public QualityModel Quality { get; set; }
public decimal Size { get; set; }
public string Title { get; set; }
@@ -49,7 +51,8 @@ namespace NzbDrone.Api.Queue
TrackedDownloadStatus = model.TrackedDownloadStatus,
StatusMessages = model.StatusMessages,
DownloadId = model.DownloadId,
- Protocol = model.Protocol
+ Protocol = model.Protocol,
+ Movie = model.Movie.ToResource()
};
}
diff --git a/src/NzbDrone.Api/Series/MovieFileResource.cs b/src/NzbDrone.Api/Series/MovieFileResource.cs
new file mode 100644
index 000000000..848d31ab4
--- /dev/null
+++ b/src/NzbDrone.Api/Series/MovieFileResource.cs
@@ -0,0 +1,86 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using NzbDrone.Api.REST;
+using NzbDrone.Core.MediaCover;
+using NzbDrone.Core.Tv;
+using NzbDrone.Core.Qualities;
+using NzbDrone.Api.Series;
+using NzbDrone.Core.MediaFiles;
+
+namespace NzbDrone.Api.Movie
+{
+ public class MovieFileResource : RestResource
+ {
+ public MovieFileResource()
+ {
+
+ }
+
+ //Todo: Sorters should be done completely on the client
+ //Todo: Is there an easy way to keep IgnoreArticlesWhenSorting in sync between, Series, History, Missing?
+ //Todo: We should get the entire Profile instead of ID and Name separately
+
+ public int MovieId { get; set; }
+ public string RelativePath { get; set; }
+ public string Path { get; set; }
+ public long Size { get; set; }
+ public DateTime DateAdded { get; set; }
+ public string SceneName { get; set; }
+ public string ReleaseGroup { get; set; }
+ public QualityModel Quality { get; set; }
+ public MovieResource Movie { get; set; }
+ public string Edition { get; set; }
+ public Core.MediaFiles.MediaInfo.MediaInfoModel MediaInfo { get; set; }
+
+ //TODO: Add series statistics as a property of the series (instead of individual properties)
+ }
+
+ public static class MovieFileResourceMapper
+ {
+ public static MovieFileResource ToResource(this MovieFile model)
+ {
+ if (model == null) return null;
+
+ MovieResource movie = null;
+
+ if (model.Movie != null)
+ {
+ model.Movie.LazyLoad();
+ if (model.Movie.Value != null)
+ {
+ //movie = model.Movie.Value.ToResource();
+ }
+ }
+
+ return new MovieFileResource
+ {
+ Id = model.Id,
+ RelativePath = model.RelativePath,
+ Path = model.Path,
+ Size = model.Size,
+ DateAdded = model.DateAdded,
+ ReleaseGroup = model.ReleaseGroup,
+ Quality = model.Quality,
+ Movie = movie,
+ MediaInfo = model.MediaInfo,
+ Edition = model.Edition
+ };
+ }
+
+ public static MovieFile ToModel(this MovieFileResource resource)
+ {
+ if (resource == null) return null;
+
+ return new MovieFile
+ {
+
+ };
+ }
+
+ public static List ToResource(this IEnumerable movies)
+ {
+ return movies.Select(ToResource).ToList();
+ }
+ }
+}
diff --git a/src/NzbDrone.Api/Series/MovieLookupModule.cs b/src/NzbDrone.Api/Series/MovieLookupModule.cs
new file mode 100644
index 000000000..1120b3046
--- /dev/null
+++ b/src/NzbDrone.Api/Series/MovieLookupModule.cs
@@ -0,0 +1,44 @@
+using System.Collections.Generic;
+using Nancy;
+using NzbDrone.Api.Extensions;
+using NzbDrone.Core.MediaCover;
+using NzbDrone.Core.MetadataSource;
+using System.Linq;
+
+namespace NzbDrone.Api.Movie
+{
+ public class MovieLookupModule : NzbDroneRestModule
+ {
+ private readonly ISearchForNewMovie _searchProxy;
+
+ public MovieLookupModule(ISearchForNewMovie searchProxy)
+ : base("/movies/lookup")
+ {
+ _searchProxy = searchProxy;
+ Get["/"] = x => Search();
+ }
+
+
+ private Response Search()
+ {
+ var imdbResults = _searchProxy.SearchForNewMovie((string)Request.Query.term);
+ return MapToResource(imdbResults).AsResponse();
+ }
+
+
+ private static IEnumerable MapToResource(IEnumerable movies)
+ {
+ foreach (var currentSeries in movies)
+ {
+ var resource = currentSeries.ToResource();
+ var poster = currentSeries.Images.FirstOrDefault(c => c.CoverType == MediaCoverTypes.Poster);
+ if (poster != null)
+ {
+ resource.RemotePoster = poster.Url;
+ }
+
+ yield return resource;
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/NzbDrone.Api/Series/MovieModule.cs b/src/NzbDrone.Api/Series/MovieModule.cs
new file mode 100644
index 000000000..a40695a1c
--- /dev/null
+++ b/src/NzbDrone.Api/Series/MovieModule.cs
@@ -0,0 +1,225 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using FluentValidation;
+using NzbDrone.Common.Extensions;
+using NzbDrone.Core.Datastore.Events;
+using NzbDrone.Core.MediaCover;
+using NzbDrone.Core.MediaFiles;
+using NzbDrone.Core.MediaFiles.Events;
+using NzbDrone.Core.Messaging.Events;
+using NzbDrone.Core.MovieStats;
+using NzbDrone.Core.Tv;
+using NzbDrone.Core.Tv.Events;
+using NzbDrone.Core.Validation.Paths;
+using NzbDrone.Core.DataAugmentation.Scene;
+using NzbDrone.Core.Validation;
+using NzbDrone.SignalR;
+
+namespace NzbDrone.Api.Movie
+{
+ public class MovieModule : NzbDroneRestModuleWithSignalR,
+ IHandle,
+ IHandle,
+ IHandle,
+ IHandle,
+ IHandle,
+ IHandle,
+ IHandle
+
+ {
+ private readonly IMovieService _moviesService;
+ private readonly IMovieStatisticsService _moviesStatisticsService;
+ private readonly IMapCoversToLocal _coverMapper;
+
+ public MovieModule(IBroadcastSignalRMessage signalRBroadcaster,
+ IMovieService moviesService,
+ IMovieStatisticsService moviesStatisticsService,
+ ISceneMappingService sceneMappingService,
+ IMapCoversToLocal coverMapper,
+ RootFolderValidator rootFolderValidator,
+ MoviePathValidator moviesPathValidator,
+ MovieExistsValidator moviesExistsValidator,
+ DroneFactoryValidator droneFactoryValidator,
+ MovieAncestorValidator moviesAncestorValidator,
+ ProfileExistsValidator profileExistsValidator
+ )
+ : base(signalRBroadcaster)
+ {
+ _moviesService = moviesService;
+ _moviesStatisticsService = moviesStatisticsService;
+
+ _coverMapper = coverMapper;
+
+ GetResourceAll = AllMovie;
+ GetResourceById = GetMovie;
+ CreateResource = AddMovie;
+ UpdateResource = UpdateMovie;
+ DeleteResource = DeleteMovie;
+
+ Validation.RuleBuilderExtensions.ValidId(SharedValidator.RuleFor(s => s.ProfileId));
+
+ SharedValidator.RuleFor(s => s.Path)
+ .Cascade(CascadeMode.StopOnFirstFailure)
+ .IsValidPath()
+ .SetValidator(rootFolderValidator)
+ .SetValidator(moviesPathValidator)
+ .SetValidator(droneFactoryValidator)
+ .SetValidator(moviesAncestorValidator)
+ .When(s => !s.Path.IsNullOrWhiteSpace());
+
+ SharedValidator.RuleFor(s => s.ProfileId).SetValidator(profileExistsValidator);
+
+ PostValidator.RuleFor(s => s.Path).IsValidPath().When(s => s.RootFolderPath.IsNullOrWhiteSpace());
+ PostValidator.RuleFor(s => s.RootFolderPath).IsValidPath().When(s => s.Path.IsNullOrWhiteSpace());
+ PostValidator.RuleFor(s => s.Title).NotEmpty();
+ PostValidator.RuleFor(s => s.TmdbId).NotNull().NotEmpty().SetValidator(moviesExistsValidator);
+
+ PutValidator.RuleFor(s => s.Path).IsValidPath();
+ }
+
+ private MovieResource GetMovie(int id)
+ {
+ var movies = _moviesService.GetMovie(id);
+ return MapToResource(movies);
+ }
+
+ private MovieResource MapToResource(Core.Tv.Movie movies)
+ {
+ if (movies == null) return null;
+
+ var resource = movies.ToResource();
+ MapCoversToLocal(resource);
+ FetchAndLinkMovieStatistics(resource);
+ PopulateAlternateTitles(resource);
+
+ return resource;
+ }
+
+ private List AllMovie()
+ {
+ var moviesStats = _moviesStatisticsService.MovieStatistics();
+ var moviesResources = _moviesService.GetAllMovies().ToResource();
+
+ MapCoversToLocal(moviesResources.ToArray());
+ LinkMovieStatistics(moviesResources, moviesStats);
+ PopulateAlternateTitles(moviesResources);
+
+ return moviesResources;
+ }
+
+ private int AddMovie(MovieResource moviesResource)
+ {
+ var model = moviesResource.ToModel();
+
+ return _moviesService.AddMovie(model).Id;
+ }
+
+ private void UpdateMovie(MovieResource moviesResource)
+ {
+ var model = moviesResource.ToModel(_moviesService.GetMovie(moviesResource.Id));
+
+ _moviesService.UpdateMovie(model);
+
+ BroadcastResourceChange(ModelAction.Updated, moviesResource);
+ }
+
+ private void DeleteMovie(int id)
+ {
+ var deleteFiles = false;
+ var deleteFilesQuery = Request.Query.deleteFiles;
+
+ if (deleteFilesQuery.HasValue)
+ {
+ deleteFiles = Convert.ToBoolean(deleteFilesQuery.Value);
+ }
+
+ _moviesService.DeleteMovie(id, deleteFiles);
+ }
+
+ private void MapCoversToLocal(params MovieResource[] movies)
+ {
+ foreach (var moviesResource in movies)
+ {
+ _coverMapper.ConvertToLocalUrls(moviesResource.Id, moviesResource.Images);
+ }
+ }
+
+ private void FetchAndLinkMovieStatistics(MovieResource resource)
+ {
+ LinkMovieStatistics(resource, _moviesStatisticsService.MovieStatistics(resource.Id));
+ }
+
+ private void LinkMovieStatistics(List resources, List moviesStatistics)
+ {
+ var dictMovieStats = moviesStatistics.ToDictionary(v => v.MovieId);
+
+ foreach (var movies in resources)
+ {
+ var stats = dictMovieStats.GetValueOrDefault(movies.Id);
+ if (stats == null) continue;
+
+ LinkMovieStatistics(movies, stats);
+ }
+ }
+
+ private void LinkMovieStatistics(MovieResource resource, MovieStatistics moviesStatistics)
+ {
+ resource.SizeOnDisk = moviesStatistics.SizeOnDisk;
+ }
+
+ private void PopulateAlternateTitles(List resources)
+ {
+ foreach (var resource in resources)
+ {
+ PopulateAlternateTitles(resource);
+ }
+ }
+
+ private void PopulateAlternateTitles(MovieResource resource)
+ {
+ //var mappings = null;//_sceneMappingService.FindByTvdbId(resource.TvdbId);
+
+ //if (mappings == null) return;
+
+ //resource.AlternateTitles = mappings.Select(v => new AlternateTitleResource { Title = v.Title, SeasonNumber = v.SeasonNumber, SceneSeasonNumber = v.SceneSeasonNumber }).ToList();
+ }
+
+ public void Handle(EpisodeImportedEvent message)
+ {
+ //BroadcastResourceChange(ModelAction.Updated, message.ImportedEpisode.MovieId);
+ }
+
+ public void Handle(EpisodeFileDeletedEvent message)
+ {
+ if (message.Reason == DeleteMediaFileReason.Upgrade) return;
+
+ //BroadcastResourceChange(ModelAction.Updated, message.EpisodeFile.MovieId);
+ }
+
+ public void Handle(MovieUpdatedEvent message)
+ {
+ BroadcastResourceChange(ModelAction.Updated, message.Movie.Id);
+ }
+
+ public void Handle(MovieEditedEvent message)
+ {
+ BroadcastResourceChange(ModelAction.Updated, message.Movie.Id);
+ }
+
+ public void Handle(MovieDeletedEvent message)
+ {
+ BroadcastResourceChange(ModelAction.Deleted, message.Movie.ToResource());
+ }
+
+ public void Handle(MovieRenamedEvent message)
+ {
+ BroadcastResourceChange(ModelAction.Updated, message.Movie.Id);
+ }
+
+ public void Handle(MediaCoversUpdatedEvent message)
+ {
+ //BroadcastResourceChange(ModelAction.Updated, message.Movie.Id);
+ }
+ }
+}
diff --git a/src/NzbDrone.Api/Series/MovieResource.cs b/src/NzbDrone.Api/Series/MovieResource.cs
new file mode 100644
index 000000000..c0cc8d623
--- /dev/null
+++ b/src/NzbDrone.Api/Series/MovieResource.cs
@@ -0,0 +1,220 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using NzbDrone.Api.REST;
+using NzbDrone.Core.MediaCover;
+using NzbDrone.Core.Tv;
+using NzbDrone.Api.Series;
+
+namespace NzbDrone.Api.Movie
+{
+ public class MovieResource : RestResource
+ {
+ public MovieResource()
+ {
+ Monitored = true;
+ }
+
+ //Todo: Sorters should be done completely on the client
+ //Todo: Is there an easy way to keep IgnoreArticlesWhenSorting in sync between, Series, History, Missing?
+ //Todo: We should get the entire Profile instead of ID and Name separately
+
+ //View Only
+ public string Title { get; set; }
+ public List AlternateTitles { get; set; }
+ public string SortTitle { get; set; }
+ public long? SizeOnDisk { get; set; }
+ public MovieStatusType Status { get; set; }
+ public string Overview { get; set; }
+ public DateTime? InCinemas { get; set; }
+ public DateTime? PhysicalRelease { get; set; }
+ public List Images { get; set; }
+ public string Website { get; set; }
+ public bool Downloaded { get; set; }
+ public string RemotePoster { get; set; }
+ public int Year { get; set; }
+ public bool HasFile { get; set; }
+
+ //View & Edit
+ public string Path { get; set; }
+ public int ProfileId { get; set; }
+
+ //Editing Only
+ public bool Monitored { get; set; }
+ public int Runtime { get; set; }
+ public DateTime? LastInfoSync { get; set; }
+ public string CleanTitle { get; set; }
+ public string ImdbId { get; set; }
+ public int TmdbId { get; set; }
+ public string TitleSlug { get; set; }
+ public string RootFolderPath { get; set; }
+ public string Certification { get; set; }
+ public List Genres { get; set; }
+ public HashSet Tags { get; set; }
+ public DateTime Added { get; set; }
+ public AddMovieOptions AddOptions { get; set; }
+ public Ratings Ratings { get; set; }
+ public List AlternativeTitles { get; set; }
+ public MovieFileResource MovieFile { get; set; }
+
+ //TODO: Add series statistics as a property of the series (instead of individual properties)
+
+ //Used to support legacy consumers
+ public int QualityProfileId
+ {
+ get
+ {
+ return ProfileId;
+ }
+ set
+ {
+ if (value > 0 && ProfileId == 0)
+ {
+ ProfileId = value;
+ }
+ }
+ }
+ }
+
+ public static class MovieResourceMapper
+ {
+ public static MovieResource ToResource(this Core.Tv.Movie model)
+ {
+ if (model == null) return null;
+
+
+ long size = 0;
+ bool downloaded = false;
+ MovieFileResource movieFile = null;
+
+
+ if(model.MovieFile != null)
+ {
+ model.MovieFile.LazyLoad();
+ }
+
+ if (model.MovieFile != null && model.MovieFile.IsLoaded && model.MovieFile.Value != null)
+ {
+ size = model.MovieFile.Value.Size;
+ downloaded = true;
+ movieFile = model.MovieFile.Value.ToResource();
+ }
+
+ return new MovieResource
+ {
+ Id = model.Id,
+ TmdbId = model.TmdbId,
+ Title = model.Title,
+ //AlternateTitles
+ SortTitle = model.SortTitle,
+ InCinemas = model.InCinemas,
+ PhysicalRelease = model.PhysicalRelease,
+ HasFile = model.HasFile,
+ Downloaded = downloaded,
+ //TotalEpisodeCount
+ //EpisodeCount
+ //EpisodeFileCount
+ //SizeOnDisk
+ Status = model.Status,
+ Overview = model.Overview,
+ //NextAiring
+ //PreviousAiring
+ Images = model.Images,
+
+ Year = model.Year,
+
+ Path = model.Path,
+ ProfileId = model.ProfileId,
+
+ Monitored = model.Monitored,
+
+ SizeOnDisk = size,
+
+ Runtime = model.Runtime,
+ LastInfoSync = model.LastInfoSync,
+ CleanTitle = model.CleanTitle,
+ ImdbId = model.ImdbId,
+ TitleSlug = model.TitleSlug,
+ RootFolderPath = model.RootFolderPath,
+ Certification = model.Certification,
+ Website = model.Website,
+ Genres = model.Genres,
+ Tags = model.Tags,
+ Added = model.Added,
+ AddOptions = model.AddOptions,
+ AlternativeTitles = model.AlternativeTitles,
+ Ratings = model.Ratings,
+ MovieFile = movieFile
+ };
+ }
+
+ public static Core.Tv.Movie ToModel(this MovieResource resource)
+ {
+ if (resource == null) return null;
+
+ return new Core.Tv.Movie
+ {
+ Id = resource.Id,
+ TmdbId = resource.TmdbId,
+
+ Title = resource.Title,
+ //AlternateTitles
+ SortTitle = resource.SortTitle,
+ InCinemas = resource.InCinemas,
+ PhysicalRelease = resource.PhysicalRelease,
+ //TotalEpisodeCount
+ //EpisodeCount
+ //EpisodeFileCount
+ //SizeOnDisk
+ Overview = resource.Overview,
+ //NextAiring
+ //PreviousAiring
+ Images = resource.Images,
+
+ Year = resource.Year,
+
+ Path = resource.Path,
+ ProfileId = resource.ProfileId,
+
+ Monitored = resource.Monitored,
+
+ Runtime = resource.Runtime,
+ LastInfoSync = resource.LastInfoSync,
+ CleanTitle = resource.CleanTitle,
+ ImdbId = resource.ImdbId,
+ TitleSlug = resource.TitleSlug,
+ RootFolderPath = resource.RootFolderPath,
+ Certification = resource.Certification,
+ Website = resource.Website,
+ Genres = resource.Genres,
+ Tags = resource.Tags,
+ Added = resource.Added,
+ AddOptions = resource.AddOptions,
+ AlternativeTitles = resource.AlternativeTitles,
+ Ratings = resource.Ratings
+ };
+ }
+
+ public static Core.Tv.Movie ToModel(this MovieResource resource, Core.Tv.Movie movie)
+ {
+ movie.ImdbId = resource.ImdbId;
+ movie.TmdbId = resource.TmdbId;
+
+ movie.Path = resource.Path;
+ movie.ProfileId = resource.ProfileId;
+
+ movie.Monitored = resource.Monitored;
+
+ movie.RootFolderPath = resource.RootFolderPath;
+ movie.Tags = resource.Tags;
+ movie.AddOptions = resource.AddOptions;
+
+ return movie;
+ }
+
+ public static List ToResource(this IEnumerable movies)
+ {
+ return movies.Select(ToResource).ToList();
+ }
+ }
+}
diff --git a/src/NzbDrone.Api/System/Tasks/TaskResource.cs b/src/NzbDrone.Api/System/Tasks/TaskResource.cs
index fda392cae..d4b583aa5 100644
--- a/src/NzbDrone.Api/System/Tasks/TaskResource.cs
+++ b/src/NzbDrone.Api/System/Tasks/TaskResource.cs
@@ -7,7 +7,7 @@ namespace NzbDrone.Api.System.Tasks
{
public string Name { get; set; }
public string TaskName { get; set; }
- public int Interval { get; set; }
+ public double Interval { get; set; }
public DateTime LastExecution { get; set; }
public DateTime NextExecution { get; set; }
}
diff --git a/src/NzbDrone.App.Test/ContainerFixture.cs b/src/NzbDrone.App.Test/ContainerFixture.cs
index 1064d1c5b..e0c01be2f 100644
--- a/src/NzbDrone.App.Test/ContainerFixture.cs
+++ b/src/NzbDrone.App.Test/ContainerFixture.cs
@@ -8,7 +8,7 @@ using NzbDrone.Core.Jobs;
using NzbDrone.Core.Lifecycle;
using NzbDrone.Core.Messaging.Commands;
using NzbDrone.Core.Messaging.Events;
-using NzbDrone.Host;
+using Radarr.Host;
using NzbDrone.Test.Common;
using FluentAssertions;
using System.Linq;
diff --git a/src/NzbDrone.App.Test/NzbDroneProcessServiceFixture.cs b/src/NzbDrone.App.Test/NzbDroneProcessServiceFixture.cs
index 1ee1ee522..dc8eda638 100644
--- a/src/NzbDrone.App.Test/NzbDroneProcessServiceFixture.cs
+++ b/src/NzbDrone.App.Test/NzbDroneProcessServiceFixture.cs
@@ -3,8 +3,9 @@ using Moq;
using NUnit.Framework;
using NzbDrone.Common.Model;
using NzbDrone.Common.Processes;
-using NzbDrone.Host;
+using Radarr.Host;
using NzbDrone.Test.Common;
+using Radarr.Host;
namespace NzbDrone.App.Test
{
diff --git a/src/NzbDrone.App.Test/Properties/AssemblyInfo.cs b/src/NzbDrone.App.Test/Properties/AssemblyInfo.cs
index 86a324eef..0d82bf1bf 100644
--- a/src/NzbDrone.App.Test/Properties/AssemblyInfo.cs
+++ b/src/NzbDrone.App.Test/Properties/AssemblyInfo.cs
@@ -21,4 +21,3 @@ using System.Runtime.InteropServices;
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("b47d34ef-05e8-4826-8a57-9dd05106c964")]
-[assembly: AssemblyVersion("10.0.0.*")]
diff --git a/src/NzbDrone.App.Test/RouterTest.cs b/src/NzbDrone.App.Test/RouterTest.cs
index 0cf7b6c3d..1805875f0 100644
--- a/src/NzbDrone.App.Test/RouterTest.cs
+++ b/src/NzbDrone.App.Test/RouterTest.cs
@@ -3,7 +3,7 @@ using Moq;
using NUnit.Framework;
using NzbDrone.Common;
using NzbDrone.Common.EnvironmentInfo;
-using NzbDrone.Host;
+using Radarr.Host;
using NzbDrone.Test.Common;
namespace NzbDrone.App.Test
diff --git a/src/NzbDrone.Automation.Test/AutomationTest.cs b/src/NzbDrone.Automation.Test/AutomationTest.cs
index 9f493d824..0e0fea564 100644
--- a/src/NzbDrone.Automation.Test/AutomationTest.cs
+++ b/src/NzbDrone.Automation.Test/AutomationTest.cs
@@ -40,7 +40,7 @@ namespace NzbDrone.Automation.Test
_runner.KillAll();
_runner.Start();
- driver.Url = "http://localhost:8989";
+ driver.Url = "http://localhost:7878";
var page = new PageBase(driver);
page.WaitForNoSpinner();
diff --git a/src/NzbDrone.Automation.Test/Properties/AssemblyInfo.cs b/src/NzbDrone.Automation.Test/Properties/AssemblyInfo.cs
index a5d255084..8cba7bd2e 100644
--- a/src/NzbDrone.Automation.Test/Properties/AssemblyInfo.cs
+++ b/src/NzbDrone.Automation.Test/Properties/AssemblyInfo.cs
@@ -20,5 +20,3 @@ using System.Runtime.InteropServices;
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("6b8945f5-f5b5-4729-865d-f958fbd673d9")]
-
-[assembly: AssemblyVersion("10.0.0.*")]
diff --git a/src/NzbDrone.Common.Test/ConfigFileProviderTest.cs b/src/NzbDrone.Common.Test/ConfigFileProviderTest.cs
index 92df06ded..7d0e0442f 100644
--- a/src/NzbDrone.Common.Test/ConfigFileProviderTest.cs
+++ b/src/NzbDrone.Common.Test/ConfigFileProviderTest.cs
@@ -49,7 +49,7 @@ namespace NzbDrone.Common.Test
public void GetValue_Success()
{
const string key = "Port";
- const string value = "8989";
+ const string value = "7878";
var result = Subject.GetValue(key, value);
@@ -60,7 +60,7 @@ namespace NzbDrone.Common.Test
public void GetInt_Success()
{
const string key = "Port";
- const int value = 8989;
+ const int value = 7878;
var result = Subject.GetValueInt(key, value);
@@ -95,7 +95,7 @@ namespace NzbDrone.Common.Test
[Test]
public void GetPort_Success()
{
- const int value = 8989;
+ const int value = 7878;
var result = Subject.Port;
diff --git a/src/NzbDrone.Common.Test/PathExtensionFixture.cs b/src/NzbDrone.Common.Test/PathExtensionFixture.cs
index e3e7fb34a..95e4aebe7 100644
--- a/src/NzbDrone.Common.Test/PathExtensionFixture.cs
+++ b/src/NzbDrone.Common.Test/PathExtensionFixture.cs
@@ -263,7 +263,7 @@ namespace NzbDrone.Common.Test
[Test]
public void GetUpdateClientExePath()
{
- GetIAppDirectoryInfo().GetUpdateClientExePath().Should().BeEquivalentTo(@"C:\Temp\nzbdrone_update\NzbDrone.Update.exe".AsOsAgnostic());
+ GetIAppDirectoryInfo().GetUpdateClientExePath().Should().BeEquivalentTo(@"C:\Temp\nzbdrone_update\Radarr.Update.exe".AsOsAgnostic());
}
[Test]
diff --git a/src/NzbDrone.Common.Test/ServiceFactoryFixture.cs b/src/NzbDrone.Common.Test/ServiceFactoryFixture.cs
index 95b5027ff..d8c5d26a4 100644
--- a/src/NzbDrone.Common.Test/ServiceFactoryFixture.cs
+++ b/src/NzbDrone.Common.Test/ServiceFactoryFixture.cs
@@ -5,7 +5,7 @@ using NzbDrone.Common.EnvironmentInfo;
using NzbDrone.Core.Datastore;
using NzbDrone.Core.Lifecycle;
using NzbDrone.Core.Messaging.Events;
-using NzbDrone.Host;
+using Radarr.Host;
using NzbDrone.Test.Common;
namespace NzbDrone.Common.Test
diff --git a/src/NzbDrone.Common/Cloud/SonarrCloudRequestBuilder.cs b/src/NzbDrone.Common/Cloud/SonarrCloudRequestBuilder.cs
index 5c3712d85..8e6b55e11 100644
--- a/src/NzbDrone.Common/Cloud/SonarrCloudRequestBuilder.cs
+++ b/src/NzbDrone.Common/Cloud/SonarrCloudRequestBuilder.cs
@@ -6,22 +6,33 @@ namespace NzbDrone.Common.Cloud
{
IHttpRequestBuilderFactory Services { get; }
IHttpRequestBuilderFactory SkyHookTvdb { get; }
+ IHttpRequestBuilderFactory TMDB { get; }
+ IHttpRequestBuilderFactory TMDBSingle { get; }
}
public class SonarrCloudRequestBuilder : ISonarrCloudRequestBuilder
{
public SonarrCloudRequestBuilder()
{
- Services = new HttpRequestBuilder("http://services.sonarr.tv/v1/")
+ Services = new HttpRequestBuilder("http://radarr.aeonlucid.com/v1/")
.CreateFactory();
SkyHookTvdb = new HttpRequestBuilder("http://skyhook.sonarr.tv/v1/tvdb/{route}/{language}/")
.SetSegment("language", "en")
.CreateFactory();
+
+ TMDB = new HttpRequestBuilder("https://api.themoviedb.org/3/{route}/{id}{secondaryRoute}")
+ .AddQueryParam("api_key", "1a7373301961d03f97f853a876dd1212")
+ .CreateFactory();
+
+ TMDBSingle = new HttpRequestBuilder("https://api.themoviedb.org/3/{route}")
+ .AddQueryParam("api_key", "1a7373301961d03f97f853a876dd1212")
+ .CreateFactory();
}
public IHttpRequestBuilderFactory Services { get; private set; }
-
public IHttpRequestBuilderFactory SkyHookTvdb { get; private set; }
+ public IHttpRequestBuilderFactory TMDB { get; private set; }
+ public IHttpRequestBuilderFactory TMDBSingle { get; private set; }
}
}
diff --git a/src/NzbDrone.Common/ConsoleService.cs b/src/NzbDrone.Common/ConsoleService.cs
index 321831277..8a16c352b 100644
--- a/src/NzbDrone.Common/ConsoleService.cs
+++ b/src/NzbDrone.Common/ConsoleService.cs
@@ -23,7 +23,7 @@ namespace NzbDrone.Common
Console.WriteLine(" Commands:");
Console.WriteLine(" /{0} Install the application as a Windows Service ({1}).", StartupContext.INSTALL_SERVICE, ServiceProvider.NZBDRONE_SERVICE_NAME);
Console.WriteLine(" /{0} Uninstall already installed Windows Service ({1}).", StartupContext.UNINSTALL_SERVICE, ServiceProvider.NZBDRONE_SERVICE_NAME);
- Console.WriteLine(" /{0} Don't open Sonarr in a browser", StartupContext.NO_BROWSER);
+ Console.WriteLine(" /{0} Don't open Radarr in a browser", StartupContext.NO_BROWSER);
Console.WriteLine(" Run application in console mode.");
}
diff --git a/src/NzbDrone.Common/EnvironmentInfo/AppFolderInfo.cs b/src/NzbDrone.Common/EnvironmentInfo/AppFolderInfo.cs
index 75b75093e..0d35aed70 100644
--- a/src/NzbDrone.Common/EnvironmentInfo/AppFolderInfo.cs
+++ b/src/NzbDrone.Common/EnvironmentInfo/AppFolderInfo.cs
@@ -34,7 +34,7 @@ namespace NzbDrone.Common.EnvironmentInfo
}
else
{
- AppDataFolder = Path.Combine(Environment.GetFolderPath(DATA_SPECIAL_FOLDER, Environment.SpecialFolderOption.None), "NzbDrone");
+ AppDataFolder = Path.Combine(Environment.GetFolderPath(DATA_SPECIAL_FOLDER, Environment.SpecialFolderOption.None), "Radarr");
}
StartUpFolder = new FileInfo(Assembly.GetExecutingAssembly().Location).Directory.FullName;
diff --git a/src/NzbDrone.Common/Extensions/PathExtensions.cs b/src/NzbDrone.Common/Extensions/PathExtensions.cs
index 7e77f9d7e..63dc57884 100644
--- a/src/NzbDrone.Common/Extensions/PathExtensions.cs
+++ b/src/NzbDrone.Common/Extensions/PathExtensions.cs
@@ -13,13 +13,13 @@ namespace NzbDrone.Common.Extensions
private const string NZBDRONE_DB = "nzbdrone.db";
private const string NZBDRONE_LOG_DB = "logs.db";
private const string NLOG_CONFIG_FILE = "nlog.config";
- private const string UPDATE_CLIENT_EXE = "NzbDrone.Update.exe";
+ private const string UPDATE_CLIENT_EXE = "Radarr.Update.exe";
private const string BACKUP_FOLDER = "Backups";
- private static readonly string UPDATE_SANDBOX_FOLDER_NAME = "nzbdrone_update" + Path.DirectorySeparatorChar;
- private static readonly string UPDATE_PACKAGE_FOLDER_NAME = "NzbDrone" + Path.DirectorySeparatorChar;
- private static readonly string UPDATE_BACKUP_FOLDER_NAME = "nzbdrone_backup" + Path.DirectorySeparatorChar;
- private static readonly string UPDATE_BACKUP_APPDATA_FOLDER_NAME = "nzbdrone_appdata_backup" + Path.DirectorySeparatorChar;
+ private static readonly string UPDATE_SANDBOX_FOLDER_NAME = "radarr_update" + Path.DirectorySeparatorChar;
+ private static readonly string UPDATE_PACKAGE_FOLDER_NAME = "Radarr" + Path.DirectorySeparatorChar;
+ private static readonly string UPDATE_BACKUP_FOLDER_NAME = "radarr_backup" + Path.DirectorySeparatorChar;
+ private static readonly string UPDATE_BACKUP_APPDATA_FOLDER_NAME = "radarr_appdata_backup" + Path.DirectorySeparatorChar;
private static readonly string UPDATE_CLIENT_FOLDER_NAME = "NzbDrone.Update" + Path.DirectorySeparatorChar;
private static readonly string UPDATE_LOG_FOLDER_NAME = "UpdateLogs" + Path.DirectorySeparatorChar;
diff --git a/src/NzbDrone.Common/Http/UserAgentBuilder.cs b/src/NzbDrone.Common/Http/UserAgentBuilder.cs
index fa99d03f4..f0cff30e9 100644
--- a/src/NzbDrone.Common/Http/UserAgentBuilder.cs
+++ b/src/NzbDrone.Common/Http/UserAgentBuilder.cs
@@ -9,12 +9,12 @@ namespace NzbDrone.Common.Http
static UserAgentBuilder()
{
- UserAgent = string.Format("Sonarr/{0} ({1} {2})",
+ UserAgent = string.Format("Radarr/{0} ({1} {2})",
BuildInfo.Version,
OsInfo.Os, OsInfo.Version.ToString(2));
- UserAgentSimplified = string.Format("Sonarr/{0}",
+ UserAgentSimplified = string.Format("Radarr/{0}",
BuildInfo.Version.ToString(2));
}
}
-}
\ No newline at end of file
+}
diff --git a/src/NzbDrone.Common/Instrumentation/NzbDroneLogger.cs b/src/NzbDrone.Common/Instrumentation/NzbDroneLogger.cs
index 7c672f725..39febd26c 100644
--- a/src/NzbDrone.Common/Instrumentation/NzbDroneLogger.cs
+++ b/src/NzbDrone.Common/Instrumentation/NzbDroneLogger.cs
@@ -103,9 +103,9 @@ namespace NzbDrone.Common.Instrumentation
private static void RegisterAppFile(IAppFolderInfo appFolderInfo)
{
- RegisterAppFile(appFolderInfo, "appFileInfo", "sonarr.txt", 5, LogLevel.Info);
- RegisterAppFile(appFolderInfo, "appFileDebug", "sonarr.debug.txt", 50, LogLevel.Off);
- RegisterAppFile(appFolderInfo, "appFileTrace", "sonarr.trace.txt", 50, LogLevel.Off);
+ RegisterAppFile(appFolderInfo, "appFileInfo", "radarr.txt", 5, LogLevel.Info);
+ RegisterAppFile(appFolderInfo, "appFileDebug", "radarr.debug.txt", 50, LogLevel.Off);
+ RegisterAppFile(appFolderInfo, "appFileTrace", "radarr.trace.txt", 50, LogLevel.Off);
}
private static LoggingRule RegisterAppFile(IAppFolderInfo appFolderInfo, string name, string fileName, int maxArchiveFiles, LogLevel minLogLevel)
diff --git a/src/NzbDrone.Common/Processes/ProcessProvider.cs b/src/NzbDrone.Common/Processes/ProcessProvider.cs
index 57068c840..50cc89a84 100644
--- a/src/NzbDrone.Common/Processes/ProcessProvider.cs
+++ b/src/NzbDrone.Common/Processes/ProcessProvider.cs
@@ -35,8 +35,8 @@ namespace NzbDrone.Common.Processes
{
private readonly Logger _logger;
- public const string NZB_DRONE_PROCESS_NAME = "NzbDrone";
- public const string NZB_DRONE_CONSOLE_PROCESS_NAME = "NzbDrone.Console";
+ public const string NZB_DRONE_PROCESS_NAME = "Radarr";
+ public const string NZB_DRONE_CONSOLE_PROCESS_NAME = "Radarr.Console";
public ProcessProvider(Logger logger)
{
diff --git a/src/NzbDrone.Common/Properties/AssemblyInfo.cs b/src/NzbDrone.Common/Properties/AssemblyInfo.cs
index e8cdf90c1..7ab20e84b 100644
--- a/src/NzbDrone.Common/Properties/AssemblyInfo.cs
+++ b/src/NzbDrone.Common/Properties/AssemblyInfo.cs
@@ -9,4 +9,3 @@ using System.Runtime.InteropServices;
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("b6eaa144-e13b-42e5-a738-c60d89c0f728")]
-[assembly: AssemblyVersion("10.0.0.*")]
diff --git a/src/NzbDrone.Common/Properties/SharedAssemblyInfo.cs b/src/NzbDrone.Common/Properties/SharedAssemblyInfo.cs
index 9c8e66406..09379201a 100644
--- a/src/NzbDrone.Common/Properties/SharedAssemblyInfo.cs
+++ b/src/NzbDrone.Common/Properties/SharedAssemblyInfo.cs
@@ -2,8 +2,9 @@
using System.Runtime.InteropServices;
[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("sonarr.tv")]
+[assembly: AssemblyCompany("radarr.tv")]
[assembly: AssemblyProduct("NzbDrone")]
+[assembly: AssemblyVersion("0.1.0.*")]
[assembly: AssemblyCopyright("GNU General Public v3")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
diff --git a/src/NzbDrone.Common/ServiceProvider.cs b/src/NzbDrone.Common/ServiceProvider.cs
index b494381c3..8387e6f7c 100644
--- a/src/NzbDrone.Common/ServiceProvider.cs
+++ b/src/NzbDrone.Common/ServiceProvider.cs
@@ -25,7 +25,7 @@ namespace NzbDrone.Common
public class ServiceProvider : IServiceProvider
{
- public const string NZBDRONE_SERVICE_NAME = "NzbDrone";
+ public const string NZBDRONE_SERVICE_NAME = "Radarr";
private readonly IProcessProvider _processProvider;
private readonly Logger _logger;
@@ -78,7 +78,7 @@ namespace NzbDrone.Common
serviceInstaller.Context = context;
serviceInstaller.DisplayName = serviceName;
serviceInstaller.ServiceName = serviceName;
- serviceInstaller.Description = "NzbDrone Application Server";
+ serviceInstaller.Description = "Radarr Application Server";
serviceInstaller.StartType = ServiceStartMode.Automatic;
serviceInstaller.ServicesDependedOn = new[] { "EventLog", "Tcpip", "http" };
diff --git a/src/NzbDrone.Console/ConsoleAlerts.cs b/src/NzbDrone.Console/ConsoleAlerts.cs
index 4d623fc8e..8533c46f2 100644
--- a/src/NzbDrone.Console/ConsoleAlerts.cs
+++ b/src/NzbDrone.Console/ConsoleAlerts.cs
@@ -1,4 +1,4 @@
-using NzbDrone.Host;
+using Radarr.Host;
namespace NzbDrone.Console
{
diff --git a/src/NzbDrone.Console/ConsoleApp.cs b/src/NzbDrone.Console/ConsoleApp.cs
index 6f935887f..eb75bddc7 100644
--- a/src/NzbDrone.Console/ConsoleApp.cs
+++ b/src/NzbDrone.Console/ConsoleApp.cs
@@ -3,7 +3,7 @@ using System.Net.Sockets;
using NLog;
using NzbDrone.Common.EnvironmentInfo;
using NzbDrone.Common.Instrumentation;
-using NzbDrone.Host;
+using Radarr.Host;
namespace NzbDrone.Console
{
@@ -23,7 +23,7 @@ namespace NzbDrone.Console
{
System.Console.WriteLine("");
System.Console.WriteLine("");
- Logger.Fatal(exception.Message + ". This can happen if another instance of Sonarr is already running another application is using the same port (default: 8989) or the user has insufficient permissions");
+ Logger.Fatal(exception.Message + ". This can happen if another instance of Radarr is already running another application is using the same port (default: 7878) or the user has insufficient permissions");
System.Console.WriteLine("Press enter to exit...");
System.Console.ReadLine();
Environment.Exit(1);
diff --git a/src/NzbDrone.Console/NzbDrone.Console.csproj b/src/NzbDrone.Console/NzbDrone.Console.csproj
index 61cc3190f..6c35d7672 100644
--- a/src/NzbDrone.Console/NzbDrone.Console.csproj
+++ b/src/NzbDrone.Console/NzbDrone.Console.csproj
@@ -9,7 +9,7 @@
Exe
Properties
NzbDrone.Console
- NzbDrone.Console
+ Radarr.Console
v4.0
512
@@ -54,7 +54,7 @@
4
- ..\NzbDrone.Host\NzbDrone.ico
+ Radarr.ico
NzbDrone.Console.ConsoleApp
@@ -139,6 +139,9 @@
+
+
+
diff --git a/src/NzbDrone.Console/Properties/AssemblyInfo.cs b/src/NzbDrone.Console/Properties/AssemblyInfo.cs
index ed519f028..172df372a 100644
--- a/src/NzbDrone.Console/Properties/AssemblyInfo.cs
+++ b/src/NzbDrone.Console/Properties/AssemblyInfo.cs
@@ -7,5 +7,3 @@ using System.Runtime.InteropServices;
[assembly: AssemblyTitle("NzbDrone.Host")]
[assembly: Guid("67AADCD9-89AA-4D95-8281-3193740E70E5")]
-
-[assembly: AssemblyVersion("10.0.0.*")]
\ No newline at end of file
diff --git a/src/NzbDrone.Console/Radarr.ico b/src/NzbDrone.Console/Radarr.ico
new file mode 100644
index 000000000..6f0a8b50e
Binary files /dev/null and b/src/NzbDrone.Console/Radarr.ico differ
diff --git a/src/NzbDrone.Core.Test/Download/DownloadApprovedReportsTests/DownloadApprovedFixture.cs b/src/NzbDrone.Core.Test/Download/DownloadApprovedReportsTests/DownloadApprovedFixture.cs
index 76d22d669..356ad1e7e 100644
--- a/src/NzbDrone.Core.Test/Download/DownloadApprovedReportsTests/DownloadApprovedFixture.cs
+++ b/src/NzbDrone.Core.Test/Download/DownloadApprovedReportsTests/DownloadApprovedFixture.cs
@@ -178,8 +178,9 @@ namespace NzbDrone.Core.Test.Download.DownloadApprovedReportsTests
public void should_return_an_empty_list_when_none_are_appproved()
{
var decisions = new List();
- decisions.Add(new DownloadDecision(null, new Rejection("Failure!")));
- decisions.Add(new DownloadDecision(null, new Rejection("Failure!")));
+ RemoteEpisode ep = null;
+ decisions.Add(new DownloadDecision(ep, new Rejection("Failure!")));
+ decisions.Add(new DownloadDecision(ep, new Rejection("Failure!")));
Subject.GetQualifiedReports(decisions).Should().BeEmpty();
}
diff --git a/src/NzbDrone.Core.Test/Download/DownloadClientTests/DelugeTests/DelugeFixture.cs b/src/NzbDrone.Core.Test/Download/DownloadClientTests/DelugeTests/DelugeFixture.cs
index af24f2797..b70021190 100644
--- a/src/NzbDrone.Core.Test/Download/DownloadClientTests/DelugeTests/DelugeFixture.cs
+++ b/src/NzbDrone.Core.Test/Download/DownloadClientTests/DelugeTests/DelugeFixture.cs
@@ -26,7 +26,7 @@ namespace NzbDrone.Core.Test.Download.DownloadClientTests.DelugeTests
Subject.Definition = new DownloadClientDefinition();
Subject.Definition.Settings = new DelugeSettings()
{
- TvCategory = null
+ MovieCategory = null
};
_queued = new DelugeTorrent
diff --git a/src/NzbDrone.Core.Test/Download/DownloadClientTests/QBittorrentTests/QBittorrentFixture.cs b/src/NzbDrone.Core.Test/Download/DownloadClientTests/QBittorrentTests/QBittorrentFixture.cs
index 3ceece6f6..2283f7add 100644
--- a/src/NzbDrone.Core.Test/Download/DownloadClientTests/QBittorrentTests/QBittorrentFixture.cs
+++ b/src/NzbDrone.Core.Test/Download/DownloadClientTests/QBittorrentTests/QBittorrentFixture.cs
@@ -25,7 +25,7 @@ namespace NzbDrone.Core.Test.Download.DownloadClientTests.QBittorrentTests
Port = 2222,
Username = "admin",
Password = "pass",
- TvCategory = "tv"
+ MovieCategory = "movies-radarr"
};
Mocker.GetMock()
diff --git a/src/NzbDrone.Core.Test/Download/DownloadClientTests/RTorrentTests/RTorrentFixture.cs b/src/NzbDrone.Core.Test/Download/DownloadClientTests/RTorrentTests/RTorrentFixture.cs
index f657a7884..a3d7eebf1 100644
--- a/src/NzbDrone.Core.Test/Download/DownloadClientTests/RTorrentTests/RTorrentFixture.cs
+++ b/src/NzbDrone.Core.Test/Download/DownloadClientTests/RTorrentTests/RTorrentFixture.cs
@@ -21,7 +21,7 @@ namespace NzbDrone.Core.Test.Download.DownloadClientTests.RTorrentTests
Subject.Definition = new DownloadClientDefinition();
Subject.Definition.Settings = new RTorrentSettings()
{
- TvCategory = null
+ MovieCategory = null
};
_downloading = new RTorrentTorrent
diff --git a/src/NzbDrone.Core.Test/Download/DownloadClientTests/TransmissionTests/TransmissionFixtureBase.cs b/src/NzbDrone.Core.Test/Download/DownloadClientTests/TransmissionTests/TransmissionFixtureBase.cs
index d46f9a30e..5fd4136b6 100644
--- a/src/NzbDrone.Core.Test/Download/DownloadClientTests/TransmissionTests/TransmissionFixtureBase.cs
+++ b/src/NzbDrone.Core.Test/Download/DownloadClientTests/TransmissionTests/TransmissionFixtureBase.cs
@@ -112,12 +112,12 @@ namespace NzbDrone.Core.Test.Download.DownloadClientTests.TransmissionTests
protected void GivenTvCategory()
{
- _settings.TvCategory = "sonarr";
+ _settings.MovieCategory = "radarr";
}
protected void GivenTvDirectory()
{
- _settings.TvDirectory = @"C:/Downloads/Finished/sonarr";
+ _settings.MovieDirectory = @"C:/Downloads/Finished/radarr";
}
protected void GivenFailedDownload()
diff --git a/src/NzbDrone.Core.Test/Files/Indexers/Omgwtfnzbs/Omgwtfnzbs.xml b/src/NzbDrone.Core.Test/Files/Indexers/Omgwtfnzbs/Omgwtfnzbs.xml
index d11fe2a1b..93dc7ce13 100644
--- a/src/NzbDrone.Core.Test/Files/Indexers/Omgwtfnzbs/Omgwtfnzbs.xml
+++ b/src/NzbDrone.Core.Test/Files/Indexers/Omgwtfnzbs/Omgwtfnzbs.xml
@@ -1,1212 +1,1210 @@
- omgwtfnzbs.org rss feeds generator
+ omgwtfnzbs.me rss feeds generator
en-us
- Search NZB Download Feed
- http://rss.omgwtfnzbs.org
- auto-dl feed for omgwtfnzbs.org
- 2010 - 2012 omgwtfnzbs
-
- Mon, 17 Dec 2012 23:30:16 +0000
-
- -
- Stephen.Fry.Gadget.Man.S01E05.HDTV.x264-C4TV
- Mon, 17 Dec 2012 23:30:13 +0000
- http://api.omgwtfnzbs.org/sn.php?id=OAl4g&user=nzbdrone&api=nzbdrone
- http://api.omgwtfnzbs.org/sn.php?id=OAl4g&user=nzbdrone&api=nzbdrone
- Category: TV: STD
Size: 225.85 MB
Group: alt.binaries.teevee
Added to index: 17/12/2012 23:30:04
Added to usenet: 17/12/2012 23:30:13
Weblink: http://www.tvrage.com/shows/id-33431
View NZB: http://omgwtfnzbs.org/details.php?id=OAl4g]]>
- TV: STD
- tv.sd
- 19
-
-
-
- -
- Never.Mind.The.Buzzcocks.UK.S26E12.720p.HDTV.x264-FTP
- Mon, 17 Dec 2012 23:27:23 +0000
- http://api.omgwtfnzbs.org/sn.php?id=3whQL&user=nzbdrone&api=nzbdrone
- http://api.omgwtfnzbs.org/sn.php?id=3whQL&user=nzbdrone&api=nzbdrone
- Category: TV: HD
Size: 660.51 MB
Group: alt.binaries.teevee
Added to index: 17/12/2012 23:26:53
Added to usenet: 17/12/2012 23:27:23
Weblink: N/A
View NZB: http://omgwtfnzbs.org/details.php?id=3whQL]]>
- TV: HD
- tv.hd
- 20
-
-
-
- -
- Bad.Santas.S01E01.HDTV.x264-W4F
- Mon, 17 Dec 2012 23:23:02 +0000
- http://api.omgwtfnzbs.org/sn.php?id=YXPhW&user=nzbdrone&api=nzbdrone
- http://api.omgwtfnzbs.org/sn.php?id=YXPhW&user=nzbdrone&api=nzbdrone
- Category: TV: STD
Size: 437.29 MB
Group: alt.binaries.teevee
Added to index: 17/12/2012 23:22:39
Added to usenet: 17/12/2012 23:23:02
Weblink: http://thetvdb.com/?tab=series&id=264930&lid=7
View NZB: http://omgwtfnzbs.org/details.php?id=YXPhW]]>
- TV: STD
- tv.sd
- 19
-
-
-
- -
- Chainsaw.Gang.S01E06.480p.HDTV.x264-mSD
- Mon, 17 Dec 2012 23:10:55 +0000
- http://api.omgwtfnzbs.org/sn.php?id=387yh&user=nzbdrone&api=nzbdrone
- http://api.omgwtfnzbs.org/sn.php?id=387yh&user=nzbdrone&api=nzbdrone
- Category: TV: STD
Size: 218.8 MB
Group: alt.binaries.multimedia
Added to index: 17/12/2012 23:16:58
Added to usenet: 17/12/2012 23:10:55
Weblink: http://thetvdb.com/?tab=series&id=263322&lid=7
View NZB: http://omgwtfnzbs.org/details.php?id=387yh]]>
- TV: STD
- tv.sd
- 19
-
-
-
- -
- NFL.2012.12.16.Buccaneers.vs.Saints.720p.HDTV.x264-BAJSKORV
- Mon, 17 Dec 2012 23:10:23 +0000
- http://api.omgwtfnzbs.org/sn.php?id=oUgMb&user=nzbdrone&api=nzbdrone
- http://api.omgwtfnzbs.org/sn.php?id=oUgMb&user=nzbdrone&api=nzbdrone
- Category: TV: HD
Size: 6.76 GB
Group: alt.binaries.teevee
Added to index: 17/12/2012 23:07:16
Added to usenet: 17/12/2012 23:10:23
Weblink: N/A
View NZB: http://omgwtfnzbs.org/details.php?id=oUgMb]]>
- TV: HD
- tv.hd
- 20
-
-
-
- -
- Never.Mind.The.Buzzcocks.UK.S26E12.HDTV.x264-FTP
- Mon, 17 Dec 2012 23:10:22 +0000
- http://api.omgwtfnzbs.org/sn.php?id=CAxYY&user=nzbdrone&api=nzbdrone
- http://api.omgwtfnzbs.org/sn.php?id=CAxYY&user=nzbdrone&api=nzbdrone
- Category: TV: STD
Size: 220.87 MB
Group: alt.binaries.teevee
Added to index: 17/12/2012 23:09:59
Added to usenet: 17/12/2012 23:10:22
Weblink: N/A
View NZB: http://omgwtfnzbs.org/details.php?id=CAxYY]]>
- TV: STD
- tv.sd
- 19
-
-
-
- -
- Sloth.Bear.HDTV.x264-TERRA
- Mon, 17 Dec 2012 23:02:13 +0000
- http://api.omgwtfnzbs.org/sn.php?id=LDn8P&user=nzbdrone&api=nzbdrone
- http://api.omgwtfnzbs.org/sn.php?id=LDn8P&user=nzbdrone&api=nzbdrone
- Category: TV: STD
Size: 452 MB
Group: alt.binaries.teevee
Added to index: 17/12/2012 23:02:00
Added to usenet: 17/12/2012 23:02:13
Weblink: N/A
View NZB: http://omgwtfnzbs.org/details.php?id=LDn8P]]>
- TV: STD
- tv.sd
- 19
-
-
-
- -
- Panorama.S60E49.HDTV.x264-BARGE
- Mon, 17 Dec 2012 22:55:30 +0000
- http://api.omgwtfnzbs.org/sn.php?id=6aLWJ&user=nzbdrone&api=nzbdrone
- http://api.omgwtfnzbs.org/sn.php?id=6aLWJ&user=nzbdrone&api=nzbdrone
- Category: TV: STD
Size: 250.86 MB
Group: alt.binaries.teevee
Added to index: 17/12/2012 22:55:18
Added to usenet: 17/12/2012 22:55:30
Weblink: http://thetvdb.com/?tab=series&id=80748&lid=7
View NZB: http://omgwtfnzbs.org/details.php?id=6aLWJ]]>
- TV: STD
- tv.sd
- 19
-
-
-
- -
- Chainsaw.Gang.S01E05.480p.HDTV.x264-mSD
- Mon, 17 Dec 2012 22:51:26 +0000
- http://api.omgwtfnzbs.org/sn.php?id=FdB6A&user=nzbdrone&api=nzbdrone
- http://api.omgwtfnzbs.org/sn.php?id=FdB6A&user=nzbdrone&api=nzbdrone
- Category: TV: STD
Size: 165.75 MB
Group: alt.binaries.multimedia
Added to index: 17/12/2012 22:57:31
Added to usenet: 17/12/2012 22:51:26
Weblink: http://thetvdb.com/?tab=series&id=263322&lid=7
View NZB: http://omgwtfnzbs.org/details.php?id=FdB6A]]>
- TV: STD
- tv.sd
- 19
-
+ omgwtfnzbs.me - Latest NZB Download Feed
+ https://rss.omgwtfnzbs.me/
+ omgwtfnzbs.me - NZB Download Feed (false)
+ 2010 - 2014 omgwtfnzbs
+
+ -
+ Un.Petit.Boulot.2016.FRENCH.720p.BluRay.DTS.x264-LOST
+ Mon, 09 Jan 2017 02:16:54 +0200
+ https://api.omgwtfnzbs.me/nzb/?id=8a2Bw&user=nzbdrone&api=nzbdrone
+ https://api.omgwtfnzbs.me/nzb/?id=8a2Bw&user=nzbdrone&api=nzbdrone
+ Category: Movies: HD
Size: 4.99 GB
Group: alt.binaries.boneless
Added to index: 01/01/2017 22:49:30
Added to usenet: 09/01/2017 02:16:54
View NZB: https://omgwtfnzbs.me/details.php?id=8a2Bw]]>
+ Movies: HD
+ movies.hd
+ 16
+
+
+
+ -
+ Death.Race.2050.2017.1080p.BluRay.x264-ROVERS
+ Mon, 09 Jan 2017 01:40:12 +0200
+ https://api.omgwtfnzbs.me/nzb/?id=2Aqi3&user=nzbdrone&api=nzbdrone
+ https://api.omgwtfnzbs.me/nzb/?id=2Aqi3&user=nzbdrone&api=nzbdrone
+ Category: Movies: HD
Size: 8.8 GB
Group: alt.binaries.moovee
Added to index: 09/01/2017 00:37:45
Added to usenet: 09/01/2017 01:40:12
View NZB: https://omgwtfnzbs.me/details.php?id=2Aqi3]]>
+ Movies: HD
+ movies.hd
+ 16
+
+
+
+ -
+ Death.Race.2050.2017.BDRip.x264-ROVERS
+ Mon, 09 Jan 2017 01:17:52 +0200
+ https://api.omgwtfnzbs.me/nzb/?id=dg04S&user=nzbdrone&api=nzbdrone
+ https://api.omgwtfnzbs.me/nzb/?id=dg04S&user=nzbdrone&api=nzbdrone
+ Category: Movies: STD
Size: 1.1 GB
Group: alt.binaries.moovee
Added to index: 09/01/2017 00:14:52
Added to usenet: 09/01/2017 01:17:52
View NZB: https://omgwtfnzbs.me/details.php?id=dg04S]]>
+ Movies: STD
+ movies.sd
+ 15
+
+
+
+ -
+ Floored.2009.1080p.BluRay.x264-THUGLiNE
+ Sun, 08 Jan 2017 23:34:46 +0200
+ https://api.omgwtfnzbs.me/nzb/?id=c2rBA&user=nzbdrone&api=nzbdrone
+ https://api.omgwtfnzbs.me/nzb/?id=c2rBA&user=nzbdrone&api=nzbdrone
+ Category: Movies: HD
Size: 6.33 GB
Group: alt.binaries.moovee
Added to index: 08/01/2017 22:31:47
Added to usenet: 08/01/2017 23:34:46
View NZB: https://omgwtfnzbs.me/details.php?id=c2rBA]]>
+ Movies: HD
+ movies.hd
+ 16
+
+
+
+ -
+ Floored.2009.720p.BluRay.x264-THUGLiNE
+ Sun, 08 Jan 2017 23:31:06 +0200
+ https://api.omgwtfnzbs.me/nzb/?id=fV4im&user=nzbdrone&api=nzbdrone
+ https://api.omgwtfnzbs.me/nzb/?id=fV4im&user=nzbdrone&api=nzbdrone
+ Category: Movies: HD
Size: 3.73 GB
Group: alt.binaries.moovee
Added to index: 08/01/2017 22:27:10
Added to usenet: 08/01/2017 23:31:06
View NZB: https://omgwtfnzbs.me/details.php?id=fV4im]]>
+ Movies: HD
+ movies.hd
+ 16
+
+
+
+ -
+ Live.Flesh.1997.1080p.BluRay.FLAC2.0.x264-DON
+ Sun, 08 Jan 2017 20:19:06 +0200
+ https://api.omgwtfnzbs.me/nzb/?id=BnTZ0&user=nzbdrone&api=nzbdrone
+ https://api.omgwtfnzbs.me/nzb/?id=BnTZ0&user=nzbdrone&api=nzbdrone
+ Category: Movies: HD
Size: 16.85 GB
Group: alt.binaries.moovee
Added to index: 08/01/2017 19:16:44
Added to usenet: 08/01/2017 20:19:06
View NZB: https://omgwtfnzbs.me/details.php?id=BnTZ0]]>
+ Movies: HD
+ movies.hd
+ 16
+
+
+
+ -
+ Sex.By.Advertisement.1968.DVDRip.x264-FiCO
+ Sun, 08 Jan 2017 18:02:53 +0200
+ https://api.omgwtfnzbs.me/nzb/?id=yMSuc&user=nzbdrone&api=nzbdrone
+ https://api.omgwtfnzbs.me/nzb/?id=yMSuc&user=nzbdrone&api=nzbdrone
+ Category: Movies: STD
Size: 862.74 MB
Group: alt.binaries.moovee
Added to index: 08/01/2017 17:00:47
Added to usenet: 08/01/2017 18:02:53
View NZB: https://omgwtfnzbs.me/details.php?id=yMSuc]]>
+ Movies: STD
+ movies.sd
+ 15
+
+
+
+ -
+ Super.Rhino.2009.1080p.BluRay.x264-FLAME
+ Sun, 08 Jan 2017 13:17:06 +0200
+ https://api.omgwtfnzbs.me/nzb/?id=b43Ej&user=nzbdrone&api=nzbdrone
+ https://api.omgwtfnzbs.me/nzb/?id=b43Ej&user=nzbdrone&api=nzbdrone
+ Category: Movies: HD
Size: 502.14 MB
Group: alt.binaries.moovee
Added to index: 08/01/2017 12:15:19
Added to usenet: 08/01/2017 13:17:06
View NZB: https://omgwtfnzbs.me/details.php?id=b43Ej]]>
+ Movies: HD
+ movies.hd
+ 16
+
+
+
+ -
+ Super.Rhino.2009.720p.BluRay.x264-FLAME
+ Sun, 08 Jan 2017 13:15:26 +0200
+ https://api.omgwtfnzbs.me/nzb/?id=k6soa&user=nzbdrone&api=nzbdrone
+ https://api.omgwtfnzbs.me/nzb/?id=k6soa&user=nzbdrone&api=nzbdrone
+ Category: Movies: HD
Size: 266.62 MB
Group: alt.binaries.moovee
Added to index: 08/01/2017 12:13:35
Added to usenet: 08/01/2017 13:15:26
View NZB: https://omgwtfnzbs.me/details.php?id=k6soa]]>
+ Movies: HD
+ movies.hd
+ 16
+
-
- Inside.Claridges.S01E03.HDTV.x264-FTP
- Mon, 17 Dec 2012 22:48:24 +0000
- http://api.omgwtfnzbs.org/sn.php?id=0zjU4&user=nzbdrone&api=nzbdrone
- http://api.omgwtfnzbs.org/sn.php?id=0zjU4&user=nzbdrone&api=nzbdrone
- Category: TV: STD
Size: 448.38 MB
Group: alt.binaries.teevee
Added to index: 17/12/2012 22:48:04
Added to usenet: 17/12/2012 22:48:24
Weblink: http://thetvdb.com/?tab=series&id=264600&lid=7
View NZB: http://omgwtfnzbs.org/details.php?id=0zjU4]]>
- TV: STD
- tv.sd
- 19
-
+ San.Andreas.2015.TRUEFRENCH.720p.BluRay.x264-AiRLiNE
+ Sun, 08 Jan 2017 13:03:23 +0200
+ https://api.omgwtfnzbs.me/nzb/?id=Yvek6&user=nzbdrone&api=nzbdrone
+ https://api.omgwtfnzbs.me/nzb/?id=Yvek6&user=nzbdrone&api=nzbdrone
+ Category: Movies: HD
Size: 5.05 GB
Group: alt.binaries.felfelida
Added to index: 06/12/2016 06:25:10
Added to usenet: 08/01/2017 13:03:23
View NZB: https://omgwtfnzbs.me/details.php?id=Yvek6]]>
+ Movies: HD
+ movies.hd
+ 16
+
-
- Royal.Pains.S04E15.Off-Season.Greetings.Pt.1.480p.WEB-DL.x264-mSD
- Mon, 17 Dec 2012 22:47:52 +0000
- http://api.omgwtfnzbs.org/sn.php?id=mMHry&user=nzbdrone&api=nzbdrone
- http://api.omgwtfnzbs.org/sn.php?id=mMHry&user=nzbdrone&api=nzbdrone
- Category: TV: STD
Size: 277.66 MB
Group: alt.binaries.multimedia
Added to index: 17/12/2012 22:53:52
Added to usenet: 17/12/2012 22:47:52
Weblink: http://thetvdb.com/?tab=series&id=92411&lid=7
View NZB: http://omgwtfnzbs.org/details.php?id=mMHry]]>
- TV: STD
- tv.sd
- 19
-
+ San.Andreas.2015.FRENCH.720p.BluRay.x264-VENUE
+ Sun, 08 Jan 2017 13:02:45 +0200
+ https://api.omgwtfnzbs.me/nzb/?id=wbvw3&user=nzbdrone&api=nzbdrone
+ https://api.omgwtfnzbs.me/nzb/?id=wbvw3&user=nzbdrone&api=nzbdrone
+ Category: Movies: HD
Size: 5.09 GB
Group: alt.binaries.felfelida
Added to index: 11/12/2016 01:52:51
Added to usenet: 08/01/2017 13:02:45
View NZB: https://omgwtfnzbs.me/details.php?id=wbvw3]]>
+ Movies: HD
+ movies.hd
+ 16
+
-
- The.Poison.Tree.S01E02.720p.HDTV.x264-TLA
- Mon, 17 Dec 2012 22:44:57 +0000
- http://api.omgwtfnzbs.org/sn.php?id=XiqFs&user=nzbdrone&api=nzbdrone
- http://api.omgwtfnzbs.org/sn.php?id=XiqFs&user=nzbdrone&api=nzbdrone
- Category: TV: HD
Size: 868.42 MB
Group: alt.binaries.teevee
Added to index: 17/12/2012 22:44:21
Added to usenet: 17/12/2012 22:44:57
Weblink: http://thetvdb.com/?tab=series&id=264796&lid=7
View NZB: http://omgwtfnzbs.org/details.php?id=XiqFs]]>
- TV: HD
- tv.hd
- 20
-
+ Saints.And.Soldiers.2003.STV.FRENCH.720p.BluRay.x264-MUxHD
+ Sun, 08 Jan 2017 13:02:12 +0200
+ https://api.omgwtfnzbs.me/nzb/?id=KID80&user=nzbdrone&api=nzbdrone
+ https://api.omgwtfnzbs.me/nzb/?id=KID80&user=nzbdrone&api=nzbdrone
+ Category: Movies: HD
Size: 5.12 GB
Group: alt.binaries.movies.french
Added to index: 01/12/2016 22:58:21
Added to usenet: 08/01/2017 13:02:12
View NZB: https://omgwtfnzbs.me/details.php?id=KID80]]>
+ Movies: HD
+ movies.hd
+ 16
+
-
- The.Poison.Tree.S01E02.HDTV.x264-RiVER
- Mon, 17 Dec 2012 22:37:44 +0000
- http://api.omgwtfnzbs.org/sn.php?id=S8EDd&user=nzbdrone&api=nzbdrone
- http://api.omgwtfnzbs.org/sn.php?id=S8EDd&user=nzbdrone&api=nzbdrone
- Category: TV: STD
Size: 331.56 MB
Group: alt.binaries.teevee
Added to index: 17/12/2012 22:37:28
Added to usenet: 17/12/2012 22:37:44
Weblink: http://thetvdb.com/?tab=series&id=264796&lid=7
View NZB: http://omgwtfnzbs.org/details.php?id=S8EDd]]>
- TV: STD
- tv.sd
- 19
-
+ Risen.2016.FRENCH.720p.BluRay.x264-LOST
+ Sun, 08 Jan 2017 13:01:49 +0200
+ https://api.omgwtfnzbs.me/nzb/?id=hyUJx&user=nzbdrone&api=nzbdrone
+ https://api.omgwtfnzbs.me/nzb/?id=hyUJx&user=nzbdrone&api=nzbdrone
+ Category: Movies: HD
Size: 6.4 GB
Group: alt.binaries.felfelida
Added to index: 29/11/2016 23:02:11
Added to usenet: 08/01/2017 13:01:49
View NZB: https://omgwtfnzbs.me/details.php?id=hyUJx]]>
+ Movies: HD
+ movies.hd
+ 16
+
-
- Inside.Claridges.S01E03.720p.HDTV.x264-FTP
- Mon, 17 Dec 2012 22:29:51 +0000
- http://api.omgwtfnzbs.org/sn.php?id=edHL6&user=nzbdrone&api=nzbdrone
- http://api.omgwtfnzbs.org/sn.php?id=edHL6&user=nzbdrone&api=nzbdrone
- Category: TV: HD
Size: 1.18 GB
Group: alt.binaries.teevee
Added to index: 17/12/2012 22:29:43
Added to usenet: 17/12/2012 22:29:51
Weblink: http://thetvdb.com/?tab=series&id=264600&lid=7
View NZB: http://omgwtfnzbs.org/details.php?id=edHL6]]>
- TV: HD
- tv.hd
- 20
-
+ Ran.1985.REMASTERED.FRENCH.720p.BluRay.x264-ULSHD
+ Sun, 08 Jan 2017 13:01:24 +0200
+ https://api.omgwtfnzbs.me/nzb/?id=5elVu&user=nzbdrone&api=nzbdrone
+ https://api.omgwtfnzbs.me/nzb/?id=5elVu&user=nzbdrone&api=nzbdrone
+ Category: Movies: HD
Size: 10.18 GB
Group: alt.binaries.movies.french
Added to index: 03/12/2016 22:56:51
Added to usenet: 08/01/2017 13:01:24
View NZB: https://omgwtfnzbs.me/details.php?id=5elVu]]>
+ Movies: HD
+ movies.hd
+ 16
+
-
- Tron.Uprising.S01E13.The.Stranger.480p.WEB-DL.x264-mSD
- Mon, 17 Dec 2012 22:28:47 +0000
- http://api.omgwtfnzbs.org/sn.php?id=BMO6u&user=nzbdrone&api=nzbdrone
- http://api.omgwtfnzbs.org/sn.php?id=BMO6u&user=nzbdrone&api=nzbdrone
- Category: TV: STD
Size: 163.45 MB
Group: alt.binaries.multimedia
Added to index: 17/12/2012 22:32:56
Added to usenet: 17/12/2012 22:28:47
Weblink: http://thetvdb.com/?tab=series&id=258480&lid=7
View NZB: http://omgwtfnzbs.org/details.php?id=BMO6u]]>
- TV: STD
- tv.sd
- 19
-
+ Pride.and.Prejudice.and.Zombies.2016.FRENCH.720p.BluRay.x264-LOST
+ Sun, 08 Jan 2017 13:00:41 +0200
+ https://api.omgwtfnzbs.me/nzb/?id=TL2hr&user=nzbdrone&api=nzbdrone
+ https://api.omgwtfnzbs.me/nzb/?id=TL2hr&user=nzbdrone&api=nzbdrone
+ Category: Movies: HD
Size: 5.06 GB
Group: alt.binaries.felfelida
Added to index: 02/12/2016 05:19:32
Added to usenet: 08/01/2017 13:00:41
View NZB: https://omgwtfnzbs.me/details.php?id=TL2hr]]>
+ Movies: HD
+ movies.hd
+ 16
+
-
- NFL.2012.12.16.Vikings.vs.Rams.720p.HDTV.x264-BAJSKORV
- Mon, 17 Dec 2012 22:26:54 +0000
- http://api.omgwtfnzbs.org/sn.php?id=Z2fIr&user=nzbdrone&api=nzbdrone
- http://api.omgwtfnzbs.org/sn.php?id=Z2fIr&user=nzbdrone&api=nzbdrone
- Category: TV: HD
Size: 6.24 GB
Group: alt.binaries.teevee
Added to index: 17/12/2012 22:20:07
Added to usenet: 17/12/2012 22:26:54
Weblink: N/A
View NZB: http://omgwtfnzbs.org/details.php?id=Z2fIr]]>
- TV: HD
- tv.hd
- 20
-
+ Precious.Cargo.2016.FRENCH.720p.BluRay.x264-LOST
+ Sun, 08 Jan 2017 13:00:21 +0200
+ https://api.omgwtfnzbs.me/nzb/?id=Ehb5l&user=nzbdrone&api=nzbdrone
+ https://api.omgwtfnzbs.me/nzb/?id=Ehb5l&user=nzbdrone&api=nzbdrone
+ Category: Movies: HD
Size: 3.84 GB
Group: alt.binaries.felfelida
Added to index: 15/12/2016 06:20:31
Added to usenet: 08/01/2017 13:00:21
View NZB: https://omgwtfnzbs.me/details.php?id=Ehb5l]]>
+ Movies: HD
+ movies.hd
+ 16
+
-
- The.Gadget.Show.World.Tour.S02E07.480p.HDTV.x264-mSD
- Mon, 17 Dec 2012 22:23:04 +0000
- http://api.omgwtfnzbs.org/sn.php?id=NrREN&user=nzbdrone&api=nzbdrone
- http://api.omgwtfnzbs.org/sn.php?id=NrREN&user=nzbdrone&api=nzbdrone
- Category: TV: STD
Size: 341.1 MB
Group: alt.binaries.multimedia
Added to index: 17/12/2012 22:29:02
Added to usenet: 17/12/2012 22:23:04
Weblink: http://thetvdb.com/?tab=series&id=258440&lid=7
View NZB: http://omgwtfnzbs.org/details.php?id=NrREN]]>
- TV: STD
- tv.sd
- 19
-
+ Pina.2011.DOC.PROPER.FRENCH.1080p.BluRay.x264-FiDELiO
+ Sun, 08 Jan 2017 13:00:05 +0200
+ https://api.omgwtfnzbs.me/nzb/?id=cNsHi&user=nzbdrone&api=nzbdrone
+ https://api.omgwtfnzbs.me/nzb/?id=cNsHi&user=nzbdrone&api=nzbdrone
+ Category: Movies: HD
Size: 8.98 GB
Group: alt.binaries.documentaries.french
Added to index: 01/12/2016 23:03:07
Added to usenet: 08/01/2017 13:00:05
View NZB: https://omgwtfnzbs.me/details.php?id=cNsHi]]>
+ Movies: HD
+ movies.hd
+ 16
+
-
- Redneck.Island.S02E06.HDTV.x264-YesTV
- Mon, 17 Dec 2012 22:16:37 +0000
- http://api.omgwtfnzbs.org/sn.php?id=75b7e&user=nzbdrone&api=nzbdrone
- http://api.omgwtfnzbs.org/sn.php?id=75b7e&user=nzbdrone&api=nzbdrone
- Category: TV: STD
Size: 440.67 MB
Group: alt.binaries.teevee
Added to index: 17/12/2012 22:16:12
Added to usenet: 17/12/2012 22:16:37
Weblink: http://thetvdb.com/?tab=series&id=259570&lid=7
View NZB: http://omgwtfnzbs.org/details.php?id=75b7e]]>
- TV: STD
- tv.sd
- 19
-
+ Paranormal.Activity.The.Ghost.Dimension.2015.FRENCH.720p.BluRay.x264-VENUE
+ Sun, 08 Jan 2017 12:59:36 +0200
+ https://api.omgwtfnzbs.me/nzb/?id=uTXRQ&user=nzbdrone&api=nzbdrone
+ https://api.omgwtfnzbs.me/nzb/?id=uTXRQ&user=nzbdrone&api=nzbdrone
+ Category: Movies: HD
Size: 5.05 GB
Group: alt.binaries.felfelida
Added to index: 06/12/2016 06:39:37
Added to usenet: 08/01/2017 12:59:36
View NZB: https://omgwtfnzbs.me/details.php?id=uTXRQ]]>
+ Movies: HD
+ movies.hd
+ 16
+
-
- Chainsaw.Gang.S01E06.HDTV.x264-YesTV
- Mon, 17 Dec 2012 22:15:52 +0000
- http://api.omgwtfnzbs.org/sn.php?id=G8QhV&user=nzbdrone&api=nzbdrone
- http://api.omgwtfnzbs.org/sn.php?id=G8QhV&user=nzbdrone&api=nzbdrone
- Category: TV: STD
Size: 259.24 MB
Group: alt.binaries.teevee
Added to index: 17/12/2012 22:15:38
Added to usenet: 17/12/2012 22:15:52
Weblink: http://thetvdb.com/?tab=series&id=263322&lid=7
View NZB: http://omgwtfnzbs.org/details.php?id=G8QhV]]>
- TV: STD
- tv.sd
- 19
-
+ Paper.Towns.2015.TRUEFRENCH.720p.BluRay.x264-MELBA
+ Sun, 08 Jan 2017 12:59:10 +0200
+ https://api.omgwtfnzbs.me/nzb/?id=fq5pK&user=nzbdrone&api=nzbdrone
+ https://api.omgwtfnzbs.me/nzb/?id=fq5pK&user=nzbdrone&api=nzbdrone
+ Category: Movies: HD
Size: 5.09 GB
Group: alt.binaries.felfelida
Added to index: 06/12/2016 05:25:16
Added to usenet: 08/01/2017 12:59:10
View NZB: https://omgwtfnzbs.me/details.php?id=fq5pK]]>
+ Movies: HD
+ movies.hd
+ 16
+
-
- VH1.Divas.2012.480p.HDTV.x264-mSD
- Mon, 17 Dec 2012 22:15:23 +0000
- http://api.omgwtfnzbs.org/sn.php?id=dohtS&user=nzbdrone&api=nzbdrone
- http://api.omgwtfnzbs.org/sn.php?id=dohtS&user=nzbdrone&api=nzbdrone
- Category: TV: STD
Size: 1.16 GB
Group: alt.binaries.multimedia
Added to index: 17/12/2012 22:20:56
Added to usenet: 17/12/2012 22:15:23
Weblink: http://lookpic.com/O/i2/227/bkl5VFGu.jpeg[/IMG
View NZB: http://omgwtfnzbs.org/details.php?id=dohtS]]>
- TV: STD
- tv.sd
- 19
-
+ Papa.Ou.Maman.2015.RERIP.FRENCH.DVDRip.x264-Ryotox
+ Sun, 08 Jan 2017 12:58:10 +0200
+ https://api.omgwtfnzbs.me/nzb/?id=3WN1H&user=nzbdrone&api=nzbdrone
+ https://api.omgwtfnzbs.me/nzb/?id=3WN1H&user=nzbdrone&api=nzbdrone
+ Category: Movies: DVD
Size: 585.4 MB
Group: alt.binaries.movies.french
Added to index: 12/12/2016 00:21:27
Added to usenet: 08/01/2017 12:58:10
View NZB: https://omgwtfnzbs.me/details.php?id=3WN1H]]>
+ Movies: DVD
+ movies.dvd
+ 17
+
-
- Chainsaw.Gang.S01E05.HDTV.x264-YesTV
- Mon, 17 Dec 2012 22:14:57 +0000
- http://api.omgwtfnzbs.org/sn.php?id=PBGHM&user=nzbdrone&api=nzbdrone
- http://api.omgwtfnzbs.org/sn.php?id=PBGHM&user=nzbdrone&api=nzbdrone
- Category: TV: STD
Size: 196.5 MB
Group: alt.binaries.teevee
Added to index: 17/12/2012 22:14:43
Added to usenet: 17/12/2012 22:14:57
Weblink: http://thetvdb.com/?tab=series&id=263322&lid=7
View NZB: http://omgwtfnzbs.org/details.php?id=PBGHM]]>
- TV: STD
- tv.sd
- 19
-
+ Pan.2015.FRENCH.720p.BluRay.x264-VENUE
+ Sun, 08 Jan 2017 12:57:29 +0200
+ https://api.omgwtfnzbs.me/nzb/?id=RCeDE&user=nzbdrone&api=nzbdrone
+ https://api.omgwtfnzbs.me/nzb/?id=RCeDE&user=nzbdrone&api=nzbdrone
+ Category: Movies: HD
Size: 5.08 GB
Group: alt.binaries.felfelida
Added to index: 06/12/2016 05:27:53
Added to usenet: 08/01/2017 12:57:29
View NZB: https://omgwtfnzbs.me/details.php?id=RCeDE]]>
+ Movies: HD
+ movies.hd
+ 16
+
-
- Bad.Girls.S03E16.DVDRiP.XViD-PiX
- Mon, 17 Dec 2012 22:10:30 +0000
- http://api.omgwtfnzbs.org/sn.php?id=JaeF7&user=nzbdrone&api=nzbdrone
- http://api.omgwtfnzbs.org/sn.php?id=JaeF7&user=nzbdrone&api=nzbdrone
- Category: TV: STD
Size: 397.05 MB
Group: alt.binaries.teevee
Added to index: 17/12/2012 22:10:16
Added to usenet: 17/12/2012 22:10:30
Weblink: http://thetvdb.com/?tab=series&id=75328&lid=7
View NZB: http://omgwtfnzbs.org/details.php?id=JaeF7]]>
- TV: STD
- tv.sd
- 19
-
+ Now.You.See.Me.2.2016.TRUEFRENCH.720p.BluRay.x264-PKPTRS
+ Sun, 08 Jan 2017 12:56:08 +0200
+ https://api.omgwtfnzbs.me/nzb/?id=aFTn5&user=nzbdrone&api=nzbdrone
+ https://api.omgwtfnzbs.me/nzb/?id=aFTn5&user=nzbdrone&api=nzbdrone
+ Category: Movies: HD
Size: 6.36 GB
Group: alt.binaries.felfelida
Added to index: 10/12/2016 10:15:44
Added to usenet: 08/01/2017 12:56:08
View NZB: https://omgwtfnzbs.me/details.php?id=aFTn5]]>
+ Movies: HD
+ movies.hd
+ 16
+
-
- Royal.Pains.S04E16.720p.WEB-DL.DD5.1.H.264-NTb
- Mon, 17 Dec 2012 22:06:00 +0000
- http://api.omgwtfnzbs.org/sn.php?id=tlyYX&user=nzbdrone&api=nzbdrone
- http://api.omgwtfnzbs.org/sn.php?id=tlyYX&user=nzbdrone&api=nzbdrone
- Category: TV: HD
Size: 1.61 GB
Group: alt.binaries.teevee
Added to index: 17/12/2012 22:05:19
Added to usenet: 17/12/2012 22:06:00
Weblink: http://thetvdb.com/?tab=series&id=92411&lid=7
View NZB: http://omgwtfnzbs.org/details.php?id=tlyYX]]>
- TV: HD
- tv.hd
- 20
-
+ Now.You.See.Me.2.2016.FRENCH.720p.BluRay.x264-LOST
+ Sun, 08 Jan 2017 12:55:45 +0200
+ https://api.omgwtfnzbs.me/nzb/?id=xvkz2&user=nzbdrone&api=nzbdrone
+ https://api.omgwtfnzbs.me/nzb/?id=xvkz2&user=nzbdrone&api=nzbdrone
+ Category: Movies: HD
Size: 5.11 GB
Group: alt.binaries.felfelida
Added to index: 03/12/2016 09:20:25
Added to usenet: 08/01/2017 12:55:45
View NZB: https://omgwtfnzbs.me/details.php?id=xvkz2]]>
+ Movies: HD
+ movies.hd
+ 16
+
-
- Royal.Pains.S04E15.720p.WEB-DL.DD5.1.H.264-NTb
- Mon, 17 Dec 2012 21:57:55 +0000
- http://api.omgwtfnzbs.org/sn.php?id=FJrFr&user=nzbdrone&api=nzbdrone
- http://api.omgwtfnzbs.org/sn.php?id=FJrFr&user=nzbdrone&api=nzbdrone
- Category: TV: HD
Size: 1.59 GB
Group: alt.binaries.teevee
Added to index: 17/12/2012 21:57:32
Added to usenet: 17/12/2012 21:57:55
Weblink: http://thetvdb.com/?tab=series&id=92411&lid=7
View NZB: http://omgwtfnzbs.org/details.php?id=FJrFr]]>
- TV: HD
- tv.hd
- 20
-
+ Morgan.2016.FRENCH.720p.BluRay.x264-VENUE
+ Sun, 08 Jan 2017 12:55:10 +0200
+ https://api.omgwtfnzbs.me/nzb/?id=Lc2Az&user=nzbdrone&api=nzbdrone
+ https://api.omgwtfnzbs.me/nzb/?id=Lc2Az&user=nzbdrone&api=nzbdrone
+ Category: Movies: HD
Size: 3.83 GB
Group: alt.binaries.felfelida
Added to index: 10/12/2016 10:18:39
Added to usenet: 08/01/2017 12:55:10
View NZB: https://omgwtfnzbs.me/details.php?id=Lc2Az]]>
+ Movies: HD
+ movies.hd
+ 16
+
-
- Chainsaw.Gang.S01E06.720p.HDTV.x264-YesTV
- Mon, 17 Dec 2012 21:54:29 +0000
- http://api.omgwtfnzbs.org/sn.php?id=OMgpi&user=nzbdrone&api=nzbdrone
- http://api.omgwtfnzbs.org/sn.php?id=OMgpi&user=nzbdrone&api=nzbdrone
- Category: TV: HD
Size: 874.25 MB
Group: alt.binaries.teevee
Added to index: 17/12/2012 21:54:04
Added to usenet: 17/12/2012 21:54:29
Weblink: http://thetvdb.com/?tab=series&id=263322&lid=7
View NZB: http://omgwtfnzbs.org/details.php?id=OMgpi]]>
- TV: HD
- tv.hd
- 20
-
+ Moms.Night.Out.2014.MULTi.1080p.BluRay.x264-LOST
+ Sun, 08 Jan 2017 12:54:52 +0200
+ https://api.omgwtfnzbs.me/nzb/?id=jIJMw&user=nzbdrone&api=nzbdrone
+ https://api.omgwtfnzbs.me/nzb/?id=jIJMw&user=nzbdrone&api=nzbdrone
+ Category: Movies: HD
Size: 9.28 GB
Group: alt.binaries.felfelida
Added to index: 01/12/2016 06:30:43
Added to usenet: 08/01/2017 12:54:52
View NZB: https://omgwtfnzbs.me/details.php?id=jIJMw]]>
+ Movies: HD
+ movies.hd
+ 16
+
-
- Chainsaw.Gang.S01E05.720p.HDTV.x264-YesTV
- Mon, 17 Dec 2012 21:53:07 +0000
- http://api.omgwtfnzbs.org/sn.php?id=9jFDc&user=nzbdrone&api=nzbdrone
- http://api.omgwtfnzbs.org/sn.php?id=9jFDc&user=nzbdrone&api=nzbdrone
- Category: TV: HD
Size: 646.35 MB
Group: alt.binaries.teevee
Added to index: 17/12/2012 21:52:35
Added to usenet: 17/12/2012 21:53:07
Weblink: http://thetvdb.com/?tab=series&id=263322&lid=7
View NZB: http://omgwtfnzbs.org/details.php?id=9jFDc]]>
- TV: HD
- tv.hd
- 20
-
+ Career.Bed.1969.DVDRip.x264-FiCO
+ Sun, 08 Jan 2017 12:54:28 +0200
+ https://api.omgwtfnzbs.me/nzb/?id=6yaYt&user=nzbdrone&api=nzbdrone
+ https://api.omgwtfnzbs.me/nzb/?id=6yaYt&user=nzbdrone&api=nzbdrone
+ Category: Movies: STD
Size: 902.56 MB
Group: alt.binaries.moovee
Added to index: 08/01/2017 11:52:16
Added to usenet: 08/01/2017 12:54:28
View NZB: https://omgwtfnzbs.me/details.php?id=6yaYt]]>
+ Movies: STD
+ movies.sd
+ 15
+
-
- Redneck.Island.S02E06.720p.HDTV.x264-YesTV
- Mon, 17 Dec 2012 21:51:58 +0000
- http://api.omgwtfnzbs.org/sn.php?id=48dBN&user=nzbdrone&api=nzbdrone
- http://api.omgwtfnzbs.org/sn.php?id=48dBN&user=nzbdrone&api=nzbdrone
- Category: TV: HD
Size: 1.38 GB
Group: alt.binaries.teevee
Added to index: 17/12/2012 21:50:34
Added to usenet: 17/12/2012 21:51:58
Weblink: http://thetvdb.com/?tab=series&id=259570&lid=7
View NZB: http://omgwtfnzbs.org/details.php?id=48dBN]]>
- TV: HD
- tv.hd
- 20
-
+ Mission.Impossible.Rogue.Nation.2015.TrueHD.Atmos.AC3.MULTISUBS.1080p.BluRay.x264.HQ-TUSAHD
+ Sun, 08 Jan 2017 12:54:06 +0200
+ https://api.omgwtfnzbs.me/nzb/?id=Uerkq&user=nzbdrone&api=nzbdrone
+ https://api.omgwtfnzbs.me/nzb/?id=Uerkq&user=nzbdrone&api=nzbdrone
+ Category: Movies: HD
Size: 16.69 GB
Group: alt.binaries.felfelida
Added to index: 03/12/2016 04:44:07
Added to usenet: 08/01/2017 12:54:06
View NZB: https://omgwtfnzbs.me/details.php?id=Uerkq]]>
+ Movies: HD
+ movies.hd
+ 16
+
-
- Drugs.Inc.S03E07.Hollywood.High.720p.HDTV.x264-YesTV
- Mon, 17 Dec 2012 21:49:53 +0000
- http://api.omgwtfnzbs.org/sn.php?id=yY198&user=nzbdrone&api=nzbdrone
- http://api.omgwtfnzbs.org/sn.php?id=yY198&user=nzbdrone&api=nzbdrone
- Category: TV: HD
Size: 1.46 GB
Group: alt.binaries.teevee
Added to index: 17/12/2012 21:47:58
Added to usenet: 17/12/2012 21:49:53
Weblink: http://thetvdb.com/?tab=series&id=174501&lid=7
View NZB: http://omgwtfnzbs.org/details.php?id=yY198]]>
- TV: HD
- tv.hd
- 20
-
+ Miss.Peregrines.Home.for.Peculiar.Children.2016.FRENCH.720p.BluRay.x264-VENUE
+ Sun, 08 Jan 2017 12:53:12 +0200
+ https://api.omgwtfnzbs.me/nzb/?id=sL8wn&user=nzbdrone&api=nzbdrone
+ https://api.omgwtfnzbs.me/nzb/?id=sL8wn&user=nzbdrone&api=nzbdrone
+ Category: Movies: HD
Size: 6.34 GB
Group: alt.binaries.felfelida
Added to index: 10/12/2016 10:09:56
Added to usenet: 08/01/2017 12:53:12
View NZB: https://omgwtfnzbs.me/details.php?id=sL8wn]]>
+ Movies: HD
+ movies.hd
+ 16
+
-
- Drugs.Inc.S03E07.Hollywood.High.HDTV.x264-YesTV
- Mon, 17 Dec 2012 21:45:17 +0000
- http://api.omgwtfnzbs.org/sn.php?id=VH7uw&user=nzbdrone&api=nzbdrone
- http://api.omgwtfnzbs.org/sn.php?id=VH7uw&user=nzbdrone&api=nzbdrone
- Category: TV: STD
Size: 476.18 MB
Group: alt.binaries.teevee
Added to index: 17/12/2012 21:44:51
Added to usenet: 17/12/2012 21:45:17
Weblink: http://thetvdb.com/?tab=series&id=174501&lid=7
View NZB: http://omgwtfnzbs.org/details.php?id=VH7uw]]>
- TV: STD
- tv.sd
- 19
-
+ Miracles.from.Heaven.2016.FRENCH.720p.BluRay.x264-VENUE
+ Sun, 08 Jan 2017 12:52:40 +0200
+ https://api.omgwtfnzbs.me/nzb/?id=G1Q8k&user=nzbdrone&api=nzbdrone
+ https://api.omgwtfnzbs.me/nzb/?id=G1Q8k&user=nzbdrone&api=nzbdrone
+ Category: Movies: HD
Size: 5.09 GB
Group: alt.binaries.felfelida
Added to index: 02/12/2016 05:21:58
Added to usenet: 08/01/2017 12:52:40
View NZB: https://omgwtfnzbs.me/details.php?id=G1Q8k]]>
+ Movies: HD
+ movies.hd
+ 16
+
-
- Tron.Uprising.S01E13.720p.WEB-DL.H.264.DD5.1-iT00NZ
- Mon, 17 Dec 2012 21:44:59 +0000
- http://api.omgwtfnzbs.org/sn.php?id=eJxUn&user=nzbdrone&api=nzbdrone
- http://api.omgwtfnzbs.org/sn.php?id=eJxUn&user=nzbdrone&api=nzbdrone
- Category: TV: HD
Size: 807.76 MB
Group: alt.binaries.teevee
Added to index: 17/12/2012 21:44:13
Added to usenet: 17/12/2012 21:44:59
Weblink: http://thetvdb.com/?tab=series&id=258480&lid=7
View NZB: http://omgwtfnzbs.org/details.php?id=eJxUn]]>
- TV: HD
- tv.hd
- 20
-
+ Miles.Ahead.2015.FRENCH.720p.BluRay.x264-VENUE
+ Sun, 08 Jan 2017 12:51:15 +0200
+ https://api.omgwtfnzbs.me/nzb/?id=vnMUP&user=nzbdrone&api=nzbdrone
+ https://api.omgwtfnzbs.me/nzb/?id=vnMUP&user=nzbdrone&api=nzbdrone
+ Category: Movies: HD
Size: 5.06 GB
Group: alt.binaries.felfelida
Added to index: 02/12/2016 05:17:15
Added to usenet: 08/01/2017 12:51:15
View NZB: https://omgwtfnzbs.me/details.php?id=vnMUP]]>
+ Movies: HD
+ movies.hd
+ 16
+
-
- The.Gadget.Show.World.Tour.S02E07.720p.HDTV.x264-FTP
- Mon, 17 Dec 2012 21:27:34 +0000
- http://api.omgwtfnzbs.org/sn.php?id=Wawxv&user=nzbdrone&api=nzbdrone
- http://api.omgwtfnzbs.org/sn.php?id=Wawxv&user=nzbdrone&api=nzbdrone
- Category: TV: HD
Size: 1.28 GB
Group: alt.binaries.teevee
Added to index: 17/12/2012 21:27:23
Added to usenet: 17/12/2012 21:27:34
Weblink: http://thetvdb.com/?tab=series&id=258440&lid=7
View NZB: http://omgwtfnzbs.org/details.php?id=Wawxv]]>
- TV: HD
- tv.hd
- 20
-
+ Mike.and.Dave.Need.Wedding.Dates.2016.FRENCH.720p.BluRay.x264-VENUE
+ Sun, 08 Jan 2017 12:50:54 +0200
+ https://api.omgwtfnzbs.me/nzb/?id=JTdgM&user=nzbdrone&api=nzbdrone
+ https://api.omgwtfnzbs.me/nzb/?id=JTdgM&user=nzbdrone&api=nzbdrone
+ Category: Movies: HD
Size: 5.1 GB
Group: alt.binaries.felfelida
Added to index: 04/12/2016 06:25:11
Added to usenet: 08/01/2017 12:50:54
View NZB: https://omgwtfnzbs.me/details.php?id=JTdgM]]>
+ Movies: HD
+ movies.hd
+ 16
+
-
- VH1.Divas.2012.720p.HDTV.x264-2HD
- Mon, 17 Dec 2012 20:57:15 +0000
- http://api.omgwtfnzbs.org/sn.php?id=Tdz1e&user=nzbdrone&api=nzbdrone
- http://api.omgwtfnzbs.org/sn.php?id=Tdz1e&user=nzbdrone&api=nzbdrone
- Category: TV: HD
Size: 3.3 GB
Group: alt.binaries.teevee
Added to index: 17/12/2012 20:56:27
Added to usenet: 17/12/2012 20:57:15
Weblink: N/A
View NZB: http://omgwtfnzbs.org/details.php?id=Tdz1e]]>
- TV: HD
- tv.hd
- 20
-
+ Mia.Madre.2015.FRENCH.720p.BluRay.x264-DEAL
+ Sun, 08 Jan 2017 12:50:30 +0200
+ https://api.omgwtfnzbs.me/nzb/?id=h9usJ&user=nzbdrone&api=nzbdrone
+ https://api.omgwtfnzbs.me/nzb/?id=h9usJ&user=nzbdrone&api=nzbdrone
+ Category: Movies: HD
Size: 5.08 GB
Group: alt.binaries.felfelida
Added to index: 15/12/2016 05:54:50
Added to usenet: 08/01/2017 12:50:30
View NZB: https://omgwtfnzbs.me/details.php?id=h9usJ]]>
+ Movies: HD
+ movies.hd
+ 16
+
-
- Bamazon.S01E02.Heart.of.Darkness.480p.HDTV.x264-mSD
- Mon, 17 Dec 2012 20:25:17 +0000
- http://api.omgwtfnzbs.org/sn.php?id=hSrC6&user=nzbdrone&api=nzbdrone
- http://api.omgwtfnzbs.org/sn.php?id=hSrC6&user=nzbdrone&api=nzbdrone
- Category: TV: STD
Size: 599.56 MB
Group: alt.binaries.multimedia
Added to index: 17/12/2012 20:31:05
Added to usenet: 17/12/2012 20:25:17
Weblink: http://thetvdb.com/?tab=series&id=263659&lid=7
View NZB: http://omgwtfnzbs.org/details.php?id=hSrC6]]>
- TV: STD
- tv.sd
- 19
-
+ Mechanic.Resurrection.2016.RERiP.FRENCH.720p.BluRay.x264-ZEST
+ Sun, 08 Jan 2017 12:50:08 +0200
+ https://api.omgwtfnzbs.me/nzb/?id=4qC4G&user=nzbdrone&api=nzbdrone
+ https://api.omgwtfnzbs.me/nzb/?id=4qC4G&user=nzbdrone&api=nzbdrone
+ Category: Movies: HD
Size: 3.82 GB
Group: alt.binaries.felfelida
Added to index: 10/12/2016 07:00:11
Added to usenet: 08/01/2017 12:50:08
View NZB: https://omgwtfnzbs.me/details.php?id=4qC4G]]>
+ Movies: HD
+ movies.hd
+ 16
+
-
- Bamazon.S01E02.Heart.of.Darkness.720p.HDTV.x264-DHD
- Mon, 17 Dec 2012 19:35:19 +0000
- http://api.omgwtfnzbs.org/sn.php?id=Iy0YV&user=nzbdrone&api=nzbdrone
- http://api.omgwtfnzbs.org/sn.php?id=Iy0YV&user=nzbdrone&api=nzbdrone
- Category: TV: HD
Size: 1.93 GB
Group: alt.binaries.teevee
Added to index: 17/12/2012 19:33:31
Added to usenet: 17/12/2012 19:35:19
Weblink: http://thetvdb.com/?tab=series&id=263659&lid=7
View NZB: http://omgwtfnzbs.org/details.php?id=Iy0YV]]>
- TV: HD
- tv.hd
- 20
-
+ Maze.Runner.The.Scorch.Trials.2015.FRENCH.720p.BluRay.x264-VENUE
+ Sun, 08 Jan 2017 12:49:48 +0200
+ https://api.omgwtfnzbs.me/nzb/?id=SWTGD&user=nzbdrone&api=nzbdrone
+ https://api.omgwtfnzbs.me/nzb/?id=SWTGD&user=nzbdrone&api=nzbdrone
+ Category: Movies: HD
Size: 6.36 GB
Group: alt.binaries.felfelida
Added to index: 06/12/2016 05:29:53
Added to usenet: 08/01/2017 12:49:48
View NZB: https://omgwtfnzbs.me/details.php?id=SWTGD]]>
+ Movies: HD
+ movies.hd
+ 16
+
-
- Tron.Uprising.S01E13.1080p.WEB-DL.H.264.DD5.1-iT00NZ
- Mon, 17 Dec 2012 19:34:42 +0000
- http://api.omgwtfnzbs.org/sn.php?id=S0q8M&user=nzbdrone&api=nzbdrone
- http://api.omgwtfnzbs.org/sn.php?id=S0q8M&user=nzbdrone&api=nzbdrone
- Category: TV: HD
Size: 1.02 GB
Group: alt.binaries.teevee
Added to index: 17/12/2012 19:33:44
Added to usenet: 17/12/2012 19:34:42
Weblink: http://thetvdb.com/?tab=series&id=258480&lid=7
View NZB: http://omgwtfnzbs.org/details.php?id=S0q8M]]>
- TV: HD
- tv.hd
- 20
-
+ Marauders.2016.FRENCH.720p.BluRay.x264-LOST
+ Sun, 08 Jan 2017 12:49:26 +0200
+ https://api.omgwtfnzbs.me/nzb/?id=qCkSA&user=nzbdrone&api=nzbdrone
+ https://api.omgwtfnzbs.me/nzb/?id=qCkSA&user=nzbdrone&api=nzbdrone
+ Category: Movies: HD
Size: 5.1 GB
Group: alt.binaries.felfelida
Added to index: 03/12/2016 06:33:57
Added to usenet: 08/01/2017 12:49:26
View NZB: https://omgwtfnzbs.me/details.php?id=qCkSA]]>
+ Movies: HD
+ movies.hd
+ 16
+
-
- Robot.Chicken.S06E13.1080p.WEB-DL.H.264.AAC2.0-iT00NZ
- Mon, 17 Dec 2012 19:31:14 +0000
- http://api.omgwtfnzbs.org/sn.php?id=MQE67&user=nzbdrone&api=nzbdrone
- http://api.omgwtfnzbs.org/sn.php?id=MQE67&user=nzbdrone&api=nzbdrone
- Category: TV: HD
Size: 485.75 MB
Group: alt.binaries.teevee
Added to index: 17/12/2012 19:31:08
Added to usenet: 17/12/2012 19:31:14
Weblink: http://thetvdb.com/?tab=series&id=75734&lid=7
View NZB: http://omgwtfnzbs.org/details.php?id=MQE67]]>
- TV: HD
- tv.hd
- 20
-
+ Maggie.2015.TRUEFRENCH.720p.BluRay.x264-Ryotox
+ Sun, 08 Jan 2017 12:48:44 +0200
+ https://api.omgwtfnzbs.me/nzb/?id=Dt1e7&user=nzbdrone&api=nzbdrone
+ https://api.omgwtfnzbs.me/nzb/?id=Dt1e7&user=nzbdrone&api=nzbdrone
+ Category: Movies: HD
Size: 5.09 GB
Group: alt.binaries.felfelida
Added to index: 10/12/2016 22:13:04
Added to usenet: 08/01/2017 12:48:44
View NZB: https://omgwtfnzbs.me/details.php?id=Dt1e7]]>
+ Movies: HD
+ movies.hd
+ 16
+
-
- Teenage.Mutant.Ninja.Turtles.2012.S01E12.It.Came.From.the.Depths.480p.WEB-DL.x264-mSD
- Mon, 17 Dec 2012 19:31:12 +0000
- http://api.omgwtfnzbs.org/sn.php?id=k6VI4&user=nzbdrone&api=nzbdrone
- http://api.omgwtfnzbs.org/sn.php?id=k6VI4&user=nzbdrone&api=nzbdrone
- Category: TV: STD
Size: 141.12 MB
Group: alt.binaries.multimedia
Added to index: 17/12/2012 19:37:18
Added to usenet: 17/12/2012 19:31:12
Weblink: http://thetvdb.com/?tab=series&id=261451&lid=7
View NZB: http://omgwtfnzbs.org/details.php?id=k6VI4]]>
- TV: STD
- tv.sd
- 19
-
+ Mad.Max.Fury.Road.2015.FRENCH.720p.BluRay.x264-LOST
+ Sun, 08 Jan 2017 12:46:53 +0200
+ https://api.omgwtfnzbs.me/nzb/?id=zFa21&user=nzbdrone&api=nzbdrone
+ https://api.omgwtfnzbs.me/nzb/?id=zFa21&user=nzbdrone&api=nzbdrone
+ Category: Movies: HD
Size: 5.12 GB
Group: alt.binaries.felfelida
Added to index: 11/12/2016 01:26:53
Added to usenet: 08/01/2017 12:46:53
View NZB: https://omgwtfnzbs.me/details.php?id=zFa21]]>
+ Movies: HD
+ movies.hd
+ 16
+
-
- Teenage.Mutant.Ninja.Turtles.2012.S01E12.1080p.WEB-DL.H.264.AAC2.0-iT00NZ
- Mon, 17 Dec 2012 19:30:55 +0000
- http://api.omgwtfnzbs.org/sn.php?id=7mmU1&user=nzbdrone&api=nzbdrone
- http://api.omgwtfnzbs.org/sn.php?id=7mmU1&user=nzbdrone&api=nzbdrone
- Category: TV: HD
Size: 980.75 MB
Group: alt.binaries.teevee
Added to index: 17/12/2012 19:30:42
Added to usenet: 17/12/2012 19:30:55
Weblink: N/A
View NZB: http://omgwtfnzbs.org/details.php?id=7mmU1]]>
- TV: HD
- tv.hd
- 20
-
+ London.Has.Fallen.2016.TRUEFRENCH.720p.BluRay.x264-AiRLiNE
+ Sun, 08 Jan 2017 12:46:22 +0200
+ https://api.omgwtfnzbs.me/nzb/?id=MvrDy&user=nzbdrone&api=nzbdrone
+ https://api.omgwtfnzbs.me/nzb/?id=MvrDy&user=nzbdrone&api=nzbdrone
+ Category: Movies: HD
Size: 5.12 GB
Group: alt.binaries.felfelida
Added to index: 01/12/2016 23:06:45
Added to usenet: 08/01/2017 12:46:22
View NZB: https://omgwtfnzbs.me/details.php?id=MvrDy]]>
+ Movies: HD
+ movies.hd
+ 16
+
-
- Bamazon.S01E02.HDTV.x264-KILLERS
- Mon, 17 Dec 2012 19:29:18 +0000
- http://api.omgwtfnzbs.org/sn.php?id=eVtFp&user=nzbdrone&api=nzbdrone
- http://api.omgwtfnzbs.org/sn.php?id=eVtFp&user=nzbdrone&api=nzbdrone
- Category: TV: STD
Size: 666.34 MB
Group: alt.binaries.teevee
Added to index: 17/12/2012 19:29:11
Added to usenet: 17/12/2012 19:29:18
Weblink: http://thetvdb.com/?tab=series&id=263659&lid=7
View NZB: http://omgwtfnzbs.org/details.php?id=eVtFp]]>
- TV: STD
- tv.sd
- 19
-
+ Life.On.The.Line.2015.FRENCH.720p.BluRay.x264-LOST
+ Sun, 08 Jan 2017 12:45:59 +0200
+ https://api.omgwtfnzbs.me/nzb/?id=kc8Pv&user=nzbdrone&api=nzbdrone
+ https://api.omgwtfnzbs.me/nzb/?id=kc8Pv&user=nzbdrone&api=nzbdrone
+ Category: Movies: HD
Size: 5.12 GB
Group: alt.binaries.felfelida
Added to index: 01/12/2016 06:33:01
Added to usenet: 08/01/2017 12:45:59
View NZB: https://omgwtfnzbs.me/details.php?id=kc8Pv]]>
+ Movies: HD
+ movies.hd
+ 16
+
-
- Cross.Country.Skiing.World.Cup.2012.12.16.Canmore.Womens.Skiathlon.720p.HDTV.x264-SKIS
- Mon, 17 Dec 2012 19:28:43 +0000
- http://api.omgwtfnzbs.org/sn.php?id=PsRdj&user=nzbdrone&api=nzbdrone
- http://api.omgwtfnzbs.org/sn.php?id=PsRdj&user=nzbdrone&api=nzbdrone
- Category: TV: HD
Size: 1.84 GB
Group: alt.binaries.teevee
Added to index: 17/12/2012 19:28:15
Added to usenet: 17/12/2012 19:28:43
Weblink: N/A
View NZB: http://omgwtfnzbs.org/details.php?id=PsRdj]]>
- TV: HD
- tv.hd
- 20
-
+ Le.Corps.De.Mon.Ennemi.1976.FRENCH.720p.BluRay.x264-DuSS
+ Sun, 08 Jan 2017 12:45:38 +0200
+ https://api.omgwtfnzbs.me/nzb/?id=8IPbs&user=nzbdrone&api=nzbdrone
+ https://api.omgwtfnzbs.me/nzb/?id=8IPbs&user=nzbdrone&api=nzbdrone
+ Category: Movies: HD
Size: 6.38 GB
Group: alt.binaries.movies.french
Added to index: 10/12/2016 08:00:35
Added to usenet: 08/01/2017 12:45:38
View NZB: https://omgwtfnzbs.me/details.php?id=8IPbs]]>
+ Movies: HD
+ movies.hd
+ 16
+
-
- Robot.Chicken.S06E13.Robot.Chickens.Atm.Christmas.Special.480p.WEB-DL.x264-mSD
- Mon, 17 Dec 2012 19:17:22 +0000
- http://api.omgwtfnzbs.org/sn.php?id=cNUlC&user=nzbdrone&api=nzbdrone
- http://api.omgwtfnzbs.org/sn.php?id=cNUlC&user=nzbdrone&api=nzbdrone
- Category: TV: STD
Size: 109.35 MB
Group: alt.binaries.multimedia
Added to index: 17/12/2012 19:23:28
Added to usenet: 17/12/2012 19:17:22
Weblink: http://thetvdb.com/?tab=series&id=75734&lid=7
View NZB: http://omgwtfnzbs.org/details.php?id=cNUlC]]>
- TV: STD
- tv.sd
- 19
-
+ Last.Knights.2015.TRUEFRENCH.720p.BluRay.x264-AiRLiNE
+ Sun, 08 Jan 2017 12:45:11 +0200
+ https://api.omgwtfnzbs.me/nzb/?id=Vygnp&user=nzbdrone&api=nzbdrone
+ https://api.omgwtfnzbs.me/nzb/?id=Vygnp&user=nzbdrone&api=nzbdrone
+ Category: Movies: HD
Size: 5.1 GB
Group: alt.binaries.felfelida
Added to index: 27/12/2016 10:06:24
Added to usenet: 08/01/2017 12:45:11
View NZB: https://omgwtfnzbs.me/details.php?id=Vygnp]]>
+ Movies: HD
+ movies.hd
+ 16
+
-
- Bobs.Burgers.S03E09.God.Rest.Ye.Merry.Gentle-Mannequins.480p.WEB-DL.x264-mSD
- Mon, 17 Dec 2012 19:04:10 +0000
- http://api.omgwtfnzbs.org/sn.php?id=LbeeT&user=nzbdrone&api=nzbdrone
- http://api.omgwtfnzbs.org/sn.php?id=LbeeT&user=nzbdrone&api=nzbdrone
- Category: TV: STD
Size: 101.75 MB
Group: alt.binaries.multimedia
Added to index: 17/12/2012 19:10:14
Added to usenet: 17/12/2012 19:04:10
Weblink: http://thetvdb.com/?tab=series&id=194031&lid=7
View NZB: http://omgwtfnzbs.org/details.php?id=LbeeT]]>
- TV: STD
- tv.sd
- 19
-
+ La.Vallee.1972.FRENCH.720p.BluRay.x264-FiDELiO
+ Sun, 08 Jan 2017 12:44:43 +0200
+ https://api.omgwtfnzbs.me/nzb/?id=texzm&user=nzbdrone&api=nzbdrone
+ https://api.omgwtfnzbs.me/nzb/?id=texzm&user=nzbdrone&api=nzbdrone
+ Category: Movies: HD
Size: 5.11 GB
Group: alt.binaries.movies.french
Added to index: 11/12/2016 23:55:30
Added to usenet: 08/01/2017 12:44:43
View NZB: https://omgwtfnzbs.me/details.php?id=texzm]]>
+ Movies: HD
+ movies.hd
+ 16
+
-
- Ax.Men.S06E02.480p.HDTV.x264-mSD
- Mon, 17 Dec 2012 19:01:22 +0000
- http://api.omgwtfnzbs.org/sn.php?id=UeUEK&user=nzbdrone&api=nzbdrone
- http://api.omgwtfnzbs.org/sn.php?id=UeUEK&user=nzbdrone&api=nzbdrone
- Category: TV: STD
Size: 730.17 MB
Group: alt.binaries.multimedia
Added to index: 17/12/2012 19:07:05
Added to usenet: 17/12/2012 19:01:22
Weblink: http://thetvdb.com/?tab=series&id=81578&lid=7
View NZB: http://omgwtfnzbs.org/details.php?id=UeUEK]]>
- TV: STD
- tv.sd
- 19
-
+ Kind.Hearts.and.Coronets.1949.FRENCH.720p.BluRay.x264-FiDELiO
+ Sun, 08 Jan 2017 12:44:04 +0200
+ https://api.omgwtfnzbs.me/nzb/?id=HLFBj&user=nzbdrone&api=nzbdrone
+ https://api.omgwtfnzbs.me/nzb/?id=HLFBj&user=nzbdrone&api=nzbdrone
+ Category: Movies: HD
Size: 5.09 GB
Group: alt.binaries.movies.french
Added to index: 04/12/2016 02:58:43
Added to usenet: 08/01/2017 12:44:04
View NZB: https://omgwtfnzbs.me/details.php?id=HLFBj]]>
+ Movies: HD
+ movies.hd
+ 16
+
-
- Teenage.Mutant.Ninja.Turtles.2012.S01E12.720p.WEB-DL.H.264.AAC2.0-iT00NZ
- Mon, 17 Dec 2012 17:06:46 +0000
- http://api.omgwtfnzbs.org/sn.php?id=BkFcy&user=nzbdrone&api=nzbdrone
- http://api.omgwtfnzbs.org/sn.php?id=BkFcy&user=nzbdrone&api=nzbdrone
- Category: TV: HD
Size: 802.96 MB
Group: alt.binaries.teevee
Added to index: 17/12/2012 17:06:05
Added to usenet: 17/12/2012 17:06:46
Weblink: http://thetvdb.com/?tab=series&id=261451&lid=7
View NZB: http://omgwtfnzbs.org/details.php?id=BkFcy]]>
- TV: HD
- tv.hd
- 20
-
+ Kill.Command.2016.FRENCH.720p.BluRay.x264-ZEST
+ Sun, 08 Jan 2017 12:43:12 +0200
+ https://api.omgwtfnzbs.me/nzb/?id=f1WNg&user=nzbdrone&api=nzbdrone
+ https://api.omgwtfnzbs.me/nzb/?id=f1WNg&user=nzbdrone&api=nzbdrone
+ Category: Movies: HD
Size: 5.1 GB
Group: alt.binaries.felfelida
Added to index: 29/11/2016 07:31:47
Added to usenet: 08/01/2017 12:43:12
View NZB: https://omgwtfnzbs.me/details.php?id=f1WNg]]>
+ Movies: HD
+ movies.hd
+ 16
+
-
- Robot.Chicken.S06E13.720p.WEB-DL.H.264.AAC2.0-iT00NZ
- Mon, 17 Dec 2012 16:41:36 +0000
- http://api.omgwtfnzbs.org/sn.php?id=69daj&user=nzbdrone&api=nzbdrone
- http://api.omgwtfnzbs.org/sn.php?id=69daj&user=nzbdrone&api=nzbdrone
- Category: TV: HD
Size: 382.44 MB
Group: alt.binaries.teevee
Added to index: 17/12/2012 16:41:30
Added to usenet: 17/12/2012 16:41:36
Weblink: http://thetvdb.com/?tab=series&id=75734&lid=7
View NZB: http://omgwtfnzbs.org/details.php?id=69daj]]>
- TV: HD
- tv.hd
- 20
-
+ Joy.2015.FRENCH.720p.BluRay.x264-PiNKPANTERS
+ Sun, 08 Jan 2017 12:42:45 +0200
+ https://api.omgwtfnzbs.me/nzb/?id=2hnZd&user=nzbdrone&api=nzbdrone
+ https://api.omgwtfnzbs.me/nzb/?id=2hnZd&user=nzbdrone&api=nzbdrone
+ Category: Movies: HD
Size: 5.14 GB
Group: alt.binaries.felfelida
Added to index: 04/12/2016 06:40:26
Added to usenet: 08/01/2017 12:42:45
View NZB: https://omgwtfnzbs.me/details.php?id=2hnZd]]>
+ Movies: HD
+ movies.hd
+ 16
+
-
- Last.Man.Standing.2011.S02E07.480p.WEB-DL.x264-mSD
- Mon, 17 Dec 2012 16:39:12 +0000
- http://api.omgwtfnzbs.org/sn.php?id=rWByd&user=nzbdrone&api=nzbdrone
- http://api.omgwtfnzbs.org/sn.php?id=rWByd&user=nzbdrone&api=nzbdrone
- Category: TV: STD
Size: 129.91 MB
Group: alt.binaries.multimedia
Added to index: 17/12/2012 16:45:18
Added to usenet: 17/12/2012 16:39:12
Weblink: http://thetvdb.com/?tab=series&id=248834&lid=7
View NZB: http://omgwtfnzbs.org/details.php?id=rWByd]]>
- TV: STD
- tv.sd
- 19
-
+ Jean.de.Florette.1985.720p.BluRay.x264-PFa
+ Sun, 08 Jan 2017 12:42:23 +0200
+ https://api.omgwtfnzbs.me/nzb/?id=QO4la&user=nzbdrone&api=nzbdrone
+ https://api.omgwtfnzbs.me/nzb/?id=QO4la&user=nzbdrone&api=nzbdrone
+ Category: Movies: HD
Size: 6.32 GB
Group: alt.binaries.movies.french
Added to index: 06/12/2016 09:19:17
Added to usenet: 08/01/2017 12:42:23
View NZB: https://omgwtfnzbs.me/details.php?id=QO4la]]>
+ Movies: HD
+ movies.hd
+ 16
+
-
- WWE.Tables.Ladders.and.Chairs.2012.PPV.HDTV.x264-KYR
- Mon, 17 Dec 2012 16:28:06 +0000
- http://api.omgwtfnzbs.org/sn.php?id=cskMX&user=nzbdrone&api=nzbdrone
- http://api.omgwtfnzbs.org/sn.php?id=cskMX&user=nzbdrone&api=nzbdrone
- Category: TV: STD
Size: 2.34 GB
Group: alt.binaries.teevee
Added to index: 17/12/2012 16:25:20
Added to usenet: 17/12/2012 16:28:06
Weblink: N/A
View NZB: http://omgwtfnzbs.org/details.php?id=cskMX]]>
- TV: STD
- tv.sd
- 19
-
+ Jaws.3.1983.FRENCH.720p.BluRay.x264-ULSHD
+ Sun, 08 Jan 2017 12:41:58 +0200
+ https://api.omgwtfnzbs.me/nzb/?id=o4LxX&user=nzbdrone&api=nzbdrone
+ https://api.omgwtfnzbs.me/nzb/?id=o4LxX&user=nzbdrone&api=nzbdrone
+ Category: Movies: HD
Size: 5.1 GB
Group: alt.binaries.movies.french
Added to index: 08/12/2016 23:03:02
Added to usenet: 08/01/2017 12:41:58
View NZB: https://omgwtfnzbs.me/details.php?id=o4LxX]]>
+ Movies: HD
+ movies.hd
+ 16
+
-
- Damages.S05E03.Failure.Is.Failure.720p.WEB-DL.DD5.1.H.264-BS
- Mon, 17 Dec 2012 16:19:22 +0000
- http://api.omgwtfnzbs.org/sn.php?id=OFIkR&user=nzbdrone&api=nzbdrone
- http://api.omgwtfnzbs.org/sn.php?id=OFIkR&user=nzbdrone&api=nzbdrone
- Category: TV: HD
Size: 2.05 GB
Group: alt.binaries.teevee
Added to index: 17/12/2012 16:17:32
Added to usenet: 17/12/2012 16:19:22
Weblink: http://thetvdb.com/?tab=series&id=80367&lid=7
View NZB: http://omgwtfnzbs.org/details.php?id=OFIkR]]>
- TV: HD
- tv.hd
- 20
-
+ Jaws.2.1978.FRENCH.720p.BluRay.x264-ULSHD
+ Sun, 08 Jan 2017 12:41:29 +0200
+ https://api.omgwtfnzbs.me/nzb/?id=Bkd9U&user=nzbdrone&api=nzbdrone
+ https://api.omgwtfnzbs.me/nzb/?id=Bkd9U&user=nzbdrone&api=nzbdrone
+ Category: Movies: HD
Size: 5.09 GB
Group: alt.binaries.movies.french
Added to index: 10/12/2016 22:34:02
Added to usenet: 08/01/2017 12:41:29
View NZB: https://omgwtfnzbs.me/details.php?id=Bkd9U]]>
+ Movies: HD
+ movies.hd
+ 16
+
-
- CSI.S13E10.480p.WEB-DL.x264-mSD
- Mon, 17 Dec 2012 16:17:48 +0000
- http://api.omgwtfnzbs.org/sn.php?id=XI8KI&user=nzbdrone&api=nzbdrone
- http://api.omgwtfnzbs.org/sn.php?id=XI8KI&user=nzbdrone&api=nzbdrone
- Category: TV: STD
Size: 274.77 MB
Group: alt.binaries.multimedia
Added to index: 17/12/2012 16:23:46
Added to usenet: 17/12/2012 16:17:48
Weblink: http://thetvdb.com/?tab=series&id=233851&lid=7
View NZB: http://omgwtfnzbs.org/details.php?id=XI8KI]]>
- TV: STD
- tv.sd
- 19
-
+ In.the.Heart.of.the.Sea.2015.TRUEFRENCH.720p.BluRay.x264-AiRLiNE
+ Sun, 08 Jan 2017 12:40:42 +0200
+ https://api.omgwtfnzbs.me/nzb/?id=ZQuLR&user=nzbdrone&api=nzbdrone
+ https://api.omgwtfnzbs.me/nzb/?id=ZQuLR&user=nzbdrone&api=nzbdrone
+ Category: Movies: HD
Size: 5.08 GB
Group: alt.binaries.felfelida
Added to index: 29/11/2016 23:05:34
Added to usenet: 08/01/2017 12:40:42
View NZB: https://omgwtfnzbs.me/details.php?id=ZQuLR]]>
+ Movies: HD
+ movies.hd
+ 16
+
-
- Damages.S05E02.Have.You.Met.the.Eel.Yet.720p.WEB-DL.DD5.1.H.264-BS
- Mon, 17 Dec 2012 16:17:23 +0000
- http://api.omgwtfnzbs.org/sn.php?id=uyPWF&user=nzbdrone&api=nzbdrone
- http://api.omgwtfnzbs.org/sn.php?id=uyPWF&user=nzbdrone&api=nzbdrone
- Category: TV: HD
Size: 1.63 GB
Group: alt.binaries.teevee
Added to index: 17/12/2012 16:16:43
Added to usenet: 17/12/2012 16:17:23
Weblink: http://thetvdb.com/?tab=series&id=80367&lid=7
View NZB: http://omgwtfnzbs.org/details.php?id=uyPWF]]>
- TV: HD
- tv.hd
- 20
-
+ Ils.Sont.Partout.2016.FRENCH.1080p.WEB.H264-SiGeRiS
+ Sun, 08 Jan 2017 12:39:57 +0200
+ https://api.omgwtfnzbs.me/nzb/?id=FCqh6&user=nzbdrone&api=nzbdrone
+ https://api.omgwtfnzbs.me/nzb/?id=FCqh6&user=nzbdrone&api=nzbdrone
+ Category: Movies: HD
Size: 4.22 GB
Group: alt.binaries.movies.french
Added to index: 29/11/2016 22:56:32
Added to usenet: 08/01/2017 12:39:57
View NZB: https://omgwtfnzbs.me/details.php?id=FCqh6]]>
+ Movies: HD
+ movies.hd
+ 16
+
-
- Damages.S05E01.You.Want.to.End.This.Once.and.for.All.720p.WEB-DL.DD5.1.H.264-BS
- Mon, 17 Dec 2012 16:14:47 +0000
- http://api.omgwtfnzbs.org/sn.php?id=41F66&user=nzbdrone&api=nzbdrone
- http://api.omgwtfnzbs.org/sn.php?id=41F66&user=nzbdrone&api=nzbdrone
- Category: TV: HD
Size: 1.75 GB
Group: alt.binaries.teevee
Added to index: 17/12/2012 16:13:48
Added to usenet: 17/12/2012 16:14:47
Weblink: http://thetvdb.com/?tab=series&id=80367&lid=7
View NZB: http://omgwtfnzbs.org/details.php?id=41F66]]>
- TV: HD
- tv.hd
- 20
-
+ I.Saw.the.Light.2015.FRENCH.720p.BluRay.x264-VENUE
+ Sun, 08 Jan 2017 12:38:44 +0200
+ https://api.omgwtfnzbs.me/nzb/?id=ct7t3&user=nzbdrone&api=nzbdrone
+ https://api.omgwtfnzbs.me/nzb/?id=ct7t3&user=nzbdrone&api=nzbdrone
+ Category: Movies: HD
Size: 6.36 GB
Group: alt.binaries.felfelida
Added to index: 01/12/2016 06:28:23
Added to usenet: 08/01/2017 12:38:44
View NZB: https://omgwtfnzbs.me/details.php?id=ct7t3]]>
+ Movies: HD
+ movies.hd
+ 16
+
-
- Damages.S05.720p.WEB-DL.DD5.1.H.264
- Mon, 17 Dec 2012 15:44:20 +0000
- http://api.omgwtfnzbs.org/sn.php?id=1sqbT&user=nzbdrone&api=nzbdrone
- http://api.omgwtfnzbs.org/sn.php?id=1sqbT&user=nzbdrone&api=nzbdrone
- Category: TV: HD
Size: 18.76 GB
Group: alt.binaries.teevee
Added to index: 17/12/2012 15:26:02
Added to usenet: 17/12/2012 15:44:20
Weblink: http://thetvdb.com/?tab=series&id=80367&lid=7
View NZB: http://omgwtfnzbs.org/details.php?id=1sqbT]]>
- TV: HD
- tv.hd
- 20
-
+ Hoosiers.1986.FRENCH.720p.BluRay.x264-DuSS
+ Sun, 08 Jan 2017 12:37:43 +0200
+ https://api.omgwtfnzbs.me/nzb/?id=OFgGx&user=nzbdrone&api=nzbdrone
+ https://api.omgwtfnzbs.me/nzb/?id=OFgGx&user=nzbdrone&api=nzbdrone
+ Category: Movies: HD
Size: 5.1 GB
Group: alt.binaries.movies.french
Added to index: 08/12/2016 23:07:15
Added to usenet: 08/01/2017 12:37:43
View NZB: https://omgwtfnzbs.me/details.php?id=OFgGx]]>
+ Movies: HD
+ movies.hd
+ 16
+
-
- Criminal.Minds.S08E11.480p.WEB-DL.x264-mSD
- Mon, 17 Dec 2012 15:21:48 +0000
- http://api.omgwtfnzbs.org/sn.php?id=Hq7GY&user=nzbdrone&api=nzbdrone
- http://api.omgwtfnzbs.org/sn.php?id=Hq7GY&user=nzbdrone&api=nzbdrone
- Category: TV: STD
Size: 243.65 MB
Group: alt.binaries.multimedia
Added to index: 17/12/2012 15:27:51
Added to usenet: 17/12/2012 15:21:48
Weblink: http://thetvdb.com/?tab=series&id=75710&lid=7
View NZB: http://omgwtfnzbs.org/details.php?id=Hq7GY]]>
- TV: STD
- tv.sd
- 19
-
+ Home.On.The.Range.2004.FRENCH.720p.BluRay.x264.DTS-MUxHD
+ Sun, 08 Jan 2017 12:37:22 +0200
+ https://api.omgwtfnzbs.me/nzb/?id=9cEer&user=nzbdrone&api=nzbdrone
+ https://api.omgwtfnzbs.me/nzb/?id=9cEer&user=nzbdrone&api=nzbdrone
+ Category: Movies: HD
Size: 2.56 GB
Group: alt.binaries.movies.french
Added to index: 04/12/2016 02:59:32
Added to usenet: 08/01/2017 12:37:22
View NZB: https://omgwtfnzbs.me/details.php?id=9cEer]]>
+ Movies: HD
+ movies.hd
+ 16
+
-
- Ax.Men.S06E02.720p.HDTV.x264-KILLERS
- Mon, 17 Dec 2012 15:21:40 +0000
- http://api.omgwtfnzbs.org/sn.php?id=fWOSV&user=nzbdrone&api=nzbdrone
- http://api.omgwtfnzbs.org/sn.php?id=fWOSV&user=nzbdrone&api=nzbdrone
- Category: TV: HD
Size: 2.93 GB
Group: alt.binaries.teevee
Added to index: 17/12/2012 15:19:52
Added to usenet: 17/12/2012 15:21:40
Weblink: http://thetvdb.com/?tab=series&id=81578&lid=7
View NZB: http://omgwtfnzbs.org/details.php?id=fWOSV]]>
- TV: HD
- tv.hd
- 20
-
+ Hitman.Agent.47.2015.TRUEFRENCH.720p.BluRay.x264-MELBA
+ Sun, 08 Jan 2017 12:37:07 +0200
+ https://api.omgwtfnzbs.me/nzb/?id=XIVqo&user=nzbdrone&api=nzbdrone
+ https://api.omgwtfnzbs.me/nzb/?id=XIVqo&user=nzbdrone&api=nzbdrone
+ Category: Movies: HD
Size: 3.82 GB
Group: alt.binaries.felfelida
Added to index: 27/12/2016 12:26:04
Added to usenet: 08/01/2017 12:37:07
View NZB: https://omgwtfnzbs.me/details.php?id=XIVqo]]>
+ Movies: HD
+ movies.hd
+ 16
+
-
- Last.Man.Standing.2011.S02E07.720p.WEB-DL.DD5.1.h.264-pcsyndicate
- Mon, 17 Dec 2012 15:09:28 +0000
- http://api.omgwtfnzbs.org/sn.php?id=dNzxs&user=nzbdrone&api=nzbdrone
- http://api.omgwtfnzbs.org/sn.php?id=dNzxs&user=nzbdrone&api=nzbdrone
- Category: TV: HD
Size: 778.83 MB
Group: alt.binaries.teevee
Added to index: 17/12/2012 15:09:10
Added to usenet: 17/12/2012 15:09:28
Weblink: http://thetvdb.com/?tab=series&id=248834&lid=7
View NZB: http://omgwtfnzbs.org/details.php?id=dNzxs]]>
- TV: HD
- tv.hd
- 20
-
+ Hitman.Agent.47.2015.FRENCH.720p.BluRay.x264-VENUE
+ Sun, 08 Jan 2017 12:36:51 +0200
+ https://api.omgwtfnzbs.me/nzb/?id=If4Ei&user=nzbdrone&api=nzbdrone
+ https://api.omgwtfnzbs.me/nzb/?id=If4Ei&user=nzbdrone&api=nzbdrone
+ Category: Movies: HD
Size: 5.08 GB
Group: alt.binaries.felfelida
Added to index: 06/12/2016 05:35:11
Added to usenet: 08/01/2017 12:36:51
View NZB: https://omgwtfnzbs.me/details.php?id=If4Ei]]>
+ Movies: HD
+ movies.hd
+ 16
+
-
- Last.Man.Standing.2011.S02E06.720p.WEB-DL.DD5.1.h.264-pcsyndicate
- Mon, 17 Dec 2012 15:08:45 +0000
- http://api.omgwtfnzbs.org/sn.php?id=mQpXj&user=nzbdrone&api=nzbdrone
- http://api.omgwtfnzbs.org/sn.php?id=mQpXj&user=nzbdrone&api=nzbdrone
- Category: TV: HD
Size: 788.79 MB
Group: alt.binaries.teevee
Added to index: 17/12/2012 15:08:33
Added to usenet: 17/12/2012 15:08:45
Weblink: http://thetvdb.com/?tab=series&id=248834&lid=7
View NZB: http://omgwtfnzbs.org/details.php?id=mQpXj]]>
- TV: HD
- tv.hd
- 20
-
+ Hibou.2016.FRENCH.1080p.WEB.h264-TiMELiNE
+ Sun, 08 Jan 2017 12:36:24 +0200
+ https://api.omgwtfnzbs.me/nzb/?id=gLLQf&user=nzbdrone&api=nzbdrone
+ https://api.omgwtfnzbs.me/nzb/?id=gLLQf&user=nzbdrone&api=nzbdrone
+ Category: Movies: HD
Size: 3.58 GB
Group: alt.binaries.movies.french
Added to index: 10/12/2016 07:42:56
Added to usenet: 08/01/2017 12:36:24
View NZB: https://omgwtfnzbs.me/details.php?id=gLLQf]]>
+ Movies: HD
+ movies.hd
+ 16
+
-
- Last.Man.Standing.2011.S02E05.720p.WEB-DL.DD5.1.h.264-pcsyndicate
- Mon, 17 Dec 2012 15:08:03 +0000
- http://api.omgwtfnzbs.org/sn.php?id=XnNvd&user=nzbdrone&api=nzbdrone
- http://api.omgwtfnzbs.org/sn.php?id=XnNvd&user=nzbdrone&api=nzbdrone
- Category: TV: HD
Size: 791.55 MB
Group: alt.binaries.teevee
Added to index: 17/12/2012 15:07:40
Added to usenet: 17/12/2012 15:08:03
Weblink: http://thetvdb.com/?tab=series&id=248834&lid=7
View NZB: http://omgwtfnzbs.org/details.php?id=XnNvd]]>
- TV: HD
- tv.hd
- 20
-
+ Hello.My.Name.Is.Doris.2015.FRENCH.720p.BluRay.x264-VENUE
+ Sun, 08 Jan 2017 12:35:49 +0200
+ https://api.omgwtfnzbs.me/nzb/?id=D4SCT&user=nzbdrone&api=nzbdrone
+ https://api.omgwtfnzbs.me/nzb/?id=D4SCT&user=nzbdrone&api=nzbdrone
+ Category: Movies: HD
Size: 5.1 GB
Group: alt.binaries.felfelida
Added to index: 01/12/2016 06:56:54
Added to usenet: 08/01/2017 12:35:49
View NZB: https://omgwtfnzbs.me/details.php?id=D4SCT]]>
+ Movies: HD
+ movies.hd
+ 16
+
-
- Last.Man.Standing.2011.S02E04.720p.WEB-DL.DD5.1.h.264-pcsyndicate
- Mon, 17 Dec 2012 15:07:27 +0000
- http://api.omgwtfnzbs.org/sn.php?id=J9wJX&user=nzbdrone&api=nzbdrone
- http://api.omgwtfnzbs.org/sn.php?id=J9wJX&user=nzbdrone&api=nzbdrone
- Category: TV: HD
Size: 782.39 MB
Group: alt.binaries.teevee
Added to index: 17/12/2012 15:07:19
Added to usenet: 17/12/2012 15:07:27
Weblink: http://thetvdb.com/?tab=series&id=248834&lid=7
View NZB: http://omgwtfnzbs.org/details.php?id=J9wJX]]>
- TV: HD
- tv.hd
- 20
-
+ Hell.or.High.Water.2016.FRENCH.720p.BluRay.x264-LOST
+ Sun, 08 Jan 2017 12:34:49 +0200
+ https://api.omgwtfnzbs.me/nzb/?id=akjOQ&user=nzbdrone&api=nzbdrone
+ https://api.omgwtfnzbs.me/nzb/?id=akjOQ&user=nzbdrone&api=nzbdrone
+ Category: Movies: HD
Size: 5.1 GB
Group: alt.binaries.felfelida
Added to index: 01/12/2016 06:16:27
Added to usenet: 08/01/2017 12:34:49
View NZB: https://omgwtfnzbs.me/details.php?id=akjOQ]]>
+ Movies: HD
+ movies.hd
+ 16
+
-
- CSI.S13E10.1080p.WEB-DL.DD5.1.H.264-NFHD
- Mon, 17 Dec 2012 15:03:32 +0000
- http://api.omgwtfnzbs.org/sn.php?id=pt35L&user=nzbdrone&api=nzbdrone
- http://api.omgwtfnzbs.org/sn.php?id=pt35L&user=nzbdrone&api=nzbdrone
- Category: TV: HD
Size: 1.88 GB
Group: alt.binaries.teevee
Added to index: 17/12/2012 15:02:42
Added to usenet: 17/12/2012 15:03:32
Weblink: http://thetvdb.com/?tab=series&id=233851&lid=7
View NZB: http://omgwtfnzbs.org/details.php?id=pt35L]]>
- TV: HD
- tv.hd
- 20
-
+ Heist.2015.LIMITED.FRENCH.720p.BluRay.x264-AiRLiNE
+ Sun, 08 Jan 2017 12:34:29 +0200
+ https://api.omgwtfnzbs.me/nzb/?id=yR0aN&user=nzbdrone&api=nzbdrone
+ https://api.omgwtfnzbs.me/nzb/?id=yR0aN&user=nzbdrone&api=nzbdrone
+ Category: Movies: HD
Size: 5.1 GB
Group: alt.binaries.felfelida
Added to index: 06/12/2016 05:42:58
Added to usenet: 08/01/2017 12:34:29
View NZB: https://omgwtfnzbs.me/details.php?id=yR0aN]]>
+ Movies: HD
+ movies.hd
+ 16
+
-
- CSI.S13E10.720p.WEB-DL.DD5.1.H.264-NFHD
- Mon, 17 Dec 2012 14:55:24 +0000
- http://api.omgwtfnzbs.org/sn.php?id=2O6Co&user=nzbdrone&api=nzbdrone
- http://api.omgwtfnzbs.org/sn.php?id=2O6Co&user=nzbdrone&api=nzbdrone
- Category: TV: HD
Size: 1.49 GB
Group: alt.binaries.teevee
Added to index: 17/12/2012 14:54:47
Added to usenet: 17/12/2012 14:55:24
Weblink: http://thetvdb.com/?tab=series&id=233851&lid=7
View NZB: http://omgwtfnzbs.org/details.php?id=2O6Co]]>
- TV: HD
- tv.hd
- 20
-
+ Hail.Caesar.2016.FRENCH.720p.BluRay.x264-MELBA
+ Sun, 08 Jan 2017 12:33:57 +0200
+ https://api.omgwtfnzbs.me/nzb/?id=jnYyH&user=nzbdrone&api=nzbdrone
+ https://api.omgwtfnzbs.me/nzb/?id=jnYyH&user=nzbdrone&api=nzbdrone
+ Category: Movies: HD
Size: 5.09 GB
Group: alt.binaries.felfelida
Added to index: 15/12/2016 05:51:34
Added to usenet: 08/01/2017 12:33:57
View NZB: https://omgwtfnzbs.me/details.php?id=jnYyH]]>
+ Movies: HD
+ movies.hd
+ 16
+
-
- Criminal.Minds.S08E11.1080p.WEB-DL.DD5.1.H264-NFHD
- Mon, 17 Dec 2012 14:54:32 +0000
- http://api.omgwtfnzbs.org/sn.php?id=nkeai&user=nzbdrone&api=nzbdrone
- http://api.omgwtfnzbs.org/sn.php?id=nkeai&user=nzbdrone&api=nzbdrone
- Category: TV: HD
Size: 1.84 GB
Group: alt.binaries.teevee
Added to index: 17/12/2012 14:54:24
Added to usenet: 17/12/2012 14:54:32
Weblink: http://thetvdb.com/?tab=series&id=75710&lid=7
View NZB: http://omgwtfnzbs.org/details.php?id=nkeai]]>
- TV: HD
- tv.hd
- 20
-
+ Ghostbusters.2016.EXTENDED.FRENCH.720p.BluRay.x264-LOST
+ Sun, 08 Jan 2017 12:33:15 +0200
+ https://api.omgwtfnzbs.me/nzb/?id=VA7MB&user=nzbdrone&api=nzbdrone
+ https://api.omgwtfnzbs.me/nzb/?id=VA7MB&user=nzbdrone&api=nzbdrone
+ Category: Movies: HD
Size: 5.08 GB
Group: alt.binaries.felfelida
Added to index: 03/12/2016 23:02:06
Added to usenet: 08/01/2017 12:33:15
View NZB: https://omgwtfnzbs.me/details.php?id=VA7MB]]>
+ Movies: HD
+ movies.hd
+ 16
+
-
- Criminal.Minds.S08E11.720p.WEB-DL.DD5.1.H264-NFHD
- Mon, 17 Dec 2012 14:53:29 +0000
- http://api.omgwtfnzbs.org/sn.php?id=wnUAZ&user=nzbdrone&api=nzbdrone
- http://api.omgwtfnzbs.org/sn.php?id=wnUAZ&user=nzbdrone&api=nzbdrone
- Category: TV: HD
Size: 1.44 GB
Group: alt.binaries.teevee
Added to index: 17/12/2012 14:52:56
Added to usenet: 17/12/2012 14:53:29
Weblink: http://thetvdb.com/?tab=series&id=75710&lid=7
View NZB: http://omgwtfnzbs.org/details.php?id=wnUAZ]]>
- TV: HD
- tv.hd
- 20
-
+ 13.Minutes.2015.SUBFRENCH.720p.BluRay.x264-DuSS
+ Sun, 08 Jan 2017 12:32:22 +0200
+ https://api.omgwtfnzbs.me/nzb/?id=1tE7z&user=nzbdrone&api=nzbdrone
+ https://api.omgwtfnzbs.me/nzb/?id=1tE7z&user=nzbdrone&api=nzbdrone
+ Category: Movies: HD
Size: 6.38 GB
Group: alt.binaries.movies.french
Added to index: 04/12/2016 06:09:35
Added to usenet: 08/01/2017 12:32:22
View NZB: https://omgwtfnzbs.me/details.php?id=1tE7z]]>
+ Movies: HD
+ movies.hd
+ 16
+
-
- Ax.Men.S06E02.HDTV.x264-KILLERS
- Mon, 17 Dec 2012 14:45:18 +0000
- http://api.omgwtfnzbs.org/sn.php?id=rCs8K&user=nzbdrone&api=nzbdrone
- http://api.omgwtfnzbs.org/sn.php?id=rCs8K&user=nzbdrone&api=nzbdrone
- Category: TV: STD
Size: 908.3 MB
Group: alt.binaries.teevee
Added to index: 17/12/2012 14:45:11
Added to usenet: 17/12/2012 14:45:18
Weblink: http://thetvdb.com/?tab=series&id=81578&lid=7
View NZB: http://omgwtfnzbs.org/details.php?id=rCs8K]]>
- TV: STD
- tv.sd
- 19
-
+ George.Harrison.Living.in.the.Material.World.2011.Part1.SUBFRENCH.720p.BluRay.x264-FiDELiO
+ Sun, 08 Jan 2017 12:30:49 +0200
+ https://api.omgwtfnzbs.me/nzb/?id=hfATe&user=nzbdrone&api=nzbdrone
+ https://api.omgwtfnzbs.me/nzb/?id=hfATe&user=nzbdrone&api=nzbdrone
+ Category: Movies: HD
Size: 5.2 GB
Group: alt.binaries.movies.french
Added to index: 01/12/2016 06:58:06
Added to usenet: 08/01/2017 12:30:49
View NZB: https://omgwtfnzbs.me/details.php?id=hfATe]]>
+ Movies: HD
+ movies.hd
+ 16
+
-
- Two.and.a.Half.Men.S10E11.480p.WEB-DL.x264-mSD
- Mon, 17 Dec 2012 14:37:12 +0000
- http://api.omgwtfnzbs.org/sn.php?id=cZQWE&user=nzbdrone&api=nzbdrone
- http://api.omgwtfnzbs.org/sn.php?id=cZQWE&user=nzbdrone&api=nzbdrone
- Category: TV: STD
Size: 150.91 MB
Group: alt.binaries.multimedia
Added to index: 17/12/2012 14:43:18
Added to usenet: 17/12/2012 14:37:12
Weblink: http://thetvdb.com/?tab=series&id=72227&lid=7
View NZB: http://omgwtfnzbs.org/details.php?id=cZQWE]]>
- TV: STD
- tv.sd
- 19
-
+ Fantastic.Four.2015.TRUEFRENCH.720p.BluRay.x264-Goatlove
+ Sun, 08 Jan 2017 12:29:06 +0200
+ https://api.omgwtfnzbs.me/nzb/?id=5LRfb&user=nzbdrone&api=nzbdrone
+ https://api.omgwtfnzbs.me/nzb/?id=5LRfb&user=nzbdrone&api=nzbdrone
+ Category: Movies: HD
Size: 5.07 GB
Group: alt.binaries.felfelida
Added to index: 06/12/2016 05:47:13
Added to usenet: 08/01/2017 12:29:06
View NZB: https://omgwtfnzbs.me/details.php?id=5LRfb]]>
+ Movies: HD
+ movies.hd
+ 16
+
-
- Two.and.a.Half.Men.S10E11.1080p.WEB-DL.DD5.1.H.264-NFHD
- Mon, 17 Dec 2012 14:28:06 +0000
- http://api.omgwtfnzbs.org/sn.php?id=lcG65&user=nzbdrone&api=nzbdrone
- http://api.omgwtfnzbs.org/sn.php?id=lcG65&user=nzbdrone&api=nzbdrone
- Category: TV: HD
Size: 997 MB
Group: alt.binaries.etc
Added to index: 17/12/2012 14:27:39
Added to usenet: 17/12/2012 14:28:06
Weblink: http://thetvdb.com/?tab=series&id=72227&lid=7
View NZB: http://omgwtfnzbs.org/details.php?id=lcG65]]>
- TV: HD
- tv.hd
- 20
-
+ En.Busca.De.Marsupilami.2012.SPANiSH.MULTi.1080p.BluRay.x264-TORO
+ Sun, 08 Jan 2017 11:57:24 +0200
+ https://api.omgwtfnzbs.me/nzb/?id=A7UGC&user=nzbdrone&api=nzbdrone
+ https://api.omgwtfnzbs.me/nzb/?id=A7UGC&user=nzbdrone&api=nzbdrone
+ Category: Movies: HD
Size: 10.27 GB
Group: alt.binaries.movies.french
Added to index: 16/12/2016 22:56:11
Added to usenet: 08/01/2017 11:57:24
View NZB: https://omgwtfnzbs.me/details.php?id=A7UGC]]>
+ Movies: HD
+ movies.hd
+ 16
+
-
- EPL.2012.12.15.Queens.Park.Rangers.Vs.Fulham.720p.HDTV.x264-W4F
- Mon, 17 Dec 2012 14:26:25 +0000
- http://api.omgwtfnzbs.org/sn.php?id=WyoTz&user=nzbdrone&api=nzbdrone
- http://api.omgwtfnzbs.org/sn.php?id=WyoTz&user=nzbdrone&api=nzbdrone
- Category: TV: HD
Size: 2.76 GB
Group: alt.binaries.teevee
Added to index: 17/12/2012 14:26:04
Added to usenet: 17/12/2012 14:26:25
Weblink: N/A
View NZB: http://omgwtfnzbs.org/details.php?id=WyoTz]]>
- TV: HD
- tv.hd
- 20
-
+ En.Busca.De.Marsupilami.2012.SPANiSH.MULTi.720p.BluRay.x264-TORO
+ Sun, 08 Jan 2017 11:56:17 +0200
+ https://api.omgwtfnzbs.me/nzb/?id=JAJq3&user=nzbdrone&api=nzbdrone
+ https://api.omgwtfnzbs.me/nzb/?id=JAJq3&user=nzbdrone&api=nzbdrone
+ Category: Movies: HD
Size: 6.43 GB
Group: alt.binaries.movies.french
Added to index: 14/12/2016 23:24:51
Added to usenet: 08/01/2017 11:56:17
View NZB: https://omgwtfnzbs.me/details.php?id=JAJq3]]>
+ Movies: HD
+ movies.hd
+ 16
+
-
- Two.and.a.Half.Men.S10E11.720p.WEB-DL.DD5.1.H.264-NFHD
- Mon, 17 Dec 2012 14:24:01 +0000
- http://api.omgwtfnzbs.org/sn.php?id=ILMrt&user=nzbdrone&api=nzbdrone
- http://api.omgwtfnzbs.org/sn.php?id=ILMrt&user=nzbdrone&api=nzbdrone
- Category: TV: HD
Size: 814.36 MB
Group: alt.binaries.etc
Added to index: 17/12/2012 14:23:31
Added to usenet: 17/12/2012 14:24:01
Weblink: http://thetvdb.com/?tab=series&id=72227&lid=7
View NZB: http://omgwtfnzbs.org/details.php?id=ILMrt]]>
- TV: HD
- tv.hd
- 20
-
+ Eddie.the.Eagle.2016.FRENCH.720p.BluRay.x264-VENUE
+ Sun, 08 Jan 2017 11:51:32 +0200
+ https://api.omgwtfnzbs.me/nzb/?id=bFyzl&user=nzbdrone&api=nzbdrone
+ https://api.omgwtfnzbs.me/nzb/?id=bFyzl&user=nzbdrone&api=nzbdrone
+ Category: Movies: HD
Size: 5.1 GB
Group: alt.binaries.felfelida
Added to index: 15/12/2016 05:49:10
Added to usenet: 08/01/2017 11:51:32
View NZB: https://omgwtfnzbs.me/details.php?id=bFyzl]]>
+ Movies: HD
+ movies.hd
+ 16
+
-
- Dont.Trust.The.B----.In.Apartment.23.S02E06.1080p.WEB-DL.DD5.1.H.264-NFHD
- Mon, 17 Dec 2012 14:15:40 +0000
- http://api.omgwtfnzbs.org/sn.php?id=ROCRk&user=nzbdrone&api=nzbdrone
- http://api.omgwtfnzbs.org/sn.php?id=ROCRk&user=nzbdrone&api=nzbdrone
- Category: TV: HD
Size: 948.82 MB
Group: alt.binaries.teevee
Added to index: 17/12/2012 14:15:24
Added to usenet: 17/12/2012 14:15:40
Weblink: http://thetvdb.com/?tab=series&id=248812&lid=7
View NZB: http://omgwtfnzbs.org/details.php?id=ROCRk]]>
- TV: HD
- tv.hd
- 20
-
+ Dont.Breathe.2016.FRENCH.720p.BluRay.x264-LOST
+ Sun, 08 Jan 2017 11:51:00 +0200
+ https://api.omgwtfnzbs.me/nzb/?id=ywGBi&user=nzbdrone&api=nzbdrone
+ https://api.omgwtfnzbs.me/nzb/?id=ywGBi&user=nzbdrone&api=nzbdrone
+ Category: Movies: HD
Size: 3.82 GB
Group: alt.binaries.felfelida
Added to index: 04/12/2016 01:49:16
Added to usenet: 08/01/2017 11:51:00
View NZB: https://omgwtfnzbs.me/details.php?id=ywGBi]]>
+ Movies: HD
+ movies.hd
+ 16
+
-
- Dont.Trust.The.B----.In.Apartment.23.S02E06.720p.WEB-DL.DD5.1.H.264-NFHD
- Mon, 17 Dec 2012 14:11:29 +0000
- http://api.omgwtfnzbs.org/sn.php?id=y7JDY&user=nzbdrone&api=nzbdrone
- http://api.omgwtfnzbs.org/sn.php?id=y7JDY&user=nzbdrone&api=nzbdrone
- Category: TV: HD
Size: 800.34 MB
Group: alt.binaries.teevee
Added to index: 17/12/2012 14:10:37
Added to usenet: 17/12/2012 14:11:29
Weblink: http://thetvdb.com/?tab=series&id=248812&lid=7
View NZB: http://omgwtfnzbs.org/details.php?id=y7JDY]]>
- TV: HD
- tv.hd
- 20
-
+ Dirty.Grandpa.2016.FRENCH.720p.BluRay.x264-LOST
+ Sun, 08 Jan 2017 11:50:04 +0200
+ https://api.omgwtfnzbs.me/nzb/?id=eiCXN&user=nzbdrone&api=nzbdrone
+ https://api.omgwtfnzbs.me/nzb/?id=eiCXN&user=nzbdrone&api=nzbdrone
+ Category: Movies: HD
Size: 5.11 GB
Group: alt.binaries.felfelida
Added to index: 29/11/2016 08:48:32
Added to usenet: 08/01/2017 11:50:04
View NZB: https://omgwtfnzbs.me/details.php?id=eiCXN]]>
+ Movies: HD
+ movies.hd
+ 16
+
-
- WWE.Tables.Ladders.and.Chairs.2012.PPV.720p.HDTV.x264-KYR
- Mon, 17 Dec 2012 13:42:12 +0000
- http://api.omgwtfnzbs.org/sn.php?id=1ZWlA&user=nzbdrone&api=nzbdrone
- http://api.omgwtfnzbs.org/sn.php?id=1ZWlA&user=nzbdrone&api=nzbdrone
- Category: TV: HD
Size: 6.51 GB
Group: alt.binaries.teevee
Added to index: 17/12/2012 13:40:11
Added to usenet: 17/12/2012 13:42:12
Weblink: N/A
View NZB: http://omgwtfnzbs.org/details.php?id=1ZWlA]]>
- TV: HD
- tv.hd
- 20
-
+ Debarquement.Immediat.2016.FRENCH.1080p.WEB.h264-TiMELiNE
+ Sun, 08 Jan 2017 11:47:55 +0200
+ https://api.omgwtfnzbs.me/nzb/?id=nl27E&user=nzbdrone&api=nzbdrone
+ https://api.omgwtfnzbs.me/nzb/?id=nl27E&user=nzbdrone&api=nzbdrone
+ Category: Movies: HD
Size: 3.92 GB
Group: alt.binaries.movies.french
Added to index: 10/12/2016 06:18:33
Added to usenet: 08/01/2017 11:47:55
View NZB: https://omgwtfnzbs.me/details.php?id=nl27E]]>
+ Movies: HD
+ movies.hd
+ 16
+
-
- Ben.10.Omniverse.S01E14.Blukic.and.Driba.Go.To.Mr.Smooth.480p.WEB-DL.x264-mSD
- Mon, 17 Dec 2012 13:29:42 +0000
- http://api.omgwtfnzbs.org/sn.php?id=51kIm&user=nzbdrone&api=nzbdrone
- http://api.omgwtfnzbs.org/sn.php?id=51kIm&user=nzbdrone&api=nzbdrone
- Category: TV: STD
Size: 115.21 MB
Group: alt.binaries.multimedia
Added to index: 17/12/2012 13:35:47
Added to usenet: 17/12/2012 13:29:42
Weblink: http://thetvdb.com/?tab=series&id=260995&lid=7
View NZB: http://omgwtfnzbs.org/details.php?id=51kIm]]>
- TV: STD
- tv.sd
- 19
-
+ Daddys.Home.2015.TRUEFRENCH.720p.BluRay.x264-PiNKPANTERS
+ Sun, 08 Jan 2017 11:47:24 +0200
+ https://api.omgwtfnzbs.me/nzb/?id=BRJJB&user=nzbdrone&api=nzbdrone
+ https://api.omgwtfnzbs.me/nzb/?id=BRJJB&user=nzbdrone&api=nzbdrone
+ Category: Movies: HD
Size: 3.82 GB
Group: alt.binaries.felfelida
Added to index: 29/11/2016 23:20:30
Added to usenet: 08/01/2017 11:47:24
View NZB: https://omgwtfnzbs.me/details.php?id=BRJJB]]>
+ Movies: HD
+ movies.hd
+ 16
+
-
- The.Horses.of.McBride.2012.480p.HDTV.x264-mSD
- Mon, 17 Dec 2012 13:07:12 +0000
- http://api.omgwtfnzbs.org/sn.php?id=tqWEI&user=nzbdrone&api=nzbdrone
- http://api.omgwtfnzbs.org/sn.php?id=tqWEI&user=nzbdrone&api=nzbdrone
- Category: TV: STD
Size: 517.24 MB
Group: alt.binaries.multimedia
Added to index: 17/12/2012 13:13:05
Added to usenet: 17/12/2012 13:07:12
Weblink: http://lookpic.com/O/i2/395/Vl9n9DEY.jpeg[/IMG
View NZB: http://omgwtfnzbs.org/details.php?id=tqWEI]]>
- TV: STD
- tv.sd
- 19
-
+ Confirmation.2016.FRENCH.720p.BluRay.x264-VENUE
+ Sun, 08 Jan 2017 11:47:03 +0200
+ https://api.omgwtfnzbs.me/nzb/?id=Z7aV8&user=nzbdrone&api=nzbdrone
+ https://api.omgwtfnzbs.me/nzb/?id=Z7aV8&user=nzbdrone&api=nzbdrone
+ Category: Movies: HD
Size: 6.32 GB
Group: alt.binaries.felfelida
Added to index: 02/12/2016 05:13:09
Added to usenet: 08/01/2017 11:47:03
View NZB: https://omgwtfnzbs.me/details.php?id=Z7aV8]]>
+ Movies: HD
+ movies.hd
+ 16
+
-
- Royal.Pains.S04E15E16.PROPER.480p.HDTV.x264-mSD
- Mon, 17 Dec 2012 12:38:32 +0000
- http://api.omgwtfnzbs.org/sn.php?id=OREVT&user=nzbdrone&api=nzbdrone
- http://api.omgwtfnzbs.org/sn.php?id=OREVT&user=nzbdrone&api=nzbdrone
- Category: TV: STD
Size: 449.31 MB
Group: alt.binaries.multimedia
Added to index: 17/12/2012 12:44:26
Added to usenet: 17/12/2012 12:38:32
Weblink: http://thetvdb.com/?tab=series&id=92411&lid=7
View NZB: http://omgwtfnzbs.org/details.php?id=OREVT]]>
- TV: STD
- tv.sd
- 19
-
+ Ben.Hur.2016.TRUEFRENCH.720p.BluRay.x264-LOST
+ Sun, 08 Jan 2017 11:43:55 +0200
+ https://api.omgwtfnzbs.me/nzb/?id=wnrh5&user=nzbdrone&api=nzbdrone
+ https://api.omgwtfnzbs.me/nzb/?id=wnrh5&user=nzbdrone&api=nzbdrone
+ Category: Movies: HD
Size: 5.12 GB
Group: alt.binaries.felfelida
Added to index: 04/12/2016 01:47:16
Added to usenet: 08/01/2017 11:43:55
View NZB: https://omgwtfnzbs.me/details.php?id=wnrh5]]>
+ Movies: HD
+ movies.hd
+ 16
+
-
- The.Bachelorette.Special.Ashley.and.J.Ps.Wedding.480p.HDTV.x264-mSD
- Mon, 17 Dec 2012 12:03:56 +0000
- http://api.omgwtfnzbs.org/sn.php?id=MIq0q&user=nzbdrone&api=nzbdrone
- http://api.omgwtfnzbs.org/sn.php?id=MIq0q&user=nzbdrone&api=nzbdrone
- Category: TV: STD
Size: 660.6 MB
Group: alt.binaries.multimedia
Added to index: 17/12/2012 12:09:44
Added to usenet: 17/12/2012 12:03:56
Weblink: http://lookpic.com/O/i2/871/MNxJjwjR.jpeg[/IMG
View NZB: http://omgwtfnzbs.org/details.php?id=MIq0q]]>
- TV: STD
- tv.sd
- 19
-
+ Bastille.Day.2016.FRENCH.720p.BluRay.x264-AiRLiNE
+ Sun, 08 Jan 2017 11:43:05 +0200
+ https://api.omgwtfnzbs.me/nzb/?id=5qhGw&user=nzbdrone&api=nzbdrone
+ https://api.omgwtfnzbs.me/nzb/?id=5qhGw&user=nzbdrone&api=nzbdrone
+ Category: Movies: HD
Size: 5.1 GB
Group: alt.binaries.felfelida
Added to index: 24/10/2016 08:48:11
Added to usenet: 08/01/2017 11:43:05
View NZB: https://omgwtfnzbs.me/details.php?id=5qhGw]]>
+ Movies: HD
+ movies.hd
+ 16
+
-
- Finding.Bigfoot.S03E06.Bigfoot.and.Wolverines.480p.HDTV.x264-mSD
- Mon, 17 Dec 2012 11:43:23 +0000
- http://api.omgwtfnzbs.org/sn.php?id=3ObPU&user=nzbdrone&api=nzbdrone
- http://api.omgwtfnzbs.org/sn.php?id=3ObPU&user=nzbdrone&api=nzbdrone
- Category: TV: STD
Size: 329.13 MB
Group: alt.binaries.multimedia
Added to index: 17/12/2012 11:49:20
Added to usenet: 17/12/2012 11:43:23
Weblink: http://thetvdb.com/?tab=series&id=249235&lid=7
View NZB: http://omgwtfnzbs.org/details.php?id=3ObPU]]>
- TV: STD
- tv.sd
- 19
-
+ American.Ultra.2015.FRENCH.720p.BluRay.x264-LOST
+ Sun, 08 Jan 2017 11:42:18 +0200
+ https://api.omgwtfnzbs.me/nzb/?id=0G5Eh&user=nzbdrone&api=nzbdrone
+ https://api.omgwtfnzbs.me/nzb/?id=0G5Eh&user=nzbdrone&api=nzbdrone
+ Category: Movies: HD
Size: 3.78 GB
Group: alt.binaries.felfelida
Added to index: 06/12/2016 09:18:28
Added to usenet: 08/01/2017 11:42:18
View NZB: https://omgwtfnzbs.me/details.php?id=0G5Eh]]>
+ Movies: HD
+ movies.hd
+ 16
+
-
- Oliver.Stones.Untold.History.Of.The.United.States.S01E04.480p.HDTV.x264-mSD
- Mon, 17 Dec 2012 11:35:52 +0000
- http://api.omgwtfnzbs.org/sn.php?id=CRQzL&user=nzbdrone&api=nzbdrone
- http://api.omgwtfnzbs.org/sn.php?id=CRQzL&user=nzbdrone&api=nzbdrone
- Category: TV: STD
Size: 466.2 MB
Group: alt.binaries.multimedia
Added to index: 17/12/2012 11:41:44
Added to usenet: 17/12/2012 11:35:52
Weblink: http://thetvdb.com/?tab=series&id=263532&lid=7
View NZB: http://omgwtfnzbs.org/details.php?id=CRQzL]]>
- TV: STD
- tv.sd
- 19
-
+ Alvin.and.the.Chipmunks.The.Road.Chip.2015.TRUEFRENCH.720p.BluRay.x264-PiNKPANTERS
+ Sun, 08 Jan 2017 11:41:16 +0200
+ https://api.omgwtfnzbs.me/nzb/?id=NwMQe&user=nzbdrone&api=nzbdrone
+ https://api.omgwtfnzbs.me/nzb/?id=NwMQe&user=nzbdrone&api=nzbdrone
+ Category: Movies: HD
Size: 3.83 GB
Group: alt.binaries.felfelida
Added to index: 15/12/2016 05:42:04
Added to usenet: 08/01/2017 11:41:16
View NZB: https://omgwtfnzbs.me/details.php?id=NwMQe]]>
+ Movies: HD
+ movies.hd
+ 16
+
-
- The.Fith.Estate.2012.11.16.Left.For.Dead.720p.HDTV.x264-TWG
- Mon, 17 Dec 2012 11:32:54 +0000
- http://api.omgwtfnzbs.org/sn.php?id=LUGZC&user=nzbdrone&api=nzbdrone
- http://api.omgwtfnzbs.org/sn.php?id=LUGZC&user=nzbdrone&api=nzbdrone
- Category: TV: HD
Size: 1.04 GB
Group: alt.binaries.teevee
Added to index: 17/12/2012 11:29:30
Added to usenet: 17/12/2012 11:32:54
Weblink: N/A
View NZB: http://omgwtfnzbs.org/details.php?id=LUGZC]]>
- TV: HD
- tv.hd
- 20
-
+ Destroy.All.Monsters.1968.1080p.BluRay.x264-SADPANDA
+ Sun, 08 Jan 2017 08:19:34 +0200
+ https://api.omgwtfnzbs.me/nzb/?id=0xGb4&user=nzbdrone&api=nzbdrone
+ https://api.omgwtfnzbs.me/nzb/?id=0xGb4&user=nzbdrone&api=nzbdrone
+ Category: Movies: HD
Size: 8.7 GB
Group: alt.binaries.moovee
Added to index: 08/01/2017 07:12:46
Added to usenet: 08/01/2017 08:19:34
View NZB: https://omgwtfnzbs.me/details.php?id=0xGb4]]>
+ Movies: HD
+ movies.hd
+ 16
+
-
- The.Fith.Estate.2012.11.23.Lance.Armstrong.Master.Of.Spin.720p.HDTV.x264-TWG
- Mon, 17 Dec 2012 11:32:13 +0000
- http://api.omgwtfnzbs.org/sn.php?id=jAXl9&user=nzbdrone&api=nzbdrone
- http://api.omgwtfnzbs.org/sn.php?id=jAXl9&user=nzbdrone&api=nzbdrone
- Category: TV: HD
Size: 1.27 GB
Group: alt.binaries.teevee
Added to index: 17/12/2012 11:31:22
Added to usenet: 17/12/2012 11:32:13
Weblink: N/A
View NZB: http://omgwtfnzbs.org/details.php?id=jAXl9]]>
- TV: HD
- tv.hd
- 20
-
+ Distance.Between.Dreams.2016.iNTERNAL.1080p.WEBRip.x264-13
+ Sun, 08 Jan 2017 07:27:03 +0200
+ https://api.omgwtfnzbs.me/nzb/?id=UjPQb&user=nzbdrone&api=nzbdrone
+ https://api.omgwtfnzbs.me/nzb/?id=UjPQb&user=nzbdrone&api=nzbdrone
+ Category: Movies: HD
Size: 6.84 GB
Group: alt.binaries.moovee
Added to index: 08/01/2017 06:24:20
Added to usenet: 08/01/2017 07:27:03
View NZB: https://omgwtfnzbs.me/details.php?id=UjPQb]]>
+ Movies: HD
+ movies.hd
+ 16
+
-
- Curiosity.S02E10.What.Destroyed.the.Hindenburg.480p.HDTV.x264-mSD
- Mon, 17 Dec 2012 11:24:42 +0000
- http://api.omgwtfnzbs.org/sn.php?id=dZviu&user=nzbdrone&api=nzbdrone
- http://api.omgwtfnzbs.org/sn.php?id=dZviu&user=nzbdrone&api=nzbdrone
- Category: TV: STD
Size: 315.97 MB
Group: alt.binaries.multimedia
Added to index: 17/12/2012 11:26:21
Added to usenet: 17/12/2012 11:24:42
Weblink: http://thetvdb.com/?tab=series&id=250572&lid=7
View NZB: http://omgwtfnzbs.org/details.php?id=dZviu]]>
- TV: STD
- tv.sd
- 19
-
+ Distance.Between.Dreams.2016.iNTERNAL.720p.WEBRip.x264-13
+ Sun, 08 Jan 2017 07:13:18 +0200
+ https://api.omgwtfnzbs.me/nzb/?id=Sb0vy&user=nzbdrone&api=nzbdrone
+ https://api.omgwtfnzbs.me/nzb/?id=Sb0vy&user=nzbdrone&api=nzbdrone
+ Category: Movies: HD
Size: 3.22 GB
Group: alt.binaries.moovee
Added to index: 08/01/2017 06:10:17
Added to usenet: 08/01/2017 07:13:18
View NZB: https://omgwtfnzbs.me/details.php?id=Sb0vy]]>
+ Movies: HD
+ movies.hd
+ 16
+
-
- The.Horses.of.McBride.2012.720p.HDTV.x264-2HD
- Mon, 17 Dec 2012 11:24:42 +0000
- http://api.omgwtfnzbs.org/sn.php?id=1GCur&user=nzbdrone&api=nzbdrone
- http://api.omgwtfnzbs.org/sn.php?id=1GCur&user=nzbdrone&api=nzbdrone
- Category: TV: HD
Size: 2.59 GB
Group: alt.binaries.teevee
Added to index: 17/12/2012 11:23:11
Added to usenet: 17/12/2012 11:24:42
Weblink: N/A
View NZB: http://omgwtfnzbs.org/details.php?id=1GCur]]>
- TV: HD
- tv.hd
- 20
-
+ Distance.Between.Dreams.2016.iNTERNAL.WEBRip.x264-13
+ Sun, 08 Jan 2017 06:59:47 +0200
+ https://api.omgwtfnzbs.me/nzb/?id=QScRL&user=nzbdrone&api=nzbdrone
+ https://api.omgwtfnzbs.me/nzb/?id=QScRL&user=nzbdrone&api=nzbdrone
+ Category: Movies: STD
Size: 1.05 GB
Group: alt.binaries.moovee
Added to index: 08/01/2017 05:57:24
Added to usenet: 08/01/2017 06:59:47
View NZB: https://omgwtfnzbs.me/details.php?id=QScRL]]>
+ Movies: STD
+ movies.sd
+ 15
+
-
- Peep.Show.S08E04.480p.HDTV.x264-mSD
- Mon, 17 Dec 2012 11:16:50 +0000
- http://api.omgwtfnzbs.org/sn.php?id=VqvC2&user=nzbdrone&api=nzbdrone
- http://api.omgwtfnzbs.org/sn.php?id=VqvC2&user=nzbdrone&api=nzbdrone
- Category: TV: STD
Size: 133.76 MB
Group: alt.binaries.multimedia
Added to index: 17/12/2012 11:22:54
Added to usenet: 17/12/2012 11:16:50
Weblink: http://thetvdb.com/?tab=series&id=71656&lid=7
View NZB: http://omgwtfnzbs.org/details.php?id=VqvC2]]>
- TV: STD
- tv.sd
- 19
-
+ Destroy.All.Monsters.1968.REAL.READNFO.BDRip.x264-VoMiT
+ Sun, 08 Jan 2017 06:32:49 +0200
+ https://api.omgwtfnzbs.me/nzb/?id=apH4B&user=nzbdrone&api=nzbdrone
+ https://api.omgwtfnzbs.me/nzb/?id=apH4B&user=nzbdrone&api=nzbdrone
+ Category: Movies: STD
Size: 885.99 MB
Group: alt.binaries.moovee
Added to index: 08/01/2017 05:30:51
Added to usenet: 08/01/2017 06:32:49
View NZB: https://omgwtfnzbs.me/details.php?id=apH4B]]>
+ Movies: STD
+ movies.sd
+ 15
+
-
- Royal.Pains.S04E15E16.480p.HDTV.x264-mSD
- Mon, 17 Dec 2012 11:13:38 +0000
- http://api.omgwtfnzbs.org/sn.php?id=BcrXh&user=nzbdrone&api=nzbdrone
- http://api.omgwtfnzbs.org/sn.php?id=BcrXh&user=nzbdrone&api=nzbdrone
- Category: TV: STD
Size: 474.45 MB
Group: alt.binaries.multimedia
Added to index: 17/12/2012 11:19:31
Added to usenet: 17/12/2012 11:13:38
Weblink: http://thetvdb.com/?tab=series&id=92411&lid=7
View NZB: http://omgwtfnzbs.org/details.php?id=BcrXh]]>
- TV: STD
- tv.sd
- 19
-
+ Destroy.All.Monsters.1968.720p.BluRay.x264-SADPANDA
+ Sun, 08 Jan 2017 06:27:17 +0200
+ https://api.omgwtfnzbs.me/nzb/?id=yVYG8&user=nzbdrone&api=nzbdrone
+ https://api.omgwtfnzbs.me/nzb/?id=yVYG8&user=nzbdrone&api=nzbdrone
+ Category: Movies: HD
Size: 3.72 GB
Group: alt.binaries.moovee
Added to index: 08/01/2017 05:23:58
Added to usenet: 08/01/2017 06:27:17
View NZB: https://omgwtfnzbs.me/details.php?id=yVYG8]]>
+ Movies: HD
+ movies.hd
+ 16
+
-
- Strictly.Come.Dancing.S10E22.480p.HDTV.x264-mSD
- Mon, 17 Dec 2012 11:02:01 +0000
- http://api.omgwtfnzbs.org/sn.php?id=TiWhP&user=nzbdrone&api=nzbdrone
- http://api.omgwtfnzbs.org/sn.php?id=TiWhP&user=nzbdrone&api=nzbdrone
- Category: TV: STD
Size: 1 GB
Group: alt.binaries.multimedia
Added to index: 17/12/2012 11:07:22
Added to usenet: 17/12/2012 11:02:01
Weblink: http://thetvdb.com/?tab=series&id=83127&lid=7
View NZB: http://omgwtfnzbs.org/details.php?id=TiWhP]]>
- TV: STD
- tv.sd
- 19
-
+ The.Brain.That.Wouldnt.Die.1962.OAR.BDRip.x264-VoMiT
+ Sun, 08 Jan 2017 06:18:27 +0200
+ https://api.omgwtfnzbs.me/nzb/?id=YgsZY&user=nzbdrone&api=nzbdrone
+ https://api.omgwtfnzbs.me/nzb/?id=YgsZY&user=nzbdrone&api=nzbdrone
+ Category: Movies: STD
Size: 993.5 MB
Group: alt.binaries.moovee
Added to index: 08/01/2017 05:16:32
Added to usenet: 08/01/2017 06:18:27
View NZB: https://omgwtfnzbs.me/details.php?id=YgsZY]]>
+ Movies: STD
+ movies.sd
+ 15
+
-
- Survivor.S25E15.Reunion.480p.HDTV.x264-mSD
- Mon, 17 Dec 2012 10:38:13 +0000
- http://api.omgwtfnzbs.org/sn.php?id=hXOrr&user=nzbdrone&api=nzbdrone
- http://api.omgwtfnzbs.org/sn.php?id=hXOrr&user=nzbdrone&api=nzbdrone
- Category: TV: STD
Size: 216.49 MB
Group: alt.binaries.multimedia
Added to index: 17/12/2012 10:44:14
Added to usenet: 17/12/2012 10:38:13
Weblink: http://thetvdb.com/?tab=series&id=76733&lid=7
View NZB: http://omgwtfnzbs.org/details.php?id=hXOrr]]>
- TV: STD
- tv.sd
- 19
-
+ Coin.Heist.2017.WEBRip.X264-DEFLATE
+ Sun, 08 Jan 2017 06:04:01 +0200
+ https://api.omgwtfnzbs.me/nzb/?id=NVeV4&user=nzbdrone&api=nzbdrone
+ https://api.omgwtfnzbs.me/nzb/?id=NVeV4&user=nzbdrone&api=nzbdrone
+ Category: Movies: STD
Size: 779.85 MB
Group: alt.binaries.moovee
Added to index: 08/01/2017 05:01:51
Added to usenet: 08/01/2017 06:04:01
View NZB: https://omgwtfnzbs.me/details.php?id=NVeV4]]>
+ Movies: STD
+ movies.sd
+ 15
+
-
- Strictly.Come.Dancing.S10E23.480p.HDTV.x264-mSD
- Mon, 17 Dec 2012 10:32:15 +0000
- http://api.omgwtfnzbs.org/sn.php?id=bwmpc&user=nzbdrone&api=nzbdrone
- http://api.omgwtfnzbs.org/sn.php?id=bwmpc&user=nzbdrone&api=nzbdrone
- Category: TV: STD
Size: 413.76 MB
Group: alt.binaries.multimedia
Added to index: 17/12/2012 10:38:10
Added to usenet: 17/12/2012 10:32:15
Weblink: http://thetvdb.com/?tab=series&id=83127&lid=7
View NZB: http://omgwtfnzbs.org/details.php?id=bwmpc]]>
- TV: STD
- tv.sd
- 19
-
+ Keeping.Up.With.The.Joneses.2016.REAL.REPACK.1080p.BluRay.x264-DRONES
+ Sun, 08 Jan 2017 04:33:31 +0200
+ https://api.omgwtfnzbs.me/nzb/?id=aVxDs&user=nzbdrone&api=nzbdrone
+ https://api.omgwtfnzbs.me/nzb/?id=aVxDs&user=nzbdrone&api=nzbdrone
+ Category: Movies: HD
Size: 8.82 GB
Group: alt.binaries.moovee
Added to index: 08/01/2017 03:30:47
Added to usenet: 08/01/2017 04:33:31
View NZB: https://omgwtfnzbs.me/details.php?id=aVxDs]]>
+ Movies: HD
+ movies.hd
+ 16
+
-
- Tron.Uprising.S01E13.480p.HDTV.x264-mSD
- Mon, 17 Dec 2012 10:22:39 +0000
- http://api.omgwtfnzbs.org/sn.php?id=u2RzK&user=nzbdrone&api=nzbdrone
- http://api.omgwtfnzbs.org/sn.php?id=u2RzK&user=nzbdrone&api=nzbdrone
- Category: TV: STD
Size: 152.83 MB
Group: alt.binaries.multimedia
Added to index: 17/12/2012 10:28:43
Added to usenet: 17/12/2012 10:22:39
Weblink: http://thetvdb.com/?tab=series&id=258480&lid=7
View NZB: http://omgwtfnzbs.org/details.php?id=u2RzK]]>
- TV: STD
- tv.sd
- 19
-
+ Keeping.Up.With.The.Joneses.2016.REAL.REPACK.720p.BluRay.x264-DRONES
+ Sun, 08 Jan 2017 03:51:11 +0200
+ https://api.omgwtfnzbs.me/nzb/?id=4I63P&user=nzbdrone&api=nzbdrone
+ https://api.omgwtfnzbs.me/nzb/?id=4I63P&user=nzbdrone&api=nzbdrone
+ Category: Movies: HD
Size: 6.29 GB
Group: alt.binaries.moovee
Added to index: 08/01/2017 02:48:06
Added to usenet: 08/01/2017 03:51:11
View NZB: https://omgwtfnzbs.me/details.php?id=4I63P]]>
+ Movies: HD
+ movies.hd
+ 16
+
-
- The.Rolling.Stones.Live.One.More.Shot.PPV.480p.HDTV.x264-mSD
- Mon, 17 Dec 2012 10:18:56 +0000
- http://api.omgwtfnzbs.org/sn.php?id=oRpx5&user=nzbdrone&api=nzbdrone
- http://api.omgwtfnzbs.org/sn.php?id=oRpx5&user=nzbdrone&api=nzbdrone
- Category: TV: STD
Size: 1.88 GB
Group: alt.binaries.multimedia
Added to index: 17/12/2012 10:13:24
Added to usenet: 17/12/2012 10:18:56
Weblink: http://lookpic.com/O/i2/1911/mc9I2FoX.jpeg[/IMG
View NZB: http://omgwtfnzbs.org/details.php?id=oRpx5]]>
- TV: STD
- tv.sd
- 19
-
+ Keeping.Up.With.The.Joneses.2016.REAL.REPACK.BDRip.x264-DRONES
+ Sun, 08 Jan 2017 03:39:16 +0200
+ https://api.omgwtfnzbs.me/nzb/?id=YsoKa&user=nzbdrone&api=nzbdrone
+ https://api.omgwtfnzbs.me/nzb/?id=YsoKa&user=nzbdrone&api=nzbdrone
+ Category: Movies: STD
Size: 798.64 MB
Group: alt.binaries.moovee
Added to index: 08/01/2017 02:37:32
Added to usenet: 08/01/2017 03:39:16
View NZB: https://omgwtfnzbs.me/details.php?id=YsoKa]]>
+ Movies: STD
+ movies.sd
+ 15
+
-
- The.Bachelorette.Special.Ashley.and.J.Ps.Wedding.720p.HDTV.x264-2HD
- Mon, 17 Dec 2012 10:16:15 +0000
- http://api.omgwtfnzbs.org/sn.php?id=6XV6n&user=nzbdrone&api=nzbdrone
- http://api.omgwtfnzbs.org/sn.php?id=6XV6n&user=nzbdrone&api=nzbdrone
- Category: TV: HD
Size: 3.09 GB
Group: alt.binaries.teevee
Added to index: 17/12/2012 10:14:43
Added to usenet: 17/12/2012 10:16:15
Weblink: N/A
View NZB: http://omgwtfnzbs.org/details.php?id=6XV6n]]>
- TV: HD
- tv.hd
- 20
-
+ USS.Indianapolis.Men.of.Courage.2016.1080p.BluRay.x264-EiDER
+ Sun, 08 Jan 2017 03:00:29 +0200
+ https://api.omgwtfnzbs.me/nzb/?id=kZI0P&user=nzbdrone&api=nzbdrone
+ https://api.omgwtfnzbs.me/nzb/?id=kZI0P&user=nzbdrone&api=nzbdrone
+ Category: Movies: HD
Size: 10.04 GB
Group: alt.binaries.moovee
Added to index: 08/01/2017 01:56:21
Added to usenet: 08/01/2017 03:00:29
View NZB: https://omgwtfnzbs.me/details.php?id=kZI0P]]>
+ Movies: HD
+ movies.hd
+ 16
+
-
- Finding.Bigfoot.S03E06.Bigfoot.and.Wolverines.720p.HDTV.x264-DHD
- Mon, 17 Dec 2012 10:01:45 +0000
- http://api.omgwtfnzbs.org/sn.php?id=OdAGV&user=nzbdrone&api=nzbdrone
- http://api.omgwtfnzbs.org/sn.php?id=OdAGV&user=nzbdrone&api=nzbdrone
- Category: TV: HD
Size: 1.27 GB
Group: alt.binaries.teevee
Added to index: 17/12/2012 09:59:38
Added to usenet: 17/12/2012 10:01:45
Weblink: http://thetvdb.com/?tab=series&id=249235&lid=7
View NZB: http://omgwtfnzbs.org/details.php?id=OdAGV]]>
- TV: HD
- tv.hd
- 20
-
+ The.Front.Page.1931.1080p.BluRay.x264-CiNEFiLE
+ Sun, 08 Jan 2017 02:56:25 +0200
+ https://api.omgwtfnzbs.me/nzb/?id=8FZCM&user=nzbdrone&api=nzbdrone
+ https://api.omgwtfnzbs.me/nzb/?id=8FZCM&user=nzbdrone&api=nzbdrone
+ Category: Movies: HD
Size: 9.2 GB
Group: alt.binaries.moovee
Added to index: 08/01/2017 01:53:40
Added to usenet: 08/01/2017 02:56:25
View NZB: https://omgwtfnzbs.me/details.php?id=8FZCM]]>
+ Movies: HD
+ movies.hd
+ 16
+
-
- VH1.Divas.2012.HDTV.x264-2HD
- Mon, 17 Dec 2012 09:39:00 +0000
- http://api.omgwtfnzbs.org/sn.php?id=S5No7&user=nzbdrone&api=nzbdrone
- http://api.omgwtfnzbs.org/sn.php?id=S5No7&user=nzbdrone&api=nzbdrone
- Category: TV: STD
Size: 1.21 GB
Group: alt.binaries.teevee
Added to index: 17/12/2012 09:37:21
Added to usenet: 17/12/2012 09:39:00
Weblink: N/A
View NZB: http://omgwtfnzbs.org/details.php?id=S5No7]]>
- TV: STD
- tv.sd
- 19
-
+ The.Front.Page.1931.720p.BluRay.x264-CiNEFiLE
+ Sun, 08 Jan 2017 02:48:44 +0200
+ https://api.omgwtfnzbs.me/nzb/?id=o1VY1&user=nzbdrone&api=nzbdrone
+ https://api.omgwtfnzbs.me/nzb/?id=o1VY1&user=nzbdrone&api=nzbdrone
+ Category: Movies: HD
Size: 5.09 GB
Group: alt.binaries.moovee
Added to index: 08/01/2017 01:46:38
Added to usenet: 08/01/2017 02:48:44
View NZB: https://omgwtfnzbs.me/details.php?id=o1VY1]]>
+ Movies: HD
+ movies.hd
+ 16
+
-
- Match.Of.The.Day.Two.2012.12.16.480p.HDTV.x264-mSD
- Mon, 17 Dec 2012 09:36:29 +0000
- http://api.omgwtfnzbs.org/sn.php?id=DRwC1&user=nzbdrone&api=nzbdrone
- http://api.omgwtfnzbs.org/sn.php?id=DRwC1&user=nzbdrone&api=nzbdrone
- Category: TV: STD
Size: 610.31 MB
Group: alt.binaries.multimedia
Added to index: 17/12/2012 09:42:34
Added to usenet: 17/12/2012 09:36:29
Weblink: http://lookpic.com/O/i2/1718/8EOt9D9x.jpeg[/IMG
View NZB: http://omgwtfnzbs.org/details.php?id=DRwC1]]>
- TV: STD
- tv.sd
- 19
-
+ Battleground.1949.1080p.BluRay.x264-SiNNERS
+ Sun, 08 Jan 2017 02:32:20 +0200
+ https://api.omgwtfnzbs.me/nzb/?id=TnRtg&user=nzbdrone&api=nzbdrone
+ https://api.omgwtfnzbs.me/nzb/?id=TnRtg&user=nzbdrone&api=nzbdrone
+ Category: Movies: HD
Size: 13.82 GB
Group: alt.binaries.moovee
Added to index: 08/01/2017 01:26:16
Added to usenet: 08/01/2017 02:32:20
View NZB: https://omgwtfnzbs.me/details.php?id=TnRtg]]>
+ Movies: HD
+ movies.hd
+ 16
+
-
- The.Horses.of.McBride.2012.HDTV.x264-2HD
- Mon, 17 Dec 2012 09:13:27 +0000
- http://api.omgwtfnzbs.org/sn.php?id=b8DNy&user=nzbdrone&api=nzbdrone
- http://api.omgwtfnzbs.org/sn.php?id=b8DNy&user=nzbdrone&api=nzbdrone
- Category: TV: STD
Size: 913.02 MB
Group: alt.binaries.teevee
Added to index: 17/12/2012 09:11:30
Added to usenet: 17/12/2012 09:13:27
Weblink: N/A
View NZB: http://omgwtfnzbs.org/details.php?id=b8DNy]]>
- TV: STD
- tv.sd
- 19
-
-
+ Battleground.1949.720p.BluRay.x264-SiNNERS
+ Sun, 08 Jan 2017 02:24:46 +0200
+ https://api.omgwtfnzbs.me/nzb/?id=9ZOFL&user=nzbdrone&api=nzbdrone
+ https://api.omgwtfnzbs.me/nzb/?id=9ZOFL&user=nzbdrone&api=nzbdrone
+ Category: Movies: HD
Size: 7.55 GB
Group: alt.binaries.moovee
Added to index: 08/01/2017 01:21:45
Added to usenet: 08/01/2017 02:24:46
View NZB: https://omgwtfnzbs.me/details.php?id=9ZOFL]]>
+ Movies: HD
+ movies.hd
+ 16
+
+
-
- Homeland.S02E12.720p.WEB-DL.DD5.1.H.264-DON
- Mon, 17 Dec 2012 08:33:56 +0000
- http://api.omgwtfnzbs.org/sn.php?id=kB2xp&user=nzbdrone&api=nzbdrone
- http://api.omgwtfnzbs.org/sn.php?id=kB2xp&user=nzbdrone&api=nzbdrone
- Category: TV: HD
Size: 2.3 GB
Group: alt.binaries.teevee
Added to index: 17/12/2012 08:33:22
Added to usenet: 17/12/2012 08:33:56
Weblink: http://thetvdb.com/?tab=series&id=247897&lid=7
View NZB: http://omgwtfnzbs.org/details.php?id=kB2xp]]>
- TV: HD
- tv.hd
- 20
-
-
+ Children.of.Men.2006.iNTERNAL.1080p.BluRay.x264-LiBRARiANS
+ Sun, 08 Jan 2017 00:28:33 +0200
+ https://api.omgwtfnzbs.me/nzb/?id=4zHPm&user=nzbdrone&api=nzbdrone
+ https://api.omgwtfnzbs.me/nzb/?id=4zHPm&user=nzbdrone&api=nzbdrone
+ Category: Movies: HD
Size: 12.88 GB
Group: alt.binaries.moovee
Added to index: 07/01/2017 23:21:55
Added to usenet: 08/01/2017 00:28:33
View NZB: https://omgwtfnzbs.me/details.php?id=4zHPm]]>
+ Movies: HD
+ movies.hd
+ 16
+
+
-
- Tron.Uprising.S01E13.720p.HDTV.x264-2HD
- Mon, 17 Dec 2012 08:25:53 +0000
- http://api.omgwtfnzbs.org/sn.php?id=YzotL&user=nzbdrone&api=nzbdrone
- http://api.omgwtfnzbs.org/sn.php?id=YzotL&user=nzbdrone&api=nzbdrone
- Category: TV: HD
Size: 975.2 MB
Group: alt.binaries.teevee
Added to index: 17/12/2012 08:25:16
Added to usenet: 17/12/2012 08:25:53
Weblink: http://thetvdb.com/?tab=series&id=258480&lid=7
View NZB: http://omgwtfnzbs.org/details.php?id=YzotL]]>
- TV: HD
- tv.hd
- 20
-
-
+ Children.of.Men.2006.iNTERNAL.BDRip.x264-LiBRARiANS
+ Sun, 08 Jan 2017 00:17:59 +0200
+ https://api.omgwtfnzbs.me/nzb/?id=klDlR&user=nzbdrone&api=nzbdrone
+ https://api.omgwtfnzbs.me/nzb/?id=klDlR&user=nzbdrone&api=nzbdrone
+ Category: Movies: STD
Size: 1.37 GB
Group: alt.binaries.moovee
Added to index: 07/01/2017 23:15:28
Added to usenet: 08/01/2017 00:17:59
View NZB: https://omgwtfnzbs.me/details.php?id=klDlR]]>
+ Movies: STD
+ movies.sd
+ 15
+
+
-
- Tron.Uprising.S01E13.HDTV.x264-2HD
- Mon, 17 Dec 2012 08:24:55 +0000
- http://api.omgwtfnzbs.org/sn.php?id=i2eTC&user=nzbdrone&api=nzbdrone
- http://api.omgwtfnzbs.org/sn.php?id=i2eTC&user=nzbdrone&api=nzbdrone
- Category: TV: STD
Size: 269.56 MB
Group: alt.binaries.teevee
Added to index: 17/12/2012 08:24:23
Added to usenet: 17/12/2012 08:24:55
Weblink: http://thetvdb.com/?tab=series&id=258480&lid=7
View NZB: http://omgwtfnzbs.org/details.php?id=i2eTC]]>
- TV: STD
- tv.sd
- 19
-
-
+ Children.of.Men.2006.PROPER.720p.BluRay.x264-SADPANDA
+ Sat, 07 Jan 2017 22:20:51 +0200
+ https://api.omgwtfnzbs.me/nzb/?id=sAuS0&user=nzbdrone&api=nzbdrone
+ https://api.omgwtfnzbs.me/nzb/?id=sAuS0&user=nzbdrone&api=nzbdrone
+ Category: Movies: HD
Size: 6.29 GB
Group: alt.binaries.moovee
Added to index: 07/01/2017 21:18:21
Added to usenet: 07/01/2017 22:20:51
View NZB: https://omgwtfnzbs.me/details.php?id=sAuS0]]>
+ Movies: HD
+ movies.hd
+ 16
+
+
-
- Homeland.S02E12.The.Choice.720p.WEB-DL.DD5.1.H.264-DON
- Mon, 17 Dec 2012 08:03:24 +0000
- http://api.omgwtfnzbs.org/sn.php?id=WrQOi&user=nzbdrone&api=nzbdrone
- http://api.omgwtfnzbs.org/sn.php?id=WrQOi&user=nzbdrone&api=nzbdrone
- Category: TV: HD
Size: 2.41 GB
Group: alt.binaries.tv
Added to index: 17/12/2012 07:11:03
Added to usenet: 17/12/2012 08:03:24
Weblink: http://thetvdb.com/?tab=series&id=247897&lid=7
View NZB: http://omgwtfnzbs.org/details.php?id=WrQOi]]>
- TV: HD
- tv.hd
- 20
-
-
+ Camino.2008.1080p.BluRay.DD5.1.x264-DON
+ Sat, 07 Jan 2017 21:09:01 +0200
+ https://api.omgwtfnzbs.me/nzb/?id=PPGp9&user=nzbdrone&api=nzbdrone
+ https://api.omgwtfnzbs.me/nzb/?id=PPGp9&user=nzbdrone&api=nzbdrone
+ Category: Movies: HD
Size: 18.69 GB
Group: alt.binaries.moovee
Added to index: 07/01/2017 20:03:14
Added to usenet: 07/01/2017 21:09:01
View NZB: https://omgwtfnzbs.me/details.php?id=PPGp9]]>
+ Movies: HD
+ movies.hd
+ 16
+
+
-
- T.I.and.Tiny.The.Family.Hustle.S02E16.HDTV.x264-CRiMSON
- Mon, 17 Dec 2012 07:38:05 +0000
- http://api.omgwtfnzbs.org/sn.php?id=aJdwK&user=nzbdrone&api=nzbdrone
- http://api.omgwtfnzbs.org/sn.php?id=aJdwK&user=nzbdrone&api=nzbdrone
- Category: TV: STD
Size: 222.29 MB
Group: alt.binaries.teevee
Added to index: 17/12/2012 07:37:25
Added to usenet: 17/12/2012 07:38:05
Weblink: N/A
View NZB: http://omgwtfnzbs.org/details.php?id=aJdwK]]>
- TV: STD
- tv.sd
- 19
-
-
+ Charlie.St.Cloud.2010.1080p.BluRay.DD5.1.x264-DON
+ Sat, 07 Jan 2017 20:38:12 +0200
+ https://api.omgwtfnzbs.me/nzb/?id=fMXUE&user=nzbdrone&api=nzbdrone
+ https://api.omgwtfnzbs.me/nzb/?id=fMXUE&user=nzbdrone&api=nzbdrone
+ Category: Movies: HD
Size: 13.13 GB
Group: alt.binaries.moovee
Added to index: 07/01/2017 19:33:26
Added to usenet: 07/01/2017 20:38:12
View NZB: https://omgwtfnzbs.me/details.php?id=fMXUE]]>
+ Movies: HD
+ movies.hd
+ 16
+
+
-
- Curiosity.S02E10.What.Destroyed.the.Hindenburg.720p.HDTV.x264-DHD
- Mon, 17 Dec 2012 07:38:05 +0000
- http://api.omgwtfnzbs.org/sn.php?id=CdMkN&user=nzbdrone&api=nzbdrone
- http://api.omgwtfnzbs.org/sn.php?id=CdMkN&user=nzbdrone&api=nzbdrone
- Category: TV: HD
Size: 1.18 GB
Group: alt.binaries.teevee
Added to index: 17/12/2012 07:36:22
Added to usenet: 17/12/2012 07:38:05
Weblink: http://thetvdb.com/?tab=series&id=250572&lid=7
View NZB: http://omgwtfnzbs.org/details.php?id=CdMkN]]>
- TV: HD
- tv.hd
- 20
-
-
+ USS.Indianapolis.Men.of.Courage.2016.720p.BluRay.x264-EiDER
+ Sat, 07 Jan 2017 19:03:29 +0200
+ https://api.omgwtfnzbs.me/nzb/?id=fYTFG&user=nzbdrone&api=nzbdrone
+ https://api.omgwtfnzbs.me/nzb/?id=fYTFG&user=nzbdrone&api=nzbdrone
+ Category: Movies: HD
Size: 6.26 GB
Group: alt.binaries.moovee
Added to index: 07/01/2017 18:00:32
Added to usenet: 07/01/2017 19:03:29
View NZB: https://omgwtfnzbs.me/details.php?id=fYTFG]]>
+ Movies: HD
+ movies.hd
+ 16
+
+
-
- EPL.2012.12.16.West.Bromwich.Albion.Vs.West.Ham.United.720p.HDTV.x264-FAIRPLAY
- Mon, 17 Dec 2012 07:29:04 +0000
- http://api.omgwtfnzbs.org/sn.php?id=LgCKE&user=nzbdrone&api=nzbdrone
- http://api.omgwtfnzbs.org/sn.php?id=LgCKE&user=nzbdrone&api=nzbdrone
- Category: TV: HD
Size: 3.62 GB
Group: alt.binaries.teevee
Added to index: 17/12/2012 07:28:35
Added to usenet: 17/12/2012 07:29:04
Weblink: N/A
View NZB: http://omgwtfnzbs.org/details.php?id=LgCKE]]>
- TV: HD
- tv.hd
- 20
-
-
+ USS.Indianapolis.Men.of.Courage.2016.BDRip.x264-EiDER
+ Sat, 07 Jan 2017 18:52:00 +0200
+ https://api.omgwtfnzbs.me/nzb/?id=6gxyp&user=nzbdrone&api=nzbdrone
+ https://api.omgwtfnzbs.me/nzb/?id=6gxyp&user=nzbdrone&api=nzbdrone
+ Category: Movies: STD
Size: 1.27 GB
Group: alt.binaries.moovee
Added to index: 07/01/2017 17:50:00
Added to usenet: 07/01/2017 18:52:00
View NZB: https://omgwtfnzbs.me/details.php?id=6gxyp]]>
+ Movies: STD
+ movies.sd
+ 15
+
+
-
- NFL.2012.12.16.Broncos.vs.Ravens.720p.HDTV.x264-BAJSKORV
- Mon, 17 Dec 2012 07:26:56 +0000
- http://api.omgwtfnzbs.org/sn.php?id=jMTWB&user=nzbdrone&api=nzbdrone
- http://api.omgwtfnzbs.org/sn.php?id=jMTWB&user=nzbdrone&api=nzbdrone
- Category: TV: HD
Size: 5.93 GB
Group: alt.binaries.teevee
Added to index: 17/12/2012 07:25:16
Added to usenet: 17/12/2012 07:26:56
Weblink: N/A
View NZB: http://omgwtfnzbs.org/details.php?id=jMTWB]]>
- TV: HD
- tv.hd
- 20
-
+ End.of.a.Gun.2016.1080p.BluRay.DD5.1.x264-TayTO
+ Sat, 07 Jan 2017 18:24:21 +0200
+ https://api.omgwtfnzbs.me/nzb/?id=tNLPi&user=nzbdrone&api=nzbdrone
+ https://api.omgwtfnzbs.me/nzb/?id=tNLPi&user=nzbdrone&api=nzbdrone
+ Category: Movies: HD
Size: 10.96 GB
Group: alt.binaries.moovee
Added to index: 07/01/2017 17:20:34
Added to usenet: 07/01/2017 18:24:21
View NZB: https://omgwtfnzbs.me/details.php?id=tNLPi]]>
+ Movies: HD
+ movies.hd
+ 16
+
diff --git a/src/NzbDrone.Core.Test/IndexerTests/BitMeTvTests/BitMeTvFixture.cs b/src/NzbDrone.Core.Test/IndexerTests/BitMeTvTests/BitMeTvFixture.cs
deleted file mode 100644
index d49d940a4..000000000
--- a/src/NzbDrone.Core.Test/IndexerTests/BitMeTvTests/BitMeTvFixture.cs
+++ /dev/null
@@ -1,57 +0,0 @@
-using Moq;
-using NUnit.Framework;
-using NzbDrone.Common.Http;
-using NzbDrone.Core.Indexers;
-using NzbDrone.Core.Indexers.BitMeTv;
-using NzbDrone.Core.Parser.Model;
-using NzbDrone.Core.Test.Framework;
-using System;
-using System.Linq;
-using FluentAssertions;
-
-namespace NzbDrone.Core.Test.IndexerTests.BitMeTvTests
-{
- [TestFixture]
- public class BitMeTvFixture : CoreTest
- {
- [SetUp]
- public void Setup()
- {
- Subject.Definition = new IndexerDefinition()
- {
- Name = "BitMeTV",
- Settings = new BitMeTvSettings() { Cookie = "uid=123" }
- };
- }
-
- [Test]
- public void should_parse_recent_feed_from_BitMeTv()
- {
- var recentFeed = ReadAllText(@"Files/Indexers/BitMeTv/BitMeTv.xml");
-
- Mocker.GetMock()
- .Setup(o => o.Execute(It.Is(v => v.Method == HttpMethod.GET)))
- .Returns(r => new HttpResponse(r, new HttpHeader(), recentFeed));
-
- var releases = Subject.FetchRecent();
-
- releases.Should().HaveCount(5);
- releases.First().Should().BeOfType();
-
- var torrentInfo = releases.First() as TorrentInfo;
-
- torrentInfo.Title.Should().Be("Total.Divas.S02E08.HDTV.x264-CRiMSON");
- torrentInfo.DownloadProtocol.Should().Be(DownloadProtocol.Torrent);
- torrentInfo.DownloadUrl.Should().Be("http://www.bitmetv.org/download.php/12/Total.Divas.S02E08.HDTV.x264-CRiMSON.torrent");
- torrentInfo.InfoUrl.Should().BeNullOrEmpty();
- torrentInfo.CommentUrl.Should().BeNullOrEmpty();
- torrentInfo.Indexer.Should().Be(Subject.Definition.Name);
- torrentInfo.PublishDate.Should().Be(DateTime.Parse("2014/05/13 17:04:29"));
- torrentInfo.Size.Should().Be(395009065);
- torrentInfo.InfoHash.Should().Be(null);
- torrentInfo.MagnetUrl.Should().Be(null);
- torrentInfo.Peers.Should().Be(null);
- torrentInfo.Seeders.Should().Be(null);
- }
- }
-}
diff --git a/src/NzbDrone.Core.Test/IndexerTests/BroadcastheNetTests/BroadcastheNetFixture.cs b/src/NzbDrone.Core.Test/IndexerTests/BroadcastheNetTests/BroadcastheNetFixture.cs
deleted file mode 100644
index a22ba44e3..000000000
--- a/src/NzbDrone.Core.Test/IndexerTests/BroadcastheNetTests/BroadcastheNetFixture.cs
+++ /dev/null
@@ -1,161 +0,0 @@
-using Moq;
-using NUnit.Framework;
-using NzbDrone.Common.Http;
-using NzbDrone.Core.Indexers;
-using NzbDrone.Core.Indexers.BroadcastheNet;
-using NzbDrone.Core.Parser.Model;
-using NzbDrone.Core.Test.Framework;
-using NzbDrone.Test.Common;
-using System;
-using System.Linq;
-using FluentAssertions;
-
-namespace NzbDrone.Core.Test.IndexerTests.BroadcastheNetTests
-{
- [TestFixture]
- public class BroadcastheNetFixture : CoreTest
- {
- [SetUp]
- public void Setup()
- {
- Subject.Definition = new IndexerDefinition()
- {
- Name = "BroadcastheNet",
- Settings = new BroadcastheNetSettings() { ApiKey = "abc", BaseUrl = "https://api.btnapps.net/" }
- };
- }
-
- [Test]
- public void should_parse_recent_feed_from_BroadcastheNet()
- {
- var recentFeed = ReadAllText(@"Files/Indexers/BroadcastheNet/RecentFeed.json");
-
- Mocker.GetMock()
- .Setup(o => o.Execute(It.Is(v => v.Method == HttpMethod.POST)))
- .Returns(r => new HttpResponse(r, new HttpHeader(), recentFeed));
-
- var releases = Subject.FetchRecent();
-
- releases.Should().HaveCount(2);
- releases.First().Should().BeOfType();
-
- var torrentInfo = releases.First() as TorrentInfo;
-
- torrentInfo.Guid.Should().Be("BTN-123");
- torrentInfo.Title.Should().Be("Jimmy.Kimmel.2014.09.15.Jane.Fonda.HDTV.x264-aAF");
- torrentInfo.DownloadProtocol.Should().Be(DownloadProtocol.Torrent);
- torrentInfo.DownloadUrl.Should().Be("https://broadcasthe.net/torrents.php?action=download&id=123&authkey=123&torrent_pass=123");
- torrentInfo.InfoUrl.Should().Be("https://broadcasthe.net/torrents.php?id=237457&torrentid=123");
- torrentInfo.CommentUrl.Should().BeNullOrEmpty();
- torrentInfo.Indexer.Should().Be(Subject.Definition.Name);
- torrentInfo.PublishDate.Should().Be(DateTime.Parse("2014/09/16 21:15:33"));
- torrentInfo.Size.Should().Be(505099926);
- torrentInfo.InfoHash.Should().Be("123");
- torrentInfo.TvdbId.Should().Be(71998);
- torrentInfo.TvRageId.Should().Be(4055);
- torrentInfo.MagnetUrl.Should().BeNullOrEmpty();
- torrentInfo.Peers.Should().Be(40+9);
- torrentInfo.Seeders.Should().Be(40);
-
- torrentInfo.Origin.Should().Be("Scene");
- torrentInfo.Source.Should().Be("HDTV");
- torrentInfo.Container.Should().Be("MP4");
- torrentInfo.Codec.Should().Be("x264");
- torrentInfo.Resolution.Should().Be("SD");
- }
-
- private void VerifyBackOff()
- {
- Mocker.GetMock()
- .Verify(v => v.RecordFailure(It.IsAny(), It.IsAny()), Times.Once());
- }
-
- [Test]
- public void should_back_off_on_bad_request()
- {
- Mocker.GetMock()
- .Setup(v => v.Execute(It.IsAny()))
- .Returns(r => new HttpResponse(r, new HttpHeader(), new byte[0], System.Net.HttpStatusCode.BadRequest));
-
- var results = Subject.FetchRecent();
-
- results.Should().BeEmpty();
-
- VerifyBackOff();
-
- ExceptionVerification.ExpectedWarns(1);
- }
-
- [Test]
- public void should_back_off_and_report_api_key_invalid()
- {
- Mocker.GetMock()
- .Setup(v => v.Execute(It.IsAny()))
- .Returns(r => new HttpResponse(r, new HttpHeader(), new byte[0], System.Net.HttpStatusCode.Unauthorized));
-
- var results = Subject.FetchRecent();
-
- results.Should().BeEmpty();
-
- VerifyBackOff();
-
- ExceptionVerification.ExpectedWarns(1);
- }
-
- [Test]
- public void should_back_off_on_unknown_method()
- {
- Mocker.GetMock()
- .Setup(v => v.Execute(It.IsAny()))
- .Returns(r => new HttpResponse(r, new HttpHeader(), new byte[0], System.Net.HttpStatusCode.NotFound));
-
- var results = Subject.FetchRecent();
-
- results.Should().BeEmpty();
-
- VerifyBackOff();
-
- ExceptionVerification.ExpectedWarns(1);
- }
-
- [Test]
- public void should_back_off_api_limit_reached()
- {
- Mocker.GetMock()
- .Setup(v => v.Execute(It.IsAny()))
- .Returns(r => new HttpResponse(r, new HttpHeader(), new byte[0], System.Net.HttpStatusCode.ServiceUnavailable));
-
- var results = Subject.FetchRecent();
-
- results.Should().BeEmpty();
-
- VerifyBackOff();
-
- ExceptionVerification.ExpectedWarns(1);
- }
-
- [Test]
- public void should_replace_https_http_as_needed()
- {
- var recentFeed = ReadAllText(@"Files/Indexers/BroadcastheNet/RecentFeed.json");
-
- (Subject.Definition.Settings as BroadcastheNetSettings).BaseUrl = "http://api.btnapps.net/";
-
- recentFeed = recentFeed.Replace("http:", "https:");
-
- Mocker.GetMock()
- .Setup(o => o.Execute(It.Is(v => v.Method == HttpMethod.POST)))
- .Returns(r => new HttpResponse(r, new HttpHeader(), recentFeed));
-
- var releases = Subject.FetchRecent();
-
- releases.Should().HaveCount(2);
- releases.First().Should().BeOfType();
-
- var torrentInfo = releases.First() as TorrentInfo;
-
- torrentInfo.DownloadUrl.Should().Be("http://broadcasthe.net/torrents.php?action=download&id=123&authkey=123&torrent_pass=123");
- torrentInfo.InfoUrl.Should().Be("http://broadcasthe.net/torrents.php?id=237457&torrentid=123");
- }
- }
-}
diff --git a/src/NzbDrone.Core.Test/IndexerTests/FanzubTests/FanzubFixture.cs b/src/NzbDrone.Core.Test/IndexerTests/FanzubTests/FanzubFixture.cs
deleted file mode 100644
index ed8587e38..000000000
--- a/src/NzbDrone.Core.Test/IndexerTests/FanzubTests/FanzubFixture.cs
+++ /dev/null
@@ -1,51 +0,0 @@
-using System;
-using System.Linq;
-using FluentAssertions;
-using Moq;
-using NUnit.Framework;
-using NzbDrone.Common.Http;
-using NzbDrone.Core.Indexers;
-using NzbDrone.Core.Indexers.Fanzub;
-using NzbDrone.Core.Test.Framework;
-
-namespace NzbDrone.Core.Test.IndexerTests.FanzubTests
-{
- [TestFixture]
- public class FanzubFixture : CoreTest
- {
- [SetUp]
- public void Setup()
- {
- Subject.Definition = new IndexerDefinition()
- {
- Name = "Fanzub",
- Settings = new FanzubSettings()
- };
- }
-
- [Test]
- public void should_parse_recent_feed_from_fanzub()
- {
- var recentFeed = ReadAllText(@"Files/Indexers/Fanzub/fanzub.xml");
-
- Mocker.GetMock()
- .Setup(o => o.Execute(It.Is(v => v.Method == HttpMethod.GET)))
- .Returns(r => new HttpResponse(r, new HttpHeader(), recentFeed));
-
- var releases = Subject.FetchRecent();
-
- releases.Should().HaveCount(3);
-
- var releaseInfo = releases.First();
-
- releaseInfo.Title.Should().Be("[Vivid] Hanayamata - 10 [A33D6606]");
- releaseInfo.DownloadProtocol.Should().Be(DownloadProtocol.Usenet);
- releaseInfo.DownloadUrl.Should().Be("http://fanzub.com/nzb/296464/Vivid%20Hanayamata%20-%2010.nzb");
- releaseInfo.InfoUrl.Should().BeNullOrEmpty();
- releaseInfo.CommentUrl.Should().BeNullOrEmpty();
- releaseInfo.Indexer.Should().Be(Subject.Definition.Name);
- releaseInfo.PublishDate.Should().Be(DateTime.Parse("2014/09/13 12:56:53"));
- releaseInfo.Size.Should().Be(556246858);
- }
- }
-}
diff --git a/src/NzbDrone.Core.Test/IndexerTests/OmgwtfnzbsTests/OmgwtfnzbsFixture.cs b/src/NzbDrone.Core.Test/IndexerTests/OmgwtfnzbsTests/OmgwtfnzbsFixture.cs
index c5542b943..d79a61236 100644
--- a/src/NzbDrone.Core.Test/IndexerTests/OmgwtfnzbsTests/OmgwtfnzbsFixture.cs
+++ b/src/NzbDrone.Core.Test/IndexerTests/OmgwtfnzbsTests/OmgwtfnzbsFixture.cs
@@ -42,14 +42,14 @@ namespace NzbDrone.Core.Test.IndexerTests.OmgwtfnzbsTests
var releaseInfo = releases.First();
- releaseInfo.Title.Should().Be("Stephen.Fry.Gadget.Man.S01E05.HDTV.x264-C4TV");
+ releaseInfo.Title.Should().Be("Un.Petit.Boulot.2016.FRENCH.720p.BluRay.DTS.x264-LOST");
releaseInfo.DownloadProtocol.Should().Be(DownloadProtocol.Usenet);
- releaseInfo.DownloadUrl.Should().Be("http://api.omgwtfnzbs.org/sn.php?id=OAl4g&user=nzbdrone&api=nzbdrone");
- releaseInfo.InfoUrl.Should().Be("http://omgwtfnzbs.org/details.php?id=OAl4g");
+ releaseInfo.DownloadUrl.Should().Be("https://api.omgwtfnzbs.me/nzb/?id=8a2Bw&user=nzbdrone&api=nzbdrone");
+ releaseInfo.InfoUrl.Should().Be("https://omgwtfnzbs.me/details.php?id=8a2Bw");
releaseInfo.CommentUrl.Should().BeNullOrEmpty();
releaseInfo.Indexer.Should().Be(Subject.Definition.Name);
- releaseInfo.PublishDate.Should().Be(DateTime.Parse("2012/12/17 23:30:13"));
- releaseInfo.Size.Should().Be(236822906);
+ releaseInfo.PublishDate.Should().Be(DateTime.Parse("2017/01/09 00:16:54"));
+ releaseInfo.Size.Should().Be(5354909355);
}
}
}
diff --git a/src/NzbDrone.Core.Test/IndexerTests/TorrentleechTests/TorrentleechFixture.cs b/src/NzbDrone.Core.Test/IndexerTests/TorrentleechTests/TorrentleechFixture.cs
deleted file mode 100644
index 8ecb58144..000000000
--- a/src/NzbDrone.Core.Test/IndexerTests/TorrentleechTests/TorrentleechFixture.cs
+++ /dev/null
@@ -1,57 +0,0 @@
-using Moq;
-using NUnit.Framework;
-using NzbDrone.Common.Http;
-using NzbDrone.Core.Indexers;
-using NzbDrone.Core.Indexers.Torrentleech;
-using NzbDrone.Core.Parser.Model;
-using NzbDrone.Core.Test.Framework;
-using System;
-using System.Linq;
-using FluentAssertions;
-
-namespace NzbDrone.Core.Test.IndexerTests.TorrentleechTests
-{
- [TestFixture]
- public class TorrentleechFixture : CoreTest
- {
- [SetUp]
- public void Setup()
- {
- Subject.Definition = new IndexerDefinition()
- {
- Name = "Torrentleech",
- Settings = new TorrentleechSettings()
- };
- }
-
- [Test]
- public void should_parse_recent_feed_from_Torrentleech()
- {
- var recentFeed = ReadAllText(@"Files/Indexers/Torrentleech/Torrentleech.xml");
-
- Mocker.GetMock()
- .Setup(o => o.Execute(It.Is(v => v.Method == HttpMethod.GET)))
- .Returns(r => new HttpResponse(r, new HttpHeader(), recentFeed));
-
- var releases = Subject.FetchRecent();
-
- releases.Should().HaveCount(5);
- releases.First().Should().BeOfType();
-
- var torrentInfo = releases.First() as TorrentInfo;
-
- torrentInfo.Title.Should().Be("Classic Car Rescue S02E04 720p HDTV x264-C4TV");
- torrentInfo.DownloadProtocol.Should().Be(DownloadProtocol.Torrent);
- torrentInfo.DownloadUrl.Should().Be("http://www.torrentleech.org/rss/download/513575/1234/Classic.Car.Rescue.S02E04.720p.HDTV.x264-C4TV.torrent");
- torrentInfo.InfoUrl.Should().Be("http://www.torrentleech.org/torrent/513575");
- torrentInfo.CommentUrl.Should().Be("http://www.torrentleech.org/torrent/513575#comments");
- torrentInfo.Indexer.Should().Be(Subject.Definition.Name);
- torrentInfo.PublishDate.Should().Be(DateTime.Parse("2014/05/12 19:15:28"));
- torrentInfo.Size.Should().Be(0);
- torrentInfo.InfoHash.Should().Be(null);
- torrentInfo.MagnetUrl.Should().Be(null);
- torrentInfo.Peers.Should().Be(7+1);
- torrentInfo.Seeders.Should().Be(1);
- }
- }
-}
diff --git a/src/NzbDrone.Core.Test/NzbDrone.Core.Test.csproj b/src/NzbDrone.Core.Test/NzbDrone.Core.Test.csproj
index 77b36ba5e..70e548681 100644
--- a/src/NzbDrone.Core.Test/NzbDrone.Core.Test.csproj
+++ b/src/NzbDrone.Core.Test/NzbDrone.Core.Test.csproj
@@ -237,8 +237,6 @@
-
-
@@ -251,7 +249,6 @@
-
@@ -259,7 +256,6 @@
-
diff --git a/src/NzbDrone.Core.Test/Properties/AssemblyInfo.cs b/src/NzbDrone.Core.Test/Properties/AssemblyInfo.cs
index fca9cdaa2..867cfc620 100644
--- a/src/NzbDrone.Core.Test/Properties/AssemblyInfo.cs
+++ b/src/NzbDrone.Core.Test/Properties/AssemblyInfo.cs
@@ -25,6 +25,4 @@ using System.Runtime.InteropServices;
[assembly: Guid("699aed1b-015e-4f0d-9c81-d5557b05d260")]
-[assembly: AssemblyVersion("10.0.0.*")]
-
[assembly: InternalsVisibleTo("NzbDrone.Core")]
\ No newline at end of file
diff --git a/src/NzbDrone.Core.Test/UpdateTests/UpdateServiceFixture.cs b/src/NzbDrone.Core.Test/UpdateTests/UpdateServiceFixture.cs
index ef29fe797..5a7bf569b 100644
--- a/src/NzbDrone.Core.Test/UpdateTests/UpdateServiceFixture.cs
+++ b/src/NzbDrone.Core.Test/UpdateTests/UpdateServiceFixture.cs
@@ -59,7 +59,7 @@ namespace NzbDrone.Core.Test.UpdateTests
Mocker.GetMock().Setup(c => c.Verify(It.IsAny(), It.IsAny())).Returns(true);
Mocker.GetMock().Setup(c => c.GetCurrentProcess()).Returns(new ProcessInfo { Id = 12 });
- Mocker.GetMock().Setup(c => c.ExecutingApplication).Returns(@"C:\Test\NzbDrone.exe");
+ Mocker.GetMock().Setup(c => c.ExecutingApplication).Returns(@"C:\Test\Radarr.exe");
Mocker.GetMock()
.SetupGet(s => s.UpdateAutomatically)
diff --git a/src/NzbDrone.Core/Backup/BackupService.cs b/src/NzbDrone.Core/Backup/BackupService.cs
index 8cc89d87b..39130703f 100644
--- a/src/NzbDrone.Core/Backup/BackupService.cs
+++ b/src/NzbDrone.Core/Backup/BackupService.cs
@@ -33,7 +33,7 @@ namespace NzbDrone.Core.Backup
private string _backupTempFolder;
- private static readonly Regex BackupFileRegex = new Regex(@"nzbdrone_backup_[._0-9]+\.zip", RegexOptions.Compiled | RegexOptions.IgnoreCase);
+ private static readonly Regex BackupFileRegex = new Regex(@"radarr_backup_[._0-9]+\.zip", RegexOptions.Compiled | RegexOptions.IgnoreCase);
public BackupService(IMainDatabase maindDb,
IDiskTransferService diskTransferService,
@@ -49,7 +49,7 @@ namespace NzbDrone.Core.Backup
_archiveService = archiveService;
_logger = logger;
- _backupTempFolder = Path.Combine(_appFolderInfo.TempFolder, "nzbdrone_backup");
+ _backupTempFolder = Path.Combine(_appFolderInfo.TempFolder, "radarr_backup");
}
public void Backup(BackupType backupType)
@@ -59,7 +59,7 @@ namespace NzbDrone.Core.Backup
_diskProvider.EnsureFolder(_backupTempFolder);
_diskProvider.EnsureFolder(GetBackupFolder(backupType));
- var backupFilename = string.Format("nzbdrone_backup_{0:yyyy.MM.dd_HH.mm.ss}.zip", DateTime.Now);
+ var backupFilename = string.Format("radarr_backup_{0:yyyy.MM.dd_HH.mm.ss}.zip", DateTime.Now);
var backupPath = Path.Combine(GetBackupFolder(backupType), backupFilename);
Cleanup();
diff --git a/src/NzbDrone.Core/Configuration/ConfigFileProvider.cs b/src/NzbDrone.Core/Configuration/ConfigFileProvider.cs
index fa6d8a914..4b7543d5f 100644
--- a/src/NzbDrone.Core/Configuration/ConfigFileProvider.cs
+++ b/src/NzbDrone.Core/Configuration/ConfigFileProvider.cs
@@ -133,7 +133,7 @@ namespace NzbDrone.Core.Configuration
}
}
- public int Port => GetValueInt("Port", 8989);
+ public int Port => GetValueInt("Port", 7878);
public int SslPort => GetValueInt("SslPort", 9898);
@@ -161,7 +161,8 @@ namespace NzbDrone.Core.Configuration
public bool AnalyticsEnabled => GetValueBoolean("AnalyticsEnabled", true, persist: false);
- public string Branch => GetValue("Branch", "master").ToLowerInvariant();
+ // TODO: Change back to "master" for the first stable release.
+ public string Branch => GetValue("Branch", "develop").ToLowerInvariant();
public string LogLevel => GetValue("LogLevel", "Info");
@@ -303,12 +304,12 @@ namespace NzbDrone.Core.Configuration
if (contents.IsNullOrWhiteSpace())
{
- throw new InvalidConfigFileException($"{_configFile} is empty. Please delete the config file and Sonarr will recreate it.");
+ throw new InvalidConfigFileException($"{_configFile} is empty. Please delete the config file and Radarr will recreate it.");
}
if (contents.All(char.IsControl))
{
- throw new InvalidConfigFileException($"{_configFile} is corrupt. Please delete the config file and Sonarr will recreate it.");
+ throw new InvalidConfigFileException($"{_configFile} is corrupt. Please delete the config file and Radarr will recreate it.");
}
return XDocument.Parse(_diskProvider.ReadAllText(_configFile));
@@ -323,7 +324,7 @@ namespace NzbDrone.Core.Configuration
catch (XmlException ex)
{
- throw new InvalidConfigFileException($"{_configFile} is corrupt is invalid. Please delete the config file and Sonarr will recreate it.", ex);
+ throw new InvalidConfigFileException($"{_configFile} is corrupt is invalid. Please delete the config file and Radarr will recreate it.", ex);
}
}
diff --git a/src/NzbDrone.Core/Datastore/Migration/001_initial_setup.cs b/src/NzbDrone.Core/Datastore/Migration/001_initial_setup.cs
index b2792fe56..0042de064 100644
--- a/src/NzbDrone.Core/Datastore/Migration/001_initial_setup.cs
+++ b/src/NzbDrone.Core/Datastore/Migration/001_initial_setup.cs
@@ -41,6 +41,32 @@ namespace NzbDrone.Core.Datastore.Migration
.WithColumn("FirstAired").AsDateTime().Nullable()
.WithColumn("NextAiring").AsDateTime().Nullable();
+ Create.TableForModel("Movies")
+ .WithColumn("ImdbId").AsString().Unique()
+ .WithColumn("Title").AsString()
+ .WithColumn("TitleSlug").AsString().Unique()
+ .WithColumn("SortTitle").AsString().Nullable()
+ .WithColumn("CleanTitle").AsString()
+ .WithColumn("Status").AsInt32()
+ .WithColumn("Overview").AsString().Nullable()
+ .WithColumn("Images").AsString()
+ .WithColumn("Path").AsString()
+ .WithColumn("Monitored").AsBoolean()
+ .WithColumn("ProfileId").AsInt32()
+ .WithColumn("LastInfoSync").AsDateTime().Nullable()
+ .WithColumn("LastDiskSync").AsDateTime().Nullable()
+ .WithColumn("Runtime").AsInt32()
+ .WithColumn("InCinemas").AsDateTime().Nullable()
+ .WithColumn("Year").AsInt32().Nullable()
+ .WithColumn("Added").AsDateTime().Nullable()
+ .WithColumn("Actors").AsString().Nullable()
+ .WithColumn("Ratings").AsString().Nullable()
+ .WithColumn("Genres").AsString().Nullable()
+ .WithColumn("Tags").AsString().Nullable()
+ .WithColumn("Certification").AsString().Nullable()
+ .WithColumn("AddOptions").AsString().Nullable();
+
+
Create.TableForModel("Seasons")
.WithColumn("SeriesId").AsInt32()
.WithColumn("SeasonNumber").AsInt32()
@@ -79,7 +105,8 @@ namespace NzbDrone.Core.Datastore.Migration
.WithColumn("Quality").AsString()
.WithColumn("Indexer").AsString()
.WithColumn("NzbInfoUrl").AsString().Nullable()
- .WithColumn("ReleaseGroup").AsString().Nullable();
+ .WithColumn("ReleaseGroup").AsString().Nullable()
+ .WithColumn("MovieId").AsInt32().WithDefaultValue(0);
Create.TableForModel("Notifications")
.WithColumn("Name").AsString()
diff --git a/src/NzbDrone.Core/Datastore/Migration/054_rename_profiles.cs b/src/NzbDrone.Core/Datastore/Migration/054_rename_profiles.cs
index e665c14a4..5535a1bd9 100644
--- a/src/NzbDrone.Core/Datastore/Migration/054_rename_profiles.cs
+++ b/src/NzbDrone.Core/Datastore/Migration/054_rename_profiles.cs
@@ -21,11 +21,12 @@ namespace NzbDrone.Core.Datastore.Migration
//Add HeldReleases
Create.TableForModel("PendingReleases")
- .WithColumn("SeriesId").AsInt32()
+ .WithColumn("SeriesId").AsInt32().WithDefaultValue(0)
.WithColumn("Title").AsString()
.WithColumn("Added").AsDateTime()
.WithColumn("ParsedEpisodeInfo").AsString()
- .WithColumn("Release").AsString();
+ .WithColumn("Release").AsString()
+ .WithColumn("MovieId").AsInt32().WithDefaultValue(0);
}
}
}
diff --git a/src/NzbDrone.Core/Datastore/Migration/104_add_moviefiles_table.cs b/src/NzbDrone.Core/Datastore/Migration/104_add_moviefiles_table.cs
new file mode 100644
index 000000000..34a455683
--- /dev/null
+++ b/src/NzbDrone.Core/Datastore/Migration/104_add_moviefiles_table.cs
@@ -0,0 +1,31 @@
+using FluentMigrator;
+using Marr.Data.Mapping;
+using NzbDrone.Core.Datastore.Migration.Framework;
+using NzbDrone.Core.Tv;
+using NzbDrone.Core.MediaFiles;
+using NzbDrone.Core.Datastore.Extensions;
+
+namespace NzbDrone.Core.Datastore.Migration
+{
+ [Migration(104)]
+ public class add_moviefiles_table : NzbDroneMigrationBase
+ {
+ protected override void MainDbUpgrade()
+ {
+ Create.TableForModel("MovieFiles")
+ .WithColumn("MovieId").AsInt32()
+ .WithColumn("Path").AsString().Unique()
+ .WithColumn("Quality").AsString()
+ .WithColumn("Size").AsInt64()
+ .WithColumn("DateAdded").AsDateTime()
+ .WithColumn("SceneName").AsString().Nullable()
+ .WithColumn("MediaInfo").AsString().Nullable()
+ .WithColumn("ReleaseGroup").AsString().Nullable()
+ .WithColumn("RelativePath").AsString().Nullable();
+
+ Alter.Table("Movies").AddColumn("MovieFileId").AsInt32().WithDefaultValue(0);
+
+
+ }
+ }
+}
diff --git a/src/NzbDrone.Core/Datastore/Migration/105_fix_history_movieId.cs b/src/NzbDrone.Core/Datastore/Migration/105_fix_history_movieId.cs
new file mode 100644
index 000000000..5de372a15
--- /dev/null
+++ b/src/NzbDrone.Core/Datastore/Migration/105_fix_history_movieId.cs
@@ -0,0 +1,15 @@
+using FluentMigrator;
+using NzbDrone.Core.Datastore.Migration.Framework;
+
+namespace NzbDrone.Core.Datastore.Migration
+{
+ [Migration(105)]
+ public class fix_history_movieId : NzbDroneMigrationBase
+ {
+ protected override void MainDbUpgrade()
+ {
+ Alter.Table("History")
+ .AddColumn("MovieId").AsInt32().WithDefaultValue(0);
+ }
+ }
+}
diff --git a/src/NzbDrone.Core/Datastore/Migration/106_add_tmdb_stuff.cs b/src/NzbDrone.Core/Datastore/Migration/106_add_tmdb_stuff.cs
new file mode 100644
index 000000000..106dcdbd1
--- /dev/null
+++ b/src/NzbDrone.Core/Datastore/Migration/106_add_tmdb_stuff.cs
@@ -0,0 +1,21 @@
+using FluentMigrator;
+using NzbDrone.Core.Datastore.Migration.Framework;
+
+namespace NzbDrone.Core.Datastore.Migration
+{
+ [Migration(106)]
+ public class add_tmdb_stuff : NzbDroneMigrationBase
+ {
+ protected override void MainDbUpgrade()
+ {
+ Alter.Table("Movies")
+ .AddColumn("TmdbId").AsInt32().WithDefaultValue(0);
+ Alter.Table("Movies")
+ .AddColumn("Website").AsString().Nullable();
+ Alter.Table("Movies")
+ .AlterColumn("ImdbId").AsString().Nullable();
+ Alter.Table("Movies")
+ .AddColumn("AlternativeTitles").AsString().Nullable();
+ }
+ }
+}
diff --git a/src/NzbDrone.Core/Datastore/Migration/107_fix_movie_files.cs b/src/NzbDrone.Core/Datastore/Migration/107_fix_movie_files.cs
new file mode 100644
index 000000000..d1b82b862
--- /dev/null
+++ b/src/NzbDrone.Core/Datastore/Migration/107_fix_movie_files.cs
@@ -0,0 +1,14 @@
+using FluentMigrator;
+using NzbDrone.Core.Datastore.Migration.Framework;
+
+namespace NzbDrone.Core.Datastore.Migration
+{
+ [Migration(107)]
+ public class fix_movie_files : NzbDroneMigrationBase
+ {
+ protected override void MainDbUpgrade()
+ {
+ Alter.Table("MovieFiles").AlterColumn("Path").AsString().Nullable(); //Should be deleted, but to much work, ¯\_(ツ)_/¯
+ }
+ }
+}
diff --git a/src/NzbDrone.Core/Datastore/Migration/108_update_schedule_interval.cs b/src/NzbDrone.Core/Datastore/Migration/108_update_schedule_interval.cs
new file mode 100644
index 000000000..82f204b3e
--- /dev/null
+++ b/src/NzbDrone.Core/Datastore/Migration/108_update_schedule_interval.cs
@@ -0,0 +1,15 @@
+using FluentMigrator;
+using NzbDrone.Core.Datastore.Migration.Framework;
+
+namespace NzbDrone.Core.Datastore.Migration
+{
+ [Migration(108)]
+ public class update_schedule_intervale : NzbDroneMigrationBase
+ {
+ protected override void MainDbUpgrade()
+ {
+ Alter.Table("ScheduledTasks").AlterColumn("Interval").AsDouble();
+ Execute.Sql("UPDATE ScheduledTasks SET Interval=0.25 WHERE TypeName='NzbDrone.Core.Download.CheckForFinishedDownloadCommand'");
+ }
+ }
+}
diff --git a/src/NzbDrone.Core/Datastore/Migration/109_add_movie_formats_to_naming_config.cs b/src/NzbDrone.Core/Datastore/Migration/109_add_movie_formats_to_naming_config.cs
new file mode 100644
index 000000000..c36d3f094
--- /dev/null
+++ b/src/NzbDrone.Core/Datastore/Migration/109_add_movie_formats_to_naming_config.cs
@@ -0,0 +1,65 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using FluentMigrator;
+using NzbDrone.Core.Datastore.Migration.Framework;
+using System.Data;
+
+namespace NzbDrone.Core.Datastore.Migration
+{
+ [Migration(109)]
+ public class add_movie_formats_to_naming_config : NzbDroneMigrationBase
+ {
+ protected override void MainDbUpgrade()
+ {
+ Alter.Table("NamingConfig").AddColumn("StandardMovieFormat").AsString().Nullable();
+ Alter.Table("NamingConfig").AddColumn("MovieFolderFormat").AsString().Nullable();
+
+ Execute.WithConnection(ConvertConfig);
+ }
+
+ private void ConvertConfig(IDbConnection conn, IDbTransaction tran)
+ {
+
+ using (IDbCommand namingConfigCmd = conn.CreateCommand())
+ {
+ namingConfigCmd.Transaction = tran;
+ namingConfigCmd.CommandText = @"SELECT * FROM NamingConfig LIMIT 1";
+ using (IDataReader namingConfigReader = namingConfigCmd.ExecuteReader())
+ {
+
+ while (namingConfigReader.Read())
+ {
+ // Output Settings
+ var movieTitlePattern = "";
+ var movieYearPattern = "({Release Year})";
+ var qualityFormat = "[{Quality Title}]";
+
+ movieTitlePattern = "{Movie Title}";
+
+ var standardMovieFormat = string.Format("{0} {1} {2}", movieTitlePattern,
+ movieYearPattern,
+ qualityFormat);
+
+ var movieFolderFormat = string.Format("{0} {1}", movieTitlePattern, movieYearPattern);
+
+
+ using (IDbCommand updateCmd = conn.CreateCommand())
+ {
+ var text = string.Format("UPDATE NamingConfig " +
+ "SET StandardMovieFormat = '{0}', " +
+ "MovieFolderFormat = '{1}'",
+ standardMovieFormat,
+ movieFolderFormat);
+
+ updateCmd.Transaction = tran;
+ updateCmd.CommandText = text;
+ updateCmd.ExecuteNonQuery();
+ }
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/src/NzbDrone.Core/Datastore/Migration/110_add_physical_release_to_table.cs b/src/NzbDrone.Core/Datastore/Migration/110_add_physical_release_to_table.cs
new file mode 100644
index 000000000..945fde4ad
--- /dev/null
+++ b/src/NzbDrone.Core/Datastore/Migration/110_add_physical_release_to_table.cs
@@ -0,0 +1,23 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using FluentMigrator;
+using NzbDrone.Core.Datastore.Migration.Framework;
+using System.Data;
+
+namespace NzbDrone.Core.Datastore.Migration
+{
+ [Migration(110)]
+ public class add_phyiscal_release : NzbDroneMigrationBase
+ {
+ protected override void MainDbUpgrade()
+ {
+ Alter.Table("Movies").AddColumn("PhysicalRelease").AsDateTime().Nullable();
+
+ }
+
+
+
+ }
+}
diff --git a/src/NzbDrone.Core/Datastore/Migration/111_remove_bitmetv.cs b/src/NzbDrone.Core/Datastore/Migration/111_remove_bitmetv.cs
new file mode 100644
index 000000000..c31652530
--- /dev/null
+++ b/src/NzbDrone.Core/Datastore/Migration/111_remove_bitmetv.cs
@@ -0,0 +1,14 @@
+using FluentMigrator;
+using NzbDrone.Core.Datastore.Migration.Framework;
+
+namespace NzbDrone.Core.Datastore.Migration
+{
+ [Migration(111)]
+ public class remove_bitmetv : NzbDroneMigrationBase
+ {
+ protected override void MainDbUpgrade()
+ {
+ Delete.FromTable("Indexers").Row(new { Implementation = "BitMeTv" });
+ }
+ }
+}
diff --git a/src/NzbDrone.Core/Datastore/Migration/112_remove_torrentleech.cs b/src/NzbDrone.Core/Datastore/Migration/112_remove_torrentleech.cs
new file mode 100644
index 000000000..efaef09c7
--- /dev/null
+++ b/src/NzbDrone.Core/Datastore/Migration/112_remove_torrentleech.cs
@@ -0,0 +1,14 @@
+using FluentMigrator;
+using NzbDrone.Core.Datastore.Migration.Framework;
+
+namespace NzbDrone.Core.Datastore.Migration
+{
+ [Migration(112)]
+ public class remove_torrentleech : NzbDroneMigrationBase
+ {
+ protected override void MainDbUpgrade()
+ {
+ Delete.FromTable("Indexers").Row(new { Implementation = "Torrentleech" });
+ }
+ }
+}
diff --git a/src/NzbDrone.Core/Datastore/Migration/113_remove_broadcasthenet.cs b/src/NzbDrone.Core/Datastore/Migration/113_remove_broadcasthenet.cs
new file mode 100644
index 000000000..e290283c6
--- /dev/null
+++ b/src/NzbDrone.Core/Datastore/Migration/113_remove_broadcasthenet.cs
@@ -0,0 +1,14 @@
+using FluentMigrator;
+using NzbDrone.Core.Datastore.Migration.Framework;
+
+namespace NzbDrone.Core.Datastore.Migration
+{
+ [Migration(113)]
+ public class remove_broadcasthenet : NzbDroneMigrationBase
+ {
+ protected override void MainDbUpgrade()
+ {
+ Delete.FromTable("Indexers").Row(new { Implementation = "BroadcastheNet" });
+ }
+ }
+}
diff --git a/src/NzbDrone.Core/Datastore/Migration/114_remove_fanzub.cs b/src/NzbDrone.Core/Datastore/Migration/114_remove_fanzub.cs
new file mode 100644
index 000000000..2963389b5
--- /dev/null
+++ b/src/NzbDrone.Core/Datastore/Migration/114_remove_fanzub.cs
@@ -0,0 +1,14 @@
+using FluentMigrator;
+using NzbDrone.Core.Datastore.Migration.Framework;
+
+namespace NzbDrone.Core.Datastore.Migration
+{
+ [Migration(114)]
+ public class remove_fanzub : NzbDroneMigrationBase
+ {
+ protected override void MainDbUpgrade()
+ {
+ Delete.FromTable("Indexers").Row(new { Implementation = "Fanzub" });
+ }
+ }
+}
diff --git a/src/NzbDrone.Core/Datastore/Migration/115_update_movie_sorttitle.cs b/src/NzbDrone.Core/Datastore/Migration/115_update_movie_sorttitle.cs
new file mode 100644
index 000000000..593665455
--- /dev/null
+++ b/src/NzbDrone.Core/Datastore/Migration/115_update_movie_sorttitle.cs
@@ -0,0 +1,45 @@
+using System.Data;
+using FluentMigrator;
+using NzbDrone.Core.Datastore.Migration.Framework;
+
+namespace NzbDrone.Core.Datastore.Migration
+{
+ [Migration(115)]
+ public class update_movie_sorttitle : NzbDroneMigrationBase
+ {
+ protected override void MainDbUpgrade()
+ {
+ // Create.Column("SortTitle").OnTable("Series").AsString().Nullable();
+ Execute.WithConnection(SetSortTitles);
+ }
+
+ private void SetSortTitles(IDbConnection conn, IDbTransaction tran)
+ {
+ using (IDbCommand getSeriesCmd = conn.CreateCommand())
+ {
+ getSeriesCmd.Transaction = tran;
+ getSeriesCmd.CommandText = @"SELECT Id, Title FROM Movies";
+ using (IDataReader seriesReader = getSeriesCmd.ExecuteReader())
+ {
+ while (seriesReader.Read())
+ {
+ var id = seriesReader.GetInt32(0);
+ var title = seriesReader.GetString(1);
+
+ var sortTitle = Parser.Parser.NormalizeTitle(title).ToLower();
+
+ using (IDbCommand updateCmd = conn.CreateCommand())
+ {
+ updateCmd.Transaction = tran;
+ updateCmd.CommandText = "UPDATE Movies SET SortTitle = ? WHERE Id = ?";
+ updateCmd.AddParameter(sortTitle);
+ updateCmd.AddParameter(id);
+
+ updateCmd.ExecuteNonQuery();
+ }
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/src/NzbDrone.Core/Datastore/Migration/116_update_movie_sorttitle_again.cs b/src/NzbDrone.Core/Datastore/Migration/116_update_movie_sorttitle_again.cs
new file mode 100644
index 000000000..45666b1c2
--- /dev/null
+++ b/src/NzbDrone.Core/Datastore/Migration/116_update_movie_sorttitle_again.cs
@@ -0,0 +1,44 @@
+using System.Data;
+using FluentMigrator;
+using NzbDrone.Core.Datastore.Migration.Framework;
+
+namespace NzbDrone.Core.Datastore.Migration
+{
+ [Migration(116)]
+ public class update_movie_sorttitle_again : NzbDroneMigrationBase
+ {
+ protected override void MainDbUpgrade()
+ {
+ Execute.WithConnection(SetSortTitles);
+ }
+
+ private void SetSortTitles(IDbConnection conn, IDbTransaction tran)
+ {
+ using (IDbCommand getSeriesCmd = conn.CreateCommand())
+ {
+ getSeriesCmd.Transaction = tran;
+ getSeriesCmd.CommandText = @"SELECT Id, Title FROM Movies";
+ using (IDataReader seriesReader = getSeriesCmd.ExecuteReader())
+ {
+ while (seriesReader.Read())
+ {
+ var id = seriesReader.GetInt32(0);
+ var title = seriesReader.GetString(1);
+
+ var sortTitle = Parser.Parser.NormalizeTitle(title).ToLower();
+
+ using (IDbCommand updateCmd = conn.CreateCommand())
+ {
+ updateCmd.Transaction = tran;
+ updateCmd.CommandText = "UPDATE Movies SET SortTitle = ? WHERE Id = ?";
+ updateCmd.AddParameter(sortTitle);
+ updateCmd.AddParameter(id);
+
+ updateCmd.ExecuteNonQuery();
+ }
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/src/NzbDrone.Core/Datastore/Migration/117_update_movie_file.cs b/src/NzbDrone.Core/Datastore/Migration/117_update_movie_file.cs
new file mode 100644
index 000000000..ee1db828d
--- /dev/null
+++ b/src/NzbDrone.Core/Datastore/Migration/117_update_movie_file.cs
@@ -0,0 +1,52 @@
+using System.Data;
+using FluentMigrator;
+using NzbDrone.Core.Datastore.Migration.Framework;
+
+namespace NzbDrone.Core.Datastore.Migration
+{
+ [Migration(117)]
+ public class update_movie_file : NzbDroneMigrationBase
+ {
+ protected override void MainDbUpgrade()
+ {
+ Create.Column("Edition").OnTable("MovieFiles").AsString().Nullable();
+ //Execute.WithConnection(SetSortTitles);
+ }
+
+ private void SetSortTitles(IDbConnection conn, IDbTransaction tran)
+ {
+ using (IDbCommand getSeriesCmd = conn.CreateCommand())
+ {
+ getSeriesCmd.Transaction = tran;
+ getSeriesCmd.CommandText = @"SELECT Id, RelativePath FROM MovieFiles";
+ using (IDataReader seriesReader = getSeriesCmd.ExecuteReader())
+ {
+ while (seriesReader.Read())
+ {
+ var id = seriesReader.GetInt32(0);
+ var relativePath = seriesReader.GetString(1);
+
+ var result = Parser.Parser.ParseMovieTitle(relativePath);
+
+ var edition = "";
+
+ if (result != null)
+ {
+ edition = Parser.Parser.ParseMovieTitle(relativePath).Edition;
+ }
+
+ using (IDbCommand updateCmd = conn.CreateCommand())
+ {
+ updateCmd.Transaction = tran;
+ updateCmd.CommandText = "UPDATE MovieFiles SET Edition = ? WHERE Id = ?";
+ updateCmd.AddParameter(edition);
+ updateCmd.AddParameter(id);
+
+ updateCmd.ExecuteNonQuery();
+ }
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/src/NzbDrone.Core/Datastore/Migration/118_update_movie_slug.cs b/src/NzbDrone.Core/Datastore/Migration/118_update_movie_slug.cs
new file mode 100644
index 000000000..f7026ae5d
--- /dev/null
+++ b/src/NzbDrone.Core/Datastore/Migration/118_update_movie_slug.cs
@@ -0,0 +1,71 @@
+using System.Data;
+using FluentMigrator;
+using NzbDrone.Core.Datastore.Migration.Framework;
+using System.Text;
+using System.Text.RegularExpressions;
+
+namespace NzbDrone.Core.Datastore.Migration
+{
+ [Migration(118)]
+ public class update_movie_slug : NzbDroneMigrationBase
+ {
+ protected override void MainDbUpgrade()
+ {
+ Execute.WithConnection(SetTitleSlug);
+ }
+
+ private void SetTitleSlug(IDbConnection conn, IDbTransaction tran)
+ {
+ using (IDbCommand getSeriesCmd = conn.CreateCommand())
+ {
+ getSeriesCmd.Transaction = tran;
+ getSeriesCmd.CommandText = @"SELECT Id, Title, Year FROM Movies";
+ using (IDataReader seriesReader = getSeriesCmd.ExecuteReader())
+ {
+ while (seriesReader.Read())
+ {
+ var id = seriesReader.GetInt32(0);
+ var title = seriesReader.GetString(1);
+ var year = seriesReader.GetInt32(2);
+
+ var titleSlug = ToUrlSlug(title + "-" + year);
+
+ using (IDbCommand updateCmd = conn.CreateCommand())
+ {
+ updateCmd.Transaction = tran;
+ updateCmd.CommandText = "UPDATE Movies SET TitleSlug = ? WHERE Id = ?";
+ updateCmd.AddParameter(titleSlug);
+ updateCmd.AddParameter(id);
+
+ updateCmd.ExecuteNonQuery();
+ }
+ }
+ }
+ }
+ }
+
+ public static string ToUrlSlug(string value)
+ {
+ //First to lower case
+ value = value.ToLowerInvariant();
+
+ //Remove all accents
+ var bytes = Encoding.GetEncoding("Cyrillic").GetBytes(value);
+ value = Encoding.ASCII.GetString(bytes);
+
+ //Replace spaces
+ value = Regex.Replace(value, @"\s", "-", RegexOptions.Compiled);
+
+ //Remove invalid chars
+ value = Regex.Replace(value, @"[^a-z0-9\s-_]", "", RegexOptions.Compiled);
+
+ //Trim dashes from end
+ value = value.Trim('-', '_');
+
+ //Replace double occurences of - or _
+ value = Regex.Replace(value, @"([-_]){2,}", "$1", RegexOptions.Compiled);
+
+ return value;
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/NzbDrone.Core/Datastore/Migration/Framework/MigrationController.cs b/src/NzbDrone.Core/Datastore/Migration/Framework/MigrationController.cs
index 793725e9f..310628715 100644
--- a/src/NzbDrone.Core/Datastore/Migration/Framework/MigrationController.cs
+++ b/src/NzbDrone.Core/Datastore/Migration/Framework/MigrationController.cs
@@ -60,7 +60,6 @@ namespace NzbDrone.Core.Datastore.Migration.Framework
sw.Stop();
-
_announcer.ElapsedTime(sw.Elapsed);
}
}
diff --git a/src/NzbDrone.Core/Datastore/TableMapping.cs b/src/NzbDrone.Core/Datastore/TableMapping.cs
index 62f6aeb8b..30c0b038f 100644
--- a/src/NzbDrone.Core/Datastore/TableMapping.cs
+++ b/src/NzbDrone.Core/Datastore/TableMapping.cs
@@ -76,6 +76,8 @@ namespace NzbDrone.Core.Datastore
.Relationship()
.HasOne(s => s.Profile, s => s.ProfileId);
+
+
Mapper.Entity().RegisterModel("EpisodeFiles")
.Ignore(f => f.Path)
.Relationships.AutoMapICollectionOrComplexProperties()
@@ -84,6 +86,21 @@ namespace NzbDrone.Core.Datastore
query: (db, parent) => db.Query().Where(c => c.EpisodeFileId == parent.Id).ToList())
.HasOne(file => file.Series, file => file.SeriesId);
+ Mapper.Entity().RegisterModel("MovieFiles")
+ .Ignore(f => f.Path)
+ .Relationships.AutoMapICollectionOrComplexProperties()
+ .For("Movie")
+ .LazyLoad(condition: parent => parent.Id > 0,
+ query: (db, parent) => db.Query().Where(c => c.MovieFileId == parent.Id).ToList())
+ .HasOne(file => file.Movie, file => file.MovieId);
+
+ Mapper.Entity().RegisterModel("Movies")
+ .Ignore(s => s.RootFolderPath)
+ .Relationship()
+ .HasOne(s => s.Profile, s => s.ProfileId)
+ .HasOne(m => m.MovieFile, m => m.MovieFileId);
+
+
Mapper.Entity().RegisterModel("Episodes")
.Ignore(e => e.SeriesTitle)
.Ignore(e => e.Series)
@@ -123,6 +140,7 @@ namespace NzbDrone.Core.Datastore
RegisterEmbeddedConverter();
RegisterProviderSettingConverter();
+
MapRepository.Instance.RegisterTypeConverter(typeof(int), new Int32Converter());
MapRepository.Instance.RegisterTypeConverter(typeof(double), new DoubleConverter());
MapRepository.Instance.RegisterTypeConverter(typeof(DateTime), new UtcConverter());
diff --git a/src/NzbDrone.Core/DecisionEngine/DownloadDecision.cs b/src/NzbDrone.Core/DecisionEngine/DownloadDecision.cs
index cad8177cb..68c2efee0 100644
--- a/src/NzbDrone.Core/DecisionEngine/DownloadDecision.cs
+++ b/src/NzbDrone.Core/DecisionEngine/DownloadDecision.cs
@@ -7,6 +7,10 @@ namespace NzbDrone.Core.DecisionEngine
public class DownloadDecision
{
public RemoteEpisode RemoteEpisode { get; private set; }
+
+ public RemoteMovie RemoteMovie { get; private set; }
+
+ public bool IsForMovie = false;
public IEnumerable Rejections { get; private set; }
public bool Approved => !Rejections.Any();
@@ -30,6 +34,23 @@ namespace NzbDrone.Core.DecisionEngine
public DownloadDecision(RemoteEpisode episode, params Rejection[] rejections)
{
RemoteEpisode = episode;
+ RemoteMovie = new RemoteMovie
+ {
+ Release = episode.Release,
+ ParsedEpisodeInfo = episode.ParsedEpisodeInfo
+ };
+ Rejections = rejections.ToList();
+ }
+
+ public DownloadDecision(RemoteMovie movie, params Rejection[] rejections)
+ {
+ RemoteMovie = movie;
+ RemoteEpisode = new RemoteEpisode
+ {
+ Release = movie.Release,
+ ParsedEpisodeInfo = movie.ParsedEpisodeInfo
+ };
+ IsForMovie = true;
Rejections = rejections.ToList();
}
diff --git a/src/NzbDrone.Core/DecisionEngine/DownloadDecisionComparer.cs b/src/NzbDrone.Core/DecisionEngine/DownloadDecisionComparer.cs
index 882105a9d..67117ca85 100644
--- a/src/NzbDrone.Core/DecisionEngine/DownloadDecisionComparer.cs
+++ b/src/NzbDrone.Core/DecisionEngine/DownloadDecisionComparer.cs
@@ -24,8 +24,6 @@ namespace NzbDrone.Core.DecisionEngine
{
CompareQuality,
CompareProtocol,
- CompareEpisodeCount,
- CompareEpisodeNumber,
ComparePeersIfTorrent,
CompareAgeIfUsenet,
CompareSize
@@ -56,6 +54,12 @@ namespace NzbDrone.Core.DecisionEngine
private int CompareQuality(DownloadDecision x, DownloadDecision y)
{
+ if (x.IsForMovie && y.IsForMovie)
+ {
+ return CompareAll(CompareBy(x.RemoteMovie, y.RemoteMovie, remoteEpisode => remoteEpisode.Movie.Profile.Value.Items.FindIndex(v => v.Quality == remoteEpisode.ParsedMovieInfo.Quality.Quality)),
+ CompareBy(x.RemoteMovie, y.RemoteMovie, remoteEpisode => remoteEpisode.ParsedMovieInfo.Quality.Revision.Real),
+ CompareBy(x.RemoteMovie, y.RemoteMovie, remoteEpisode => remoteEpisode.ParsedMovieInfo.Quality.Revision.Version));
+ }
return CompareAll(CompareBy(x.RemoteEpisode, y.RemoteEpisode, remoteEpisode => remoteEpisode.Series.Profile.Value.Items.FindIndex(v => v.Quality == remoteEpisode.ParsedEpisodeInfo.Quality.Quality)),
CompareBy(x.RemoteEpisode, y.RemoteEpisode, remoteEpisode => remoteEpisode.ParsedEpisodeInfo.Quality.Revision.Real),
CompareBy(x.RemoteEpisode, y.RemoteEpisode, remoteEpisode => remoteEpisode.ParsedEpisodeInfo.Quality.Revision.Version));
@@ -63,6 +67,7 @@ namespace NzbDrone.Core.DecisionEngine
private int CompareProtocol(DownloadDecision x, DownloadDecision y)
{
+
var result = CompareBy(x.RemoteEpisode, y.RemoteEpisode, remoteEpisode =>
{
var delayProfile = _delayProfileService.BestForTags(remoteEpisode.Series.Tags);
@@ -70,13 +75,22 @@ namespace NzbDrone.Core.DecisionEngine
return downloadProtocol == delayProfile.PreferredProtocol;
});
+ if (x.IsForMovie)
+ {
+ result = CompareBy(x.RemoteMovie, y.RemoteMovie, remoteEpisode =>
+ {
+ var delayProfile = _delayProfileService.BestForTags(remoteEpisode.Movie.Tags);
+ var downloadProtocol = remoteEpisode.Release.DownloadProtocol;
+ return downloadProtocol == delayProfile.PreferredProtocol;
+ });
+ }
+
return result;
}
private int CompareEpisodeCount(DownloadDecision x, DownloadDecision y)
{
- return CompareAll(CompareBy(x.RemoteEpisode, y.RemoteEpisode, remoteEpisode => remoteEpisode.ParsedEpisodeInfo.FullSeason),
- CompareByReverse(x.RemoteEpisode, y.RemoteEpisode, remoteEpisode => remoteEpisode.Episodes.Count));
+ return 0;
}
private int CompareEpisodeNumber(DownloadDecision x, DownloadDecision y)
@@ -88,20 +102,20 @@ namespace NzbDrone.Core.DecisionEngine
{
// Different protocols should get caught when checking the preferred protocol,
// since we're dealing with the same series in our comparisions
- if (x.RemoteEpisode.Release.DownloadProtocol != DownloadProtocol.Torrent ||
- y.RemoteEpisode.Release.DownloadProtocol != DownloadProtocol.Torrent)
+ if (x.RemoteMovie.Release.DownloadProtocol != DownloadProtocol.Torrent ||
+ y.RemoteMovie.Release.DownloadProtocol != DownloadProtocol.Torrent)
{
return 0;
}
return CompareAll(
- CompareBy(x.RemoteEpisode, y.RemoteEpisode, remoteEpisode =>
+ CompareBy(x.RemoteMovie, y.RemoteMovie, remoteEpisode =>
{
var seeders = TorrentInfo.GetSeeders(remoteEpisode.Release);
return seeders.HasValue && seeders.Value > 0 ? Math.Round(Math.Log10(seeders.Value)) : 0;
}),
- CompareBy(x.RemoteEpisode, y.RemoteEpisode, remoteEpisode =>
+ CompareBy(x.RemoteMovie, y.RemoteMovie, remoteEpisode =>
{
var peers = TorrentInfo.GetPeers(remoteEpisode.Release);
@@ -117,7 +131,7 @@ namespace NzbDrone.Core.DecisionEngine
return 0;
}
- return CompareBy(x.RemoteEpisode, y.RemoteEpisode, remoteEpisode =>
+ return CompareBy(x.RemoteMovie, y.RemoteMovie, remoteEpisode =>
{
var ageHours = remoteEpisode.Release.AgeHours;
var age = remoteEpisode.Release.Age;
@@ -145,7 +159,7 @@ namespace NzbDrone.Core.DecisionEngine
{
// TODO: Is smaller better? Smaller for usenet could mean no par2 files.
- return CompareBy(x.RemoteEpisode, y.RemoteEpisode, remoteEpisode => remoteEpisode.Release.Size.Round(200.Megabytes()));
+ return CompareBy(x.RemoteMovie, y.RemoteMovie, remoteEpisode => remoteEpisode.Release.Size.Round(200.Megabytes()));
}
}
}
diff --git a/src/NzbDrone.Core/DecisionEngine/DownloadDecisionMaker.cs b/src/NzbDrone.Core/DecisionEngine/DownloadDecisionMaker.cs
index d86653478..ec7513482 100644
--- a/src/NzbDrone.Core/DecisionEngine/DownloadDecisionMaker.cs
+++ b/src/NzbDrone.Core/DecisionEngine/DownloadDecisionMaker.cs
@@ -37,9 +37,92 @@ namespace NzbDrone.Core.DecisionEngine
public List GetSearchDecision(List reports, SearchCriteriaBase searchCriteriaBase)
{
+ if (searchCriteriaBase.Movie != null)
+ {
+ return GetMovieDecisions(reports, searchCriteriaBase).ToList();
+ }
+
return GetDecisions(reports, searchCriteriaBase).ToList();
}
+ private IEnumerable GetMovieDecisions(List reports, SearchCriteriaBase searchCriteria = null)
+ {
+ if (reports.Any())
+ {
+ _logger.ProgressInfo("Processing {0} releases", reports.Count);
+ }
+
+ else
+ {
+ _logger.ProgressInfo("No results found");
+ }
+
+ var reportNumber = 1;
+
+ foreach (var report in reports)
+ {
+ DownloadDecision decision = null;
+ _logger.ProgressTrace("Processing release {0}/{1}", reportNumber, reports.Count);
+
+ try
+ {
+ var parsedEpisodeInfo = Parser.Parser.ParseMovieTitle(report.Title);
+
+ if (parsedEpisodeInfo != null && !parsedEpisodeInfo.MovieTitle.IsNullOrWhiteSpace())
+ {
+ RemoteMovie remoteEpisode = _parsingService.Map(parsedEpisodeInfo, "", searchCriteria);
+ remoteEpisode.Release = report;
+
+ if (remoteEpisode.Movie == null)
+ {
+ //remoteEpisode.DownloadAllowed = true; //Fuck you :)
+ //decision = GetDecisionForReport(remoteEpisode, searchCriteria);
+ decision = new DownloadDecision(remoteEpisode, new Rejection("Unknown release. Movie not Found."));
+ }
+ else
+ {
+ if (parsedEpisodeInfo.Quality.HardcodedSubs.IsNotNullOrWhiteSpace())
+ {
+ remoteEpisode.DownloadAllowed = false;
+ decision = new DownloadDecision(remoteEpisode, new Rejection("Hardcoded subs found: " + parsedEpisodeInfo.Quality.HardcodedSubs));
+ }
+ else
+ {
+ remoteEpisode.DownloadAllowed = true;
+ decision = GetDecisionForReport(remoteEpisode, searchCriteria);
+ //decision = new DownloadDecision(remoteEpisode);
+ }
+
+ }
+ }
+ }
+ catch (Exception e)
+ {
+ _logger.Error(e, "Couldn't process release.");
+
+ var remoteEpisode = new RemoteEpisode { Release = report };
+ decision = new DownloadDecision(remoteEpisode, new Rejection("Unexpected error processing release"));
+ }
+
+ reportNumber++;
+
+ if (decision != null)
+ {
+ if (decision.Rejections.Any())
+ {
+ _logger.Debug("Release rejected for the following reasons: {0}", string.Join(", ", decision.Rejections));
+ }
+
+ else
+ {
+ _logger.Debug("Release accepted");
+ }
+
+ yield return decision;
+ }
+ }
+ }
+
private IEnumerable GetDecisions(List reports, SearchCriteriaBase searchCriteria = null)
{
if (reports.Any())
@@ -80,7 +163,9 @@ namespace NzbDrone.Core.DecisionEngine
if (remoteEpisode.Series == null)
{
- decision = new DownloadDecision(remoteEpisode, new Rejection("Unknown Series"));
+ //remoteEpisode.DownloadAllowed = true; //Fuck you :)
+ //decision = GetDecisionForReport(remoteEpisode, searchCriteria);
+ decision = new DownloadDecision(remoteEpisode, new Rejection("Unknown release. Series not Found."));
}
else if (remoteEpisode.Episodes.Empty())
{
@@ -120,6 +205,14 @@ namespace NzbDrone.Core.DecisionEngine
}
}
+ private DownloadDecision GetDecisionForReport(RemoteMovie remoteEpisode, SearchCriteriaBase searchCriteria = null)
+ {
+ var reasons = _specifications.Select(c => EvaluateSpec(c, remoteEpisode, searchCriteria))
+ .Where(c => c != null);
+
+ return new DownloadDecision(remoteEpisode, reasons.ToArray());
+ }
+
private DownloadDecision GetDecisionForReport(RemoteEpisode remoteEpisode, SearchCriteriaBase searchCriteria = null)
{
var reasons = _specifications.Select(c => EvaluateSpec(c, remoteEpisode, searchCriteria))
@@ -143,8 +236,35 @@ namespace NzbDrone.Core.DecisionEngine
{
e.Data.Add("report", remoteEpisode.Release.ToJson());
e.Data.Add("parsed", remoteEpisode.ParsedEpisodeInfo.ToJson());
- _logger.Error(e, "Couldn't evaluate decision on " + remoteEpisode.Release.Title);
- return new Rejection(string.Format("{0}: {1}", spec.GetType().Name, e.Message));
+ _logger.Error(e, "Couldn't evaluate decision on " + remoteEpisode.Release.Title + ", with spec: " + spec.GetType().Name);
+ //return new Rejection(string.Format("{0}: {1}", spec.GetType().Name, e.Message));//TODO UPDATE SPECS!
+ //return null;
+ }
+
+ return null;
+ }
+
+ private Rejection EvaluateSpec(IDecisionEngineSpecification spec, RemoteMovie remoteEpisode, SearchCriteriaBase searchCriteriaBase = null)
+ {
+ try
+ {
+ var result = spec.IsSatisfiedBy(remoteEpisode, searchCriteriaBase);
+
+ if (!result.Accepted)
+ {
+ return new Rejection(result.Reason, spec.Type);
+ }
+ }
+ catch (NotImplementedException e)
+ {
+ _logger.Trace("Spec " + spec.GetType().Name + " does not care about movies.");
+ }
+ catch (Exception e)
+ {
+ e.Data.Add("report", remoteEpisode.Release.ToJson());
+ e.Data.Add("parsed", remoteEpisode.ParsedEpisodeInfo.ToJson());
+ _logger.Error(e, "Couldn't evaluate decision on " + remoteEpisode.Release.Title + ", with spec: " + spec.GetType().Name);
+ return new Rejection(string.Format("{0}: {1}", spec.GetType().Name, e.Message));//TODO UPDATE SPECS!
}
return null;
diff --git a/src/NzbDrone.Core/DecisionEngine/DownloadDecisionPriorizationService.cs b/src/NzbDrone.Core/DecisionEngine/DownloadDecisionPriorizationService.cs
index 33fc32f5d..9ba7b8ad2 100644
--- a/src/NzbDrone.Core/DecisionEngine/DownloadDecisionPriorizationService.cs
+++ b/src/NzbDrone.Core/DecisionEngine/DownloadDecisionPriorizationService.cs
@@ -7,6 +7,7 @@ namespace NzbDrone.Core.DecisionEngine
public interface IPrioritizeDownloadDecision
{
List PrioritizeDecisions(List decisions);
+ List PrioritizeDecisionsForMovies(List decisions);
}
public class DownloadDecisionPriorizationService : IPrioritizeDownloadDecision
@@ -29,5 +30,17 @@ namespace NzbDrone.Core.DecisionEngine
.Union(decisions.Where(c => c.RemoteEpisode.Series == null))
.ToList();
}
+
+ public List PrioritizeDecisionsForMovies(List decisions)
+ {
+ return decisions.Where(c => c.RemoteMovie.Movie != null)
+ /*.GroupBy(c => c.RemoteMovie.Movie.Id, (movieId, downloadDecisions) =>
+ {
+ return downloadDecisions.OrderByDescending(decision => decision, new DownloadDecisionComparer(_delayProfileService));
+ })
+ .SelectMany(c => c)*/
+ .Union(decisions.Where(c => c.RemoteMovie.Movie == null))
+ .ToList();
+ }
}
}
diff --git a/src/NzbDrone.Core/DecisionEngine/IDecisionEngineSpecification.cs b/src/NzbDrone.Core/DecisionEngine/IDecisionEngineSpecification.cs
index 199984734..e98a6977f 100644
--- a/src/NzbDrone.Core/DecisionEngine/IDecisionEngineSpecification.cs
+++ b/src/NzbDrone.Core/DecisionEngine/IDecisionEngineSpecification.cs
@@ -8,5 +8,7 @@ namespace NzbDrone.Core.DecisionEngine
RejectionType Type { get; }
Decision IsSatisfiedBy(RemoteEpisode subject, SearchCriteriaBase searchCriteria);
+
+ Decision IsSatisfiedBy(RemoteMovie subject, SearchCriteriaBase searchCriteria);
}
}
diff --git a/src/NzbDrone.Core/DecisionEngine/Specifications/AcceptableSizeSpecification.cs b/src/NzbDrone.Core/DecisionEngine/Specifications/AcceptableSizeSpecification.cs
index 4ab566d2e..e4d771cae 100644
--- a/src/NzbDrone.Core/DecisionEngine/Specifications/AcceptableSizeSpecification.cs
+++ b/src/NzbDrone.Core/DecisionEngine/Specifications/AcceptableSizeSpecification.cs
@@ -107,5 +107,58 @@ namespace NzbDrone.Core.DecisionEngine.Specifications
_logger.Debug("Item: {0}, meets size constraints.", subject);
return Decision.Accept();
}
+
+ public Decision IsSatisfiedBy(RemoteMovie subject, SearchCriteriaBase searchCriteria)
+ {
+ _logger.Debug("Beginning size check for: {0}", subject);
+
+ var quality = subject.ParsedMovieInfo.Quality.Quality;
+
+ if (subject.Release.Size == 0)
+ {
+ _logger.Debug("Release has unknown size, skipping size check.");
+ return Decision.Accept();
+ }
+
+ var qualityDefinition = _qualityDefinitionService.Get(quality);
+ if (qualityDefinition.MinSize.HasValue)
+ {
+ var minSize = qualityDefinition.MinSize.Value.Megabytes();
+
+ //Multiply maxSize by Series.Runtime
+ minSize = minSize * subject.Movie.Runtime;
+
+ //If the parsed size is smaller than minSize we don't want it
+ if (subject.Release.Size < minSize)
+ {
+ var runtimeMessage = subject.Movie.Title;
+
+ _logger.Debug("Item: {0}, Size: {1} is smaller than minimum allowed size ({2} bytes for {3}), rejecting.", subject, subject.Release.Size, minSize, runtimeMessage);
+ return Decision.Reject("{0} is smaller than minimum allowed {1} (for {2})", subject.Release.Size.SizeSuffix(), minSize.SizeSuffix(), runtimeMessage);
+ }
+ }
+ if (!qualityDefinition.MaxSize.HasValue || qualityDefinition.MaxSize.Value == 0)
+ {
+ _logger.Debug("Max size is unlimited - skipping check.");
+ }
+ else
+ {
+ var maxSize = qualityDefinition.MaxSize.Value.Megabytes();
+
+ //Multiply maxSize by Series.Runtime
+ maxSize = maxSize * subject.Movie.Runtime;
+
+ //If the parsed size is greater than maxSize we don't want it
+ if (subject.Release.Size > maxSize)
+ {;
+
+ _logger.Debug("Item: {0}, Size: {1} is greater than maximum allowed size ({2} for {3}), rejecting.", subject, subject.Release.Size, maxSize, subject.Movie.Title);
+ return Decision.Reject("{0} is larger than maximum allowed {1} (for {2})", subject.Release.Size.SizeSuffix(), maxSize.SizeSuffix(), subject.Movie.Title);
+ }
+ }
+
+ _logger.Debug("Item: {0}, meets size constraints.", subject);
+ return Decision.Accept();
+ }
}
}
diff --git a/src/NzbDrone.Core/DecisionEngine/Specifications/AnimeVersionUpgradeSpecification.cs b/src/NzbDrone.Core/DecisionEngine/Specifications/AnimeVersionUpgradeSpecification.cs
index c2f93f7c0..33f6cff9f 100644
--- a/src/NzbDrone.Core/DecisionEngine/Specifications/AnimeVersionUpgradeSpecification.cs
+++ b/src/NzbDrone.Core/DecisionEngine/Specifications/AnimeVersionUpgradeSpecification.cs
@@ -1,3 +1,4 @@
+using System;
using System.Linq;
using NLog;
using NzbDrone.Common.Extensions;
@@ -55,5 +56,10 @@ namespace NzbDrone.Core.DecisionEngine.Specifications
return Decision.Accept();
}
+
+ public Decision IsSatisfiedBy(RemoteMovie subject, SearchCriteriaBase searchCriteria)
+ {
+ throw new NotImplementedException();
+ }
}
}
diff --git a/src/NzbDrone.Core/DecisionEngine/Specifications/BlacklistSpecification.cs b/src/NzbDrone.Core/DecisionEngine/Specifications/BlacklistSpecification.cs
index 18b216263..82bc2d83c 100644
--- a/src/NzbDrone.Core/DecisionEngine/Specifications/BlacklistSpecification.cs
+++ b/src/NzbDrone.Core/DecisionEngine/Specifications/BlacklistSpecification.cs
@@ -2,6 +2,7 @@ using NLog;
using NzbDrone.Core.Blacklisting;
using NzbDrone.Core.IndexerSearch.Definitions;
using NzbDrone.Core.Parser.Model;
+using System;
namespace NzbDrone.Core.DecisionEngine.Specifications
{
@@ -28,5 +29,13 @@ namespace NzbDrone.Core.DecisionEngine.Specifications
return Decision.Accept();
}
+
+ public Decision IsSatisfiedBy(RemoteMovie subject, SearchCriteriaBase searchCriteria)
+ {
+
+ throw new NotImplementedException();
+
+ return Decision.Accept();
+ }
}
}
diff --git a/src/NzbDrone.Core/DecisionEngine/Specifications/CutoffSpecification.cs b/src/NzbDrone.Core/DecisionEngine/Specifications/CutoffSpecification.cs
index 6dfdbc64c..1ac882632 100644
--- a/src/NzbDrone.Core/DecisionEngine/Specifications/CutoffSpecification.cs
+++ b/src/NzbDrone.Core/DecisionEngine/Specifications/CutoffSpecification.cs
@@ -1,3 +1,4 @@
+using System;
using System.Linq;
using NLog;
using NzbDrone.Core.IndexerSearch.Definitions;
@@ -34,5 +35,18 @@ namespace NzbDrone.Core.DecisionEngine.Specifications
return Decision.Accept();
}
+
+ public Decision IsSatisfiedBy(RemoteMovie subject, SearchCriteriaBase searchCriteria)
+ {
+ if (subject.Movie.MovieFile.Value != null)
+ {
+ if (!_qualityUpgradableSpecification.CutoffNotMet(subject.Movie.Profile, subject.Movie.MovieFile.Value.Quality, subject.ParsedMovieInfo.Quality))
+ {
+ return Decision.Reject("Existing file meets cutoff: {0}", subject.Movie.Profile.Value.Cutoff);
+ }
+ }
+
+ return Decision.Accept();
+ }
}
}
diff --git a/src/NzbDrone.Core/DecisionEngine/Specifications/FullSeasonSpecification.cs b/src/NzbDrone.Core/DecisionEngine/Specifications/FullSeasonSpecification.cs
index 023b6be60..7d2f89d26 100644
--- a/src/NzbDrone.Core/DecisionEngine/Specifications/FullSeasonSpecification.cs
+++ b/src/NzbDrone.Core/DecisionEngine/Specifications/FullSeasonSpecification.cs
@@ -30,11 +30,16 @@ namespace NzbDrone.Core.DecisionEngine.Specifications
if (subject.Episodes.Any(e => !e.AirDateUtc.HasValue || e.AirDateUtc.Value.After(DateTime.UtcNow)))
{
_logger.Debug("Full season release {0} rejected. All episodes haven't aired yet.", subject.Release.Title);
- return Decision.Reject("Full season release rejected. All episodes haven't aired yet.");
+ //return Decision.Reject("Full season release rejected. All episodes haven't aired yet.");
}
}
return Decision.Accept();
}
+
+ public Decision IsSatisfiedBy(RemoteMovie subject, SearchCriteriaBase searchCriteria)
+ {
+ throw new NotImplementedException();
+ }
}
}
diff --git a/src/NzbDrone.Core/DecisionEngine/Specifications/LanguageSpecification.cs b/src/NzbDrone.Core/DecisionEngine/Specifications/LanguageSpecification.cs
index 9f7f75038..fe244d057 100644
--- a/src/NzbDrone.Core/DecisionEngine/Specifications/LanguageSpecification.cs
+++ b/src/NzbDrone.Core/DecisionEngine/Specifications/LanguageSpecification.cs
@@ -29,5 +29,20 @@ namespace NzbDrone.Core.DecisionEngine.Specifications
return Decision.Accept();
}
+
+ public virtual Decision IsSatisfiedBy(RemoteMovie subject, SearchCriteriaBase searchCriteria)
+ {
+ var wantedLanguage = subject.Movie.Profile.Value.Language;
+
+ _logger.Debug("Checking if report meets language requirements. {0}", subject.ParsedMovieInfo.Language);
+
+ if (subject.ParsedMovieInfo.Language != wantedLanguage)
+ {
+ _logger.Debug("Report Language: {0} rejected because it is not wanted, wanted {1}", subject.ParsedMovieInfo.Language, wantedLanguage);
+ return Decision.Reject("{0} is wanted, but found {1}", wantedLanguage, subject.ParsedMovieInfo.Language);
+ }
+
+ return Decision.Accept();
+ }
}
}
diff --git a/src/NzbDrone.Core/DecisionEngine/Specifications/MinimumAgeSpecification.cs b/src/NzbDrone.Core/DecisionEngine/Specifications/MinimumAgeSpecification.cs
index 449d7be76..bcec8d6cd 100644
--- a/src/NzbDrone.Core/DecisionEngine/Specifications/MinimumAgeSpecification.cs
+++ b/src/NzbDrone.Core/DecisionEngine/Specifications/MinimumAgeSpecification.cs
@@ -36,6 +36,37 @@ namespace NzbDrone.Core.DecisionEngine.Specifications
}
+ _logger.Debug("Checking if report meets minimum age requirements. {0}", age);
+
+ if (age < minimumAge)
+ {
+ _logger.Debug("Only {0} minutes old, minimum age is {1} minutes", age, minimumAge);
+ return Decision.Reject("Only {0} minutes old, minimum age is {1} minutes", age, minimumAge);
+ }
+
+ _logger.Debug("Release is {0} minutes old, greater than minimum age of {1} minutes", age, minimumAge);
+
+ return Decision.Accept();
+ }
+
+ public virtual Decision IsSatisfiedBy(RemoteMovie subject, SearchCriteriaBase searchCriteria)
+ {
+ if (subject.Release.DownloadProtocol != Indexers.DownloadProtocol.Usenet)
+ {
+ _logger.Debug("Not checking minimum age requirement for non-usenet report");
+ return Decision.Accept();
+ }
+
+ var age = subject.Release.AgeMinutes;
+ var minimumAge = _configService.MinimumAge;
+
+ if (minimumAge == 0)
+ {
+ _logger.Debug("Minimum age is not set.");
+ return Decision.Accept();
+ }
+
+
_logger.Debug("Checking if report meets minimum age requirements. {0}", age);
if (age < minimumAge)
diff --git a/src/NzbDrone.Core/DecisionEngine/Specifications/NotSampleSpecification.cs b/src/NzbDrone.Core/DecisionEngine/Specifications/NotSampleSpecification.cs
index 02ff7653a..eba2566e2 100644
--- a/src/NzbDrone.Core/DecisionEngine/Specifications/NotSampleSpecification.cs
+++ b/src/NzbDrone.Core/DecisionEngine/Specifications/NotSampleSpecification.cs
@@ -1,4 +1,5 @@
-using NLog;
+using System;
+using NLog;
using NzbDrone.Core.IndexerSearch.Definitions;
using NzbDrone.Core.Parser.Model;
@@ -25,5 +26,16 @@ namespace NzbDrone.Core.DecisionEngine.Specifications
return Decision.Accept();
}
+
+ public Decision IsSatisfiedBy(RemoteMovie subject, SearchCriteriaBase searchCriteria)
+ {
+ if (subject.Release.Title.ToLower().Contains("sample") && subject.Release.Size < 70.Megabytes())
+ {
+ _logger.Debug("Sample release, rejecting.");
+ return Decision.Reject("Sample");
+ }
+
+ return Decision.Accept();
+ }
}
}
diff --git a/src/NzbDrone.Core/DecisionEngine/Specifications/ProtocolSpecification.cs b/src/NzbDrone.Core/DecisionEngine/Specifications/ProtocolSpecification.cs
index 008e58812..93846789c 100644
--- a/src/NzbDrone.Core/DecisionEngine/Specifications/ProtocolSpecification.cs
+++ b/src/NzbDrone.Core/DecisionEngine/Specifications/ProtocolSpecification.cs
@@ -38,5 +38,24 @@ namespace NzbDrone.Core.DecisionEngine.Specifications
return Decision.Accept();
}
+
+ public virtual Decision IsSatisfiedBy(RemoteMovie subject, SearchCriteriaBase searchCriteria)
+ {
+ var delayProfile = _delayProfileService.BestForTags(subject.Movie.Tags);
+
+ if (subject.Release.DownloadProtocol == DownloadProtocol.Usenet && !delayProfile.EnableUsenet)
+ {
+ _logger.Debug("[{0}] Usenet is not enabled for this series", subject.Release.Title);
+ return Decision.Reject("Usenet is not enabled for this series");
+ }
+
+ if (subject.Release.DownloadProtocol == DownloadProtocol.Torrent && !delayProfile.EnableTorrent)
+ {
+ _logger.Debug("[{0}] Torrent is not enabled for this series", subject.Release.Title);
+ return Decision.Reject("Torrent is not enabled for this series");
+ }
+
+ return Decision.Accept();
+ }
}
}
diff --git a/src/NzbDrone.Core/DecisionEngine/Specifications/QualityAllowedByProfileSpecification.cs b/src/NzbDrone.Core/DecisionEngine/Specifications/QualityAllowedByProfileSpecification.cs
index 7913e0e7e..dcba1ef41 100644
--- a/src/NzbDrone.Core/DecisionEngine/Specifications/QualityAllowedByProfileSpecification.cs
+++ b/src/NzbDrone.Core/DecisionEngine/Specifications/QualityAllowedByProfileSpecification.cs
@@ -26,5 +26,17 @@ namespace NzbDrone.Core.DecisionEngine.Specifications
return Decision.Accept();
}
+
+ public virtual Decision IsSatisfiedBy(RemoteMovie subject, SearchCriteriaBase searchCriteria)
+ {
+ _logger.Debug("Checking if report meets quality requirements. {0}", subject.ParsedMovieInfo.Quality);
+ if (!subject.Movie.Profile.Value.Items.Exists(v => v.Allowed && v.Quality == subject.ParsedMovieInfo.Quality.Quality))
+ {
+ _logger.Debug("Quality {0} rejected by Series' quality profile", subject.ParsedMovieInfo.Quality);
+ return Decision.Reject("{0} is not wanted in profile", subject.ParsedMovieInfo.Quality.Quality);
+ }
+
+ return Decision.Accept();
+ }
}
}
diff --git a/src/NzbDrone.Core/DecisionEngine/Specifications/QueueSpecification.cs b/src/NzbDrone.Core/DecisionEngine/Specifications/QueueSpecification.cs
index 6f3ec1bea..08995e4d2 100644
--- a/src/NzbDrone.Core/DecisionEngine/Specifications/QueueSpecification.cs
+++ b/src/NzbDrone.Core/DecisionEngine/Specifications/QueueSpecification.cs
@@ -50,5 +50,32 @@ namespace NzbDrone.Core.DecisionEngine.Specifications
return Decision.Accept();
}
+
+ public Decision IsSatisfiedBy(RemoteMovie subject, SearchCriteriaBase searchCriteria)
+ {
+ var queue = _queueService.GetQueue()
+ .Select(q => q.RemoteMovie).ToList();
+
+ var matchingSeries = queue.Where(q => q.Movie.Id == subject.Movie.Id);
+
+ foreach (var remoteEpisode in matchingSeries)
+ {
+ _logger.Debug("Checking if existing release in queue meets cutoff. Queued quality is: {0}", remoteEpisode.ParsedMovieInfo.Quality);
+
+ if (!_qualityUpgradableSpecification.CutoffNotMet(subject.Movie.Profile, remoteEpisode.ParsedMovieInfo.Quality, subject.ParsedMovieInfo.Quality))
+ {
+ return Decision.Reject("Quality for release in queue already meets cutoff: {0}", remoteEpisode.ParsedMovieInfo.Quality);
+ }
+
+ _logger.Debug("Checking if release is higher quality than queued release. Queued quality is: {0}", remoteEpisode.ParsedMovieInfo.Quality);
+
+ if (!_qualityUpgradableSpecification.IsUpgradable(subject.Movie.Profile, remoteEpisode.ParsedMovieInfo.Quality, subject.ParsedMovieInfo.Quality))
+ {
+ return Decision.Reject("Quality for release in queue is of equal or higher preference: {0}", remoteEpisode.ParsedMovieInfo.Quality);
+ }
+ }
+
+ return Decision.Accept();
+ }
}
}
diff --git a/src/NzbDrone.Core/DecisionEngine/Specifications/RawDiskSpecification.cs b/src/NzbDrone.Core/DecisionEngine/Specifications/RawDiskSpecification.cs
index 7f278cb7e..7a11bacfe 100644
--- a/src/NzbDrone.Core/DecisionEngine/Specifications/RawDiskSpecification.cs
+++ b/src/NzbDrone.Core/DecisionEngine/Specifications/RawDiskSpecification.cs
@@ -42,5 +42,27 @@ namespace NzbDrone.Core.DecisionEngine.Specifications
return Decision.Accept();
}
+
+ public virtual Decision IsSatisfiedBy(RemoteMovie subject, SearchCriteriaBase searchCriteria)
+ {
+ if (subject.Release == null || subject.Release.Container.IsNullOrWhiteSpace())
+ {
+ return Decision.Accept();
+ }
+
+ if (_dvdContainerTypes.Contains(subject.Release.Container.ToLower()))
+ {
+ _logger.Debug("Release contains raw DVD, rejecting.");
+ return Decision.Reject("Raw DVD release");
+ }
+
+ if (_blurayContainerTypes.Contains(subject.Release.Container.ToLower()))
+ {
+ _logger.Debug("Release contains raw Bluray, rejecting.");
+ return Decision.Reject("Raw Bluray release");
+ }
+
+ return Decision.Accept();
+ }
}
}
diff --git a/src/NzbDrone.Core/DecisionEngine/Specifications/ReleaseRestrictionsSpecification.cs b/src/NzbDrone.Core/DecisionEngine/Specifications/ReleaseRestrictionsSpecification.cs
index 9fb8c13f5..42735995f 100644
--- a/src/NzbDrone.Core/DecisionEngine/Specifications/ReleaseRestrictionsSpecification.cs
+++ b/src/NzbDrone.Core/DecisionEngine/Specifications/ReleaseRestrictionsSpecification.cs
@@ -62,6 +62,46 @@ namespace NzbDrone.Core.DecisionEngine.Specifications
return Decision.Accept();
}
+ public virtual Decision IsSatisfiedBy(RemoteMovie subject, SearchCriteriaBase searchCriteria)
+ {
+ _logger.Debug("Checking if release meets restrictions: {0}", subject);
+
+ var title = subject.Release.Title;
+ var restrictions = _restrictionService.AllForTags(subject.Movie.Tags);
+
+ var required = restrictions.Where(r => r.Required.IsNotNullOrWhiteSpace());
+ var ignored = restrictions.Where(r => r.Ignored.IsNotNullOrWhiteSpace());
+
+ foreach (var r in required)
+ {
+ var requiredTerms = r.Required.Split(new[] { ',' }, StringSplitOptions.RemoveEmptyEntries).ToList();
+
+ var foundTerms = ContainsAny(requiredTerms, title);
+ if (foundTerms.Empty())
+ {
+ var terms = string.Join(", ", requiredTerms);
+ _logger.Debug("[{0}] does not contain one of the required terms: {1}", title, terms);
+ return Decision.Reject("Does not contain one of the required terms: {0}", terms);
+ }
+ }
+
+ foreach (var r in ignored)
+ {
+ var ignoredTerms = r.Ignored.Split(new[] { ',' }, StringSplitOptions.RemoveEmptyEntries).ToList();
+
+ var foundTerms = ContainsAny(ignoredTerms, title);
+ if (foundTerms.Any())
+ {
+ var terms = string.Join(", ", foundTerms);
+ _logger.Debug("[{0}] contains these ignored terms: {1}", title, terms);
+ return Decision.Reject("Contains these ignored terms: {0}", terms);
+ }
+ }
+
+ _logger.Debug("[{0}] No restrictions apply, allowing", subject);
+ return Decision.Accept();
+ }
+
private static List ContainsAny(List terms, string title)
{
return terms.Where(t => title.ToLowerInvariant().Contains(t.ToLowerInvariant())).ToList();
diff --git a/src/NzbDrone.Core/DecisionEngine/Specifications/RetentionSpecification.cs b/src/NzbDrone.Core/DecisionEngine/Specifications/RetentionSpecification.cs
index 97802f871..7663c3fb1 100644
--- a/src/NzbDrone.Core/DecisionEngine/Specifications/RetentionSpecification.cs
+++ b/src/NzbDrone.Core/DecisionEngine/Specifications/RetentionSpecification.cs
@@ -38,5 +38,26 @@ namespace NzbDrone.Core.DecisionEngine.Specifications
return Decision.Accept();
}
+
+ public virtual Decision IsSatisfiedBy(RemoteMovie subject, SearchCriteriaBase searchCriteria)
+ {
+ if (subject.Release.DownloadProtocol != Indexers.DownloadProtocol.Usenet)
+ {
+ _logger.Debug("Not checking retention requirement for non-usenet report");
+ return Decision.Accept();
+ }
+
+ var age = subject.Release.Age;
+ var retention = _configService.Retention;
+
+ _logger.Debug("Checking if report meets retention requirements. {0}", age);
+ if (retention > 0 && age > retention)
+ {
+ _logger.Debug("Report age: {0} rejected by user's retention limit", age);
+ return Decision.Reject("Older than configured retention");
+ }
+
+ return Decision.Accept();
+ }
}
}
diff --git a/src/NzbDrone.Core/DecisionEngine/Specifications/RssSync/DelaySpecification.cs b/src/NzbDrone.Core/DecisionEngine/Specifications/RssSync/DelaySpecification.cs
index 68551c66c..f75ac84af 100644
--- a/src/NzbDrone.Core/DecisionEngine/Specifications/RssSync/DelaySpecification.cs
+++ b/src/NzbDrone.Core/DecisionEngine/Specifications/RssSync/DelaySpecification.cs
@@ -28,6 +28,71 @@ namespace NzbDrone.Core.DecisionEngine.Specifications.RssSync
public RejectionType Type => RejectionType.Temporary;
+ public virtual Decision IsSatisfiedBy(RemoteMovie subject, SearchCriteriaBase searchCriteria)
+ {
+ if (searchCriteria != null && searchCriteria.UserInvokedSearch)
+ {
+ _logger.Debug("Ignoring delay for user invoked search");
+ return Decision.Accept();
+ }
+
+ var profile = subject.Movie.Profile.Value;
+ var delayProfile = _delayProfileService.BestForTags(subject.Movie.Tags);
+ var delay = delayProfile.GetProtocolDelay(subject.Release.DownloadProtocol);
+ var isPreferredProtocol = subject.Release.DownloadProtocol == delayProfile.PreferredProtocol;
+
+ if (delay == 0)
+ {
+ _logger.Debug("Profile does not require a waiting period before download for {0}.", subject.Release.DownloadProtocol);
+ return Decision.Accept();
+ }
+
+ var comparer = new QualityModelComparer(profile);
+
+ if (isPreferredProtocol)
+ {
+ var upgradable = _qualityUpgradableSpecification.IsUpgradable(profile, subject.Movie.MovieFile.Value.Quality, subject.ParsedMovieInfo.Quality);
+
+ if (upgradable)
+ {
+ var revisionUpgrade = _qualityUpgradableSpecification.IsRevisionUpgrade(subject.Movie.MovieFile.Value.Quality, subject.ParsedMovieInfo.Quality);
+
+ if (revisionUpgrade)
+ {
+ _logger.Debug("New quality is a better revision for existing quality, skipping delay");
+ return Decision.Accept();
+ }
+ }
+
+ }
+
+ // If quality meets or exceeds the best allowed quality in the profile accept it immediately
+ var bestQualityInProfile = new QualityModel(profile.LastAllowedQuality());
+ var isBestInProfile = comparer.Compare(subject.ParsedEpisodeInfo.Quality, bestQualityInProfile) >= 0;
+
+ if (isBestInProfile && isPreferredProtocol)
+ {
+ _logger.Debug("Quality is highest in profile for preferred protocol, will not delay");
+ return Decision.Accept();
+ }
+
+ /*
+ var oldest = _pendingReleaseService.OldestPendingRelease(subject.Series.Id, episodeIds);
+
+ if (oldest != null && oldest.Release.AgeMinutes > delay)
+ {
+ return Decision.Accept();
+ }
+
+ if (subject.Release.AgeMinutes < delay)
+ {
+ _logger.Debug("Waiting for better quality release, There is a {0} minute delay on {1}", delay, subject.Release.DownloadProtocol);
+ return Decision.Reject("Waiting for better quality release");
+ }*/ //TODO: Update for movies!
+
+ return Decision.Accept();
+ }
+
public virtual Decision IsSatisfiedBy(RemoteEpisode subject, SearchCriteriaBase searchCriteria)
{
if (searchCriteria != null && searchCriteria.UserInvokedSearch)
diff --git a/src/NzbDrone.Core/DecisionEngine/Specifications/RssSync/HistorySpecification.cs b/src/NzbDrone.Core/DecisionEngine/Specifications/RssSync/HistorySpecification.cs
index 9aa4fabf1..2a312fbdd 100644
--- a/src/NzbDrone.Core/DecisionEngine/Specifications/RssSync/HistorySpecification.cs
+++ b/src/NzbDrone.Core/DecisionEngine/Specifications/RssSync/HistorySpecification.cs
@@ -28,6 +28,56 @@ namespace NzbDrone.Core.DecisionEngine.Specifications.RssSync
public RejectionType Type => RejectionType.Permanent;
+ public virtual Decision IsSatisfiedBy(RemoteMovie subject, SearchCriteriaBase searchCriteria)
+ {
+ if (searchCriteria != null)
+ {
+ _logger.Debug("Skipping history check during search");
+ return Decision.Accept();
+ }
+
+ var cdhEnabled = _configService.EnableCompletedDownloadHandling;
+
+ _logger.Debug("Performing history status check on report");
+ _logger.Debug("Checking current status of episode [{0}] in history", subject.Movie.Id);
+ var mostRecent = _historyService.MostRecentForMovie(subject.Movie.Id);
+
+ if (mostRecent != null && mostRecent.EventType == HistoryEventType.Grabbed)
+ {
+ var recent = mostRecent.Date.After(DateTime.UtcNow.AddHours(-12));
+ var cutoffUnmet = _qualityUpgradableSpecification.CutoffNotMet(subject.Movie.Profile, mostRecent.Quality, subject.ParsedMovieInfo.Quality);
+ var upgradeable = _qualityUpgradableSpecification.IsUpgradable(subject.Movie.Profile, mostRecent.Quality, subject.ParsedMovieInfo.Quality);
+
+ if (!recent && cdhEnabled)
+ {
+ return Decision.Accept();
+ }
+
+ if (!cutoffUnmet)
+ {
+ if (recent)
+ {
+ return Decision.Reject("Recent grab event in history already meets cutoff: {0}", mostRecent.Quality);
+ }
+
+ return Decision.Reject("CDH is disabled and grab event in history already meets cutoff: {0}", mostRecent.Quality);
+ }
+
+ if (!upgradeable)
+ {
+ if (recent)
+ {
+ return Decision.Reject("Recent grab event in history is of equal or higher quality: {0}", mostRecent.Quality);
+ }
+
+ return Decision.Reject("CDH is disabled and grab event in history is of equal or higher quality: {0}", mostRecent.Quality);
+ }
+ }
+
+
+ return Decision.Accept();
+ }
+
public virtual Decision IsSatisfiedBy(RemoteEpisode subject, SearchCriteriaBase searchCriteria)
{
if (searchCriteria != null)
diff --git a/src/NzbDrone.Core/DecisionEngine/Specifications/RssSync/MonitoredEpisodeSpecification.cs b/src/NzbDrone.Core/DecisionEngine/Specifications/RssSync/MonitoredEpisodeSpecification.cs
index f56f26478..ccb87c414 100644
--- a/src/NzbDrone.Core/DecisionEngine/Specifications/RssSync/MonitoredEpisodeSpecification.cs
+++ b/src/NzbDrone.Core/DecisionEngine/Specifications/RssSync/MonitoredEpisodeSpecification.cs
@@ -1,3 +1,4 @@
+using System;
using System.Linq;
using NLog;
using NzbDrone.Core.IndexerSearch.Definitions;
@@ -16,6 +17,11 @@ namespace NzbDrone.Core.DecisionEngine.Specifications.RssSync
public RejectionType Type => RejectionType.Permanent;
+ public Decision IsSatisfiedBy(RemoteMovie subject, SearchCriteriaBase searchCriteria)
+ {
+ throw new NotImplementedException();
+ }
+
public virtual Decision IsSatisfiedBy(RemoteEpisode subject, SearchCriteriaBase searchCriteria)
{
if (searchCriteria != null)
diff --git a/src/NzbDrone.Core/DecisionEngine/Specifications/RssSync/ProperSpecification.cs b/src/NzbDrone.Core/DecisionEngine/Specifications/RssSync/ProperSpecification.cs
index 0c6632d25..d029e929c 100644
--- a/src/NzbDrone.Core/DecisionEngine/Specifications/RssSync/ProperSpecification.cs
+++ b/src/NzbDrone.Core/DecisionEngine/Specifications/RssSync/ProperSpecification.cs
@@ -47,6 +47,39 @@ namespace NzbDrone.Core.DecisionEngine.Specifications.RssSync
}
}
+ return Decision.Accept();
+ }
+
+ public virtual Decision IsSatisfiedBy(RemoteMovie subject, SearchCriteriaBase searchCriteria)
+ {
+ if (searchCriteria != null)
+ {
+ return Decision.Accept();
+ }
+
+ if (subject.Movie.MovieFile.Value == null)
+ {
+ return Decision.Accept();
+ }
+
+ var file = subject.Movie.MovieFile.Value;
+
+ if (_qualityUpgradableSpecification.IsRevisionUpgrade(file.Quality, subject.ParsedMovieInfo.Quality))
+ {
+ if (file.DateAdded < DateTime.Today.AddDays(-7))
+ {
+ _logger.Debug("Proper for old file, rejecting: {0}", subject);
+ return Decision.Reject("Proper for old file");
+ }
+
+ if (!_configService.AutoDownloadPropers)
+ {
+ _logger.Debug("Auto downloading of propers is disabled");
+ return Decision.Reject("Proper downloading is disabled");
+ }
+ }
+
+
return Decision.Accept();
}
}
diff --git a/src/NzbDrone.Core/DecisionEngine/Specifications/SameEpisodesGrabSpecification.cs b/src/NzbDrone.Core/DecisionEngine/Specifications/SameEpisodesGrabSpecification.cs
index 1a8c5db5b..bd3c2f908 100644
--- a/src/NzbDrone.Core/DecisionEngine/Specifications/SameEpisodesGrabSpecification.cs
+++ b/src/NzbDrone.Core/DecisionEngine/Specifications/SameEpisodesGrabSpecification.cs
@@ -1,3 +1,4 @@
+using System;
using NLog;
using NzbDrone.Core.IndexerSearch.Definitions;
using NzbDrone.Core.Parser.Model;
@@ -27,5 +28,10 @@ namespace NzbDrone.Core.DecisionEngine.Specifications
_logger.Debug("Episode file on disk contains more episodes than this release contains");
return Decision.Reject("Episode file on disk contains more episodes than this release contains");
}
+
+ public Decision IsSatisfiedBy(RemoteMovie subject, SearchCriteriaBase searchCriteria)
+ {
+ throw new NotImplementedException();
+ }
}
}
diff --git a/src/NzbDrone.Core/DecisionEngine/Specifications/Search/DailyEpisodeMatchSpecification.cs b/src/NzbDrone.Core/DecisionEngine/Specifications/Search/DailyEpisodeMatchSpecification.cs
index 50fd9b3cc..285dc5b5e 100644
--- a/src/NzbDrone.Core/DecisionEngine/Specifications/Search/DailyEpisodeMatchSpecification.cs
+++ b/src/NzbDrone.Core/DecisionEngine/Specifications/Search/DailyEpisodeMatchSpecification.cs
@@ -1,3 +1,4 @@
+using System;
using NLog;
using NzbDrone.Core.IndexerSearch.Definitions;
using NzbDrone.Core.Parser.Model;
@@ -39,5 +40,10 @@ namespace NzbDrone.Core.DecisionEngine.Specifications.Search
return Decision.Accept();
}
+
+ public Decision IsSatisfiedBy(RemoteMovie subject, SearchCriteriaBase searchCriteria)
+ {
+ throw new NotImplementedException();
+ }
}
}
\ No newline at end of file
diff --git a/src/NzbDrone.Core/DecisionEngine/Specifications/Search/EpisodeRequestedSpecification.cs b/src/NzbDrone.Core/DecisionEngine/Specifications/Search/EpisodeRequestedSpecification.cs
index 60640442f..d8c0065a5 100644
--- a/src/NzbDrone.Core/DecisionEngine/Specifications/Search/EpisodeRequestedSpecification.cs
+++ b/src/NzbDrone.Core/DecisionEngine/Specifications/Search/EpisodeRequestedSpecification.cs
@@ -1,4 +1,5 @@
-using System.Linq;
+using System;
+using System.Linq;
using NLog;
using NzbDrone.Core.IndexerSearch.Definitions;
using NzbDrone.Core.Parser.Model;
@@ -17,6 +18,11 @@ namespace NzbDrone.Core.DecisionEngine.Specifications.Search
public RejectionType Type => RejectionType.Permanent;
+ public Decision IsSatisfiedBy(RemoteMovie subject, SearchCriteriaBase searchCriteria)
+ {
+ throw new NotImplementedException();
+ }
+
public Decision IsSatisfiedBy(RemoteEpisode remoteEpisode, SearchCriteriaBase searchCriteria)
{
if (searchCriteria == null)
diff --git a/src/NzbDrone.Core/DecisionEngine/Specifications/Search/SeasonMatchSpecification.cs b/src/NzbDrone.Core/DecisionEngine/Specifications/Search/SeasonMatchSpecification.cs
index b09d888ec..c7f96303d 100644
--- a/src/NzbDrone.Core/DecisionEngine/Specifications/Search/SeasonMatchSpecification.cs
+++ b/src/NzbDrone.Core/DecisionEngine/Specifications/Search/SeasonMatchSpecification.cs
@@ -1,3 +1,4 @@
+using System;
using NLog;
using NzbDrone.Core.IndexerSearch.Definitions;
using NzbDrone.Core.Parser.Model;
@@ -15,6 +16,11 @@ namespace NzbDrone.Core.DecisionEngine.Specifications.Search
public RejectionType Type => RejectionType.Permanent;
+ public Decision IsSatisfiedBy(RemoteMovie subject, SearchCriteriaBase searchCriteria)
+ {
+ throw new NotImplementedException();
+ }
+
public Decision IsSatisfiedBy(RemoteEpisode remoteEpisode, SearchCriteriaBase searchCriteria)
{
if (searchCriteria == null)
@@ -28,7 +34,8 @@ namespace NzbDrone.Core.DecisionEngine.Specifications.Search
if (singleEpisodeSpec.SeasonNumber != remoteEpisode.ParsedEpisodeInfo.SeasonNumber)
{
_logger.Debug("Season number does not match searched season number, skipping.");
- return Decision.Reject("Wrong season");
+ //return Decision.Reject("Wrong season");
+ //Unnecessary for Movies
}
return Decision.Accept();
diff --git a/src/NzbDrone.Core/DecisionEngine/Specifications/Search/SeriesSpecification.cs b/src/NzbDrone.Core/DecisionEngine/Specifications/Search/SeriesSpecification.cs
index 7f1201b33..dde54155f 100644
--- a/src/NzbDrone.Core/DecisionEngine/Specifications/Search/SeriesSpecification.cs
+++ b/src/NzbDrone.Core/DecisionEngine/Specifications/Search/SeriesSpecification.cs
@@ -32,5 +32,23 @@ namespace NzbDrone.Core.DecisionEngine.Specifications.Search
return Decision.Accept();
}
+
+ public Decision IsSatisfiedBy(RemoteMovie remoteEpisode, SearchCriteriaBase searchCriteria)
+ {
+ if (searchCriteria == null)
+ {
+ return Decision.Accept();
+ }
+
+ _logger.Debug("Checking if movie matches searched movie");
+
+ if (remoteEpisode.Movie.Id != searchCriteria.Movie.Id)
+ {
+ _logger.Debug("Series {0} does not match {1}", remoteEpisode.Movie, searchCriteria.Series);
+ return Decision.Reject("Wrong movie");
+ }
+
+ return Decision.Accept();
+ }
}
}
\ No newline at end of file
diff --git a/src/NzbDrone.Core/DecisionEngine/Specifications/Search/SingleEpisodeSearchMatchSpecification.cs b/src/NzbDrone.Core/DecisionEngine/Specifications/Search/SingleEpisodeSearchMatchSpecification.cs
index fb056734f..18162d3f5 100644
--- a/src/NzbDrone.Core/DecisionEngine/Specifications/Search/SingleEpisodeSearchMatchSpecification.cs
+++ b/src/NzbDrone.Core/DecisionEngine/Specifications/Search/SingleEpisodeSearchMatchSpecification.cs
@@ -1,3 +1,4 @@
+using System;
using System.Linq;
using NLog;
using NzbDrone.Core.IndexerSearch.Definitions;
@@ -16,6 +17,11 @@ namespace NzbDrone.Core.DecisionEngine.Specifications.Search
public RejectionType Type => RejectionType.Permanent;
+ public Decision IsSatisfiedBy(RemoteMovie subject, SearchCriteriaBase searchCriteria)
+ {
+ throw new NotImplementedException();
+ }
+
public Decision IsSatisfiedBy(RemoteEpisode remoteEpisode, SearchCriteriaBase searchCriteria)
{
if (searchCriteria == null)
@@ -29,19 +35,19 @@ namespace NzbDrone.Core.DecisionEngine.Specifications.Search
if (singleEpisodeSpec.SeasonNumber != remoteEpisode.ParsedEpisodeInfo.SeasonNumber)
{
_logger.Debug("Season number does not match searched season number, skipping.");
- return Decision.Reject("Wrong season");
+ //return Decision.Reject("Wrong season");
}
if (!remoteEpisode.ParsedEpisodeInfo.EpisodeNumbers.Any())
{
_logger.Debug("Full season result during single episode search, skipping.");
- return Decision.Reject("Full season pack");
+ //return Decision.Reject("Full season pack");
}
if (!remoteEpisode.ParsedEpisodeInfo.EpisodeNumbers.Contains(singleEpisodeSpec.EpisodeNumber))
{
_logger.Debug("Episode number does not match searched episode number, skipping.");
- return Decision.Reject("Wrong episode");
+ //return Decision.Reject("Wrong episode");
}
return Decision.Accept();
diff --git a/src/NzbDrone.Core/DecisionEngine/Specifications/Search/TorrentSeedingSpecification.cs b/src/NzbDrone.Core/DecisionEngine/Specifications/Search/TorrentSeedingSpecification.cs
index 87c244b53..142e2009a 100644
--- a/src/NzbDrone.Core/DecisionEngine/Specifications/Search/TorrentSeedingSpecification.cs
+++ b/src/NzbDrone.Core/DecisionEngine/Specifications/Search/TorrentSeedingSpecification.cs
@@ -33,5 +33,23 @@ namespace NzbDrone.Core.DecisionEngine.Specifications.Search
return Decision.Accept();
}
+
+ public Decision IsSatisfiedBy(RemoteMovie remoteEpisode, SearchCriteriaBase searchCriteria)
+ {
+ var torrentInfo = remoteEpisode.Release as TorrentInfo;
+
+ if (torrentInfo == null)
+ {
+ return Decision.Accept();
+ }
+
+ if (torrentInfo.Seeders != null && torrentInfo.Seeders < 1)
+ {
+ _logger.Debug("Not enough seeders. ({0})", torrentInfo.Seeders);
+ return Decision.Reject("Not enough seeders. ({0})", torrentInfo.Seeders);
+ }
+
+ return Decision.Accept();
+ }
}
}
\ No newline at end of file
diff --git a/src/NzbDrone.Core/DecisionEngine/Specifications/UpgradeDiskSpecification.cs b/src/NzbDrone.Core/DecisionEngine/Specifications/UpgradeDiskSpecification.cs
index 5a24b6305..e30d0fc92 100644
--- a/src/NzbDrone.Core/DecisionEngine/Specifications/UpgradeDiskSpecification.cs
+++ b/src/NzbDrone.Core/DecisionEngine/Specifications/UpgradeDiskSpecification.cs
@@ -30,6 +30,25 @@ namespace NzbDrone.Core.DecisionEngine.Specifications
}
}
+ return Decision.Accept();
+ }
+
+ public virtual Decision IsSatisfiedBy(RemoteMovie subject, SearchCriteriaBase searchCriteria)
+ {
+ if (subject.Movie.MovieFile.Value == null)
+ {
+ return Decision.Accept();
+ }
+
+ var file = subject.Movie.MovieFile.Value;
+ _logger.Debug("Comparing file quality with report. Existing file is {0}", file.Quality);
+
+ if (!_qualityUpgradableSpecification.IsUpgradable(subject.Movie.Profile, file.Quality, subject.ParsedMovieInfo.Quality))
+ {
+ return Decision.Reject("Quality for existing file on disk is of equal or higher preference: {0}", file.Quality);
+ }
+
+
return Decision.Accept();
}
}
diff --git a/src/NzbDrone.Core/Download/Clients/Blackhole/TorrentBlackholeSettings.cs b/src/NzbDrone.Core/Download/Clients/Blackhole/TorrentBlackholeSettings.cs
index d05ee7f22..a716a3b8d 100644
--- a/src/NzbDrone.Core/Download/Clients/Blackhole/TorrentBlackholeSettings.cs
+++ b/src/NzbDrone.Core/Download/Clients/Blackhole/TorrentBlackholeSettings.cs
@@ -26,10 +26,10 @@ namespace NzbDrone.Core.Download.Clients.Blackhole
private static readonly TorrentBlackholeSettingsValidator Validator = new TorrentBlackholeSettingsValidator();
- [FieldDefinition(0, Label = "Torrent Folder", Type = FieldType.Path, HelpText = "Folder in which Sonarr will store the .torrent file")]
+ [FieldDefinition(0, Label = "Torrent Folder", Type = FieldType.Path, HelpText = "Folder in which Radarr will store the .torrent file")]
public string TorrentFolder { get; set; }
- [FieldDefinition(1, Label = "Watch Folder", Type = FieldType.Path, HelpText = "Folder from which Sonarr should import completed downloads")]
+ [FieldDefinition(1, Label = "Watch Folder", Type = FieldType.Path, HelpText = "Folder from which Radarr should import completed downloads")]
public string WatchFolder { get; set; }
[DefaultValue(false)]
@@ -39,7 +39,7 @@ namespace NzbDrone.Core.Download.Clients.Blackhole
[DefaultValue(false)]
[JsonProperty(DefaultValueHandling = DefaultValueHandling.Populate)]
- [FieldDefinition(3, Label = "Read Only", Type = FieldType.Checkbox, HelpText = "Instead of moving files this will instruct Sonarr to Copy or Hardlink (depending on settings/system configuration)")]
+ [FieldDefinition(3, Label = "Read Only", Type = FieldType.Checkbox, HelpText = "Instead of moving files this will instruct Radarr to Copy or Hardlink (depending on settings/system configuration)")]
public bool ReadOnly { get; set; }
public NzbDroneValidationResult Validate()
diff --git a/src/NzbDrone.Core/Download/Clients/Blackhole/UsenetBlackhole.cs b/src/NzbDrone.Core/Download/Clients/Blackhole/UsenetBlackhole.cs
index 2cc13a235..202e008c0 100644
--- a/src/NzbDrone.Core/Download/Clients/Blackhole/UsenetBlackhole.cs
+++ b/src/NzbDrone.Core/Download/Clients/Blackhole/UsenetBlackhole.cs
@@ -32,7 +32,7 @@ namespace NzbDrone.Core.Download.Clients.Blackhole
ScanGracePeriod = TimeSpan.FromSeconds(30);
}
- protected override string AddFromNzbFile(RemoteEpisode remoteEpisode, string filename, byte[] fileContent)
+ protected override string AddFromNzbFile(RemoteEpisode remoteEpisode, string filename, byte[] fileContents)
{
var title = remoteEpisode.Release.Title;
@@ -42,7 +42,25 @@ namespace NzbDrone.Core.Download.Clients.Blackhole
using (var stream = _diskProvider.OpenWriteStream(filepath))
{
- stream.Write(fileContent, 0, fileContent.Length);
+ stream.Write(fileContents, 0, fileContents.Length);
+ }
+
+ _logger.Debug("NZB Download succeeded, saved to: {0}", filepath);
+
+ return null;
+ }
+
+ protected override string AddFromNzbFile(RemoteMovie remoteMovie, string filename, byte[] fileContents)
+ {
+ var title = remoteMovie.Release.Title;
+
+ title = FileNameBuilder.CleanFileName(title);
+
+ var filepath = Path.Combine(Settings.NzbFolder, title + ".nzb");
+
+ using (var stream = _diskProvider.OpenWriteStream(filepath))
+ {
+ stream.Write(fileContents, 0, fileContents.Length);
}
_logger.Debug("NZB Download succeeded, saved to: {0}", filepath);
@@ -60,7 +78,7 @@ namespace NzbDrone.Core.Download.Clients.Blackhole
{
DownloadClient = Definition.Name,
DownloadId = Definition.Name + "_" + item.DownloadId,
- Category = "sonarr",
+ Category = "Radarr",
Title = item.Title,
TotalSize = item.TotalSize,
diff --git a/src/NzbDrone.Core/Download/Clients/Blackhole/UsenetBlackholeSettings.cs b/src/NzbDrone.Core/Download/Clients/Blackhole/UsenetBlackholeSettings.cs
index b2ff88149..59a8e6a0f 100644
--- a/src/NzbDrone.Core/Download/Clients/Blackhole/UsenetBlackholeSettings.cs
+++ b/src/NzbDrone.Core/Download/Clients/Blackhole/UsenetBlackholeSettings.cs
@@ -19,10 +19,10 @@ namespace NzbDrone.Core.Download.Clients.Blackhole
{
private static readonly UsenetBlackholeSettingsValidator Validator = new UsenetBlackholeSettingsValidator();
- [FieldDefinition(0, Label = "Nzb Folder", Type = FieldType.Path, HelpText = "Folder in which Sonarr will store the .nzb file")]
+ [FieldDefinition(0, Label = "Nzb Folder", Type = FieldType.Path, HelpText = "Folder in which Radarr will store the .nzb file")]
public string NzbFolder { get; set; }
- [FieldDefinition(1, Label = "Watch Folder", Type = FieldType.Path, HelpText = "Folder from which Sonarr should import completed downloads")]
+ [FieldDefinition(1, Label = "Watch Folder", Type = FieldType.Path, HelpText = "Folder from which Radarr should import completed downloads")]
public string WatchFolder { get; set; }
public NzbDroneValidationResult Validate()
diff --git a/src/NzbDrone.Core/Download/Clients/Deluge/Deluge.cs b/src/NzbDrone.Core/Download/Clients/Deluge/Deluge.cs
index 39174d3b8..831c31b4f 100644
--- a/src/NzbDrone.Core/Download/Clients/Deluge/Deluge.cs
+++ b/src/NzbDrone.Core/Download/Clients/Deluge/Deluge.cs
@@ -31,50 +31,44 @@ namespace NzbDrone.Core.Download.Clients.Deluge
_proxy = proxy;
}
- protected override string AddFromMagnetLink(RemoteEpisode remoteEpisode, string hash, string magnetLink)
+ protected override string AddFromMagnetLink(RemoteMovie remoteMovie, string hash, string magnetLink)
{
var actualHash = _proxy.AddTorrentFromMagnet(magnetLink, Settings);
- if (!Settings.TvCategory.IsNullOrWhiteSpace())
+ if (!Settings.MovieCategory.IsNullOrWhiteSpace())
{
- _proxy.SetLabel(actualHash, Settings.TvCategory, Settings);
+ _proxy.SetLabel(actualHash, Settings.MovieCategory, Settings);
}
_proxy.SetTorrentConfiguration(actualHash, "remove_at_ratio", false, Settings);
- var isRecentEpisode = remoteEpisode.IsRecentEpisode();
-
- if (isRecentEpisode && Settings.RecentTvPriority == (int)DelugePriority.First ||
- !isRecentEpisode && Settings.OlderTvPriority == (int)DelugePriority.First)
- {
- _proxy.MoveTorrentToTopInQueue(actualHash, Settings);
- }
-
return actualHash.ToUpper();
}
- protected override string AddFromTorrentFile(RemoteEpisode remoteEpisode, string hash, string filename, byte[] fileContent)
+ protected override string AddFromTorrentFile(RemoteMovie remoteEpisode, string hash, string filename, byte[] fileContent)
{
var actualHash = _proxy.AddTorrentFromFile(filename, fileContent, Settings);
- if (!Settings.TvCategory.IsNullOrWhiteSpace())
+ if (!Settings.MovieCategory.IsNullOrWhiteSpace())
{
- _proxy.SetLabel(actualHash, Settings.TvCategory, Settings);
+ _proxy.SetLabel(actualHash, Settings.MovieCategory, Settings);
}
_proxy.SetTorrentConfiguration(actualHash, "remove_at_ratio", false, Settings);
- var isRecentEpisode = remoteEpisode.IsRecentEpisode();
-
- if (isRecentEpisode && Settings.RecentTvPriority == (int)DelugePriority.First ||
- !isRecentEpisode && Settings.OlderTvPriority == (int)DelugePriority.First)
- {
- _proxy.MoveTorrentToTopInQueue(actualHash, Settings);
- }
-
return actualHash.ToUpper();
}
+ protected override string AddFromMagnetLink(RemoteEpisode remoteEpisode, string hash, string magnetLink)
+ {
+ throw new NotImplementedException("Episodes are not working with Radarr");
+ }
+
+ protected override string AddFromTorrentFile(RemoteEpisode remoteEpisode, string hash, string filename, byte[] fileContent)
+ {
+ throw new NotImplementedException("Episodes are not working with Radarr");
+ }
+
public override string Name => "Deluge";
public override IEnumerable GetItems()
@@ -83,9 +77,9 @@ namespace NzbDrone.Core.Download.Clients.Deluge
try
{
- if (!Settings.TvCategory.IsNullOrWhiteSpace())
+ if (!Settings.MovieCategory.IsNullOrWhiteSpace())
{
- torrents = _proxy.GetTorrentsByLabel(Settings.TvCategory, Settings);
+ torrents = _proxy.GetTorrentsByLabel(Settings.MovieCategory, Settings);
}
else
{
@@ -105,7 +99,7 @@ namespace NzbDrone.Core.Download.Clients.Deluge
var item = new DownloadClientItem();
item.DownloadId = torrent.Hash.ToUpper();
item.Title = torrent.Name;
- item.Category = Settings.TvCategory;
+ item.Category = Settings.MovieCategory;
item.DownloadClient = Definition.Name;
@@ -236,7 +230,7 @@ namespace NzbDrone.Core.Download.Clients.Deluge
private ValidationFailure TestCategory()
{
- if (Settings.TvCategory.IsNullOrWhiteSpace())
+ if (Settings.MovieCategory.IsNullOrWhiteSpace())
{
return null;
}
@@ -253,16 +247,16 @@ namespace NzbDrone.Core.Download.Clients.Deluge
var labels = _proxy.GetAvailableLabels(Settings);
- if (!labels.Contains(Settings.TvCategory))
+ if (!labels.Contains(Settings.MovieCategory))
{
- _proxy.AddLabel(Settings.TvCategory, Settings);
+ _proxy.AddLabel(Settings.MovieCategory, Settings);
labels = _proxy.GetAvailableLabels(Settings);
- if (!labels.Contains(Settings.TvCategory))
+ if (!labels.Contains(Settings.MovieCategory))
{
- return new NzbDroneValidationFailure("TvCategory", "Configuration of label failed")
+ return new NzbDroneValidationFailure("MovieCategory", "Configuration of label failed")
{
- DetailedDescription = "Sonarr as unable to add the label to Deluge."
+ DetailedDescription = "Radarr as unable to add the label to Deluge."
};
}
}
diff --git a/src/NzbDrone.Core/Download/Clients/Deluge/DelugeSettings.cs b/src/NzbDrone.Core/Download/Clients/Deluge/DelugeSettings.cs
index b5fd1153e..a7175dff6 100644
--- a/src/NzbDrone.Core/Download/Clients/Deluge/DelugeSettings.cs
+++ b/src/NzbDrone.Core/Download/Clients/Deluge/DelugeSettings.cs
@@ -12,7 +12,7 @@ namespace NzbDrone.Core.Download.Clients.Deluge
RuleFor(c => c.Host).ValidHost();
RuleFor(c => c.Port).GreaterThan(0);
- RuleFor(c => c.TvCategory).Matches("^[-a-z]*$").WithMessage("Allowed characters a-z and -");
+ RuleFor(c => c.MovieCategory).Matches("^[-a-z]*$").WithMessage("Allowed characters a-z and -");
}
}
@@ -25,7 +25,7 @@ namespace NzbDrone.Core.Download.Clients.Deluge
Host = "localhost";
Port = 8112;
Password = "deluge";
- TvCategory = "tv-sonarr";
+ MovieCategory = "movie-radarr";
}
[FieldDefinition(0, Label = "Host", Type = FieldType.Textbox)]
@@ -40,16 +40,10 @@ namespace NzbDrone.Core.Download.Clients.Deluge
[FieldDefinition(3, Label = "Password", Type = FieldType.Password)]
public string Password { get; set; }
- [FieldDefinition(4, Label = "Category", Type = FieldType.Textbox, HelpText = "Adding a category specific to Sonarr avoids conflicts with unrelated downloads, but it's optional")]
- public string TvCategory { get; set; }
+ [FieldDefinition(4, Label = "Category", Type = FieldType.Textbox, HelpText = "Adding a category specific to Radarr avoids conflicts with unrelated downloads, but it's optional")]
+ public string MovieCategory { get; set; }
- [FieldDefinition(5, Label = "Recent Priority", Type = FieldType.Select, SelectOptions = typeof(DelugePriority), HelpText = "Priority to use when grabbing episodes that aired within the last 14 days")]
- public int RecentTvPriority { get; set; }
-
- [FieldDefinition(6, Label = "Older Priority", Type = FieldType.Select, SelectOptions = typeof(DelugePriority), HelpText = "Priority to use when grabbing episodes that aired over 14 days ago")]
- public int OlderTvPriority { get; set; }
-
- [FieldDefinition(7, Label = "Use SSL", Type = FieldType.Checkbox)]
+ [FieldDefinition(5, Label = "Use SSL", Type = FieldType.Checkbox)]
public bool UseSsl { get; set; }
public NzbDroneValidationResult Validate()
diff --git a/src/NzbDrone.Core/Download/Clients/NzbVortex/NzbVortex.cs b/src/NzbDrone.Core/Download/Clients/NzbVortex/NzbVortex.cs
index 6d45f0386..ce29dafad 100644
--- a/src/NzbDrone.Core/Download/Clients/NzbVortex/NzbVortex.cs
+++ b/src/NzbDrone.Core/Download/Clients/NzbVortex/NzbVortex.cs
@@ -29,11 +29,25 @@ namespace NzbDrone.Core.Download.Clients.NzbVortex
_proxy = proxy;
}
- protected override string AddFromNzbFile(RemoteEpisode remoteEpisode, string filename, byte[] fileContent)
+ protected override string AddFromNzbFile(RemoteEpisode remoteEpisode, string filename, byte[] fileContents)
{
var priority = remoteEpisode.IsRecentEpisode() ? Settings.RecentTvPriority : Settings.OlderTvPriority;
+
+ var response = _proxy.DownloadNzb(fileContents, filename, priority, Settings);
- var response = _proxy.DownloadNzb(fileContent, filename, priority, Settings);
+ if (response == null)
+ {
+ throw new DownloadClientException("Failed to add nzb {0}", filename);
+ }
+
+ return response;
+ }
+
+ protected override string AddFromNzbFile(RemoteMovie remoteMovie, string filename, byte[] fileContents)
+ {
+ var priority = Settings.RecentTvPriority;
+
+ var response = _proxy.DownloadNzb(fileContents, filename, priority, Settings);
if (response == null)
{
diff --git a/src/NzbDrone.Core/Download/Clients/NzbVortex/NzbVortexSettings.cs b/src/NzbDrone.Core/Download/Clients/NzbVortex/NzbVortexSettings.cs
index 411624c9d..749ef9d04 100644
--- a/src/NzbDrone.Core/Download/Clients/NzbVortex/NzbVortexSettings.cs
+++ b/src/NzbDrone.Core/Download/Clients/NzbVortex/NzbVortexSettings.cs
@@ -43,7 +43,7 @@ namespace NzbDrone.Core.Download.Clients.NzbVortex
[FieldDefinition(2, Label = "API Key", Type = FieldType.Textbox)]
public string ApiKey { get; set; }
- [FieldDefinition(3, Label = "Group", Type = FieldType.Textbox, HelpText = "Adding a category specific to Sonarr avoids conflicts with unrelated downloads, but it's optional")]
+ [FieldDefinition(3, Label = "Group", Type = FieldType.Textbox, HelpText = "Adding a category specific to Radarr avoids conflicts with unrelated downloads, but it's optional")]
public string TvCategory { get; set; }
[FieldDefinition(4, Label = "Recent Priority", Type = FieldType.Select, SelectOptions = typeof(NzbVortexPriority), HelpText = "Priority to use when grabbing episodes that aired within the last 14 days")]
diff --git a/src/NzbDrone.Core/Download/Clients/Nzbget/Nzbget.cs b/src/NzbDrone.Core/Download/Clients/Nzbget/Nzbget.cs
index 5b6d756cc..754e67abd 100644
--- a/src/NzbDrone.Core/Download/Clients/Nzbget/Nzbget.cs
+++ b/src/NzbDrone.Core/Download/Clients/Nzbget/Nzbget.cs
@@ -29,12 +29,12 @@ namespace NzbDrone.Core.Download.Clients.Nzbget
_proxy = proxy;
}
- protected override string AddFromNzbFile(RemoteEpisode remoteEpisode, string filename, byte[] fileContent)
+ protected override string AddFromNzbFile(RemoteEpisode remoteEpisode, string filename, byte[] fileContents)
{
var category = Settings.TvCategory;
var priority = remoteEpisode.IsRecentEpisode() ? Settings.RecentTvPriority : Settings.OlderTvPriority;
- var response = _proxy.DownloadNzb(fileContent, filename, category, priority, Settings);
+ var response = _proxy.DownloadNzb(fileContents, filename, category, priority, Settings);
if (response == null)
{
@@ -44,6 +44,21 @@ namespace NzbDrone.Core.Download.Clients.Nzbget
return response;
}
+ protected override string AddFromNzbFile(RemoteMovie remoteMovie, string filename, byte[] fileContents)
+ {
+ var category = Settings.TvCategory; // TODO: Update this to MovieCategory?
+ var priority = Settings.RecentTvPriority;
+
+ var response = _proxy.DownloadNzb(fileContents, filename, category, priority, Settings);
+
+ if(response == null)
+ {
+ throw new DownloadClientException("Failed to add nzb {0}", filename);
+ }
+
+ return response;
+ }
+
private IEnumerable GetQueue()
{
NzbgetGlobalStatus globalStatus;
@@ -72,13 +87,14 @@ namespace NzbDrone.Core.Download.Clients.Nzbget
var droneParameter = item.Parameters.SingleOrDefault(p => p.Name == "drone");
- var queueItem = new DownloadClientItem();
- queueItem.DownloadId = droneParameter == null ? item.NzbId.ToString() : droneParameter.Value.ToString();
- queueItem.Title = item.NzbName;
- queueItem.TotalSize = totalSize;
- queueItem.Category = item.Category;
- queueItem.DownloadClient = Definition.Name;
-
+ var queueItem = new DownloadClientItem()
+ {
+ DownloadId = droneParameter == null ? item.NzbId.ToString() : droneParameter.Value.ToString(),
+ Title = item.NzbName,
+ TotalSize = totalSize,
+ Category = item.Category,
+ DownloadClient = Definition.Name
+ };
if (globalStatus.DownloadPaused || remainingSize == pausedSize && remainingSize != 0)
{
queueItem.Status = DownloadItemStatus.Paused;
@@ -131,17 +147,18 @@ namespace NzbDrone.Core.Download.Clients.Nzbget
{
var droneParameter = item.Parameters.SingleOrDefault(p => p.Name == "drone");
- var historyItem = new DownloadClientItem();
- historyItem.DownloadClient = Definition.Name;
- historyItem.DownloadId = droneParameter == null ? item.Id.ToString() : droneParameter.Value.ToString();
- historyItem.Title = item.Name;
- historyItem.TotalSize = MakeInt64(item.FileSizeHi, item.FileSizeLo);
- historyItem.OutputPath = _remotePathMappingService.RemapRemoteToLocal(Settings.Host, new OsPath(item.DestDir));
- historyItem.Category = item.Category;
- historyItem.Message = string.Format("PAR Status: {0} - Unpack Status: {1} - Move Status: {2} - Script Status: {3} - Delete Status: {4} - Mark Status: {5}", item.ParStatus, item.UnpackStatus, item.MoveStatus, item.ScriptStatus, item.DeleteStatus, item.MarkStatus);
- historyItem.Status = DownloadItemStatus.Completed;
- historyItem.RemainingTime = TimeSpan.Zero;
-
+ var historyItem = new DownloadClientItem()
+ {
+ DownloadClient = Definition.Name,
+ DownloadId = droneParameter == null ? item.Id.ToString() : droneParameter.Value.ToString(),
+ Title = item.Name,
+ TotalSize = MakeInt64(item.FileSizeHi, item.FileSizeLo),
+ OutputPath = _remotePathMappingService.RemapRemoteToLocal(Settings.Host, new OsPath(item.DestDir)),
+ Category = item.Category,
+ Message = string.Format("PAR Status: {0} - Unpack Status: {1} - Move Status: {2} - Script Status: {3} - Delete Status: {4} - Mark Status: {5}", item.ParStatus, item.UnpackStatus, item.MoveStatus, item.ScriptStatus, item.DeleteStatus, item.MarkStatus),
+ Status = DownloadItemStatus.Completed,
+ RemainingTime = TimeSpan.Zero
+ };
if (item.DeleteStatus == "MANUAL")
{
continue;
@@ -320,7 +337,7 @@ namespace NzbDrone.Core.Download.Clients.Nzbget
return new NzbDroneValidationFailure(string.Empty, "NzbGet setting KeepHistory should be greater than 0")
{
InfoLink = string.Format("http://{0}:{1}/", Settings.Host, Settings.Port),
- DetailedDescription = "NzbGet setting KeepHistory is set to 0. Which prevents Sonarr from seeing completed downloads."
+ DetailedDescription = "NzbGet setting KeepHistory is set to 0. Which prevents Radarr from seeing completed downloads."
};
}
diff --git a/src/NzbDrone.Core/Download/Clients/Nzbget/NzbgetSettings.cs b/src/NzbDrone.Core/Download/Clients/Nzbget/NzbgetSettings.cs
index cbd104964..3321c7671 100644
--- a/src/NzbDrone.Core/Download/Clients/Nzbget/NzbgetSettings.cs
+++ b/src/NzbDrone.Core/Download/Clients/Nzbget/NzbgetSettings.cs
@@ -26,7 +26,9 @@ namespace NzbDrone.Core.Download.Clients.Nzbget
{
Host = "localhost";
Port = 6789;
- TvCategory = "tv";
+ TvCategory = "Movies";
+ Username = "nzbget";
+ Password = "tegbzn6789";
RecentTvPriority = (int)NzbgetPriority.Normal;
OlderTvPriority = (int)NzbgetPriority.Normal;
}
@@ -43,8 +45,8 @@ namespace NzbDrone.Core.Download.Clients.Nzbget
[FieldDefinition(3, Label = "Password", Type = FieldType.Password)]
public string Password { get; set; }
- [FieldDefinition(4, Label = "Category", Type = FieldType.Textbox, HelpText = "Adding a category specific to Sonarr avoids conflicts with unrelated downloads, but it's optional")]
- public string TvCategory { get; set; }
+ [FieldDefinition(4, Label = "Category", Type = FieldType.Textbox, HelpText = "Adding a category specific to Radarr avoids conflicts with unrelated downloads, but it's optional")]
+ public string TvCategory { get; set; }
[FieldDefinition(5, Label = "Recent Priority", Type = FieldType.Select, SelectOptions = typeof(NzbgetPriority), HelpText = "Priority to use when grabbing episodes that aired within the last 14 days")]
public int RecentTvPriority { get; set; }
diff --git a/src/NzbDrone.Core/Download/Clients/Pneumatic/Pneumatic.cs b/src/NzbDrone.Core/Download/Clients/Pneumatic/Pneumatic.cs
index 5eab58b3b..299a56b13 100644
--- a/src/NzbDrone.Core/Download/Clients/Pneumatic/Pneumatic.cs
+++ b/src/NzbDrone.Core/Download/Clients/Pneumatic/Pneumatic.cs
@@ -58,6 +58,32 @@ namespace NzbDrone.Core.Download.Clients.Pneumatic
return GetDownloadClientId(strmFile);
}
+ public override string Download(RemoteMovie remoteEpisode)
+ {
+ var url = remoteEpisode.Release.DownloadUrl;
+ var title = remoteEpisode.Release.Title;
+
+ if (remoteEpisode.ParsedEpisodeInfo.FullSeason)
+ {
+ throw new NotSupportedException("Full season releases are not supported with Pneumatic.");
+ }
+
+ title = FileNameBuilder.CleanFileName(title);
+
+ //Save to the Pneumatic directory (The user will need to ensure its accessible by XBMC)
+ var nzbFile = Path.Combine(Settings.NzbFolder, title + ".nzb");
+
+ _logger.Debug("Downloading NZB from: {0} to: {1}", url, nzbFile);
+ _httpClient.DownloadFile(url, nzbFile);
+
+ _logger.Debug("NZB Download succeeded, saved to: {0}", nzbFile);
+
+ var strmFile = WriteStrmFile(title, nzbFile);
+
+
+ return GetDownloadClientId(strmFile);
+ }
+
public bool IsConfigured => !string.IsNullOrWhiteSpace(Settings.NzbFolder);
public override IEnumerable GetItems()
diff --git a/src/NzbDrone.Core/Download/Clients/QBittorrent/QBittorrent.cs b/src/NzbDrone.Core/Download/Clients/QBittorrent/QBittorrent.cs
index ecd75c911..5db723ff0 100644
--- a/src/NzbDrone.Core/Download/Clients/QBittorrent/QBittorrent.cs
+++ b/src/NzbDrone.Core/Download/Clients/QBittorrent/QBittorrent.cs
@@ -32,40 +32,34 @@ namespace NzbDrone.Core.Download.Clients.QBittorrent
}
protected override string AddFromMagnetLink(RemoteEpisode remoteEpisode, string hash, string magnetLink)
+ {
+ throw new NotImplementedException("Episodes are not working with Radarr");
+ }
+
+ protected override string AddFromTorrentFile(RemoteEpisode remoteEpisode, string hash, string filename, Byte[] fileContent)
+ {
+ throw new NotImplementedException("Episodes are not working with Radarr");
+ }
+
+ protected override string AddFromMagnetLink(RemoteMovie remoteMovie, string hash, string magnetLink)
{
_proxy.AddTorrentFromUrl(magnetLink, Settings);
- if (Settings.TvCategory.IsNotNullOrWhiteSpace())
+ if (Settings.MovieCategory.IsNotNullOrWhiteSpace())
{
- _proxy.SetTorrentLabel(hash.ToLower(), Settings.TvCategory, Settings);
- }
-
- var isRecentEpisode = remoteEpisode.IsRecentEpisode();
-
- if (isRecentEpisode && Settings.RecentTvPriority == (int)QBittorrentPriority.First ||
- !isRecentEpisode && Settings.OlderTvPriority == (int)QBittorrentPriority.First)
- {
- _proxy.MoveTorrentToTopInQueue(hash.ToLower(), Settings);
+ _proxy.SetTorrentLabel(hash.ToLower(), Settings.MovieCategory, Settings);
}
return hash;
}
- protected override string AddFromTorrentFile(RemoteEpisode remoteEpisode, string hash, string filename, Byte[] fileContent)
+ protected override string AddFromTorrentFile(RemoteMovie remoteMovie, string hash, string filename, Byte[] fileContent)
{
_proxy.AddTorrentFromFile(filename, fileContent, Settings);
- if (Settings.TvCategory.IsNotNullOrWhiteSpace())
+ if (Settings.MovieCategory.IsNotNullOrWhiteSpace())
{
- _proxy.SetTorrentLabel(hash.ToLower(), Settings.TvCategory, Settings);
- }
-
- var isRecentEpisode = remoteEpisode.IsRecentEpisode();
-
- if (isRecentEpisode && Settings.RecentTvPriority == (int)QBittorrentPriority.First ||
- !isRecentEpisode && Settings.OlderTvPriority == (int)QBittorrentPriority.First)
- {
- _proxy.MoveTorrentToTopInQueue(hash.ToLower(), Settings);
+ _proxy.SetTorrentLabel(hash.ToLower(), Settings.MovieCategory, Settings);
}
return hash;
@@ -196,7 +190,7 @@ namespace NzbDrone.Core.Download.Clients.QBittorrent
else if (version < 6)
{
// API version 6 introduced support for labels
- if (Settings.TvCategory.IsNotNullOrWhiteSpace())
+ if (Settings.MovieCategory.IsNotNullOrWhiteSpace())
{
return new NzbDroneValidationFailure("Category", "Category is not supported")
{
@@ -204,13 +198,13 @@ namespace NzbDrone.Core.Download.Clients.QBittorrent
};
}
}
- else if (Settings.TvCategory.IsNullOrWhiteSpace())
+ else if (Settings.MovieCategory.IsNullOrWhiteSpace())
{
// warn if labels are supported, but category is not provided
return new NzbDroneValidationFailure("TvCategory", "Category is recommended")
{
IsWarning = true,
- DetailedDescription = "Sonarr will not attempt to import completed downloads without a category."
+ DetailedDescription = "Radarr will not attempt to import completed downloads without a category."
};
}
@@ -220,7 +214,7 @@ namespace NzbDrone.Core.Download.Clients.QBittorrent
{
return new NzbDroneValidationFailure(String.Empty, "QBittorrent is configured to remove torrents when they reach their Share Ratio Limit")
{
- DetailedDescription = "Sonarr will be unable to perform Completed Download Handling as configured. You can fix this in qBittorrent ('Tools -> Options...' in the menu) by changing 'Options -> BitTorrent -> Share Ratio Limiting' from 'Remove them' to 'Pause them'."
+ DetailedDescription = "Radarr will be unable to perform Completed Download Handling as configured. You can fix this in qBittorrent ('Tools -> Options...' in the menu) by changing 'Options -> BitTorrent -> Share Ratio Limiting' from 'Remove them' to 'Pause them'."
};
}
}
diff --git a/src/NzbDrone.Core/Download/Clients/QBittorrent/QBittorrentProxy.cs b/src/NzbDrone.Core/Download/Clients/QBittorrent/QBittorrentProxy.cs
index e00c57585..be4ca16c5 100644
--- a/src/NzbDrone.Core/Download/Clients/QBittorrent/QBittorrentProxy.cs
+++ b/src/NzbDrone.Core/Download/Clients/QBittorrent/QBittorrentProxy.cs
@@ -58,8 +58,8 @@ namespace NzbDrone.Core.Download.Clients.QBittorrent
public List GetTorrents(QBittorrentSettings settings)
{
var request = BuildRequest(settings).Resource("/query/torrents")
- .AddQueryParam("label", settings.TvCategory)
- .AddQueryParam("category", settings.TvCategory);
+ .AddQueryParam("label", settings.MovieCategory)
+ .AddQueryParam("category", settings.MovieCategory);
var response = ProcessRequest>(request, settings);
diff --git a/src/NzbDrone.Core/Download/Clients/QBittorrent/QBittorrentSettings.cs b/src/NzbDrone.Core/Download/Clients/QBittorrent/QBittorrentSettings.cs
index fa6908f2c..c02619f2f 100644
--- a/src/NzbDrone.Core/Download/Clients/QBittorrent/QBittorrentSettings.cs
+++ b/src/NzbDrone.Core/Download/Clients/QBittorrent/QBittorrentSettings.cs
@@ -22,7 +22,7 @@ namespace NzbDrone.Core.Download.Clients.QBittorrent
{
Host = "localhost";
Port = 9091;
- TvCategory = "tv-sonarr";
+ MovieCategory = "movie-radarr";
}
[FieldDefinition(0, Label = "Host", Type = FieldType.Textbox)]
@@ -37,16 +37,10 @@ namespace NzbDrone.Core.Download.Clients.QBittorrent
[FieldDefinition(3, Label = "Password", Type = FieldType.Password)]
public string Password { get; set; }
- [FieldDefinition(4, Label = "Category", Type = FieldType.Textbox, HelpText = "Adding a category specific to Sonarr avoids conflicts with unrelated downloads, but it's optional")]
- public string TvCategory { get; set; }
+ [FieldDefinition(4, Label = "Category", Type = FieldType.Textbox, HelpText = "Adding a category specific to Radarr avoids conflicts with unrelated downloads, but it's optional")]
+ public string MovieCategory { get; set; }
- [FieldDefinition(5, Label = "Recent Priority", Type = FieldType.Select, SelectOptions = typeof(QBittorrentPriority), HelpText = "Priority to use when grabbing episodes that aired within the last 14 days")]
- public int RecentTvPriority { get; set; }
-
- [FieldDefinition(6, Label = "Older Priority", Type = FieldType.Select, SelectOptions = typeof(QBittorrentPriority), HelpText = "Priority to use when grabbing episodes that aired over 14 days ago")]
- public int OlderTvPriority { get; set; }
-
- [FieldDefinition(7, Label = "Use SSL", Type = FieldType.Checkbox, HelpText = "Use a secure connection. See Options -> Web UI -> 'Use HTTPS instead of HTTP' in qBittorrent.")]
+ [FieldDefinition(5, Label = "Use SSL", Type = FieldType.Checkbox, HelpText = "Use a secure connection. See Options -> Web UI -> 'Use HTTPS instead of HTTP' in qBittorrent.")]
public bool UseSsl { get; set; }
public NzbDroneValidationResult Validate()
diff --git a/src/NzbDrone.Core/Download/Clients/Sabnzbd/Sabnzbd.cs b/src/NzbDrone.Core/Download/Clients/Sabnzbd/Sabnzbd.cs
index 64a5e23de..52fef65b0 100644
--- a/src/NzbDrone.Core/Download/Clients/Sabnzbd/Sabnzbd.cs
+++ b/src/NzbDrone.Core/Download/Clients/Sabnzbd/Sabnzbd.cs
@@ -30,14 +30,29 @@ namespace NzbDrone.Core.Download.Clients.Sabnzbd
}
// patch can be a number (releases) or 'x' (git)
- private static readonly Regex VersionRegex = new Regex(@"(?\d+)\.(?\d+)\.(?\d+|x)(?.*)", RegexOptions.Compiled);
+ private static readonly Regex VersionRegex = new Regex(@"(?\d+)\.(?\d+)\.(?\d+|x)", RegexOptions.Compiled);
- protected override string AddFromNzbFile(RemoteEpisode remoteEpisode, string filename, byte[] fileContent)
+ protected override string AddFromNzbFile(RemoteEpisode remoteEpisode, string filename, byte[] fileContents)
{
var category = Settings.TvCategory;
var priority = remoteEpisode.IsRecentEpisode() ? Settings.RecentTvPriority : Settings.OlderTvPriority;
- var response = _proxy.DownloadNzb(fileContent, filename, category, priority, Settings);
+ var response = _proxy.DownloadNzb(fileContents, filename, category, priority, Settings);
+
+ if (response != null && response.Ids.Any())
+ {
+ return response.Ids.First();
+ }
+
+ return null;
+ }
+
+ protected override string AddFromNzbFile(RemoteMovie remoteMovie, string filename, byte[] fileContents)
+ {
+ var category = Settings.TvCategory;
+ var priority = Settings.RecentTvPriority;
+
+ var response = _proxy.DownloadNzb(fileContents, filename, category, priority, Settings);
if (response != null && response.Ids.Any())
{
@@ -269,110 +284,103 @@ namespace NzbDrone.Core.Download.Clients.Sabnzbd
failures.AddIfNotNull(TestCategory());
}
- private bool HasVersion(int major, int minor, int patch = 0, string candidate = null)
+ private bool HasVersion(int major, int minor, int patch = 0)
{
- candidate = candidate ?? string.Empty;
+ var rawVersion = _proxy.GetVersion(Settings);
+ var version = ParseVersion(rawVersion);
- var version = _proxy.GetVersion(Settings);
+ if (version == null)
+ {
+ return false;
+ }
+
+ if (version.Major > major)
+ {
+ return true;
+ }
+ else if (version.Major < major)
+ {
+ return false;
+ }
+
+ if (version.Minor > minor)
+ {
+ return true;
+ }
+ else if (version.Minor < minor)
+ {
+ return false;
+ }
+
+ if (version.Build > patch)
+ {
+ return true;
+ }
+ else if (version.Build < patch)
+ {
+ return false;
+ }
+
+ return true;
+ }
+
+ private Version ParseVersion(string version)
+ {
var parsed = VersionRegex.Match(version);
- int actualMajor;
- int actualMinor;
- int actualPatch;
- string actualCandidate;
+ int major;
+ int minor;
+ int patch;
- if (!parsed.Success)
+ if (parsed.Success)
+ {
+ major = Convert.ToInt32(parsed.Groups["major"].Value);
+ minor = Convert.ToInt32(parsed.Groups["minor"].Value);
+ patch = Convert.ToInt32(parsed.Groups["patch"].Value.Replace("x", "0"));
+ }
+
+ else
{
if (!version.Equals("develop", StringComparison.InvariantCultureIgnoreCase))
{
- return false;
+ return null;
}
- actualMajor = 1;
- actualMinor = 1;
- actualPatch = 0;
- actualCandidate = null;
+ major = 1;
+ minor = 1;
+ patch = 0;
}
- else
- {
- actualMajor = Convert.ToInt32(parsed.Groups["major"].Value);
- actualMinor = Convert.ToInt32(parsed.Groups["minor"].Value);
- actualPatch = Convert.ToInt32(parsed.Groups["patch"].Value.Replace("x", ""));
- actualCandidate = parsed.Groups["candidate"].Value.ToUpper();
- }
-
- if (actualMajor > major)
- {
- return true;
- }
- else if (actualMajor < major)
- {
- return false;
- }
-
- if (actualMinor > minor)
- {
- return true;
- }
- else if (actualMinor < minor)
- {
- return false;
- }
-
- if (actualPatch > patch)
- {
- return true;
- }
- else if (actualPatch < patch)
- {
- return false;
- }
-
- if (actualCandidate.IsNullOrWhiteSpace())
- {
- return true;
- }
- else if (candidate.IsNullOrWhiteSpace())
- {
- return false;
- }
- else
- {
- return actualCandidate.CompareTo(candidate) > 0;
- }
+ return new Version(major, minor, patch);
}
private ValidationFailure TestConnectionAndVersion()
{
try
{
- var version = _proxy.GetVersion(Settings);
- var parsed = VersionRegex.Match(version);
+ var rawVersion = _proxy.GetVersion(Settings);
+ var version = ParseVersion(rawVersion);
- if (!parsed.Success)
+ if (version == null)
{
- if (version.Equals("develop", StringComparison.InvariantCultureIgnoreCase))
- {
- return new NzbDroneValidationFailure("Version", "Sabnzbd develop version, assuming version 1.1.0 or higher.")
- {
- IsWarning = true,
- DetailedDescription = "Sonarr may not be able to support new features added to SABnzbd when running develop versions."
- };
- }
-
return new ValidationFailure("Version", "Unknown Version: " + version);
}
- var major = Convert.ToInt32(parsed.Groups["major"].Value);
- var minor = Convert.ToInt32(parsed.Groups["minor"].Value);
+ if (rawVersion.Equals("develop", StringComparison.InvariantCultureIgnoreCase))
+ {
+ return new NzbDroneValidationFailure("Version", "Sabnzbd develop version, assuming version 1.1.0 or higher.")
+ {
+ IsWarning = true,
+ DetailedDescription = "Radarr may not be able to support new features added to SABnzbd when running develop versions."
+ };
+ }
- if (major >= 1)
+ if (version.Major >= 1)
{
return null;
}
- if (minor >= 7)
+ if (version.Minor >= 7)
{
return null;
}
@@ -416,7 +424,7 @@ namespace NzbDrone.Core.Download.Clients.Sabnzbd
return new NzbDroneValidationFailure("", "Disable 'Check before download' option in Sabnbzd")
{
InfoLink = string.Format("http://{0}:{1}/sabnzbd/config/switches/", Settings.Host, Settings.Port),
- DetailedDescription = "Using Check before download affects Sonarr ability to track new downloads. Also Sabnzbd recommends 'Abort jobs that cannot be completed' instead since it's more effective."
+ DetailedDescription = "Using Check before download affects Radarr ability to track new downloads. Also Sabnzbd recommends 'Abort jobs that cannot be completed' instead since it's more effective."
};
}
@@ -435,7 +443,7 @@ namespace NzbDrone.Core.Download.Clients.Sabnzbd
return new NzbDroneValidationFailure("TvCategory", "Enable Job folders")
{
InfoLink = string.Format("http://{0}:{1}/sabnzbd/config/categories/", Settings.Host, Settings.Port),
- DetailedDescription = "Sonarr prefers each download to have a separate folder. With * appended to the Folder/Path Sabnzbd will not create these job folders. Go to Sabnzbd to fix it."
+ DetailedDescription = "Radarr prefers each download to have a separate folder. With * appended to the Folder/Path Sabnzbd will not create these job folders. Go to Sabnzbd to fix it."
};
}
}
@@ -460,7 +468,7 @@ namespace NzbDrone.Core.Download.Clients.Sabnzbd
return new NzbDroneValidationFailure("TvCategory", "Disable TV Sorting")
{
InfoLink = string.Format("http://{0}:{1}/sabnzbd/config/sorting/", Settings.Host, Settings.Port),
- DetailedDescription = "You must disable Sabnzbd TV Sorting for the category Sonarr uses to prevent import issues. Go to Sabnzbd to fix it."
+ DetailedDescription = "You must disable Sabnzbd TV Sorting for the category Radarr uses to prevent import issues. Go to Sabnzbd to fix it."
};
}
}
@@ -474,7 +482,7 @@ namespace NzbDrone.Core.Download.Clients.Sabnzbd
return new NzbDroneValidationFailure("TvCategory", "Disable Movie Sorting")
{
InfoLink = string.Format("http://{0}:{1}/sabnzbd/config/sorting/", Settings.Host, Settings.Port),
- DetailedDescription = "You must disable Sabnzbd Movie Sorting for the category Sonarr uses to prevent import issues. Go to Sabnzbd to fix it."
+ DetailedDescription = "You must disable Sabnzbd Movie Sorting for the category Radarr uses to prevent import issues. Go to Sabnzbd to fix it."
};
}
}
@@ -488,7 +496,7 @@ namespace NzbDrone.Core.Download.Clients.Sabnzbd
return new NzbDroneValidationFailure("TvCategory", "Disable Date Sorting")
{
InfoLink = string.Format("http://{0}:{1}/sabnzbd/config/sorting/", Settings.Host, Settings.Port),
- DetailedDescription = "You must disable Sabnzbd Date Sorting for the category Sonarr uses to prevent import issues. Go to Sabnzbd to fix it."
+ DetailedDescription = "You must disable Sabnzbd Date Sorting for the category Radarr uses to prevent import issues. Go to Sabnzbd to fix it."
};
}
}
diff --git a/src/NzbDrone.Core/Download/Clients/Sabnzbd/SabnzbdSettings.cs b/src/NzbDrone.Core/Download/Clients/Sabnzbd/SabnzbdSettings.cs
index 22a3389bf..0c1dc8221 100644
--- a/src/NzbDrone.Core/Download/Clients/Sabnzbd/SabnzbdSettings.cs
+++ b/src/NzbDrone.Core/Download/Clients/Sabnzbd/SabnzbdSettings.cs
@@ -58,7 +58,7 @@ namespace NzbDrone.Core.Download.Clients.Sabnzbd
[FieldDefinition(4, Label = "Password", Type = FieldType.Password)]
public string Password { get; set; }
- [FieldDefinition(5, Label = "Category", Type = FieldType.Textbox, HelpText = "Adding a category specific to Sonarr avoids conflicts with unrelated downloads, but it's optional")]
+ [FieldDefinition(5, Label = "Category", Type = FieldType.Textbox, HelpText = "Adding a category specific to Radarr avoids conflicts with unrelated downloads, but it's optional")]
public string TvCategory { get; set; }
[FieldDefinition(6, Label = "Recent Priority", Type = FieldType.Select, SelectOptions = typeof(SabnzbdPriority), HelpText = "Priority to use when grabbing episodes that aired within the last 14 days")]
diff --git a/src/NzbDrone.Core/Download/Clients/Transmission/TransmissionBase.cs b/src/NzbDrone.Core/Download/Clients/Transmission/TransmissionBase.cs
index 8358e9e79..1eb6b6ce8 100644
--- a/src/NzbDrone.Core/Download/Clients/Transmission/TransmissionBase.cs
+++ b/src/NzbDrone.Core/Download/Clients/Transmission/TransmissionBase.cs
@@ -54,21 +54,21 @@ namespace NzbDrone.Core.Download.Clients.Transmission
var outputPath = new OsPath(torrent.DownloadDir);
- if (Settings.TvDirectory.IsNotNullOrWhiteSpace())
+ if (Settings.MovieDirectory.IsNotNullOrWhiteSpace())
{
- if (!new OsPath(Settings.TvDirectory).Contains(outputPath)) continue;
+ if (!new OsPath(Settings.MovieDirectory).Contains(outputPath)) continue;
}
- else if (Settings.TvCategory.IsNotNullOrWhiteSpace())
+ else if (Settings.MovieCategory.IsNotNullOrWhiteSpace())
{
var directories = outputPath.FullPath.Split('\\', '/');
- if (!directories.Contains(Settings.TvCategory)) continue;
+ if (!directories.Contains(Settings.MovieCategory)) continue;
}
outputPath = _remotePathMappingService.RemapRemoteToLocal(Settings.Host, outputPath);
var item = new DownloadClientItem();
item.DownloadId = torrent.HashString.ToUpper();
- item.Category = Settings.TvCategory;
+ item.Category = Settings.MovieCategory;
item.Title = torrent.Name;
item.DownloadClient = Definition.Name;
@@ -123,9 +123,9 @@ namespace NzbDrone.Core.Download.Clients.Transmission
var config = _proxy.GetConfig(Settings);
var destDir = config.GetValueOrDefault("download-dir") as string;
- if (Settings.TvCategory.IsNotNullOrWhiteSpace())
+ if (Settings.MovieCategory.IsNotNullOrWhiteSpace())
{
- destDir = string.Format("{0}/.{1}", destDir, Settings.TvCategory);
+ destDir = string.Format("{0}/.{1}", destDir, Settings.MovieCategory);
}
return new DownloadClientStatus
@@ -137,31 +137,23 @@ namespace NzbDrone.Core.Download.Clients.Transmission
protected override string AddFromMagnetLink(RemoteEpisode remoteEpisode, string hash, string magnetLink)
{
- _proxy.AddTorrentFromUrl(magnetLink, GetDownloadDirectory(), Settings);
-
- var isRecentEpisode = remoteEpisode.IsRecentEpisode();
-
- if (isRecentEpisode && Settings.RecentTvPriority == (int)TransmissionPriority.First ||
- !isRecentEpisode && Settings.OlderTvPriority == (int)TransmissionPriority.First)
- {
- _proxy.MoveTorrentToTopInQueue(hash, Settings);
- }
-
- return hash;
+ throw new NotImplementedException("Episodes are not working with Radarr");
}
protected override string AddFromTorrentFile(RemoteEpisode remoteEpisode, string hash, string filename, byte[] fileContent)
+ {
+ throw new NotImplementedException("Episodes are not working with Radarr");
+ }
+
+ protected override string AddFromMagnetLink(RemoteMovie remoteMovie, string hash, string magnetLink)
+ {
+ _proxy.AddTorrentFromUrl(magnetLink, GetDownloadDirectory(), Settings);
+ return hash;
+ }
+
+ protected override string AddFromTorrentFile(RemoteMovie remoteMovie, string hash, string filename, byte[] fileContent)
{
_proxy.AddTorrentFromData(fileContent, GetDownloadDirectory(), Settings);
-
- var isRecentEpisode = remoteEpisode.IsRecentEpisode();
-
- if (isRecentEpisode && Settings.RecentTvPriority == (int)TransmissionPriority.First ||
- !isRecentEpisode && Settings.OlderTvPriority == (int)TransmissionPriority.First)
- {
- _proxy.MoveTorrentToTopInQueue(hash, Settings);
- }
-
return hash;
}
@@ -179,16 +171,16 @@ namespace NzbDrone.Core.Download.Clients.Transmission
protected string GetDownloadDirectory()
{
- if (Settings.TvDirectory.IsNotNullOrWhiteSpace())
+ if (Settings.MovieDirectory.IsNotNullOrWhiteSpace())
{
- return Settings.TvDirectory;
+ return Settings.MovieDirectory;
}
- else if (Settings.TvCategory.IsNotNullOrWhiteSpace())
+ else if (Settings.MovieCategory.IsNotNullOrWhiteSpace())
{
var config = _proxy.GetConfig(Settings);
var destDir = (string)config.GetValueOrDefault("download-dir");
- return string.Format("{0}/{1}", destDir.TrimEnd('/'), Settings.TvCategory);
+ return string.Format("{0}/{1}", destDir.TrimEnd('/'), Settings.MovieCategory);
}
else
{
@@ -207,7 +199,7 @@ namespace NzbDrone.Core.Download.Clients.Transmission
_logger.Error(ex, ex.Message);
return new NzbDroneValidationFailure("Username", "Authentication failure")
{
- DetailedDescription = string.Format("Please verify your username and password. Also verify if the host running Sonarr isn't blocked from accessing {0} by WhiteList limitations in the {0} configuration.", Name)
+ DetailedDescription = string.Format("Please verify your username and password. Also verify if the host running Radarr isn't blocked from accessing {0} by WhiteList limitations in the {0} configuration.", Name)
};
}
catch (WebException ex)
diff --git a/src/NzbDrone.Core/Download/Clients/Transmission/TransmissionSettings.cs b/src/NzbDrone.Core/Download/Clients/Transmission/TransmissionSettings.cs
index 633ee7a57..9d0a860ec 100644
--- a/src/NzbDrone.Core/Download/Clients/Transmission/TransmissionSettings.cs
+++ b/src/NzbDrone.Core/Download/Clients/Transmission/TransmissionSettings.cs
@@ -16,10 +16,10 @@ namespace NzbDrone.Core.Download.Clients.Transmission
RuleFor(c => c.UrlBase).ValidUrlBase();
- RuleFor(c => c.TvCategory).Matches(@"^\.?[-a-z]*$", RegexOptions.IgnoreCase).WithMessage("Allowed characters a-z and -");
+ RuleFor(c => c.MovieCategory).Matches(@"^\.?[-a-z]*$", RegexOptions.IgnoreCase).WithMessage("Allowed characters a-z and -");
- RuleFor(c => c.TvCategory).Empty()
- .When(c => c.TvDirectory.IsNotNullOrWhiteSpace())
+ RuleFor(c => c.MovieCategory).Empty()
+ .When(c => c.MovieDirectory.IsNotNullOrWhiteSpace())
.WithMessage("Cannot use Category and Directory");
}
}
@@ -50,19 +50,13 @@ namespace NzbDrone.Core.Download.Clients.Transmission
[FieldDefinition(4, Label = "Password", Type = FieldType.Password)]
public string Password { get; set; }
- [FieldDefinition(5, Label = "Category", Type = FieldType.Textbox, HelpText = "Adding a category specific to Sonarr avoids conflicts with unrelated downloads, but it's optional. Creates a [category] subdirectory in the output directory.")]
- public string TvCategory { get; set; }
+ [FieldDefinition(5, Label = "Category", Type = FieldType.Textbox, HelpText = "Adding a category specific to Radarr avoids conflicts with unrelated downloads, but it's optional. Creates a [category] subdirectory in the output directory.")]
+ public string MovieCategory { get; set; }
[FieldDefinition(6, Label = "Directory", Type = FieldType.Textbox, Advanced = true, HelpText = "Optional location to put downloads in, leave blank to use the default Transmission location")]
- public string TvDirectory { get; set; }
+ public string MovieDirectory { get; set; }
- [FieldDefinition(7, Label = "Recent Priority", Type = FieldType.Select, SelectOptions = typeof(TransmissionPriority), HelpText = "Priority to use when grabbing episodes that aired within the last 14 days")]
- public int RecentTvPriority { get; set; }
-
- [FieldDefinition(8, Label = "Older Priority", Type = FieldType.Select, SelectOptions = typeof(TransmissionPriority), HelpText = "Priority to use when grabbing episodes that aired over 14 days ago")]
- public int OlderTvPriority { get; set; }
-
- [FieldDefinition(9, Label = "Use SSL", Type = FieldType.Checkbox)]
+ [FieldDefinition(7, Label = "Use SSL", Type = FieldType.Checkbox)]
public bool UseSsl { get; set; }
public NzbDroneValidationResult Validate()
diff --git a/src/NzbDrone.Core/Download/Clients/rTorrent/RTorrent.cs b/src/NzbDrone.Core/Download/Clients/rTorrent/RTorrent.cs
index 041708a93..cc9b80aa5 100644
--- a/src/NzbDrone.Core/Download/Clients/rTorrent/RTorrent.cs
+++ b/src/NzbDrone.Core/Download/Clients/rTorrent/RTorrent.cs
@@ -38,19 +38,22 @@ namespace NzbDrone.Core.Download.Clients.RTorrent
}
protected override string AddFromMagnetLink(RemoteEpisode remoteEpisode, string hash, string magnetLink)
+ {
+ throw new NotImplementedException("Episodes are not working with Radarr");
+ }
+
+ protected override string AddFromTorrentFile(RemoteEpisode remoteEpisode, string hash, string filename, byte[] fileContent)
+ {
+ throw new NotImplementedException("Episodes are not working with Radarr");
+ }
+
+ protected override string AddFromMagnetLink(RemoteMovie remoteMovie, string hash, string magnetLink)
{
_proxy.AddTorrentFromUrl(magnetLink, Settings);
// Download the magnet to the appropriate directory.
- _proxy.SetTorrentLabel(hash, Settings.TvCategory, Settings);
- SetPriority(remoteEpisode, hash);
+ _proxy.SetTorrentLabel(hash, Settings.MovieCategory, Settings);
SetDownloadDirectory(hash);
-
- // Once the magnet meta download finishes, rTorrent replaces it with the actual torrent download with default settings.
- // Schedule an event to apply the appropriate settings when that happens.
- var priority = (RTorrentPriority)(remoteEpisode.IsRecentEpisode() ? Settings.RecentTvPriority : Settings.OlderTvPriority);
- _proxy.SetDeferredMagnetProperties(hash, Settings.TvCategory, Settings.TvDirectory, priority, Settings);
-
_proxy.StartTorrent(hash, Settings);
// Wait for the magnet to be resolved.
@@ -68,7 +71,7 @@ namespace NzbDrone.Core.Download.Clients.RTorrent
}
}
- protected override string AddFromTorrentFile(RemoteEpisode remoteEpisode, string hash, string filename, byte[] fileContent)
+ protected override string AddFromTorrentFile(RemoteMovie remoteMovie, string hash, string filename, byte[] fileContent)
{
_proxy.AddTorrentFromFile(filename, fileContent, Settings);
@@ -76,13 +79,9 @@ namespace NzbDrone.Core.Download.Clients.RTorrent
var retryDelay = 100;
if (WaitForTorrent(hash, tries, retryDelay))
{
- _proxy.SetTorrentLabel(hash, Settings.TvCategory, Settings);
-
- SetPriority(remoteEpisode, hash);
+ _proxy.SetTorrentLabel(hash, Settings.MovieCategory, Settings);
SetDownloadDirectory(hash);
-
_proxy.StartTorrent(hash, Settings);
-
return hash;
}
else
@@ -90,13 +89,13 @@ namespace NzbDrone.Core.Download.Clients.RTorrent
_logger.Debug("rTorrent could not add file");
RemoveItem(hash, true);
- throw new ReleaseDownloadException(remoteEpisode.Release, "Downloading torrent failed");
+ throw new ReleaseDownloadException(remoteMovie.Release, "Downloading torrent failed");
}
}
public override string Name => "rTorrent";
- public override ProviderMessage Message => new ProviderMessage("Sonarr is unable to remove torrents that have finished seeding when using rTorrent", ProviderMessageType.Warning);
+ public override ProviderMessage Message => new ProviderMessage("Radarr is unable to remove torrents that have finished seeding when using rTorrent", ProviderMessageType.Warning);
public override IEnumerable GetItems()
{
@@ -110,7 +109,7 @@ namespace NzbDrone.Core.Download.Clients.RTorrent
foreach (RTorrentTorrent torrent in torrents)
{
// Don't concern ourselves with categories other than specified
- if (torrent.Category != Settings.TvCategory) continue;
+ if (torrent.Category != Settings.MovieCategory) continue;
if (torrent.Path.StartsWith("."))
{
@@ -230,17 +229,11 @@ namespace NzbDrone.Core.Download.Clients.RTorrent
return result.Errors.First();
}
- private void SetPriority(RemoteEpisode remoteEpisode, string hash)
- {
- var priority = (RTorrentPriority)(remoteEpisode.IsRecentEpisode() ? Settings.RecentTvPriority : Settings.OlderTvPriority);
- _proxy.SetTorrentPriority(hash, priority, Settings);
- }
-
private void SetDownloadDirectory(string hash)
{
- if (Settings.TvDirectory.IsNotNullOrWhiteSpace())
+ if (Settings.MovieDirectory.IsNotNullOrWhiteSpace())
{
- _proxy.SetTorrentDownloadDirectory(hash, Settings.TvDirectory, Settings);
+ _proxy.SetTorrentDownloadDirectory(hash, Settings.MovieDirectory, Settings);
}
}
diff --git a/src/NzbDrone.Core/Download/Clients/rTorrent/RTorrentDirectoryValidator.cs b/src/NzbDrone.Core/Download/Clients/rTorrent/RTorrentDirectoryValidator.cs
index 3cb2d6a8b..1d0f5063a 100644
--- a/src/NzbDrone.Core/Download/Clients/rTorrent/RTorrentDirectoryValidator.cs
+++ b/src/NzbDrone.Core/Download/Clients/rTorrent/RTorrentDirectoryValidator.cs
@@ -18,13 +18,13 @@ namespace NzbDrone.Core.Download.Clients.rTorrent
DroneFactoryValidator droneFactoryValidator,
MappedNetworkDriveValidator mappedNetworkDriveValidator)
{
- RuleFor(c => c.TvDirectory).Cascade(CascadeMode.StopOnFirstFailure)
+ RuleFor(c => c.MovieDirectory).Cascade(CascadeMode.StopOnFirstFailure)
.IsValidPath()
.SetValidator(rootFolderValidator)
.SetValidator(droneFactoryValidator)
.SetValidator(mappedNetworkDriveValidator)
.SetValidator(pathExistsValidator)
- .When(c => c.TvDirectory.IsNotNullOrWhiteSpace())
+ .When(c => c.MovieDirectory.IsNotNullOrWhiteSpace())
.When(c => c.Host == "localhost" || c.Host == "127.0.0.1");
}
}
diff --git a/src/NzbDrone.Core/Download/Clients/rTorrent/RTorrentSettings.cs b/src/NzbDrone.Core/Download/Clients/rTorrent/RTorrentSettings.cs
index 81715246c..4965c9a78 100644
--- a/src/NzbDrone.Core/Download/Clients/rTorrent/RTorrentSettings.cs
+++ b/src/NzbDrone.Core/Download/Clients/rTorrent/RTorrentSettings.cs
@@ -11,7 +11,7 @@ namespace NzbDrone.Core.Download.Clients.RTorrent
{
RuleFor(c => c.Host).ValidHost();
RuleFor(c => c.Port).InclusiveBetween(0, 65535);
- RuleFor(c => c.TvCategory).NotEmpty()
+ RuleFor(c => c.MovieCategory).NotEmpty()
.WithMessage("A category is recommended")
.AsWarning();
}
@@ -26,9 +26,7 @@ namespace NzbDrone.Core.Download.Clients.RTorrent
Host = "localhost";
Port = 8080;
UrlBase = "RPC2";
- TvCategory = "tv-sonarr";
- OlderTvPriority = (int)RTorrentPriority.Normal;
- RecentTvPriority = (int)RTorrentPriority.Normal;
+ MovieCategory = "movies-radarr";
}
[FieldDefinition(0, Label = "Host", Type = FieldType.Textbox)]
@@ -49,17 +47,11 @@ namespace NzbDrone.Core.Download.Clients.RTorrent
[FieldDefinition(5, Label = "Password", Type = FieldType.Password)]
public string Password { get; set; }
- [FieldDefinition(6, Label = "Category", Type = FieldType.Textbox, HelpText = "Adding a category specific to Sonarr avoids conflicts with unrelated downloads, but it's optional.")]
- public string TvCategory { get; set; }
+ [FieldDefinition(6, Label = "Category", Type = FieldType.Textbox, HelpText = "Adding a category specific to Radarr avoids conflicts with unrelated downloads, but it's optional.")]
+ public string MovieCategory { get; set; }
[FieldDefinition(7, Label = "Directory", Type = FieldType.Textbox, Advanced = true, HelpText = "Optional location to put downloads in, leave blank to use the default rTorrent location")]
- public string TvDirectory { get; set; }
-
- [FieldDefinition(8, Label = "Recent Priority", Type = FieldType.Select, SelectOptions = typeof(RTorrentPriority), HelpText = "Priority to use when grabbing episodes that aired within the last 14 days")]
- public int RecentTvPriority { get; set; }
-
- [FieldDefinition(9, Label = "Older Priority", Type = FieldType.Select, SelectOptions = typeof(RTorrentPriority), HelpText = "Priority to use when grabbing episodes that aired over 14 days ago")]
- public int OlderTvPriority { get; set; }
+ public string MovieDirectory { get; set; }
public NzbDroneValidationResult Validate()
{
diff --git a/src/NzbDrone.Core/Download/Clients/uTorrent/UTorrent.cs b/src/NzbDrone.Core/Download/Clients/uTorrent/UTorrent.cs
index da942b7f1..171910744 100644
--- a/src/NzbDrone.Core/Download/Clients/uTorrent/UTorrent.cs
+++ b/src/NzbDrone.Core/Download/Clients/uTorrent/UTorrent.cs
@@ -68,6 +68,38 @@ namespace NzbDrone.Core.Download.Clients.UTorrent
return hash;
}
+ protected override string AddFromMagnetLink(RemoteMovie remoteEpisode, string hash, string magnetLink)
+ {
+ _proxy.AddTorrentFromUrl(magnetLink, Settings);
+ _proxy.SetTorrentLabel(hash, Settings.TvCategory, Settings);
+
+ /*var isRecentEpisode = remoteEpisode.IsRecentEpisode();
+
+ if (isRecentEpisode && Settings.RecentTvPriority == (int)UTorrentPriority.First ||
+ !isRecentEpisode && Settings.OlderTvPriority == (int)UTorrentPriority.First)
+ {
+ _proxy.MoveTorrentToTopInQueue(hash, Settings);
+ }*/
+
+ return hash;
+ }
+
+ protected override string AddFromTorrentFile(RemoteMovie remoteEpisode, string hash, string filename, byte[] fileContent)
+ {
+ _proxy.AddTorrentFromFile(filename, fileContent, Settings);
+ _proxy.SetTorrentLabel(hash, Settings.TvCategory, Settings);
+
+ /*var isRecentEpisode = remoteEpisode.IsRecentEpisode();
+
+ if (isRecentEpisode && Settings.RecentTvPriority == (int)UTorrentPriority.First ||
+ !isRecentEpisode && Settings.OlderTvPriority == (int)UTorrentPriority.First)
+ {
+ _proxy.MoveTorrentToTopInQueue(hash, Settings);
+ }*/
+
+ return hash;
+ }
+
public override string Name => "uTorrent";
public override IEnumerable GetItems()
diff --git a/src/NzbDrone.Core/Download/Clients/uTorrent/UTorrentSettings.cs b/src/NzbDrone.Core/Download/Clients/uTorrent/UTorrentSettings.cs
index a5e5b006f..394fc53b4 100644
--- a/src/NzbDrone.Core/Download/Clients/uTorrent/UTorrentSettings.cs
+++ b/src/NzbDrone.Core/Download/Clients/uTorrent/UTorrentSettings.cs
@@ -38,7 +38,7 @@ namespace NzbDrone.Core.Download.Clients.UTorrent
[FieldDefinition(3, Label = "Password", Type = FieldType.Password)]
public string Password { get; set; }
- [FieldDefinition(4, Label = "Category", Type = FieldType.Textbox, HelpText = "Adding a category specific to Sonarr avoids conflicts with unrelated downloads, but it's optional")]
+ [FieldDefinition(4, Label = "Category", Type = FieldType.Textbox, HelpText = "Adding a category specific to Radarr avoids conflicts with unrelated downloads, but it's optional")]
public string TvCategory { get; set; }
[FieldDefinition(5, Label = "Recent Priority", Type = FieldType.Select, SelectOptions = typeof(UTorrentPriority), HelpText = "Priority to use when grabbing episodes that aired within the last 14 days")]
diff --git a/src/NzbDrone.Core/Download/CompletedDownloadService.cs b/src/NzbDrone.Core/Download/CompletedDownloadService.cs
index c4fbe11a2..c55b98e84 100644
--- a/src/NzbDrone.Core/Download/CompletedDownloadService.cs
+++ b/src/NzbDrone.Core/Download/CompletedDownloadService.cs
@@ -27,7 +27,9 @@ namespace NzbDrone.Core.Download
private readonly IEventAggregator _eventAggregator;
private readonly IHistoryService _historyService;
private readonly IDownloadedEpisodesImportService _downloadedEpisodesImportService;
+ private readonly IDownloadedMovieImportService _downloadedMovieImportService;
private readonly IParsingService _parsingService;
+ private readonly IMovieService _movieService;
private readonly Logger _logger;
private readonly ISeriesService _seriesService;
@@ -35,15 +37,19 @@ namespace NzbDrone.Core.Download
IEventAggregator eventAggregator,
IHistoryService historyService,
IDownloadedEpisodesImportService downloadedEpisodesImportService,
+ IDownloadedMovieImportService downloadedMovieImportService,
IParsingService parsingService,
ISeriesService seriesService,
+ IMovieService movieService,
Logger logger)
{
_configService = configService;
_eventAggregator = eventAggregator;
_historyService = historyService;
_downloadedEpisodesImportService = downloadedEpisodesImportService;
+ _downloadedMovieImportService = downloadedMovieImportService;
_parsingService = parsingService;
+ _movieService = movieService;
_logger = logger;
_seriesService = seriesService;
}
@@ -61,7 +67,7 @@ namespace NzbDrone.Core.Download
if (historyItem == null && trackedDownload.DownloadItem.Category.IsNullOrWhiteSpace())
{
- trackedDownload.Warn("Download wasn't grabbed by Sonarr and not in a category, Skipping.");
+ trackedDownload.Warn("Download wasn't grabbed by Radarr and not in a category, Skipping.");
return;
}
@@ -88,18 +94,17 @@ namespace NzbDrone.Core.Download
return;
}
- var series = _parsingService.GetSeries(trackedDownload.DownloadItem.Title);
-
- if (series == null)
+ var movie = _parsingService.GetMovie(trackedDownload.DownloadItem.Title);
+ if (movie == null)
{
if (historyItem != null)
{
- series = _seriesService.GetSeries(historyItem.SeriesId);
+ movie = _movieService.GetMovie(historyItem.MovieId);
}
- if (series == null)
+ if (movie == null)
{
- trackedDownload.Warn("Series title mismatch, automatic import is not possible.");
+ trackedDownload.Warn("Movie title mismatch, automatic import is not possible.");
return;
}
}
@@ -111,7 +116,7 @@ namespace NzbDrone.Core.Download
private void Import(TrackedDownload trackedDownload)
{
var outputPath = trackedDownload.DownloadItem.OutputPath.FullPath;
- var importResults = _downloadedEpisodesImportService.ProcessPath(outputPath, ImportMode.Auto, trackedDownload.RemoteEpisode.Series, trackedDownload.DownloadItem);
+ var importResults = _downloadedMovieImportService.ProcessPath(outputPath, ImportMode.Auto, trackedDownload.RemoteMovie.Movie, trackedDownload.DownloadItem);
if (importResults.Empty())
{
@@ -119,7 +124,7 @@ namespace NzbDrone.Core.Download
return;
}
- if (importResults.Count(c => c.Result == ImportResultType.Imported) >= Math.Max(1, trackedDownload.RemoteEpisode.Episodes.Count))
+ if (importResults.Count(c => c.Result == ImportResultType.Imported) >= 1)
{
trackedDownload.State = TrackedDownloadStage.Imported;
_eventAggregator.PublishEvent(new DownloadCompletedEvent(trackedDownload));
@@ -130,12 +135,11 @@ namespace NzbDrone.Core.Download
{
var statusMessages = importResults
.Where(v => v.Result != ImportResultType.Imported)
- .Select(v => new TrackedDownloadStatusMessage(Path.GetFileName(v.ImportDecision.LocalEpisode.Path), v.Errors))
+ .Select(v => new TrackedDownloadStatusMessage(Path.GetFileName(v.ImportDecision.LocalMovie.Path), v.Errors))
.ToArray();
trackedDownload.Warn(statusMessages);
}
-
}
}
}
diff --git a/src/NzbDrone.Core/Download/DownloadClientBase.cs b/src/NzbDrone.Core/Download/DownloadClientBase.cs
index 98ade2a69..14f7f1b71 100644
--- a/src/NzbDrone.Core/Download/DownloadClientBase.cs
+++ b/src/NzbDrone.Core/Download/DownloadClientBase.cs
@@ -57,6 +57,7 @@ namespace NzbDrone.Core.Download
get;
}
+
public abstract string Download(RemoteEpisode remoteEpisode);
public abstract IEnumerable GetItems();
public abstract void RemoveItem(string downloadId, bool deleteData);
@@ -132,7 +133,7 @@ namespace NzbDrone.Core.Download
{
return new NzbDroneValidationFailure(propertyName, "Folder does not exist")
{
- DetailedDescription = string.Format("The folder you specified does not exist or is inaccessible. Please verify the folder permissions for the user account '{0}', which is used to execute Sonarr.", Environment.UserName)
+ DetailedDescription = string.Format("The folder you specified does not exist or is inaccessible. Please verify the folder permissions for the user account '{0}', which is used to execute Radarr.", Environment.UserName)
};
}
@@ -141,11 +142,13 @@ namespace NzbDrone.Core.Download
_logger.Error("Folder '{0}' is not writable.", folder);
return new NzbDroneValidationFailure(propertyName, "Unable to write to folder")
{
- DetailedDescription = string.Format("The folder you specified is not writable. Please verify the folder permissions for the user account '{0}', which is used to execute Sonarr.", Environment.UserName)
+ DetailedDescription = string.Format("The folder you specified is not writable. Please verify the folder permissions for the user account '{0}', which is used to execute Radarr.", Environment.UserName)
};
}
return null;
}
+
+ public abstract string Download(RemoteMovie remoteMovie);
}
}
diff --git a/src/NzbDrone.Core/Download/DownloadFailedEvent.cs b/src/NzbDrone.Core/Download/DownloadFailedEvent.cs
index 1c0ca855a..57b423b14 100644
--- a/src/NzbDrone.Core/Download/DownloadFailedEvent.cs
+++ b/src/NzbDrone.Core/Download/DownloadFailedEvent.cs
@@ -13,6 +13,7 @@ namespace NzbDrone.Core.Download
}
public int SeriesId { get; set; }
+ public int MovieId { get; set; }
public List EpisodeIds { get; set; }
public QualityModel Quality { get; set; }
public string SourceTitle { get; set; }
diff --git a/src/NzbDrone.Core/Download/DownloadService.cs b/src/NzbDrone.Core/Download/DownloadService.cs
index 4f76b1507..b7c4b205a 100644
--- a/src/NzbDrone.Core/Download/DownloadService.cs
+++ b/src/NzbDrone.Core/Download/DownloadService.cs
@@ -1,6 +1,5 @@
using System;
using NLog;
-using NzbDrone.Common.EnsureThat;
using NzbDrone.Common.Extensions;
using NzbDrone.Common.Http;
using NzbDrone.Common.Instrumentation.Extensions;
@@ -15,6 +14,7 @@ namespace NzbDrone.Core.Download
public interface IDownloadService
{
void DownloadReport(RemoteEpisode remoteEpisode);
+ void DownloadReport(RemoteMovie remoteMovie);
}
@@ -41,8 +41,8 @@ namespace NzbDrone.Core.Download
public void DownloadReport(RemoteEpisode remoteEpisode)
{
- Ensure.That(remoteEpisode.Series, () => remoteEpisode.Series).IsNotNull();
- Ensure.That(remoteEpisode.Episodes, () => remoteEpisode.Episodes).HasItems();
+ //Ensure.That(remoteEpisode.Series, () => remoteEpisode.Series).IsNotNull();
+ //Ensure.That(remoteEpisode.Episodes, () => remoteEpisode.Episodes).HasItems(); TODO update this shit
var downloadTitle = remoteEpisode.Release.Title;
var downloadClient = _downloadClientProvider.GetDownloadClient(remoteEpisode.Release.DownloadProtocol);
@@ -91,5 +91,62 @@ namespace NzbDrone.Core.Download
_logger.ProgressInfo("Report sent to {0}. {1}", downloadClient.Definition.Name, downloadTitle);
_eventAggregator.PublishEvent(episodeGrabbedEvent);
}
+
+ public void DownloadReport(RemoteMovie remoteMovie)
+ {
+ //Ensure.That(remoteEpisode.Series, () => remoteEpisode.Series).IsNotNull();
+ //Ensure.That(remoteEpisode.Episodes, () => remoteEpisode.Episodes).HasItems(); TODO update this shit
+
+ var downloadTitle = remoteMovie.Release.Title;
+ var downloadClient = _downloadClientProvider.GetDownloadClient(remoteMovie.Release.DownloadProtocol);
+
+ if (downloadClient == null)
+ {
+ _logger.Warn("{0} Download client isn't configured yet.", remoteMovie.Release.DownloadProtocol);
+ return;
+ }
+
+ // Limit grabs to 2 per second.
+ if (remoteMovie.Release.DownloadUrl.IsNotNullOrWhiteSpace() && !remoteMovie.Release.DownloadUrl.StartsWith("magnet:"))
+ {
+ var url = new HttpUri(remoteMovie.Release.DownloadUrl);
+ _rateLimitService.WaitAndPulse(url.Host, TimeSpan.FromSeconds(2));
+ }
+
+ string downloadClientId = "";
+ try
+ {
+ downloadClientId = downloadClient.Download(remoteMovie);
+ _indexerStatusService.RecordSuccess(remoteMovie.Release.IndexerId);
+ }
+ catch (NotImplementedException ex)
+ {
+ _logger.Error(ex, "The download client you are using is currently not configured to download movies. Please choose another one.");
+ }
+ catch (ReleaseDownloadException ex)
+ {
+ var http429 = ex.InnerException as TooManyRequestsException;
+ if (http429 != null)
+ {
+ _indexerStatusService.RecordFailure(remoteMovie.Release.IndexerId, http429.RetryAfter);
+ }
+ else
+ {
+ _indexerStatusService.RecordFailure(remoteMovie.Release.IndexerId);
+ }
+ throw;
+ }
+
+ var episodeGrabbedEvent = new MovieGrabbedEvent(remoteMovie);
+ episodeGrabbedEvent.DownloadClient = downloadClient.GetType().Name;
+
+ if (!string.IsNullOrWhiteSpace(downloadClientId))
+ {
+ episodeGrabbedEvent.DownloadId = downloadClientId;
+ }
+
+ _logger.ProgressInfo("Report sent to {0}. {1}", downloadClient.Definition.Name, downloadTitle);
+ _eventAggregator.PublishEvent(episodeGrabbedEvent);
+ }
}
}
\ No newline at end of file
diff --git a/src/NzbDrone.Core/Download/FailedDownloadService.cs b/src/NzbDrone.Core/Download/FailedDownloadService.cs
index d56349f7f..4168e0451 100644
--- a/src/NzbDrone.Core/Download/FailedDownloadService.cs
+++ b/src/NzbDrone.Core/Download/FailedDownloadService.cs
@@ -72,7 +72,7 @@ namespace NzbDrone.Core.Download
if (grabbedItems.Empty())
{
- trackedDownload.Warn("Download wasn't grabbed by sonarr, skipping");
+ trackedDownload.Warn("Download wasn't grabbed by Radarr, skipping");
return;
}
@@ -88,6 +88,7 @@ namespace NzbDrone.Core.Download
var downloadFailedEvent = new DownloadFailedEvent
{
SeriesId = historyItem.SeriesId,
+ MovieId = historyItem.MovieId,
EpisodeIds = historyItems.Select(h => h.EpisodeId).ToList(),
Quality = historyItem.Quality,
SourceTitle = historyItem.SourceTitle,
diff --git a/src/NzbDrone.Core/Download/IDownloadClient.cs b/src/NzbDrone.Core/Download/IDownloadClient.cs
index 6703d8a22..ecf76844e 100644
--- a/src/NzbDrone.Core/Download/IDownloadClient.cs
+++ b/src/NzbDrone.Core/Download/IDownloadClient.cs
@@ -10,6 +10,7 @@ namespace NzbDrone.Core.Download
DownloadProtocol Protocol { get; }
string Download(RemoteEpisode remoteEpisode);
+ string Download(RemoteMovie remoteMovie);
IEnumerable GetItems();
void RemoveItem(string downloadId, bool deleteData);
DownloadClientStatus GetStatus();
diff --git a/src/NzbDrone.Core/Download/MovieGrabbedEvent.cs b/src/NzbDrone.Core/Download/MovieGrabbedEvent.cs
new file mode 100644
index 000000000..cb331b24a
--- /dev/null
+++ b/src/NzbDrone.Core/Download/MovieGrabbedEvent.cs
@@ -0,0 +1,17 @@
+using NzbDrone.Common.Messaging;
+using NzbDrone.Core.Parser.Model;
+
+namespace NzbDrone.Core.Download
+{
+ public class MovieGrabbedEvent : IEvent
+ {
+ public RemoteMovie Movie { get; private set; }
+ public string DownloadClient { get; set; }
+ public string DownloadId { get; set; }
+
+ public MovieGrabbedEvent(RemoteMovie movie)
+ {
+ Movie = movie;
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/NzbDrone.Core/Download/Pending/PendingRelease.cs b/src/NzbDrone.Core/Download/Pending/PendingRelease.cs
index a713fe48c..504db7e36 100644
--- a/src/NzbDrone.Core/Download/Pending/PendingRelease.cs
+++ b/src/NzbDrone.Core/Download/Pending/PendingRelease.cs
@@ -7,6 +7,7 @@ namespace NzbDrone.Core.Download.Pending
public class PendingRelease : ModelBase
{
public int SeriesId { get; set; }
+ public int MovieId { get; set; }
public string Title { get; set; }
public DateTime Added { get; set; }
public ParsedEpisodeInfo ParsedEpisodeInfo { get; set; }
@@ -14,5 +15,6 @@ namespace NzbDrone.Core.Download.Pending
//Not persisted
public RemoteEpisode RemoteEpisode { get; set; }
+ public RemoteMovie RemoteMovie { get; set; }
}
}
diff --git a/src/NzbDrone.Core/Download/Pending/PendingReleaseService.cs b/src/NzbDrone.Core/Download/Pending/PendingReleaseService.cs
index 8585a1704..5a53e2d18 100644
--- a/src/NzbDrone.Core/Download/Pending/PendingReleaseService.cs
+++ b/src/NzbDrone.Core/Download/Pending/PendingReleaseService.cs
@@ -33,6 +33,7 @@ namespace NzbDrone.Core.Download.Pending
public class PendingReleaseService : IPendingReleaseService,
IHandle,
IHandle,
+ IHandle,
IHandle
{
private readonly IIndexerStatusService _indexerStatusService;
@@ -341,6 +342,11 @@ namespace NzbDrone.Core.Download.Pending
RemoveGrabbed(message.Episode);
}
+ public void Handle(MovieGrabbedEvent message)
+ {
+ //RemoveGrabbed(message.Movie);
+ }
+
public void Handle(RssSyncCompleteEvent message)
{
RemoveRejected(message.ProcessedDecisions.Rejected);
diff --git a/src/NzbDrone.Core/Download/ProcessDownloadDecisions.cs b/src/NzbDrone.Core/Download/ProcessDownloadDecisions.cs
index 05719587d..70aba1c41 100644
--- a/src/NzbDrone.Core/Download/ProcessDownloadDecisions.cs
+++ b/src/NzbDrone.Core/Download/ProcessDownloadDecisions.cs
@@ -32,53 +32,118 @@ namespace NzbDrone.Core.Download
public ProcessedDecisions ProcessDecisions(List decisions)
{
- var qualifiedReports = GetQualifiedReports(decisions);
- var prioritizedDecisions = _prioritizeDownloadDecision.PrioritizeDecisions(qualifiedReports);
+ //var qualifiedReports = GetQualifiedReports(decisions);
+ var prioritizedDecisions = _prioritizeDownloadDecision.PrioritizeDecisions(decisions);
var grabbed = new List();
var pending = new List();
foreach (var report in prioritizedDecisions)
{
- var remoteEpisode = report.RemoteEpisode;
- var episodeIds = remoteEpisode.Episodes.Select(e => e.Id).ToList();
-
- //Skip if already grabbed
- if (grabbed.SelectMany(r => r.RemoteEpisode.Episodes)
- .Select(e => e.Id)
- .ToList()
- .Intersect(episodeIds)
- .Any())
+ if (report.IsForMovie)
{
- continue;
+ var remoteMovie = report.RemoteMovie;
+
+ if (report.TemporarilyRejected)
+ {
+ _pendingReleaseService.Add(report);
+ pending.Add(report);
+ continue;
+ }
+
+ if (report.Rejections.Any())
+ {
+ _logger.Debug("Rejecting release {0} because {1}", report.ToString(), report.Rejections.First().Reason);
+ continue;
+ }
+
+ if (remoteMovie == null || remoteMovie.Movie == null)
+ {
+ continue;
+ }
+
+ List movieIds = new List { remoteMovie.Movie.Id };
+
+
+ //Skip if already grabbed
+ if (grabbed.Select(r => r.RemoteMovie.Movie)
+ .Select(e => e.Id)
+ .ToList()
+ .Intersect(movieIds)
+ .Any())
+ {
+ continue;
+ }
+
+ if (pending.Select(r => r.RemoteMovie.Movie)
+ .Select(e => e.Id)
+ .ToList()
+ .Intersect(movieIds)
+ .Any())
+ {
+ continue;
+ }
+
+ try
+ {
+ _downloadService.DownloadReport(remoteMovie);
+ grabbed.Add(report);
+ }
+ catch (Exception e)
+ {
+ //TODO: support for store & forward
+ //We'll need to differentiate between a download client error and an indexer error
+ _logger.Warn(e, "Couldn't add report to download queue. " + remoteMovie);
+ }
}
+ else
+ {
+ var remoteEpisode = report.RemoteEpisode;
- if (report.TemporarilyRejected)
- {
- _pendingReleaseService.Add(report);
- pending.Add(report);
- continue;
- }
+ if (remoteEpisode == null || remoteEpisode.Episodes == null)
+ {
+ continue;
+ }
- if (pending.SelectMany(r => r.RemoteEpisode.Episodes)
- .Select(e => e.Id)
- .ToList()
- .Intersect(episodeIds)
- .Any())
- {
- continue;
- }
+ var episodeIds = remoteEpisode.Episodes.Select(e => e.Id).ToList();
- try
- {
- _downloadService.DownloadReport(remoteEpisode);
- grabbed.Add(report);
- }
- catch (Exception e)
- {
- //TODO: support for store & forward
- //We'll need to differentiate between a download client error and an indexer error
- _logger.Warn(e, "Couldn't add report to download queue. " + remoteEpisode);
+ //Skip if already grabbed
+ if (grabbed.SelectMany(r => r.RemoteEpisode.Episodes)
+ .Select(e => e.Id)
+ .ToList()
+ .Intersect(episodeIds)
+ .Any())
+ {
+ continue;
+ }
+
+ if (report.TemporarilyRejected)
+ {
+ _pendingReleaseService.Add(report);
+ pending.Add(report);
+ continue;
+ }
+
+ if (pending.SelectMany(r => r.RemoteEpisode.Episodes)
+ .Select(e => e.Id)
+ .ToList()
+ .Intersect(episodeIds)
+ .Any())
+ {
+ continue;
+ }
+
+ try
+ {
+ _downloadService.DownloadReport(remoteEpisode);
+ grabbed.Add(report);
+ }
+ catch (Exception e)
+ {
+ //TODO: support for store & forward
+ //We'll need to differentiate between a download client error and an indexer error
+ _logger.Warn(e, "Couldn't add report to download queue. " + remoteEpisode);
+ }
}
}
diff --git a/src/NzbDrone.Core/Download/RedownloadFailedDownloadService.cs b/src/NzbDrone.Core/Download/RedownloadFailedDownloadService.cs
index d85729775..0e5b3a13a 100644
--- a/src/NzbDrone.Core/Download/RedownloadFailedDownloadService.cs
+++ b/src/NzbDrone.Core/Download/RedownloadFailedDownloadService.cs
@@ -34,6 +34,15 @@ namespace NzbDrone.Core.Download
return;
}
+ if (message.MovieId != 0)
+ {
+ _logger.Debug("Failed download contains a movie, searching again.");
+
+ _commandQueueManager.Push(new MoviesSearchCommand { MovieId = message.MovieId });
+
+ return;
+ }
+
if (message.EpisodeIds.Count == 1)
{
_logger.Debug("Failed download only contains one episode, searching again");
diff --git a/src/NzbDrone.Core/Download/TorrentClientBase.cs b/src/NzbDrone.Core/Download/TorrentClientBase.cs
index b1fcd7e2e..70681f992 100644
--- a/src/NzbDrone.Core/Download/TorrentClientBase.cs
+++ b/src/NzbDrone.Core/Download/TorrentClientBase.cs
@@ -40,35 +40,43 @@ namespace NzbDrone.Core.Download
protected abstract string AddFromMagnetLink(RemoteEpisode remoteEpisode, string hash, string magnetLink);
protected abstract string AddFromTorrentFile(RemoteEpisode remoteEpisode, string hash, string filename, byte[] fileContent);
-
- public override string Download(RemoteEpisode remoteEpisode)
+ protected virtual string AddFromMagnetLink(RemoteMovie remoteMovie, string hash, string magnetLink)
{
- var torrentInfo = remoteEpisode.Release as TorrentInfo;
+ throw new NotImplementedException();
+ }
+ protected virtual string AddFromTorrentFile(RemoteMovie remoteMovie, string hash, string filename, byte[] fileContent)
+ {
+ throw new NotImplementedException();
+ }
+
+ public override string Download(RemoteMovie remoteMovie)
+ {
+ var torrentInfo = remoteMovie.Release as TorrentInfo;
string magnetUrl = null;
string torrentUrl = null;
- if (remoteEpisode.Release.DownloadUrl.IsNotNullOrWhiteSpace() && remoteEpisode.Release.DownloadUrl.StartsWith("magnet:"))
+ if (remoteMovie.Release.DownloadUrl.IsNotNullOrWhiteSpace() && remoteMovie.Release.DownloadUrl.StartsWith("magnet:"))
{
- magnetUrl = remoteEpisode.Release.DownloadUrl;
+ magnetUrl = remoteMovie.Release.DownloadUrl;
}
else
{
- torrentUrl = remoteEpisode.Release.DownloadUrl;
+ torrentUrl = remoteMovie.Release.DownloadUrl;
}
if (torrentInfo != null && !torrentInfo.MagnetUrl.IsNullOrWhiteSpace())
{
magnetUrl = torrentInfo.MagnetUrl;
}
-
+
if (PreferTorrentFile)
{
if (torrentUrl.IsNotNullOrWhiteSpace())
{
try
{
- return DownloadFromWebUrl(remoteEpisode, torrentUrl);
+ return DownloadFromWebUrl(remoteMovie, torrentUrl);
}
catch (Exception ex)
{
@@ -85,11 +93,11 @@ namespace NzbDrone.Core.Download
{
try
{
- return DownloadFromMagnetUrl(remoteEpisode, magnetUrl);
+ return DownloadFromMagnetUrl(remoteMovie, magnetUrl);
}
catch (NotSupportedException ex)
{
- throw new ReleaseDownloadException(remoteEpisode.Release, "Magnet not supported by download client. ({0})", ex.Message);
+ throw new ReleaseDownloadException(remoteMovie.Release, "Magnet not supported by download client. ({0})", ex.Message);
}
}
}
@@ -99,13 +107,13 @@ namespace NzbDrone.Core.Download
{
try
{
- return DownloadFromMagnetUrl(remoteEpisode, magnetUrl);
+ return DownloadFromMagnetUrl(remoteMovie, magnetUrl);
}
catch (NotSupportedException ex)
{
if (torrentUrl.IsNullOrWhiteSpace())
{
- throw new ReleaseDownloadException(remoteEpisode.Release, "Magnet not supported by download client. ({0})", ex.Message);
+ throw new ReleaseDownloadException(remoteMovie.Release, "Magnet not supported by download client. ({0})", ex.Message);
}
_logger.Debug("Magnet not supported by download client, trying torrent. ({0})", ex.Message);
@@ -114,13 +122,193 @@ namespace NzbDrone.Core.Download
if (torrentUrl.IsNotNullOrWhiteSpace())
{
- return DownloadFromWebUrl(remoteEpisode, torrentUrl);
+ return DownloadFromWebUrl(remoteMovie, torrentUrl);
}
}
return null;
}
+ public override string Download(RemoteEpisode remoteMovie)
+ {
+ var torrentInfo = remoteMovie.Release as TorrentInfo;
+
+ string magnetUrl = null;
+ string torrentUrl = null;
+
+ if (remoteMovie.Release.DownloadUrl.IsNotNullOrWhiteSpace() && remoteMovie.Release.DownloadUrl.StartsWith("magnet:"))
+ {
+ magnetUrl = remoteMovie.Release.DownloadUrl;
+ }
+ else
+ {
+ torrentUrl = remoteMovie.Release.DownloadUrl;
+ }
+
+ if (torrentInfo != null && !torrentInfo.MagnetUrl.IsNullOrWhiteSpace())
+ {
+ magnetUrl = torrentInfo.MagnetUrl;
+ }
+
+ if (PreferTorrentFile)
+ {
+ if (torrentUrl.IsNotNullOrWhiteSpace())
+ {
+ try
+ {
+ return DownloadFromWebUrl(remoteMovie, torrentUrl);
+ }
+ catch (Exception ex)
+ {
+ if (!magnetUrl.IsNullOrWhiteSpace())
+ {
+ throw;
+ }
+
+ _logger.Debug("Torrent download failed, trying magnet. ({0})", ex.Message);
+ }
+ }
+
+ if (magnetUrl.IsNotNullOrWhiteSpace())
+ {
+ try
+ {
+ return DownloadFromMagnetUrl(remoteMovie, magnetUrl);
+ }
+ catch (NotSupportedException ex)
+ {
+ throw new ReleaseDownloadException(remoteMovie.Release, "Magnet not supported by download client. ({0})", ex.Message);
+ }
+ }
+ }
+ else
+ {
+ if (magnetUrl.IsNotNullOrWhiteSpace())
+ {
+ try
+ {
+ return DownloadFromMagnetUrl(remoteMovie, magnetUrl);
+ }
+ catch (NotSupportedException ex)
+ {
+ if (torrentUrl.IsNullOrWhiteSpace())
+ {
+ throw new ReleaseDownloadException(remoteMovie.Release, "Magnet not supported by download client. ({0})", ex.Message);
+ }
+
+ _logger.Debug("Magnet not supported by download client, trying torrent. ({0})", ex.Message);
+ }
+ }
+
+ if (torrentUrl.IsNotNullOrWhiteSpace())
+ {
+ return DownloadFromWebUrl(remoteMovie, torrentUrl);
+ }
+ }
+
+ return null;
+ }
+
+ private string DownloadFromWebUrl(RemoteMovie remoteEpisode, string torrentUrl)
+ {
+ byte[] torrentFile = null;
+
+ try
+ {
+ var request = new HttpRequest(torrentUrl);
+ request.Headers.Accept = "application/x-bittorrent";
+ request.AllowAutoRedirect = false;
+
+ var response = _httpClient.Get(request);
+
+ if (response.StatusCode == HttpStatusCode.SeeOther || response.StatusCode == HttpStatusCode.Found)
+ {
+ var locationHeader = response.Headers.GetSingleValue("Location");
+
+ _logger.Trace("Torrent request is being redirected to: {0}", locationHeader);
+
+ if (locationHeader != null)
+ {
+ if (locationHeader.StartsWith("magnet:"))
+ {
+ return DownloadFromMagnetUrl(remoteEpisode, locationHeader);
+ }
+
+ return DownloadFromWebUrl(remoteEpisode, locationHeader);
+ }
+
+ throw new WebException("Remote website tried to redirect without providing a location.");
+ }
+
+ torrentFile = response.ResponseData;
+
+ _logger.Debug("Downloading torrent for episode '{0}' finished ({1} bytes from {2})", remoteEpisode.Release.Title, torrentFile.Length, torrentUrl);
+ }
+ catch (HttpException ex)
+ {
+ if ((int)ex.Response.StatusCode == 429)
+ {
+ _logger.Error("API Grab Limit reached for {0}", torrentUrl);
+ }
+ else
+ {
+ _logger.Error(ex, "Downloading torrent file for episode '{0}' failed ({1})", remoteEpisode.Release.Title, torrentUrl);
+ }
+
+ throw new ReleaseDownloadException(remoteEpisode.Release, "Downloading torrent failed", ex);
+ }
+ catch (WebException ex)
+ {
+ _logger.Error(ex, "Downloading torrent file for episode '{0}' failed ({1})", remoteEpisode.Release.Title, torrentUrl);
+
+ throw new ReleaseDownloadException(remoteEpisode.Release, "Downloading torrent failed", ex);
+ }
+
+ var filename = string.Format("{0}.torrent", FileNameBuilder.CleanFileName(remoteEpisode.Release.Title));
+ var hash = _torrentFileInfoReader.GetHashFromTorrentFile(torrentFile);
+ var actualHash = AddFromTorrentFile(remoteEpisode, hash, filename, torrentFile);
+
+ if (actualHash.IsNotNullOrWhiteSpace() && hash != actualHash)
+ {
+ _logger.Debug(
+ "{0} did not return the expected InfoHash for '{1}', Radarr could potentially lose track of the download in progress.",
+ Definition.Implementation, remoteEpisode.Release.DownloadUrl);
+ }
+
+ return actualHash;
+ }
+
+ private string DownloadFromMagnetUrl(RemoteMovie remoteEpisode, string magnetUrl)
+ {
+ string hash = null;
+ string actualHash = null;
+
+ try
+ {
+ hash = new MagnetLink(magnetUrl).InfoHash.ToHex();
+ }
+ catch (FormatException ex)
+ {
+ _logger.Error(ex, "Failed to parse magnetlink for episode '{0}': '{1}'", remoteEpisode.Release.Title, magnetUrl);
+
+ return null;
+ }
+
+ if (hash != null)
+ {
+ actualHash = AddFromMagnetLink(remoteEpisode, hash, magnetUrl);
+ }
+
+ if (actualHash.IsNotNullOrWhiteSpace() && hash != actualHash)
+ {
+ _logger.Debug(
+ "{0} did not return the expected InfoHash for '{1}', Radarr could potentially lose track of the download in progress.",
+ Definition.Implementation, remoteEpisode.Release.DownloadUrl);
+ }
+
+ return actualHash;
+ }
+
private string DownloadFromWebUrl(RemoteEpisode remoteEpisode, string torrentUrl)
{
byte[] torrentFile = null;
@@ -183,7 +371,7 @@ namespace NzbDrone.Core.Download
if (actualHash.IsNotNullOrWhiteSpace() && hash != actualHash)
{
_logger.Debug(
- "{0} did not return the expected InfoHash for '{1}', Sonarr could potentially lose track of the download in progress.",
+ "{0} did not return the expected InfoHash for '{1}', Radarr could potentially lose track of the download in progress.",
Definition.Implementation, remoteEpisode.Release.DownloadUrl);
}
@@ -214,7 +402,7 @@ namespace NzbDrone.Core.Download
if (actualHash.IsNotNullOrWhiteSpace() && hash != actualHash)
{
_logger.Debug(
- "{0} did not return the expected InfoHash for '{1}', Sonarr could potentially lose track of the download in progress.",
+ "{0} did not return the expected InfoHash for '{1}', Radarr could potentially lose track of the download in progress.",
Definition.Implementation, remoteEpisode.Release.DownloadUrl);
}
diff --git a/src/NzbDrone.Core/Download/TrackedDownloads/TrackedDownload.cs b/src/NzbDrone.Core/Download/TrackedDownloads/TrackedDownload.cs
index be012d57b..57ce35578 100644
--- a/src/NzbDrone.Core/Download/TrackedDownloads/TrackedDownload.cs
+++ b/src/NzbDrone.Core/Download/TrackedDownloads/TrackedDownload.cs
@@ -10,6 +10,7 @@ namespace NzbDrone.Core.Download.TrackedDownloads
public TrackedDownloadStage State { get; set; }
public TrackedDownloadStatus Status { get; private set; }
public RemoteEpisode RemoteEpisode { get; set; }
+ public RemoteMovie RemoteMovie { get; set; }
public TrackedDownloadStatusMessage[] StatusMessages { get; private set; }
public DownloadProtocol Protocol { get; set; }
diff --git a/src/NzbDrone.Core/Download/TrackedDownloads/TrackedDownloadService.cs b/src/NzbDrone.Core/Download/TrackedDownloads/TrackedDownloadService.cs
index 55ce7398d..01f87f07a 100644
--- a/src/NzbDrone.Core/Download/TrackedDownloads/TrackedDownloadService.cs
+++ b/src/NzbDrone.Core/Download/TrackedDownloads/TrackedDownloadService.cs
@@ -57,8 +57,14 @@ namespace NzbDrone.Core.Download.TrackedDownloads
try
{
var parsedEpisodeInfo = Parser.Parser.ParseTitle(trackedDownload.DownloadItem.Title);
+ var parsedMovieInfo = Parser.Parser.ParseMovieTitle(trackedDownload.DownloadItem.Title);
var historyItems = _historyService.FindByDownloadId(downloadItem.DownloadId);
+ if (parsedMovieInfo != null)
+ {
+ trackedDownload.RemoteMovie = _parsingService.Map(parsedMovieInfo, "", null);
+ }
+
if (parsedEpisodeInfo != null)
{
trackedDownload.RemoteEpisode = _parsingService.Map(parsedEpisodeInfo, 0, 0);
@@ -69,10 +75,10 @@ namespace NzbDrone.Core.Download.TrackedDownloads
var firstHistoryItem = historyItems.OrderByDescending(h => h.Date).First();
trackedDownload.State = GetStateFromHistory(firstHistoryItem.EventType);
- if (parsedEpisodeInfo == null ||
+ if ((parsedEpisodeInfo == null ||
trackedDownload.RemoteEpisode == null ||
trackedDownload.RemoteEpisode.Series == null ||
- trackedDownload.RemoteEpisode.Episodes.Empty())
+ trackedDownload.RemoteEpisode.Episodes.Empty()) && trackedDownload.RemoteMovie == null)
{
// Try parsing the original source title and if that fails, try parsing it as a special
// TODO: Pass the TVDB ID and TVRage IDs in as well so we have a better chance for finding the item
@@ -85,7 +91,7 @@ namespace NzbDrone.Core.Download.TrackedDownloads
}
}
- if (trackedDownload.RemoteEpisode == null)
+ if (trackedDownload.RemoteEpisode == null && trackedDownload.RemoteMovie == null)
{
return null;
}
diff --git a/src/NzbDrone.Core/Download/UsenetClientBase.cs b/src/NzbDrone.Core/Download/UsenetClientBase.cs
index a6c0ed7d5..0f2ea47de 100644
--- a/src/NzbDrone.Core/Download/UsenetClientBase.cs
+++ b/src/NzbDrone.Core/Download/UsenetClientBase.cs
@@ -1,4 +1,5 @@
using System.Net;
+using System;
using NzbDrone.Common.Disk;
using NzbDrone.Common.Http;
using NzbDrone.Core.Exceptions;
@@ -29,7 +30,9 @@ namespace NzbDrone.Core.Download
public override DownloadProtocol Protocol => DownloadProtocol.Usenet;
- protected abstract string AddFromNzbFile(RemoteEpisode remoteEpisode, string filename, byte[] fileContent);
+ protected abstract string AddFromNzbFile(RemoteEpisode remoteEpisode, string filename, byte[] fileContents);
+
+ protected abstract string AddFromNzbFile(RemoteMovie remoteMovie, string filename, byte[] fileContents);
public override string Download(RemoteEpisode remoteEpisode)
{
@@ -67,5 +70,42 @@ namespace NzbDrone.Core.Download
_logger.Info("Adding report [{0}] to the queue.", remoteEpisode.Release.Title);
return AddFromNzbFile(remoteEpisode, filename, nzbData);
}
+
+ public override string Download(RemoteMovie remoteEpisode)
+ {
+ var url = remoteEpisode.Release.DownloadUrl;
+ var filename = FileNameBuilder.CleanFileName(remoteEpisode.Release.Title) + ".nzb";
+
+ byte[] nzbData;
+
+ try
+ {
+ nzbData = _httpClient.Get(new HttpRequest(url)).ResponseData;
+
+ _logger.Debug("Downloaded nzb for episode '{0}' finished ({1} bytes from {2})", remoteEpisode.Release.Title, nzbData.Length, url);
+ }
+ catch (HttpException ex)
+ {
+ if ((int)ex.Response.StatusCode == 429)
+ {
+ _logger.Error("API Grab Limit reached for {0}", url);
+ }
+ else
+ {
+ _logger.Error(ex, "Downloading nzb for episode '{0}' failed ({1})", remoteEpisode.Release.Title, url);
+ }
+
+ throw new ReleaseDownloadException(remoteEpisode.Release, "Downloading nzb failed", ex);
+ }
+ catch (WebException ex)
+ {
+ _logger.Error(ex, "Downloading nzb for episode '{0}' failed ({1})", remoteEpisode.Release.Title, url);
+
+ throw new ReleaseDownloadException(remoteEpisode.Release, "Downloading nzb failed", ex);
+ }
+
+ _logger.Info("Adding report [{0}] to the queue.", remoteEpisode.Release.Title);
+ return AddFromNzbFile(remoteEpisode, filename, nzbData);
+ }
}
}
diff --git a/src/NzbDrone.Core/Exceptions/MovieNotFoundExceptions.cs b/src/NzbDrone.Core/Exceptions/MovieNotFoundExceptions.cs
new file mode 100644
index 000000000..c2345bd93
--- /dev/null
+++ b/src/NzbDrone.Core/Exceptions/MovieNotFoundExceptions.cs
@@ -0,0 +1,27 @@
+using NzbDrone.Common.Exceptions;
+
+namespace NzbDrone.Core.Exceptions
+{
+ public class MovieNotFoundException : NzbDroneException
+ {
+ public string ImdbId { get; set; }
+
+ public MovieNotFoundException(string imdbid)
+ : base(string.Format("Movie with imdbid {0} was not found, it may have been removed from IMDb.", imdbid))
+ {
+ ImdbId = imdbid;
+ }
+
+ public MovieNotFoundException(string imdbid, string message, params object[] args)
+ : base(message, args)
+ {
+ ImdbId = imdbid;
+ }
+
+ public MovieNotFoundException(string imdbid, string message)
+ : base(message)
+ {
+ ImdbId = imdbid;
+ }
+ }
+}
diff --git a/src/NzbDrone.Core/Extras/ExtraService.cs b/src/NzbDrone.Core/Extras/ExtraService.cs
index 5906de176..012e8f921 100644
--- a/src/NzbDrone.Core/Extras/ExtraService.cs
+++ b/src/NzbDrone.Core/Extras/ExtraService.cs
@@ -111,6 +111,18 @@ namespace NzbDrone.Core.Extras
}
}
+ //TODO: Implementing this will fix a lot of our warning exceptions
+ //public void Handle(MediaCoversUpdatedEvent message)
+ //{
+ // var movie = message.Movie;
+ // var movieFiles = GetMovieFiles(movie.Id);
+
+ // foreach (var extraFileManager in _extraFileManagers)
+ // {
+ // extraFileManager.CreateAfterMovieScan(movie, movieFiles);
+ // }
+ //}
+
public void Handle(EpisodeFolderCreatedEvent message)
{
var series = message.Series;
diff --git a/src/NzbDrone.Core/History/History.cs b/src/NzbDrone.Core/History/History.cs
index be35637c8..451e9b1d5 100644
--- a/src/NzbDrone.Core/History/History.cs
+++ b/src/NzbDrone.Core/History/History.cs
@@ -17,9 +17,11 @@ namespace NzbDrone.Core.History
public int EpisodeId { get; set; }
public int SeriesId { get; set; }
+ public int MovieId { get; set; }
public string SourceTitle { get; set; }
public QualityModel Quality { get; set; }
public DateTime Date { get; set; }
+ public Movie Movie { get; set; }
public Episode Episode { get; set; }
public Series Series { get; set; }
public HistoryEventType EventType { get; set; }
diff --git a/src/NzbDrone.Core/History/HistoryRepository.cs b/src/NzbDrone.Core/History/HistoryRepository.cs
index 35199a878..bc0a54a5a 100644
--- a/src/NzbDrone.Core/History/HistoryRepository.cs
+++ b/src/NzbDrone.Core/History/HistoryRepository.cs
@@ -1,4 +1,5 @@
-using System.Collections.Generic;
+using System;
+using System.Collections.Generic;
using System.Linq;
using Marr.Data.QGen;
using NzbDrone.Core.Datastore;
@@ -16,6 +17,7 @@ namespace NzbDrone.Core.History
List FindByDownloadId(string downloadId);
List FindDownloadHistory(int idSeriesId, QualityModel quality);
void DeleteForSeries(int seriesId);
+ History MostRecentForMovie(int movieId);
}
public class HistoryRepository : BasicRepository, IHistoryRepository
@@ -71,10 +73,20 @@ namespace NzbDrone.Core.History
protected override SortBuilder GetPagedQuery(QueryBuilder query, PagingSpec pagingSpec)
{
- var baseQuery = query.Join(JoinType.Inner, h => h.Series, (h, s) => h.SeriesId == s.Id)
- .Join(JoinType.Inner, h => h.Episode, (h, e) => h.EpisodeId == e.Id);
+ var baseQuery = query/*.Join(JoinType.Inner, h => h.Series, (h, s) => h.SeriesId == s.Id)
+ .Join(JoinType.Inner, h => h.Episode, (h, e) => h.EpisodeId == e.Id)*/
+ .Join(JoinType.Inner, h => h.Movie, (h, e) => h.MovieId == e.Id);
+
+
return base.GetPagedQuery(baseQuery, pagingSpec);
}
+
+ public History MostRecentForMovie(int movieId)
+ {
+ return Query.Where(h => h.MovieId == movieId)
+ .OrderByDescending(h => h.Date)
+ .FirstOrDefault();
+ }
}
}
\ No newline at end of file
diff --git a/src/NzbDrone.Core/History/HistoryService.cs b/src/NzbDrone.Core/History/HistoryService.cs
index 32815beef..634cf8b00 100644
--- a/src/NzbDrone.Core/History/HistoryService.cs
+++ b/src/NzbDrone.Core/History/HistoryService.cs
@@ -20,6 +20,7 @@ namespace NzbDrone.Core.History
{
QualityModel GetBestQualityInHistory(Profile profile, int episodeId);
PagingSpec Paged(PagingSpec pagingSpec);
+ History MostRecentForMovie(int movieId);
History MostRecentForEpisode(int episodeId);
History MostRecentForDownloadId(string downloadId);
History Get(int historyId);
@@ -29,6 +30,8 @@ namespace NzbDrone.Core.History
public class HistoryService : IHistoryService,
IHandle,
+ IHandle,
+ IHandle,
IHandle,
IHandle,
IHandle,
@@ -53,6 +56,11 @@ namespace NzbDrone.Core.History
return _historyRepository.MostRecentForEpisode(episodeId);
}
+ public History MostRecentForMovie(int movieId)
+ {
+ return _historyRepository.MostRecentForMovie(movieId);
+ }
+
public History MostRecentForDownloadId(string downloadId)
{
return _historyRepository.MostRecentForDownloadId(downloadId);
@@ -138,7 +146,8 @@ namespace NzbDrone.Core.History
SourceTitle = message.Episode.Release.Title,
SeriesId = episode.SeriesId,
EpisodeId = episode.Id,
- DownloadId = message.DownloadId
+ DownloadId = message.DownloadId,
+ MovieId = 0
};
history.Data.Add("Indexer", message.Episode.Release.Indexer);
@@ -172,6 +181,50 @@ namespace NzbDrone.Core.History
}
}
+ public void Handle(MovieGrabbedEvent message)
+ {
+ var history = new History
+ {
+ EventType = HistoryEventType.Grabbed,
+ Date = DateTime.UtcNow,
+ Quality = message.Movie.ParsedMovieInfo.Quality,
+ SourceTitle = message.Movie.Release.Title,
+ SeriesId = 0,
+ EpisodeId = 0,
+ DownloadId = message.DownloadId,
+ MovieId = message.Movie.Movie.Id
+ };
+
+ history.Data.Add("Indexer", message.Movie.Release.Indexer);
+ history.Data.Add("NzbInfoUrl", message.Movie.Release.InfoUrl);
+ history.Data.Add("ReleaseGroup", message.Movie.ParsedMovieInfo.ReleaseGroup);
+ history.Data.Add("Age", message.Movie.Release.Age.ToString());
+ history.Data.Add("AgeHours", message.Movie.Release.AgeHours.ToString());
+ history.Data.Add("AgeMinutes", message.Movie.Release.AgeMinutes.ToString());
+ history.Data.Add("PublishedDate", message.Movie.Release.PublishDate.ToString("s") + "Z");
+ history.Data.Add("DownloadClient", message.DownloadClient);
+ history.Data.Add("Size", message.Movie.Release.Size.ToString());
+ history.Data.Add("DownloadUrl", message.Movie.Release.DownloadUrl);
+ history.Data.Add("Guid", message.Movie.Release.Guid);
+ history.Data.Add("TvdbId", message.Movie.Release.TvdbId.ToString());
+ history.Data.Add("TvRageId", message.Movie.Release.TvRageId.ToString());
+ history.Data.Add("Protocol", ((int)message.Movie.Release.DownloadProtocol).ToString());
+
+ if (!message.Movie.ParsedMovieInfo.ReleaseHash.IsNullOrWhiteSpace())
+ {
+ history.Data.Add("ReleaseHash", message.Movie.ParsedMovieInfo.ReleaseHash);
+ }
+
+ var torrentRelease = message.Movie.Release as TorrentInfo;
+
+ if (torrentRelease != null)
+ {
+ history.Data.Add("TorrentInfoHash", torrentRelease.InfoHash);
+ }
+
+ _historyRepository.Insert(history);
+ }
+
public void Handle(EpisodeImportedEvent message)
{
if (!message.NewDownload)
@@ -189,15 +242,18 @@ namespace NzbDrone.Core.History
foreach (var episode in message.EpisodeInfo.Episodes)
{
var history = new History
- {
- EventType = HistoryEventType.DownloadFolderImported,
- Date = DateTime.UtcNow,
- Quality = message.EpisodeInfo.Quality,
- SourceTitle = message.ImportedEpisode.SceneName ?? Path.GetFileNameWithoutExtension(message.EpisodeInfo.Path),
- SeriesId = message.ImportedEpisode.SeriesId,
- EpisodeId = episode.Id,
- DownloadId = downloadId
- };
+ {
+ EventType = HistoryEventType.DownloadFolderImported,
+ Date = DateTime.UtcNow,
+ Quality = message.EpisodeInfo.Quality,
+ SourceTitle = message.ImportedEpisode.SceneName ?? Path.GetFileNameWithoutExtension(message.EpisodeInfo.Path),
+ SeriesId = message.ImportedEpisode.SeriesId,
+ EpisodeId = episode.Id,
+ DownloadId = downloadId,
+ MovieId = 0,
+
+
+ };
//Won't have a value since we publish this event before saving to DB.
//history.Data.Add("FileId", message.ImportedEpisode.Id.ToString());
@@ -209,6 +265,45 @@ namespace NzbDrone.Core.History
}
}
+ public void Handle(MovieImportedEvent message)
+ {
+ if (!message.NewDownload)
+ {
+ return;
+ }
+
+ var downloadId = message.DownloadId;
+
+ if (downloadId.IsNullOrWhiteSpace())
+ {
+ //downloadId = FindDownloadId(message); For now fuck off.
+ }
+
+ var movie = message.MovieInfo.Movie;
+ var history = new History
+ {
+ EventType = HistoryEventType.DownloadFolderImported,
+ Date = DateTime.UtcNow,
+ Quality = message.MovieInfo.Quality,
+ SourceTitle = movie.Title,
+ SeriesId = 0,
+ EpisodeId = 0,
+ DownloadId = downloadId,
+ MovieId = movie.Id,
+
+
+ };
+
+ //Won't have a value since we publish this event before saving to DB.
+ //history.Data.Add("FileId", message.ImportedEpisode.Id.ToString());
+ history.Data.Add("DroppedPath", message.MovieInfo.Path);
+ history.Data.Add("ImportedPath", Path.Combine(movie.Path, message.ImportedMovie.RelativePath));
+ history.Data.Add("DownloadClient", message.DownloadClient);
+
+ _historyRepository.Insert(history);
+
+ }
+
public void Handle(DownloadFailedEvent message)
{
foreach (var episodeId in message.EpisodeIds)
@@ -249,6 +344,7 @@ namespace NzbDrone.Core.History
SourceTitle = message.EpisodeFile.Path,
SeriesId = message.EpisodeFile.SeriesId,
EpisodeId = episode.Id,
+ MovieId = 0
};
history.Data.Add("Reason", message.Reason.ToString());
diff --git a/src/NzbDrone.Core/Housekeeping/Housekeepers/CleanupOrphanedHistoryItems.cs b/src/NzbDrone.Core/Housekeeping/Housekeepers/CleanupOrphanedHistoryItems.cs
index ca03130e6..e8ee88d68 100644
--- a/src/NzbDrone.Core/Housekeeping/Housekeepers/CleanupOrphanedHistoryItems.cs
+++ b/src/NzbDrone.Core/Housekeeping/Housekeepers/CleanupOrphanedHistoryItems.cs
@@ -13,8 +13,9 @@ namespace NzbDrone.Core.Housekeeping.Housekeepers
public void Clean()
{
- CleanupOrphanedBySeries();
- CleanupOrphanedByEpisode();
+ //CleanupOrphanedBySeries();
+ //CleanupOrphanedByEpisode();
+ CleanupOrphanedByMovie();
}
private void CleanupOrphanedBySeries()
@@ -29,6 +30,18 @@ namespace NzbDrone.Core.Housekeeping.Housekeepers
WHERE Series.Id IS NULL)");
}
+ private void CleanupOrphanedByMovie()
+ {
+ var mapper = _database.GetDataMapper();
+
+ mapper.ExecuteNonQuery(@"DELETE FROM History
+ WHERE Id IN (
+ SELECT History.Id FROM History
+ LEFT OUTER JOIN Movies
+ ON History.MovieId = Movies.Id
+ WHERE Movies.Id IS NULL)");
+ }
+
private void CleanupOrphanedByEpisode()
{
var mapper = _database.GetDataMapper();
diff --git a/src/NzbDrone.Core/IndexerSearch/Definitions/MovieSearchCriteria.cs b/src/NzbDrone.Core/IndexerSearch/Definitions/MovieSearchCriteria.cs
new file mode 100644
index 000000000..12f9baf1d
--- /dev/null
+++ b/src/NzbDrone.Core/IndexerSearch/Definitions/MovieSearchCriteria.cs
@@ -0,0 +1,11 @@
+namespace NzbDrone.Core.IndexerSearch.Definitions
+{
+ public class MovieSearchCriteria : SearchCriteriaBase
+ {
+
+ public override string ToString()
+ {
+ return string.Format("[{0}]", Movie.Title);
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/NzbDrone.Core/IndexerSearch/Definitions/SearchCriteriaBase.cs b/src/NzbDrone.Core/IndexerSearch/Definitions/SearchCriteriaBase.cs
index c5e602e59..937b27880 100644
--- a/src/NzbDrone.Core/IndexerSearch/Definitions/SearchCriteriaBase.cs
+++ b/src/NzbDrone.Core/IndexerSearch/Definitions/SearchCriteriaBase.cs
@@ -14,6 +14,8 @@ namespace NzbDrone.Core.IndexerSearch.Definitions
private static readonly Regex BeginningThe = new Regex(@"^the\s", RegexOptions.IgnoreCase | RegexOptions.Compiled);
public Series Series { get; set; }
+
+ public Movie Movie { get; set; }
public List SceneTitles { get; set; }
public List Episodes { get; set; }
public virtual bool MonitoredEpisodesOnly { get; set; }
diff --git a/src/NzbDrone.Core/IndexerSearch/MoviesSearchCommand.cs b/src/NzbDrone.Core/IndexerSearch/MoviesSearchCommand.cs
new file mode 100644
index 000000000..da0b9a8c1
--- /dev/null
+++ b/src/NzbDrone.Core/IndexerSearch/MoviesSearchCommand.cs
@@ -0,0 +1,11 @@
+using NzbDrone.Core.Messaging.Commands;
+
+namespace NzbDrone.Core.IndexerSearch
+{
+ public class MoviesSearchCommand : Command
+ {
+ public int MovieId { get; set; }
+
+ public override bool SendUpdatesToClient => true;
+ }
+}
\ No newline at end of file
diff --git a/src/NzbDrone.Core/IndexerSearch/MoviesSearchService.cs b/src/NzbDrone.Core/IndexerSearch/MoviesSearchService.cs
new file mode 100644
index 000000000..656423178
--- /dev/null
+++ b/src/NzbDrone.Core/IndexerSearch/MoviesSearchService.cs
@@ -0,0 +1,46 @@
+using System.Linq;
+using NLog;
+using NzbDrone.Common.Instrumentation.Extensions;
+using NzbDrone.Core.Download;
+using NzbDrone.Core.Messaging.Commands;
+using NzbDrone.Core.Tv;
+
+namespace NzbDrone.Core.IndexerSearch
+{
+ public class MovieSearchService : IExecute
+ {
+ private readonly IMovieService _seriesService;
+ private readonly ISearchForNzb _nzbSearchService;
+ private readonly IProcessDownloadDecisions _processDownloadDecisions;
+ private readonly Logger _logger;
+
+ public MovieSearchService(IMovieService seriesService,
+ ISearchForNzb nzbSearchService,
+ IProcessDownloadDecisions processDownloadDecisions,
+ Logger logger)
+ {
+ _seriesService = seriesService;
+ _nzbSearchService = nzbSearchService;
+ _processDownloadDecisions = processDownloadDecisions;
+ _logger = logger;
+ }
+
+ public void Execute(MoviesSearchCommand message)
+ {
+ var series = _seriesService.GetMovie(message.MovieId);
+
+ var downloadedCount = 0;
+
+ if (!series.Monitored)
+ {
+ _logger.Debug("Movie {0} is not monitored, skipping search", series.Title);
+ }
+
+ var decisions = _nzbSearchService.MovieSearch(message.MovieId, false);//_nzbSearchService.SeasonSearch(message.MovieId, season.SeasonNumber, false, message.Trigger == CommandTrigger.Manual);
+ downloadedCount += _processDownloadDecisions.ProcessDecisions(decisions).Grabbed.Count;
+
+
+ _logger.ProgressInfo("Movie search completed. {0} reports downloaded.", downloadedCount);
+ }
+ }
+}
diff --git a/src/NzbDrone.Core/IndexerSearch/NzbSearchService.cs b/src/NzbDrone.Core/IndexerSearch/NzbSearchService.cs
index cff3e290c..98865538e 100644
--- a/src/NzbDrone.Core/IndexerSearch/NzbSearchService.cs
+++ b/src/NzbDrone.Core/IndexerSearch/NzbSearchService.cs
@@ -1,4 +1,4 @@
-using System;
+using System;
using System.Collections.Generic;
using System.Globalization;
using System.Threading.Tasks;
@@ -19,6 +19,8 @@ namespace NzbDrone.Core.IndexerSearch
{
List EpisodeSearch(int episodeId, bool userInvokedSearch);
List EpisodeSearch(Episode episode, bool userInvokedSearch);
+ List MovieSearch(int movieId, bool userInvokedSearch);
+ List MovieSearch(Movie movie, bool userInvokedSearch);
List SeasonSearch(int seriesId, int seasonNumber, bool missingOnly, bool userInvokedSearch);
}
@@ -29,6 +31,7 @@ namespace NzbDrone.Core.IndexerSearch
private readonly ISeriesService _seriesService;
private readonly IEpisodeService _episodeService;
private readonly IMakeDownloadDecision _makeDownloadDecision;
+ private readonly IMovieService _movieService;
private readonly Logger _logger;
public NzbSearchService(IIndexerFactory indexerFactory,
@@ -36,6 +39,7 @@ namespace NzbDrone.Core.IndexerSearch
ISeriesService seriesService,
IEpisodeService episodeService,
IMakeDownloadDecision makeDownloadDecision,
+ IMovieService movieService,
Logger logger)
{
_indexerFactory = indexerFactory;
@@ -43,6 +47,7 @@ namespace NzbDrone.Core.IndexerSearch
_seriesService = seriesService;
_episodeService = episodeService;
_makeDownloadDecision = makeDownloadDecision;
+ _movieService = movieService;
_logger = logger;
}
@@ -53,6 +58,20 @@ namespace NzbDrone.Core.IndexerSearch
return EpisodeSearch(episode, userInvokedSearch);
}
+ public List MovieSearch(int movieId, bool userInvokedSearch)
+ {
+ var movie = _movieService.GetMovie(movieId);
+
+ return MovieSearch(movie, userInvokedSearch);
+ }
+
+ public List MovieSearch(Movie movie, bool userInvokedSearch)
+ {
+ var searchSpec = Get(movie, userInvokedSearch);
+
+ return Dispatch(indexer => indexer.Fetch(searchSpec), searchSpec);
+ }
+
public List EpisodeSearch(Episode episode, bool userInvokedSearch)
{
var series = _seriesService.GetSeries(episode.SeriesId);
@@ -230,21 +249,38 @@ namespace NzbDrone.Core.IndexerSearch
private TSpec Get(Series series, List episodes, bool userInvokedSearch) where TSpec : SearchCriteriaBase, new()
{
- var spec = new TSpec();
-
- spec.Series = series;
- spec.SceneTitles = _sceneMapping.GetSceneNames(series.TvdbId,
+ var spec = new TSpec()
+ {
+ Series = series,
+ SceneTitles = _sceneMapping.GetSceneNames(series.TvdbId,
episodes.Select(e => e.SeasonNumber).Distinct().ToList(),
- episodes.Select(e => e.SceneSeasonNumber ?? e.SeasonNumber).Distinct().ToList());
-
- spec.Episodes = episodes;
+ episodes.Select(e => e.SceneSeasonNumber ?? e.SeasonNumber).Distinct().ToList()),
+ Episodes = episodes
+ };
spec.SceneTitles.Add(series.Title);
spec.UserInvokedSearch = userInvokedSearch;
return spec;
}
+ private TSpec Get(Movie movie, bool userInvokedSearch) where TSpec : SearchCriteriaBase, new()
+ {
+ var spec = new TSpec()
+ {
+ Movie = movie,
+ /*spec.SceneTitles = _sceneMapping.GetSceneNames(series.TvdbId,
+ episodes.Select(e => e.SeasonNumber).Distinct().ToList(),
+ episodes.Select(e => e.SceneSeasonNumber ?? e.SeasonNumber).Distinct().ToList());
+
+ spec.Episodes = episodes;
+
+ spec.SceneTitles.Add(series.Title);*/
+ UserInvokedSearch = userInvokedSearch
+ };
+ return spec;
+ }
+
private List Dispatch(Func> searchAction, SearchCriteriaBase criteriaBase)
{
var indexers = _indexerFactory.SearchEnabled();
diff --git a/src/NzbDrone.Core/Indexers/AwesomeHD/AwesomeHD.cs b/src/NzbDrone.Core/Indexers/AwesomeHD/AwesomeHD.cs
new file mode 100644
index 000000000..afe7892a0
--- /dev/null
+++ b/src/NzbDrone.Core/Indexers/AwesomeHD/AwesomeHD.cs
@@ -0,0 +1,30 @@
+using NLog;
+using NzbDrone.Common.Http;
+using NzbDrone.Core.Configuration;
+using NzbDrone.Core.Parser;
+
+namespace NzbDrone.Core.Indexers.AwesomeHD
+{
+ public class AwesomeHD : HttpIndexerBase
+ {
+ public override string Name => "AwesomeHD";
+ public override DownloadProtocol Protocol => DownloadProtocol.Torrent;
+ public override bool SupportsRss => true;
+ public override bool SupportsSearch => true;
+ public override int PageSize => 50;
+
+ public AwesomeHD(IHttpClient httpClient, IIndexerStatusService indexerStatusService, IConfigService configService, IParsingService parsingService, Logger logger)
+ : base(httpClient, indexerStatusService, configService, parsingService, logger)
+ { }
+
+ public override IIndexerRequestGenerator GetRequestGenerator()
+ {
+ return new AwesomeHDRequestGenerator() { Settings = Settings };
+ }
+
+ public override IParseIndexerResponse GetParser()
+ {
+ return new AwesomeHDRssParser(Settings);
+ }
+ }
+}
diff --git a/src/NzbDrone.Core/Indexers/AwesomeHD/AwesomeHDApi.cs b/src/NzbDrone.Core/Indexers/AwesomeHD/AwesomeHDApi.cs
new file mode 100644
index 000000000..77744b4ac
--- /dev/null
+++ b/src/NzbDrone.Core/Indexers/AwesomeHD/AwesomeHDApi.cs
@@ -0,0 +1,80 @@
+using System;
+using Newtonsoft.Json;
+
+using System.Xml.Serialization;
+using System.Collections.Generic;
+
+namespace NzbDrone.Core.Indexers.AwesomeHD
+{
+ public class Torrent
+ {
+ [XmlElement(ElementName = "id")]
+ public string Id { get; set; }
+ [XmlElement(ElementName = "groupid")]
+ public string GroupId { get; set; }
+ [XmlElement(ElementName = "time")]
+ public DateTime Time { get; set; }
+ [XmlElement(ElementName = "userid")]
+ public string Userid { get; set; }
+ [XmlElement(ElementName = "size")]
+ public long Size { get; set; }
+ [XmlElement(ElementName = "snatched")]
+ public string Snatched { get; set; }
+ [XmlElement(ElementName = "seeders")]
+ public string Seeders { get; set; }
+ [XmlElement(ElementName = "leechers")]
+ public string Leechers { get; set; }
+ [XmlElement(ElementName = "releasegroup")]
+ public string Releasegroup { get; set; }
+ [XmlElement(ElementName = "resolution")]
+ public string Resolution { get; set; }
+ [XmlElement(ElementName = "media")]
+ public string Media { get; set; }
+ [XmlElement(ElementName = "format")]
+ public string Format { get; set; }
+ [XmlElement(ElementName = "encoding")]
+ public string Encoding { get; set; }
+ [XmlElement(ElementName = "audioformat")]
+ public string Audioformat { get; set; }
+ [XmlElement(ElementName = "audiobitrate")]
+ public string Audiobitrate { get; set; }
+ [XmlElement(ElementName = "audiochannels")]
+ public string Audiochannels { get; set; }
+ [XmlElement(ElementName = "subtitles")]
+ public string Subtitles { get; set; }
+ [XmlElement(ElementName = "encodestatus")]
+ public string Encodestatus { get; set; }
+ [XmlElement(ElementName = "freeleech")]
+ public string Freeleech { get; set; }
+ [XmlElement(ElementName = "cover")]
+ public string Cover { get; set; }
+ [XmlElement(ElementName = "smallcover")]
+ public string Smallcover { get; set; }
+ [XmlElement(ElementName = "year")]
+ public string Year { get; set; }
+ [XmlElement(ElementName = "name")]
+ public string Name { get; set; }
+ [XmlElement(ElementName = "imdb")]
+ public string Imdb { get; set; }
+ [XmlElement(ElementName = "type")]
+ public string Type { get; set; }
+ [XmlElement(ElementName = "plotoutline")]
+ public string Plotoutline { get; set; }
+ }
+
+ public class SearchResults
+ {
+ [XmlElement(ElementName = "authkey")]
+ public string AuthKey { get; set; }
+ [XmlElement(ElementName = "torrent")]
+ public List Torrent { get; set; }
+ }
+
+ public class AwesomeHDSearchResponse
+ {
+ [XmlElement(ElementName = "?xml")]
+ public string Xml { get; set; }
+ [XmlElement(ElementName = "searchresults")]
+ public SearchResults SearchResults { get; set; }
+ }
+}
diff --git a/src/NzbDrone.Core/Indexers/Torrentleech/TorrentleechRequestGenerator.cs b/src/NzbDrone.Core/Indexers/AwesomeHD/AwesomeHDRequestGenerator.cs
similarity index 50%
rename from src/NzbDrone.Core/Indexers/Torrentleech/TorrentleechRequestGenerator.cs
rename to src/NzbDrone.Core/Indexers/AwesomeHD/AwesomeHDRequestGenerator.cs
index ebfa73788..00289d7e4 100644
--- a/src/NzbDrone.Core/Indexers/Torrentleech/TorrentleechRequestGenerator.cs
+++ b/src/NzbDrone.Core/Indexers/AwesomeHD/AwesomeHDRequestGenerator.cs
@@ -1,18 +1,21 @@
-using System.Collections.Generic;
+using System;
+using System.Collections.Generic;
+using System.Linq;
using NzbDrone.Common.Http;
+using NzbDrone.Common.Serializer;
using NzbDrone.Core.IndexerSearch.Definitions;
-namespace NzbDrone.Core.Indexers.Torrentleech
+namespace NzbDrone.Core.Indexers.AwesomeHD
{
- public class TorrentleechRequestGenerator : IIndexerRequestGenerator
+ public class AwesomeHDRequestGenerator : IIndexerRequestGenerator
{
- public TorrentleechSettings Settings { get; set; }
-
+ public AwesomeHDSettings Settings { get; set; }
+
public virtual IndexerPageableRequestChain GetRecentRequests()
{
var pageableRequests = new IndexerPageableRequestChain();
- pageableRequests.Add(GetRssRequests(null));
+ pageableRequests.Add(GetRequest(null));
return pageableRequests;
}
@@ -22,16 +25,6 @@ namespace NzbDrone.Core.Indexers.Torrentleech
return new IndexerPageableRequestChain();
}
- public virtual IndexerPageableRequestChain GetSearchRequests(SeasonSearchCriteria searchCriteria)
- {
- return new IndexerPageableRequestChain();
- }
-
- public virtual IndexerPageableRequestChain GetSearchRequests(DailyEpisodeSearchCriteria searchCriteria)
- {
- return new IndexerPageableRequestChain();
- }
-
public virtual IndexerPageableRequestChain GetSearchRequests(AnimeEpisodeSearchCriteria searchCriteria)
{
return new IndexerPageableRequestChain();
@@ -42,9 +35,34 @@ namespace NzbDrone.Core.Indexers.Torrentleech
return new IndexerPageableRequestChain();
}
- private IEnumerable GetRssRequests(string searchParameters)
+ public virtual IndexerPageableRequestChain GetSearchRequests(DailyEpisodeSearchCriteria searchCriteria)
{
- yield return new IndexerRequest(string.Format("{0}/{1}{2}", Settings.BaseUrl.Trim().TrimEnd('/'), Settings.ApiKey, searchParameters), HttpAccept.Rss);
+ return new IndexerPageableRequestChain();
+ }
+
+ public virtual IndexerPageableRequestChain GetSearchRequests(SeasonSearchCriteria searchCriteria)
+ {
+ return new IndexerPageableRequestChain();
+ }
+
+ public IndexerPageableRequestChain GetSearchRequests(MovieSearchCriteria searchCriteria)
+ {
+ var pageableRequests = new IndexerPageableRequestChain();
+ pageableRequests.Add(GetRequest(searchCriteria.Movie.ImdbId));
+ return pageableRequests;
+ }
+
+ private IEnumerable GetRequest(string searchParameters)
+ {
+ if (searchParameters != null)
+ {
+ yield return new IndexerRequest(string.Format("{0}/searchapi.php?action=imdbsearch&passkey={1}&imdb={2}", Settings.BaseUrl.Trim().TrimEnd('/'), Settings.Passkey.Trim(), searchParameters), HttpAccept.Rss);
+ }
+ else
+ {
+ yield return new IndexerRequest(string.Format("{0}/searchapi.php?action=latestmovies&passkey={1}", Settings.BaseUrl.Trim().TrimEnd('/'), Settings.Passkey.Trim()), HttpAccept.Rss);
+ }
+
}
}
}
diff --git a/src/NzbDrone.Core/Indexers/AwesomeHD/AwesomeHDRssParser.cs b/src/NzbDrone.Core/Indexers/AwesomeHD/AwesomeHDRssParser.cs
new file mode 100644
index 000000000..e7a2632a0
--- /dev/null
+++ b/src/NzbDrone.Core/Indexers/AwesomeHD/AwesomeHDRssParser.cs
@@ -0,0 +1,92 @@
+using System.Collections.Generic;
+using System.Net;
+using Newtonsoft.Json;
+using Newtonsoft.Json.Linq;
+using NzbDrone.Common.Http;
+using NzbDrone.Core.Indexers.Exceptions;
+using NzbDrone.Core.Parser.Model;
+using System;
+using System.Linq;
+using System.Xml;
+
+namespace NzbDrone.Core.Indexers.AwesomeHD
+{
+ public class AwesomeHDRssParser : IParseIndexerResponse
+ {
+ private readonly AwesomeHDSettings _settings;
+
+ public AwesomeHDRssParser(AwesomeHDSettings settings)
+ {
+ _settings = settings;
+ }
+
+ public IList ParseResponse(IndexerResponse indexerResponse)
+ {
+ var torrentInfos = new List();
+
+ if (indexerResponse.HttpResponse.StatusCode != HttpStatusCode.OK)
+ {
+ throw new IndexerException(indexerResponse,
+ "Unexpected response status {0} code from API request",
+ indexerResponse.HttpResponse.StatusCode);
+ }
+
+ // Hacky ¯\_(ツ)_/¯
+ XmlDocument doc = new XmlDocument();
+ doc.LoadXml(indexerResponse.Content);
+
+ var json = JsonConvert.SerializeXmlNode(doc);
+
+ Console.WriteLine(json);
+
+ var jsonResponse = JsonConvert.DeserializeObject(json);
+
+ if (jsonResponse == null)
+ {
+ throw new IndexerException(indexerResponse, "Unexpected response from request");
+ }
+
+ foreach (var torrent in jsonResponse.SearchResults.Torrent)
+ {
+ var id = torrent.Id;
+ var title = $"{torrent.Name}.{torrent.Year}.{torrent.Resolution}.{torrent.Media}.{torrent.Encoding}.{torrent.Audioformat}-{torrent.Releasegroup}";
+
+ torrentInfos.Add(new TorrentInfo()
+ {
+ Guid = string.Format("AwesomeHD-{0}", id),
+ Title = title,
+ Size = torrent.Size,
+ DownloadUrl = GetDownloadUrl(id, jsonResponse.SearchResults.AuthKey, _settings.Passkey),
+ InfoUrl = GetInfoUrl(torrent.GroupId, id),
+ Seeders = int.Parse(torrent.Seeders),
+ Peers = int.Parse(torrent.Leechers) + int.Parse(torrent.Seeders),
+ PublishDate = torrent.Time.ToUniversalTime()
+ });
+ }
+
+ return torrentInfos.OrderByDescending(o => ((dynamic)o).Seeders).ToArray();
+ }
+
+ private string GetDownloadUrl(string torrentId, string authKey, string passKey)
+ {
+ var url = new HttpUri(_settings.BaseUrl)
+ .CombinePath("/torrents.php")
+ .AddQueryParam("action", "download")
+ .AddQueryParam("id", torrentId)
+ .AddQueryParam("authkey", authKey)
+ .AddQueryParam("torrent_pass", passKey);
+
+ return url.FullUri;
+ }
+
+ private string GetInfoUrl(string groupId, string torrentId)
+ {
+ var url = new HttpUri(_settings.BaseUrl)
+ .CombinePath("/torrents.php")
+ .AddQueryParam("id", groupId)
+ .AddQueryParam("torrentid", torrentId);
+
+ return url.FullUri;
+ }
+ }
+}
diff --git a/src/NzbDrone.Core/Indexers/AwesomeHD/AwesomeHDSettings.cs b/src/NzbDrone.Core/Indexers/AwesomeHD/AwesomeHDSettings.cs
new file mode 100644
index 000000000..3c6f525c4
--- /dev/null
+++ b/src/NzbDrone.Core/Indexers/AwesomeHD/AwesomeHDSettings.cs
@@ -0,0 +1,37 @@
+using FluentValidation;
+using NzbDrone.Core.Annotations;
+using NzbDrone.Core.ThingiProvider;
+using NzbDrone.Core.Validation;
+
+namespace NzbDrone.Core.Indexers.AwesomeHD
+{
+ public class AwesomeHDSettingsValidator : AbstractValidator
+ {
+ public AwesomeHDSettingsValidator()
+ {
+ RuleFor(c => c.BaseUrl).ValidRootUrl();
+ RuleFor(c => c.Passkey).NotEmpty();
+ }
+ }
+
+ public class AwesomeHDSettings : IProviderConfig
+ {
+ private static readonly AwesomeHDSettingsValidator Validator = new AwesomeHDSettingsValidator();
+
+ public AwesomeHDSettings()
+ {
+ BaseUrl = "https://awesome-hd.me";
+ }
+
+ [FieldDefinition(0, Label = "API URL", Advanced = true, HelpText = "Do not change this unless you know what you're doing. Since you Passkey will be sent to that host.")]
+ public string BaseUrl { get; set; }
+
+ [FieldDefinition(1, Label = "Passkey")]
+ public string Passkey { get; set; }
+
+ public NzbDroneValidationResult Validate()
+ {
+ return new NzbDroneValidationResult(Validator.Validate(this));
+ }
+ }
+}
diff --git a/src/NzbDrone.Core/Indexers/BitMeTv/BitMeTv.cs b/src/NzbDrone.Core/Indexers/BitMeTv/BitMeTv.cs
deleted file mode 100644
index d6bfec2fb..000000000
--- a/src/NzbDrone.Core/Indexers/BitMeTv/BitMeTv.cs
+++ /dev/null
@@ -1,32 +0,0 @@
-using NzbDrone.Common.Http;
-using NzbDrone.Core.Configuration;
-using NLog;
-using NzbDrone.Core.Parser;
-
-namespace NzbDrone.Core.Indexers.BitMeTv
-{
- public class BitMeTv : HttpIndexerBase
- {
- public override string Name => "BitMeTV";
-
- public override DownloadProtocol Protocol => DownloadProtocol.Torrent;
- public override bool SupportsSearch => false;
- public override int PageSize => 0;
-
- public BitMeTv(IHttpClient httpClient, IIndexerStatusService indexerStatusService, IConfigService configService, IParsingService parsingService, Logger logger)
- : base(httpClient, indexerStatusService, configService, parsingService, logger)
- {
-
- }
-
- public override IIndexerRequestGenerator GetRequestGenerator()
- {
- return new BitMeTvRequestGenerator() { Settings = Settings };
- }
-
- public override IParseIndexerResponse GetParser()
- {
- return new TorrentRssParser() { ParseSizeInDescription = true };
- }
- }
-}
\ No newline at end of file
diff --git a/src/NzbDrone.Core/Indexers/BitMeTv/BitMeTvSettings.cs b/src/NzbDrone.Core/Indexers/BitMeTv/BitMeTvSettings.cs
deleted file mode 100644
index 6e48f46de..000000000
--- a/src/NzbDrone.Core/Indexers/BitMeTv/BitMeTvSettings.cs
+++ /dev/null
@@ -1,52 +0,0 @@
-using System.Text.RegularExpressions;
-using FluentValidation;
-using NzbDrone.Core.Annotations;
-using NzbDrone.Core.ThingiProvider;
-using NzbDrone.Core.Validation;
-
-namespace NzbDrone.Core.Indexers.BitMeTv
-{
- public class BitMeTvSettingsValidator : AbstractValidator
- {
- public BitMeTvSettingsValidator()
- {
- RuleFor(c => c.BaseUrl).ValidRootUrl();
- RuleFor(c => c.UserId).NotEmpty();
- RuleFor(c => c.RssPasskey).NotEmpty();
-
- RuleFor(c => c.Cookie).NotEmpty();
-
- RuleFor(c => c.Cookie)
- .Matches(@"pass=[0-9a-f]{32}", RegexOptions.IgnoreCase)
- .WithMessage("Wrong pattern")
- .AsWarning();
- }
- }
-
- public class BitMeTvSettings : IProviderConfig
- {
- private static readonly BitMeTvSettingsValidator Validator = new BitMeTvSettingsValidator();
-
- public BitMeTvSettings()
- {
- BaseUrl = "https://www.bitmetv.org";
- }
-
- [FieldDefinition(0, Label = "Website URL")]
- public string BaseUrl { get; set; }
-
- [FieldDefinition(1, Label = "UserId")]
- public string UserId { get; set; }
-
- [FieldDefinition(2, Label = "RSS Passkey")]
- public string RssPasskey { get; set; }
-
- [FieldDefinition(3, Label = "Cookie", HelpText = "BitMeTv uses a login cookie needed to access the rss, you'll have to retrieve it via a browser.")]
- public string Cookie { get; set; }
-
- public NzbDroneValidationResult Validate()
- {
- return new NzbDroneValidationResult(Validator.Validate(this));
- }
- }
-}
\ No newline at end of file
diff --git a/src/NzbDrone.Core/Indexers/BroadcastheNet/BroadcastheNet.cs b/src/NzbDrone.Core/Indexers/BroadcastheNet/BroadcastheNet.cs
deleted file mode 100644
index fec611710..000000000
--- a/src/NzbDrone.Core/Indexers/BroadcastheNet/BroadcastheNet.cs
+++ /dev/null
@@ -1,45 +0,0 @@
-using NLog;
-using NzbDrone.Common.Http;
-using NzbDrone.Core.Configuration;
-using NzbDrone.Core.Parser;
-
-namespace NzbDrone.Core.Indexers.BroadcastheNet
-{
- public class BroadcastheNet : HttpIndexerBase
- {
- public override string Name => "BroadcastheNet";
-
- public override DownloadProtocol Protocol => DownloadProtocol.Torrent;
- public override bool SupportsRss => true;
- public override bool SupportsSearch => true;
- public override int PageSize => 100;
-
- public BroadcastheNet(IHttpClient httpClient, IIndexerStatusService indexerStatusService, IConfigService configService, IParsingService parsingService, Logger logger)
- : base(httpClient, indexerStatusService, configService, parsingService, logger)
- {
-
- }
-
- public override IIndexerRequestGenerator GetRequestGenerator()
- {
- var requestGenerator = new BroadcastheNetRequestGenerator() { Settings = Settings, PageSize = PageSize };
-
- var releaseInfo = _indexerStatusService.GetLastRssSyncReleaseInfo(Definition.Id);
- if (releaseInfo != null)
- {
- int torrentID;
- if (int.TryParse(releaseInfo.Guid.Replace("BTN-", string.Empty), out torrentID))
- {
- requestGenerator.LastRecentTorrentID = torrentID;
- }
- }
-
- return requestGenerator;
- }
-
- public override IParseIndexerResponse GetParser()
- {
- return new BroadcastheNetParser();
- }
- }
-}
diff --git a/src/NzbDrone.Core/Indexers/BroadcastheNet/BroadcastheNetParser.cs b/src/NzbDrone.Core/Indexers/BroadcastheNet/BroadcastheNetParser.cs
deleted file mode 100644
index 9d126da54..000000000
--- a/src/NzbDrone.Core/Indexers/BroadcastheNet/BroadcastheNetParser.cs
+++ /dev/null
@@ -1,91 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Net;
-using System.Text.RegularExpressions;
-using NzbDrone.Common.Http;
-using NzbDrone.Core.Indexers.Exceptions;
-using NzbDrone.Core.Parser.Model;
-
-namespace NzbDrone.Core.Indexers.BroadcastheNet
-{
- public class BroadcastheNetParser : IParseIndexerResponse
- {
- private static readonly Regex RegexProtocol = new Regex("^https?:", RegexOptions.Compiled);
-
- public IList ParseResponse(IndexerResponse indexerResponse)
- {
- var results = new List();
-
- switch (indexerResponse.HttpResponse.StatusCode)
- {
- case HttpStatusCode.Unauthorized:
- throw new ApiKeyException("API Key invalid or not authorized");
- case HttpStatusCode.NotFound:
- throw new IndexerException(indexerResponse, "Indexer API call returned NotFound, the Indexer API may have changed.");
- case HttpStatusCode.ServiceUnavailable:
- throw new RequestLimitReachedException("Cannot do more than 150 API requests per hour.");
- default:
- if (indexerResponse.HttpResponse.StatusCode != HttpStatusCode.OK)
- {
- throw new IndexerException(indexerResponse, "Indexer API call returned an unexpected StatusCode [{0}]", indexerResponse.HttpResponse.StatusCode);
- }
- break;
- }
-
- if (indexerResponse.Content == "Query execution was interrupted")
- {
- throw new IndexerException(indexerResponse, "Indexer API returned an internal server error");
- }
-
-
- JsonRpcResponse jsonResponse = new HttpResponse>(indexerResponse.HttpResponse).Resource;
-
- if (jsonResponse.Error != null || jsonResponse.Result == null)
- {
- throw new IndexerException(indexerResponse, "Indexer API call returned an error [{0}]", jsonResponse.Error);
- }
-
- if (jsonResponse.Result.Results == 0)
- {
- return results;
- }
-
- var protocol = indexerResponse.HttpRequest.Url.Scheme + ":";
-
- foreach (var torrent in jsonResponse.Result.Torrents.Values)
- {
- var torrentInfo = new TorrentInfo();
-
- torrentInfo.Guid = string.Format("BTN-{0}", torrent.TorrentID);
- torrentInfo.Title = torrent.ReleaseName;
- torrentInfo.Size = torrent.Size;
- torrentInfo.DownloadUrl = RegexProtocol.Replace(torrent.DownloadURL, protocol);
- torrentInfo.InfoUrl = string.Format("{0}//broadcasthe.net/torrents.php?id={1}&torrentid={2}", protocol, torrent.GroupID, torrent.TorrentID);
- //torrentInfo.CommentUrl =
- if (torrent.TvdbID.HasValue)
- {
- torrentInfo.TvdbId = torrent.TvdbID.Value;
- }
- if (torrent.TvrageID.HasValue)
- {
- torrentInfo.TvRageId = torrent.TvrageID.Value;
- }
- torrentInfo.PublishDate = new DateTime(1970, 1, 1, 0, 0, 0, 0, DateTimeKind.Utc).ToUniversalTime().AddSeconds(torrent.Time);
- //torrentInfo.MagnetUrl =
- torrentInfo.InfoHash = torrent.InfoHash;
- torrentInfo.Seeders = torrent.Seeders;
- torrentInfo.Peers = torrent.Leechers + torrent.Seeders;
-
- torrentInfo.Origin = torrent.Origin;
- torrentInfo.Source = torrent.Source;
- torrentInfo.Container = torrent.Container;
- torrentInfo.Codec = torrent.Codec;
- torrentInfo.Resolution = torrent.Resolution;
-
- results.Add(torrentInfo);
- }
-
- return results;
- }
- }
-}
diff --git a/src/NzbDrone.Core/Indexers/BroadcastheNet/BroadcastheNetRequestGenerator.cs b/src/NzbDrone.Core/Indexers/BroadcastheNet/BroadcastheNetRequestGenerator.cs
deleted file mode 100644
index b5a39a94c..000000000
--- a/src/NzbDrone.Core/Indexers/BroadcastheNet/BroadcastheNetRequestGenerator.cs
+++ /dev/null
@@ -1,193 +0,0 @@
-using System.Linq;
-using System.Collections.Generic;
-using NzbDrone.Common.Http;
-using NzbDrone.Core.IndexerSearch.Definitions;
-
-namespace NzbDrone.Core.Indexers.BroadcastheNet
-{
- public class BroadcastheNetRequestGenerator : IIndexerRequestGenerator
- {
- public int MaxPages { get; set; }
- public int PageSize { get; set; }
- public BroadcastheNetSettings Settings { get; set; }
-
- public int? LastRecentTorrentID { get; set; }
-
- public BroadcastheNetRequestGenerator()
- {
- MaxPages = 10;
- PageSize = 100;
- }
-
- public virtual IndexerPageableRequestChain GetRecentRequests()
- {
- var pageableRequests = new IndexerPageableRequestChain();
-
- if (LastRecentTorrentID.HasValue)
- {
- pageableRequests.Add(GetPagedRequests(MaxPages, new BroadcastheNetTorrentQuery()
- {
- Id = ">=" + (LastRecentTorrentID.Value - 100)
- }));
- }
-
- pageableRequests.AddTier(GetPagedRequests(MaxPages, new BroadcastheNetTorrentQuery()
- {
- Age = "<=86400"
- }));
-
- return pageableRequests;
- }
-
- public virtual IndexerPageableRequestChain GetSearchRequests(SingleEpisodeSearchCriteria searchCriteria)
- {
- var pageableRequests = new IndexerPageableRequestChain();
-
- var parameters = new BroadcastheNetTorrentQuery();
- if (AddSeriesSearchParameters(parameters, searchCriteria))
- {
- foreach (var episode in searchCriteria.Episodes)
- {
- parameters = parameters.Clone();
-
- parameters.Category = "Episode";
- parameters.Name = string.Format("S{0:00}%E{1:00}%", episode.SeasonNumber, episode.EpisodeNumber);
-
- pageableRequests.Add(GetPagedRequests(MaxPages, parameters));
- }
-
- foreach (var seasonNumber in searchCriteria.Episodes.Select(v => v.SeasonNumber).Distinct())
- {
- parameters = parameters.Clone();
-
- parameters.Category = "Season";
- parameters.Name = string.Format("Season {0}", seasonNumber);
-
- pageableRequests.Add(GetPagedRequests(MaxPages, parameters));
- }
- }
-
- return pageableRequests;
- }
-
- public virtual IndexerPageableRequestChain GetSearchRequests(SeasonSearchCriteria searchCriteria)
- {
- var pageableRequests = new IndexerPageableRequestChain();
-
- var parameters = new BroadcastheNetTorrentQuery();
- if (AddSeriesSearchParameters(parameters, searchCriteria))
- {
- foreach (var seasonNumber in searchCriteria.Episodes.Select(v => v.SeasonNumber).Distinct())
- {
- parameters.Category = "Season";
- parameters.Name = string.Format("Season {0}", seasonNumber);
-
- pageableRequests.Add(GetPagedRequests(MaxPages, parameters));
-
- parameters = parameters.Clone();
-
- parameters.Category = "Episode";
- parameters.Name = string.Format("S{0:00}E%", seasonNumber);
-
- pageableRequests.Add(GetPagedRequests(MaxPages, parameters));
- }
- }
-
- return pageableRequests;
- }
-
- public virtual IndexerPageableRequestChain GetSearchRequests(DailyEpisodeSearchCriteria searchCriteria)
- {
- var pageableRequests = new IndexerPageableRequestChain();
-
- var parameters = new BroadcastheNetTorrentQuery();
- if (AddSeriesSearchParameters(parameters, searchCriteria))
- {
- parameters.Category = "Episode";
- parameters.Name = string.Format("{0:yyyy}.{0:MM}.{0:dd}", searchCriteria.AirDate);
-
- pageableRequests.Add(GetPagedRequests(MaxPages, parameters));
-
- pageableRequests.AddTier();
-
- foreach (var episode in searchCriteria.Episodes)
- {
- parameters = parameters.Clone();
-
- parameters.Category = "Episode";
- parameters.Name = string.Format("S{0:00}E{1:00}", episode.SeasonNumber, episode.EpisodeNumber);
-
- pageableRequests.Add(GetPagedRequests(MaxPages, parameters));
- }
- }
-
- return pageableRequests;
- }
-
- public virtual IndexerPageableRequestChain GetSearchRequests(AnimeEpisodeSearchCriteria searchCriteria)
- {
- var pageableRequests = new IndexerPageableRequestChain();
-
- var parameters = new BroadcastheNetTorrentQuery();
- if (AddSeriesSearchParameters(parameters, searchCriteria))
- {
- foreach (var episode in searchCriteria.Episodes)
- {
- parameters = parameters.Clone();
-
- parameters.Category = "Episode";
- parameters.Name = string.Format("S{0:00}E{1:00}", episode.SeasonNumber, episode.EpisodeNumber);
-
- pageableRequests.Add(GetPagedRequests(MaxPages, parameters));
- }
-
- foreach (var seasonNumber in searchCriteria.Episodes.Select(v => v.SeasonNumber).Distinct())
- {
- parameters = parameters.Clone();
-
- parameters.Category = "Season";
- parameters.Name = string.Format("Season {0}", seasonNumber);
-
- pageableRequests.Add(GetPagedRequests(MaxPages, parameters));
- }
- }
-
- return pageableRequests;
- }
-
- public virtual IndexerPageableRequestChain GetSearchRequests(SpecialEpisodeSearchCriteria searchCriteria)
- {
- return new IndexerPageableRequestChain();
- }
-
- private bool AddSeriesSearchParameters(BroadcastheNetTorrentQuery parameters, SearchCriteriaBase searchCriteria)
- {
- if (searchCriteria.Series.TvdbId != 0)
- {
- parameters.Tvdb = string.Format("{0}", searchCriteria.Series.TvdbId);
- return true;
- }
- if (searchCriteria.Series.TvRageId != 0)
- {
- parameters.Tvrage = string.Format("{0}", searchCriteria.Series.TvRageId);
- return true;
- }
- // BTN is very neatly managed, so it's unlikely they map tvrage/tvdb wrongly.
- return false;
- }
-
- private IEnumerable GetPagedRequests(int maxPages, BroadcastheNetTorrentQuery parameters)
- {
- var builder = new JsonRpcRequestBuilder(Settings.BaseUrl)
- .Call("getTorrents", Settings.ApiKey, parameters, PageSize, 0);
- builder.SuppressHttpError = true;
-
- for (var page = 0; page < maxPages; page++)
- {
- builder.JsonParameters[3] = page * PageSize;
-
- yield return new IndexerRequest(builder.Build());
- }
- }
- }
-}
diff --git a/src/NzbDrone.Core/Indexers/BroadcastheNet/BroadcastheNetSettings.cs b/src/NzbDrone.Core/Indexers/BroadcastheNet/BroadcastheNetSettings.cs
deleted file mode 100644
index ba3d2f969..000000000
--- a/src/NzbDrone.Core/Indexers/BroadcastheNet/BroadcastheNetSettings.cs
+++ /dev/null
@@ -1,37 +0,0 @@
-using FluentValidation;
-using NzbDrone.Core.Annotations;
-using NzbDrone.Core.ThingiProvider;
-using NzbDrone.Core.Validation;
-
-namespace NzbDrone.Core.Indexers.BroadcastheNet
-{
- public class BroadcastheNetSettingsValidator : AbstractValidator
- {
- public BroadcastheNetSettingsValidator()
- {
- RuleFor(c => c.BaseUrl).ValidRootUrl();
- RuleFor(c => c.ApiKey).NotEmpty();
- }
- }
-
- public class BroadcastheNetSettings : IProviderConfig
- {
- private static readonly BroadcastheNetSettingsValidator Validator = new BroadcastheNetSettingsValidator();
-
- public BroadcastheNetSettings()
- {
- BaseUrl = "http://api.btnapps.net/";
- }
-
- [FieldDefinition(0, Label = "API URL", Advanced = true, HelpText = "Do not change this unless you know what you're doing. Since your API key will be sent to that host.")]
- public string BaseUrl { get; set; }
-
- [FieldDefinition(1, Label = "API Key")]
- public string ApiKey { get; set; }
-
- public NzbDroneValidationResult Validate()
- {
- return new NzbDroneValidationResult(Validator.Validate(this));
- }
- }
-}
\ No newline at end of file
diff --git a/src/NzbDrone.Core/Indexers/BroadcastheNet/BroadcastheNetTorrent.cs b/src/NzbDrone.Core/Indexers/BroadcastheNet/BroadcastheNetTorrent.cs
deleted file mode 100644
index fd33c3bac..000000000
--- a/src/NzbDrone.Core/Indexers/BroadcastheNet/BroadcastheNetTorrent.cs
+++ /dev/null
@@ -1,31 +0,0 @@
-namespace NzbDrone.Core.Indexers.BroadcastheNet
-{
- public class BroadcastheNetTorrent
- {
- public string GroupName { get; set; }
- public int GroupID { get; set; }
- public int TorrentID { get; set; }
- public int SeriesID { get; set; }
- public string Series { get; set; }
- public string SeriesBanner { get; set; }
- public string SeriesPoster { get; set; }
- public string YoutubeTrailer { get; set; }
- public string Category { get; set; }
- public int? Snatched { get; set; }
- public int? Seeders { get; set; }
- public int? Leechers { get; set; }
- public string Source { get; set; }
- public string Container { get; set; }
- public string Codec { get; set; }
- public string Resolution { get; set; }
- public string Origin { get; set; }
- public string ReleaseName { get; set; }
- public long Size { get; set; }
- public long Time { get; set; }
- public int? TvdbID { get; set; }
- public int? TvrageID { get; set; }
- public string ImdbID { get; set; }
- public string InfoHash { get; set; }
- public string DownloadURL { get; set; }
- }
-}
diff --git a/src/NzbDrone.Core/Indexers/BroadcastheNet/BroadcastheNetTorrentQuery.cs b/src/NzbDrone.Core/Indexers/BroadcastheNet/BroadcastheNetTorrentQuery.cs
deleted file mode 100644
index 1180f9b63..000000000
--- a/src/NzbDrone.Core/Indexers/BroadcastheNet/BroadcastheNetTorrentQuery.cs
+++ /dev/null
@@ -1,39 +0,0 @@
-using Newtonsoft.Json;
-
-namespace NzbDrone.Core.Indexers.BroadcastheNet
-{
- public class BroadcastheNetTorrentQuery
- {
- [JsonProperty(DefaultValueHandling = DefaultValueHandling.Ignore)]
- public string Id { get; set; }
- [JsonProperty(DefaultValueHandling = DefaultValueHandling.Ignore)]
- public string Category { get; set; }
- [JsonProperty(DefaultValueHandling = DefaultValueHandling.Ignore)]
- public string Name { get; set; }
- [JsonProperty(DefaultValueHandling = DefaultValueHandling.Ignore)]
- public string Search { get; set; }
- [JsonProperty(DefaultValueHandling = DefaultValueHandling.Ignore)]
- public string Codec { get; set; }
- [JsonProperty(DefaultValueHandling = DefaultValueHandling.Ignore)]
- public string Container { get; set; }
- [JsonProperty(DefaultValueHandling = DefaultValueHandling.Ignore)]
- public string Source { get; set; }
- [JsonProperty(DefaultValueHandling = DefaultValueHandling.Ignore)]
- public string Resolution { get; set; }
- [JsonProperty(DefaultValueHandling = DefaultValueHandling.Ignore)]
- public string Origin { get; set; }
- [JsonProperty(DefaultValueHandling = DefaultValueHandling.Ignore)]
- public string Hash { get; set; }
- [JsonProperty(DefaultValueHandling = DefaultValueHandling.Ignore)]
- public string Tvdb { get; set; }
- [JsonProperty(DefaultValueHandling = DefaultValueHandling.Ignore)]
- public string Tvrage { get; set; }
- [JsonProperty(DefaultValueHandling = DefaultValueHandling.Ignore)]
- public string Age { get; set; }
-
- public BroadcastheNetTorrentQuery Clone()
- {
- return MemberwiseClone() as BroadcastheNetTorrentQuery;
- }
- }
-}
diff --git a/src/NzbDrone.Core/Indexers/BroadcastheNet/BroadcastheNetTorrents.cs b/src/NzbDrone.Core/Indexers/BroadcastheNet/BroadcastheNetTorrents.cs
deleted file mode 100644
index f9329e7ea..000000000
--- a/src/NzbDrone.Core/Indexers/BroadcastheNet/BroadcastheNetTorrents.cs
+++ /dev/null
@@ -1,10 +0,0 @@
-using System.Collections.Generic;
-
-namespace NzbDrone.Core.Indexers.BroadcastheNet
-{
- public class BroadcastheNetTorrents
- {
- public Dictionary Torrents { get; set; }
- public int Results { get; set; }
- }
-}
diff --git a/src/NzbDrone.Core/Indexers/Fanzub/Fanzub.cs b/src/NzbDrone.Core/Indexers/Fanzub/Fanzub.cs
deleted file mode 100644
index fc66a83f1..000000000
--- a/src/NzbDrone.Core/Indexers/Fanzub/Fanzub.cs
+++ /dev/null
@@ -1,30 +0,0 @@
-using NLog;
-using NzbDrone.Common.Http;
-using NzbDrone.Core.Configuration;
-using NzbDrone.Core.Parser;
-
-namespace NzbDrone.Core.Indexers.Fanzub
-{
- public class Fanzub : HttpIndexerBase
- {
- public override string Name => "Fanzub";
-
- public override DownloadProtocol Protocol => DownloadProtocol.Usenet;
-
- public Fanzub(IHttpClient httpClient, IIndexerStatusService indexerStatusService, IConfigService configService, IParsingService parsingService, Logger logger)
- : base(httpClient, indexerStatusService, configService, parsingService, logger)
- {
-
- }
-
- public override IIndexerRequestGenerator GetRequestGenerator()
- {
- return new FanzubRequestGenerator() { Settings = Settings };
- }
-
- public override IParseIndexerResponse GetParser()
- {
- return new RssParser() { UseEnclosureUrl = true, UseEnclosureLength = true };
- }
- }
-}
diff --git a/src/NzbDrone.Core/Indexers/Fanzub/FanzubRequestGenerator.cs b/src/NzbDrone.Core/Indexers/Fanzub/FanzubRequestGenerator.cs
deleted file mode 100644
index 19585dad5..000000000
--- a/src/NzbDrone.Core/Indexers/Fanzub/FanzubRequestGenerator.cs
+++ /dev/null
@@ -1,88 +0,0 @@
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Text.RegularExpressions;
-using NzbDrone.Common.Extensions;
-using NzbDrone.Common.Http;
-using NzbDrone.Core.IndexerSearch.Definitions;
-
-namespace NzbDrone.Core.Indexers.Fanzub
-{
- public class FanzubRequestGenerator : IIndexerRequestGenerator
- {
- private static readonly Regex RemoveCharactersRegex = new Regex(@"[!?`]", RegexOptions.Compiled);
-
- public FanzubSettings Settings { get; set; }
- public int PageSize { get; set; }
-
- public FanzubRequestGenerator()
- {
- PageSize = 100;
- }
-
- public virtual IndexerPageableRequestChain GetRecentRequests()
- {
- var pageableRequests = new IndexerPageableRequestChain();
-
- pageableRequests.Add(GetPagedRequests(null));
-
- return pageableRequests;
- }
-
- public virtual IndexerPageableRequestChain GetSearchRequests(SingleEpisodeSearchCriteria searchCriteria)
- {
- return new IndexerPageableRequestChain();
- }
-
- public virtual IndexerPageableRequestChain GetSearchRequests(SeasonSearchCriteria searchCriteria)
- {
- return new IndexerPageableRequestChain();
- }
-
- public virtual IndexerPageableRequestChain GetSearchRequests(DailyEpisodeSearchCriteria searchCriteria)
- {
- return new IndexerPageableRequestChain();
- }
-
- public virtual IndexerPageableRequestChain GetSearchRequests(AnimeEpisodeSearchCriteria searchCriteria)
- {
- var pageableRequests = new IndexerPageableRequestChain();
-
- var searchTitles = searchCriteria.QueryTitles.SelectMany(v => GetTitleSearchStrings(v, searchCriteria.AbsoluteEpisodeNumber)).ToList();
-
- pageableRequests.Add(GetPagedRequests(string.Join("|", searchTitles)));
-
- return pageableRequests;
- }
-
- public virtual IndexerPageableRequestChain GetSearchRequests(SpecialEpisodeSearchCriteria searchCriteria)
- {
- return new IndexerPageableRequestChain();
- }
-
- private IEnumerable GetPagedRequests(string query)
- {
- var url = new StringBuilder();
- url.AppendFormat("{0}?cat=anime&max={1}", Settings.BaseUrl, PageSize);
-
- if (query.IsNotNullOrWhiteSpace())
- {
- url.AppendFormat("&q={0}", query);
- }
-
- yield return new IndexerRequest(url.ToString(), HttpAccept.Rss);
- }
-
- private IEnumerable GetTitleSearchStrings(string title, int absoluteEpisodeNumber)
- {
- var formats = new[] { "{0}%20{1:00}", "{0}%20-%20{1:00}" };
-
- return formats.Select(s => "\"" + string.Format(s, CleanTitle(title), absoluteEpisodeNumber) + "\"");
- }
-
- private string CleanTitle(string title)
- {
- return RemoveCharactersRegex.Replace(title, "");
- }
- }
-}
diff --git a/src/NzbDrone.Core/Indexers/Fanzub/FanzubSettings.cs b/src/NzbDrone.Core/Indexers/Fanzub/FanzubSettings.cs
deleted file mode 100644
index 1f9f25028..000000000
--- a/src/NzbDrone.Core/Indexers/Fanzub/FanzubSettings.cs
+++ /dev/null
@@ -1,33 +0,0 @@
-using FluentValidation;
-using NzbDrone.Core.Annotations;
-using NzbDrone.Core.ThingiProvider;
-using NzbDrone.Core.Validation;
-
-namespace NzbDrone.Core.Indexers.Fanzub
-{
- public class FanzubSettingsValidator : AbstractValidator
- {
- public FanzubSettingsValidator()
- {
- RuleFor(c => c.BaseUrl).ValidRootUrl();
- }
- }
-
- public class FanzubSettings : IProviderConfig
- {
- private static readonly FanzubSettingsValidator Validator = new FanzubSettingsValidator();
-
- public FanzubSettings()
- {
- BaseUrl = "http://fanzub.com/rss/";
- }
-
- [FieldDefinition(0, Label = "Rss URL", HelpText = "Enter to URL to an Fanzub compatible RSS feed")]
- public string BaseUrl { get; set; }
-
- public NzbDroneValidationResult Validate()
- {
- return new NzbDroneValidationResult(Validator.Validate(this));
- }
- }
-}
diff --git a/src/NzbDrone.Core/Indexers/HDBits/HDBitsRequestGenerator.cs b/src/NzbDrone.Core/Indexers/HDBits/HDBitsRequestGenerator.cs
index dacb87490..84fef6bb8 100644
--- a/src/NzbDrone.Core/Indexers/HDBits/HDBitsRequestGenerator.cs
+++ b/src/NzbDrone.Core/Indexers/HDBits/HDBitsRequestGenerator.cs
@@ -1,4 +1,5 @@
-using System.Collections.Generic;
+using System;
+using System.Collections.Generic;
using System.Linq;
using NzbDrone.Common.Http;
using NzbDrone.Common.Serializer;
@@ -21,21 +22,7 @@ namespace NzbDrone.Core.Indexers.HDBits
public virtual IndexerPageableRequestChain GetSearchRequests(AnimeEpisodeSearchCriteria searchCriteria)
{
- var pageableRequests = new IndexerPageableRequestChain();
-
- var queryBase = new TorrentQuery();
- if (TryAddSearchParameters(queryBase, searchCriteria))
- {
- foreach (var episode in searchCriteria.Episodes)
- {
- var query = queryBase.Clone();
-
- query.TvdbInfo.Season = episode.SeasonNumber;
- query.TvdbInfo.Episode = episode.EpisodeNumber;
- }
- }
-
- return pageableRequests;
+ return new IndexerPageableRequestChain();
}
public virtual IndexerPageableRequestChain GetSearchRequests(SpecialEpisodeSearchCriteria searchCriteria)
@@ -45,69 +32,28 @@ namespace NzbDrone.Core.Indexers.HDBits
public virtual IndexerPageableRequestChain GetSearchRequests(DailyEpisodeSearchCriteria searchCriteria)
{
- var pageableRequests = new IndexerPageableRequestChain();
-
- var query = new TorrentQuery();
- if (TryAddSearchParameters(query, searchCriteria))
- {
- query.Search = string.Format("{0:yyyy}-{0:MM}-{0:dd}", searchCriteria.AirDate);
-
- pageableRequests.Add(GetRequest(query));
- }
-
- return pageableRequests;
+ return new IndexerPageableRequestChain();
}
public virtual IndexerPageableRequestChain GetSearchRequests(SeasonSearchCriteria searchCriteria)
{
- var pageableRequests = new IndexerPageableRequestChain();
-
- var queryBase = new TorrentQuery();
- if (TryAddSearchParameters(queryBase, searchCriteria))
- {
- foreach (var seasonNumber in searchCriteria.Episodes.Select(e => e.SeasonNumber).Distinct())
- {
- var query = queryBase.Clone();
-
- query.TvdbInfo.Season = seasonNumber;
-
- pageableRequests.Add(GetRequest(query));
- }
- }
-
- return pageableRequests;
+ return new IndexerPageableRequestChain();
}
public virtual IndexerPageableRequestChain GetSearchRequests(SingleEpisodeSearchCriteria searchCriteria)
{
- var pageableRequests = new IndexerPageableRequestChain();
-
- var queryBase = new TorrentQuery();
- if (TryAddSearchParameters(queryBase, searchCriteria))
- {
- foreach (var episode in searchCriteria.Episodes)
- {
- var query = queryBase.Clone();
-
- query.TvdbInfo.Season = episode.SeasonNumber;
- query.TvdbInfo.Episode = episode.EpisodeNumber;
-
- pageableRequests.Add(GetRequest(query));
- }
- }
-
- return pageableRequests;
+ return new IndexerPageableRequestChain();
}
- private bool TryAddSearchParameters(TorrentQuery query, SearchCriteriaBase searchCriteria)
+ public IndexerPageableRequestChain GetSearchRequests(MovieSearchCriteria searchCriteria)
{
- if (searchCriteria.Series.TvdbId != 0)
- {
- query.TvdbInfo = query.TvdbInfo ?? new TvdbInfo();
- query.TvdbInfo.Id = searchCriteria.Series.TvdbId;
- return true;
- }
- return false;
+
+ var pageableRequests = new IndexerPageableRequestChain();
+ var queryBase = new TorrentQuery();
+ var query = queryBase.Clone();
+ query.ImdbInfo.Id = int.Parse(searchCriteria.Movie.ImdbId.Substring(2));
+ pageableRequests.Add(GetRequest(query));
+ return pageableRequests;
}
private IEnumerable GetRequest(TorrentQuery query)
diff --git a/src/NzbDrone.Core/Indexers/HttpIndexerBase.cs b/src/NzbDrone.Core/Indexers/HttpIndexerBase.cs
index 99ad741ca..c912291fa 100644
--- a/src/NzbDrone.Core/Indexers/HttpIndexerBase.cs
+++ b/src/NzbDrone.Core/Indexers/HttpIndexerBase.cs
@@ -111,6 +111,18 @@ namespace NzbDrone.Core.Indexers
return FetchReleases(generator.GetSearchRequests(searchCriteria));
}
+ public override IList Fetch(MovieSearchCriteria searchCriteria)
+ {
+ if (!SupportsSearch)
+ {
+ return new List();
+ }
+
+ var generator = GetRequestGenerator();
+
+ return FetchReleases(generator.GetSearchRequests(searchCriteria));
+ }
+
protected virtual IList FetchReleases(IndexerPageableRequestChain pageableRequestChain, bool isRecent = false)
{
var releases = new List();
diff --git a/src/NzbDrone.Core/Indexers/IIndexer.cs b/src/NzbDrone.Core/Indexers/IIndexer.cs
index 9f028b569..f83bc3162 100644
--- a/src/NzbDrone.Core/Indexers/IIndexer.cs
+++ b/src/NzbDrone.Core/Indexers/IIndexer.cs
@@ -17,5 +17,6 @@ namespace NzbDrone.Core.Indexers
IList Fetch(DailyEpisodeSearchCriteria searchCriteria);
IList Fetch(AnimeEpisodeSearchCriteria searchCriteria);
IList Fetch(SpecialEpisodeSearchCriteria searchCriteria);
+ IList Fetch(MovieSearchCriteria searchCriteria);
}
}
\ No newline at end of file
diff --git a/src/NzbDrone.Core/Indexers/IIndexerRequestGenerator.cs b/src/NzbDrone.Core/Indexers/IIndexerRequestGenerator.cs
index 5ad2cc79e..f321dacd7 100644
--- a/src/NzbDrone.Core/Indexers/IIndexerRequestGenerator.cs
+++ b/src/NzbDrone.Core/Indexers/IIndexerRequestGenerator.cs
@@ -10,5 +10,6 @@ namespace NzbDrone.Core.Indexers
IndexerPageableRequestChain GetSearchRequests(DailyEpisodeSearchCriteria searchCriteria);
IndexerPageableRequestChain GetSearchRequests(AnimeEpisodeSearchCriteria searchCriteria);
IndexerPageableRequestChain GetSearchRequests(SpecialEpisodeSearchCriteria searchCriteria);
+ IndexerPageableRequestChain GetSearchRequests(MovieSearchCriteria searchCriteria);
}
}
\ No newline at end of file
diff --git a/src/NzbDrone.Core/Indexers/IPTorrents/IPTorrentsRequestGenerator.cs b/src/NzbDrone.Core/Indexers/IPTorrents/IPTorrentsRequestGenerator.cs
index bf4d9e7b8..bd63b6f46 100644
--- a/src/NzbDrone.Core/Indexers/IPTorrents/IPTorrentsRequestGenerator.cs
+++ b/src/NzbDrone.Core/Indexers/IPTorrents/IPTorrentsRequestGenerator.cs
@@ -1,4 +1,5 @@
-using System.Collections.Generic;
+using System;
+using System.Collections.Generic;
using NzbDrone.Common.Http;
using NzbDrone.Core.IndexerSearch.Definitions;
@@ -22,6 +23,11 @@ namespace NzbDrone.Core.Indexers.IPTorrents
return new IndexerPageableRequestChain();
}
+ public IndexerPageableRequestChain GetSearchRequests(MovieSearchCriteria searchCriteria)
+ {
+ return new IndexerPageableRequestChain();
+ }
+
public virtual IndexerPageableRequestChain GetSearchRequests(SeasonSearchCriteria searchCriteria)
{
return new IndexerPageableRequestChain();
diff --git a/src/NzbDrone.Core/Indexers/IndexerBase.cs b/src/NzbDrone.Core/Indexers/IndexerBase.cs
index 4e08e5aad..95fda4871 100644
--- a/src/NzbDrone.Core/Indexers/IndexerBase.cs
+++ b/src/NzbDrone.Core/Indexers/IndexerBase.cs
@@ -67,6 +67,7 @@ namespace NzbDrone.Core.Indexers
public abstract IList Fetch(DailyEpisodeSearchCriteria searchCriteria);
public abstract IList Fetch(AnimeEpisodeSearchCriteria searchCriteria);
public abstract IList Fetch(SpecialEpisodeSearchCriteria searchCriteria);
+ public abstract IList Fetch(MovieSearchCriteria searchCriteria);
protected virtual IList CleanupReleases(IEnumerable releases)
{
diff --git a/src/NzbDrone.Core/Indexers/KickassTorrents/KickassTorrentsRequestGenerator.cs b/src/NzbDrone.Core/Indexers/KickassTorrents/KickassTorrentsRequestGenerator.cs
index 228b3e607..9caaa1685 100644
--- a/src/NzbDrone.Core/Indexers/KickassTorrents/KickassTorrentsRequestGenerator.cs
+++ b/src/NzbDrone.Core/Indexers/KickassTorrents/KickassTorrentsRequestGenerator.cs
@@ -1,4 +1,5 @@
-using System.Collections.Generic;
+using System;
+using System.Collections.Generic;
using System.Linq;
using NzbDrone.Common.Http;
using NzbDrone.Core.IndexerSearch.Definitions;
@@ -147,5 +148,10 @@ namespace NzbDrone.Core.Indexers.KickassTorrents
{
return query.Replace('+', ' ');
}
+
+ public IndexerPageableRequestChain GetSearchRequests(MovieSearchCriteria searchCriteria)
+ {
+ return new IndexerPageableRequestChain();
+ }
}
}
diff --git a/src/NzbDrone.Core/Indexers/Newznab/Newznab.cs b/src/NzbDrone.Core/Indexers/Newznab/Newznab.cs
index bd75f0382..de939341b 100644
--- a/src/NzbDrone.Core/Indexers/Newznab/Newznab.cs
+++ b/src/NzbDrone.Core/Indexers/Newznab/Newznab.cs
@@ -39,14 +39,15 @@ namespace NzbDrone.Core.Indexers.Newznab
{
get
{
- yield return GetDefinition("Dognzb.cr", GetSettings("https://api.dognzb.cr"));
+ yield return GetDefinition("DOGnzb", GetSettings("https://api.dognzb.cr"));
yield return GetDefinition("DrunkenSlug", GetSettings("https://api.drunkenslug.com"));
+ yield return GetDefinition("Nzb-Tortuga", GetSettings("https://www.nzb-tortuga.com"));
yield return GetDefinition("Nzb.su", GetSettings("https://api.nzb.su"));
yield return GetDefinition("NZBCat", GetSettings("https://nzb.cat"));
- yield return GetDefinition("NZBFinder.ws", GetSettings("https://nzbfinder.ws", 5010, 5030, 5040, 5045));
+ yield return GetDefinition("NZBFinder.ws", GetSettings("https://nzbfinder.ws"));
yield return GetDefinition("NZBgeek", GetSettings("https://api.nzbgeek.info"));
yield return GetDefinition("nzbplanet.net", GetSettings("https://api.nzbplanet.net"));
- yield return GetDefinition("Nzbs.org", GetSettings("http://nzbs.org", 5000));
+ yield return GetDefinition("Nzbs.org", GetSettings("http://nzbs.org"));
yield return GetDefinition("OZnzb.com", GetSettings("https://api.oznzb.com"));
yield return GetDefinition("PFmonkey", GetSettings("https://www.pfmonkey.com"));
yield return GetDefinition("SimplyNZBs", GetSettings("https://simplynzbs.com"));
@@ -106,8 +107,8 @@ namespace NzbDrone.Core.Indexers.Newznab
}
if (capabilities.SupportedTvSearchParameters != null &&
- new[] { "q", "tvdbid", "rid" }.Any(v => capabilities.SupportedTvSearchParameters.Contains(v)) &&
- new[] { "season", "ep" }.All(v => capabilities.SupportedTvSearchParameters.Contains(v)))
+ new[] { "q", "imdbid" }.Any(v => capabilities.SupportedMovieSearchParameters.Contains(v)) &&
+ new[] { "imdbtitle", "imdbyear" }.All(v => capabilities.SupportedMovieSearchParameters.Contains(v)))
{
return null;
}
diff --git a/src/NzbDrone.Core/Indexers/Newznab/NewznabCapabilities.cs b/src/NzbDrone.Core/Indexers/Newznab/NewznabCapabilities.cs
index 11e73da34..717d24a9f 100644
--- a/src/NzbDrone.Core/Indexers/Newznab/NewznabCapabilities.cs
+++ b/src/NzbDrone.Core/Indexers/Newznab/NewznabCapabilities.cs
@@ -8,6 +8,7 @@ namespace NzbDrone.Core.Indexers.Newznab
public int MaxPageSize { get; set; }
public string[] SupportedSearchParameters { get; set; }
public string[] SupportedTvSearchParameters { get; set; }
+ public string[] SupportedMovieSearchParameters { get; set; }
public bool SupportsAggregateIdSearch { get; set; }
public List Categories { get; set; }
@@ -16,6 +17,7 @@ namespace NzbDrone.Core.Indexers.Newznab
DefaultPageSize = 100;
MaxPageSize = 100;
SupportedSearchParameters = new[] { "q" };
+ SupportedMovieSearchParameters = new[] { "q", "imdbid", "imdbtitle", "imdbyear" };
SupportedTvSearchParameters = new[] { "q", "rid", "season", "ep" }; // This should remain 'rid' for older newznab installs.
SupportsAggregateIdSearch = false;
Categories = new List();
diff --git a/src/NzbDrone.Core/Indexers/Newznab/NewznabCapabilitiesProvider.cs b/src/NzbDrone.Core/Indexers/Newznab/NewznabCapabilitiesProvider.cs
index 9cb004f67..35f9b677b 100644
--- a/src/NzbDrone.Core/Indexers/Newznab/NewznabCapabilitiesProvider.cs
+++ b/src/NzbDrone.Core/Indexers/Newznab/NewznabCapabilitiesProvider.cs
@@ -30,6 +30,7 @@ namespace NzbDrone.Core.Indexers.Newznab
public NewznabCapabilities GetCapabilities(NewznabSettings indexerSettings)
{
var key = indexerSettings.ToJson();
+ _capabilitiesCache.Clear();
var capabilities = _capabilitiesCache.Get(key, () => FetchCapabilities(indexerSettings), TimeSpan.FromDays(7));
return capabilities;
@@ -98,6 +99,16 @@ namespace NzbDrone.Core.Indexers.Newznab
capabilities.SupportedTvSearchParameters = xmlTvSearch.Attribute("supportedParams").Value.Split(',');
capabilities.SupportsAggregateIdSearch = true;
}
+ var xmlMovieSearch = xmlSearching.Element("movie-search");
+ if (xmlMovieSearch == null || xmlMovieSearch.Attribute("available").Value != "yes")
+ {
+ capabilities.SupportedMovieSearchParameters = null;
+ }
+ else if (xmlMovieSearch.Attribute("supportedParams") != null)
+ {
+ capabilities.SupportedMovieSearchParameters = xmlMovieSearch.Attribute("supportedParams").Value.Split(',');
+ capabilities.SupportsAggregateIdSearch = true;
+ }
}
var xmlCategories = xmlRoot.Element("categories");
diff --git a/src/NzbDrone.Core/Indexers/Newznab/NewznabRequestGenerator.cs b/src/NzbDrone.Core/Indexers/Newznab/NewznabRequestGenerator.cs
index 915603c15..7ccaba8d8 100644
--- a/src/NzbDrone.Core/Indexers/Newznab/NewznabRequestGenerator.cs
+++ b/src/NzbDrone.Core/Indexers/Newznab/NewznabRequestGenerator.cs
@@ -1,4 +1,5 @@
-using System.Collections.Generic;
+using System;
+using System.Collections.Generic;
using System.Linq;
using NzbDrone.Common.Extensions;
using NzbDrone.Common.Http;
@@ -84,6 +85,17 @@ namespace NzbDrone.Core.Indexers.Newznab
}
}
+ private bool SupportsMovieSearch
+ {
+ get
+ {
+ var capabilities = _capabilitiesProvider.GetCapabilities(Settings);
+
+ return capabilities.SupportedMovieSearchParameters != null &&
+ capabilities.SupportedMovieSearchParameters.Contains("imdbid");
+ }
+ }
+
private bool SupportsAggregatedIdSearch
{
get
@@ -100,9 +112,28 @@ namespace NzbDrone.Core.Indexers.Newznab
var capabilities = _capabilitiesProvider.GetCapabilities(Settings);
- if (capabilities.SupportedTvSearchParameters != null)
+ if (capabilities.SupportedMovieSearchParameters != null)
{
- pageableRequests.Add(GetPagedRequests(MaxPages, Settings.Categories.Concat(Settings.AnimeCategories), "tvsearch", ""));
+ pageableRequests.Add(GetPagedRequests(MaxPages, Settings.Categories.Concat(Settings.AnimeCategories), "movie", ""));
+ }
+
+ return pageableRequests;
+ }
+
+ public IndexerPageableRequestChain GetSearchRequests(MovieSearchCriteria searchCriteria)
+ {
+ var pageableRequests = new IndexerPageableRequestChain();
+
+ if (SupportsMovieSearch)
+ {
+ pageableRequests.Add(GetPagedRequests(MaxPages, Settings.Categories, "movie",
+ string.Format("&imdbid={0}", searchCriteria.Movie.ImdbId.Substring(2)))); //strip off the "tt" - VERY HACKY
+ }
+ else
+ {
+ //Let's try anyways with q parameter, worst case nothing found.
+ pageableRequests.Add(GetPagedRequests(MaxPages, Settings.Categories, "search",
+ string.Format("&q={0}", searchCriteria.Movie.Title)));
}
return pageableRequests;
diff --git a/src/NzbDrone.Core/Indexers/Newznab/NewznabRssParser.cs b/src/NzbDrone.Core/Indexers/Newznab/NewznabRssParser.cs
index 16c4dea9b..521b63fa6 100644
--- a/src/NzbDrone.Core/Indexers/Newznab/NewznabRssParser.cs
+++ b/src/NzbDrone.Core/Indexers/Newznab/NewznabRssParser.cs
@@ -48,9 +48,7 @@ namespace NzbDrone.Core.Indexers.Newznab
protected override ReleaseInfo ProcessItem(XElement item, ReleaseInfo releaseInfo)
{
releaseInfo = base.ProcessItem(item, releaseInfo);
-
- releaseInfo.TvdbId = GetTvdbId(item);
- releaseInfo.TvRageId = GetTvRageId(item);
+ releaseInfo.ImdbId = GetImdbId(item);
return releaseInfo;
}
@@ -114,27 +112,14 @@ namespace NzbDrone.Core.Indexers.Newznab
return url;
}
- protected virtual int GetTvdbId(XElement item)
+ protected virtual int GetImdbId(XElement item)
{
- var tvdbIdString = TryGetNewznabAttribute(item, "tvdbid");
- int tvdbId;
+ var imdbIdString = TryGetNewznabAttribute(item, "imdb");
+ int imdbId;
- if (!tvdbIdString.IsNullOrWhiteSpace() && int.TryParse(tvdbIdString, out tvdbId))
+ if (!imdbIdString.IsNullOrWhiteSpace() && int.TryParse(imdbIdString, out imdbId))
{
- return tvdbId;
- }
-
- return 0;
- }
-
- protected virtual int GetTvRageId(XElement item)
- {
- var tvRageIdString = TryGetNewznabAttribute(item, "rageid");
- int tvRageId;
-
- if (!tvRageIdString.IsNullOrWhiteSpace() && int.TryParse(tvRageIdString, out tvRageId))
- {
- return tvRageId;
+ return imdbId;
}
return 0;
diff --git a/src/NzbDrone.Core/Indexers/Newznab/NewznabSettings.cs b/src/NzbDrone.Core/Indexers/Newznab/NewznabSettings.cs
index b33ef566d..125391f57 100644
--- a/src/NzbDrone.Core/Indexers/Newznab/NewznabSettings.cs
+++ b/src/NzbDrone.Core/Indexers/Newznab/NewznabSettings.cs
@@ -1,4 +1,4 @@
-using System.Collections.Generic;
+using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
using FluentValidation;
@@ -60,7 +60,7 @@ namespace NzbDrone.Core.Indexers.Newznab
public NewznabSettings()
{
- Categories = new[] { 5030, 5040 };
+ Categories = new[] { 2000, 2010, 2020, 2030, 2035, 2040, 2045, 2050, 2060 };
AnimeCategories = Enumerable.Empty();
}
diff --git a/src/NzbDrone.Core/Indexers/Nyaa/NyaaRequestGenerator.cs b/src/NzbDrone.Core/Indexers/Nyaa/NyaaRequestGenerator.cs
index b54f4576f..6eac44084 100644
--- a/src/NzbDrone.Core/Indexers/Nyaa/NyaaRequestGenerator.cs
+++ b/src/NzbDrone.Core/Indexers/Nyaa/NyaaRequestGenerator.cs
@@ -1,4 +1,5 @@
-using System.Collections.Generic;
+using System;
+using System.Collections.Generic;
using NzbDrone.Common.Http;
using NzbDrone.Core.IndexerSearch.Definitions;
@@ -102,5 +103,10 @@ namespace NzbDrone.Core.Indexers.Nyaa
{
return query.Replace(' ', '+');
}
+
+ public IndexerPageableRequestChain GetSearchRequests(MovieSearchCriteria searchCriteria)
+ {
+ return new IndexerPageableRequestChain();
+ }
}
}
diff --git a/src/NzbDrone.Core/Indexers/Omgwtfnzbs/OmgwtfnzbsRequestGenerator.cs b/src/NzbDrone.Core/Indexers/Omgwtfnzbs/OmgwtfnzbsRequestGenerator.cs
index 17663e8bf..a0b81decd 100644
--- a/src/NzbDrone.Core/Indexers/Omgwtfnzbs/OmgwtfnzbsRequestGenerator.cs
+++ b/src/NzbDrone.Core/Indexers/Omgwtfnzbs/OmgwtfnzbsRequestGenerator.cs
@@ -1,4 +1,5 @@
-using System.Collections.Generic;
+using System;
+using System.Collections.Generic;
using System.Text;
using NzbDrone.Common.Extensions;
using NzbDrone.Common.Http;
@@ -91,7 +92,7 @@ namespace NzbDrone.Core.Indexers.Omgwtfnzbs
private IEnumerable GetPagedRequests(string query)
{
var url = new StringBuilder();
- url.AppendFormat("{0}?catid=19,20&user={1}&api={2}&eng=1&delay={3}", BaseUrl, Settings.Username, Settings.ApiKey, Settings.Delay);
+ url.AppendFormat("{0}?catid=15,16,17&user={1}&api={2}&eng=1&delay={3}", BaseUrl, Settings.Username, Settings.ApiKey, Settings.Delay);
if (query.IsNotNullOrWhiteSpace())
{
@@ -101,5 +102,15 @@ namespace NzbDrone.Core.Indexers.Omgwtfnzbs
yield return new IndexerRequest(url.ToString(), HttpAccept.Rss);
}
+
+ public IndexerPageableRequestChain GetSearchRequests(MovieSearchCriteria searchCriteria)
+ {
+ var pageableRequests = new IndexerPageableRequestChain();
+
+ pageableRequests.Add(GetPagedRequests(string.Format("{0}",
+ searchCriteria.Movie.Title)));
+
+ return pageableRequests;
+ }
}
}
diff --git a/src/NzbDrone.Core/Indexers/Omgwtfnzbs/OmgwtfnzbsRssParser.cs b/src/NzbDrone.Core/Indexers/Omgwtfnzbs/OmgwtfnzbsRssParser.cs
index a5946e5ff..644fff382 100644
--- a/src/NzbDrone.Core/Indexers/Omgwtfnzbs/OmgwtfnzbsRssParser.cs
+++ b/src/NzbDrone.Core/Indexers/Omgwtfnzbs/OmgwtfnzbsRssParser.cs
@@ -29,7 +29,7 @@ namespace NzbDrone.Core.Indexers.Omgwtfnzbs
protected override string GetInfoUrl(XElement item)
{
//Todo: Me thinks I need to parse details to get this...
- var match = Regex.Match(item.Description(), @"(?:\View NZB\:\<\/b\>\s\.+)(?:\""\starget)",
+ var match = Regex.Match(item.Description(), @"(?:\View NZB\:\<\/b\>\s\.+)(?:\"")",
RegexOptions.IgnoreCase | RegexOptions.Compiled);
if (match.Success)
diff --git a/src/NzbDrone.Core/Indexers/PassThePopcorn/PassThePopcorn.cs b/src/NzbDrone.Core/Indexers/PassThePopcorn/PassThePopcorn.cs
new file mode 100644
index 000000000..301894f57
--- /dev/null
+++ b/src/NzbDrone.Core/Indexers/PassThePopcorn/PassThePopcorn.cs
@@ -0,0 +1,30 @@
+using NLog;
+using NzbDrone.Common.Http;
+using NzbDrone.Core.Configuration;
+using NzbDrone.Core.Parser;
+
+namespace NzbDrone.Core.Indexers.PassThePopcorn
+{
+ public class PassThePopcorn : HttpIndexerBase
+ {
+ public override string Name => "PassThePopcorn";
+ public override DownloadProtocol Protocol => DownloadProtocol.Torrent;
+ public override bool SupportsRss => true;
+ public override bool SupportsSearch => true;
+ public override int PageSize => 50;
+
+ public PassThePopcorn(IHttpClient httpClient, IIndexerStatusService indexerStatusService, IConfigService configService, IParsingService parsingService, Logger logger)
+ : base(httpClient, indexerStatusService, configService, parsingService, logger)
+ { }
+
+ public override IIndexerRequestGenerator GetRequestGenerator()
+ {
+ return new PassThePopcornRequestGenerator() { Settings = Settings };
+ }
+
+ public override IParseIndexerResponse GetParser()
+ {
+ return new PassThePopcornParser(Settings);
+ }
+ }
+}
diff --git a/src/NzbDrone.Core/Indexers/PassThePopcorn/PassThePopcornApi.cs b/src/NzbDrone.Core/Indexers/PassThePopcorn/PassThePopcornApi.cs
new file mode 100644
index 000000000..9d7c93ea8
--- /dev/null
+++ b/src/NzbDrone.Core/Indexers/PassThePopcorn/PassThePopcornApi.cs
@@ -0,0 +1,59 @@
+using System;
+using Newtonsoft.Json;
+using System.Collections.Generic;
+
+namespace NzbDrone.Core.Indexers.PassThePopcorn
+{
+ public class Director
+ {
+ public string Name { get; set; }
+ public string Id { get; set; }
+ }
+
+ public class Torrent
+ {
+ public int Id { get; set; }
+ public string Quality { get; set; }
+ public string Source { get; set; }
+ public string Container { get; set; }
+ public string Codec { get; set; }
+ public string Resolution { get; set; }
+ public bool Scene { get; set; }
+ public string Size { get; set; }
+ public DateTime UploadTime { get; set; }
+ public string RemasterTitle { get; set; }
+ public string Snatched { get; set; }
+ public string Seeders { get; set; }
+ public string Leechers { get; set; }
+ public string ReleaseName { get; set; }
+ public bool Checked { get; set; }
+ public bool GoldenPopcorn { get; set; }
+ }
+
+ public class Movie
+ {
+ public string GroupId { get; set; }
+ public string Title { get; set; }
+ public string Year { get; set; }
+ public string Cover { get; set; }
+ public List Tags { get; set; }
+ public List Directors { get; set; }
+ public string ImdbId { get; set; }
+ public int TotalLeechers { get; set; }
+ public int TotalSeeders { get; set; }
+ public int TotalSnatched { get; set; }
+ public long MaxSize { get; set; }
+ public string LastUploadTime { get; set; }
+ public List Torrents { get; set; }
+ }
+
+ public class PassThePopcornResponse
+ {
+ public string TotalResults { get; set; }
+ public List Movies { get; set; }
+ public string Page { get; set; }
+ public string AuthKey { get; set; }
+ public string PassKey { get; set; }
+ }
+
+}
diff --git a/src/NzbDrone.Core/Indexers/PassThePopcorn/PassThePopcornInfo.cs b/src/NzbDrone.Core/Indexers/PassThePopcorn/PassThePopcornInfo.cs
new file mode 100644
index 000000000..3fec7eaff
--- /dev/null
+++ b/src/NzbDrone.Core/Indexers/PassThePopcorn/PassThePopcornInfo.cs
@@ -0,0 +1,15 @@
+using NzbDrone.Core.Parser.Model;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+
+namespace NzbDrone.Core.Indexers.PassThePopcorn
+{
+ public class PassThePopcornInfo : TorrentInfo
+ {
+ public bool? Golden { get; set; }
+ public bool? Scene { get; set; }
+ public bool? Approved { get; set; }
+ }
+}
diff --git a/src/NzbDrone.Core/Indexers/PassThePopcorn/PassThePopcornParser.cs b/src/NzbDrone.Core/Indexers/PassThePopcorn/PassThePopcornParser.cs
new file mode 100644
index 000000000..ef1ad3909
--- /dev/null
+++ b/src/NzbDrone.Core/Indexers/PassThePopcorn/PassThePopcornParser.cs
@@ -0,0 +1,144 @@
+using System.Collections.Generic;
+using System.Net;
+using Newtonsoft.Json;
+using Newtonsoft.Json.Linq;
+using NzbDrone.Common.Http;
+using NzbDrone.Core.Indexers.Exceptions;
+using NzbDrone.Core.Parser.Model;
+using System;
+using System.Linq;
+
+namespace NzbDrone.Core.Indexers.PassThePopcorn
+{
+ public class PassThePopcornParser : IParseIndexerResponse
+ {
+ private readonly PassThePopcornSettings _settings;
+
+ public PassThePopcornParser(PassThePopcornSettings settings)
+ {
+ _settings = settings;
+ }
+
+ public IList ParseResponse(IndexerResponse indexerResponse)
+ {
+ var torrentInfos = new List();
+
+ if (indexerResponse.HttpResponse.StatusCode != HttpStatusCode.OK)
+ {
+ throw new IndexerException(indexerResponse,
+ "Unexpected response status {0} code from API request",
+ indexerResponse.HttpResponse.StatusCode);
+ }
+
+ var jsonResponse = JsonConvert.DeserializeObject(indexerResponse.Content);
+
+ var responseData = jsonResponse.Movies;
+ if (responseData == null)
+ {
+ throw new IndexerException(indexerResponse,
+ "Indexer API call response missing result data");
+ }
+
+ foreach (var result in responseData)
+ {
+ foreach (var torrent in result.Torrents)
+ {
+ var id = torrent.Id;
+ var title = torrent.ReleaseName;
+
+ if (torrent.GoldenPopcorn)
+ {
+ title = $"{title} 🍿";
+ }
+
+ if (torrent.Checked)
+ {
+ title = $"{title} ✔";
+ }
+
+ //if (IsPropertyExist(torrent, "RemasterTitle"))
+ //{
+ // if (torrent.RemasterTitle != null)
+ // {
+ // title = $"{title} - {torrent.RemasterTitle}";
+ // }
+ //}
+
+ // Only add approved torrents
+ if (_settings.Approved && torrent.Checked)
+ {
+ torrentInfos.Add(new PassThePopcornInfo()
+ {
+ Guid = string.Format("PassThePopcorn-{0}", id),
+ Title = title,
+ Size = long.Parse(torrent.Size),
+ DownloadUrl = GetDownloadUrl(id, jsonResponse.AuthKey, jsonResponse.PassKey),
+ InfoUrl = GetInfoUrl(result.GroupId, id),
+ Seeders = int.Parse(torrent.Seeders),
+ Peers = int.Parse(torrent.Leechers) + int.Parse(torrent.Seeders),
+ PublishDate = torrent.UploadTime.ToUniversalTime(),
+ Golden = torrent.GoldenPopcorn,
+ Scene = torrent.Scene,
+ Approved = torrent.Checked
+ });
+ }
+ // Add all torrents
+ else if (!_settings.Approved)
+ {
+ torrentInfos.Add(new PassThePopcornInfo()
+ {
+ Guid = string.Format("PassThePopcorn-{0}", id),
+ Title = title,
+ Size = long.Parse(torrent.Size),
+ DownloadUrl = GetDownloadUrl(id, jsonResponse.AuthKey, jsonResponse.PassKey),
+ InfoUrl = GetInfoUrl(result.GroupId, id),
+ Seeders = int.Parse(torrent.Seeders),
+ Peers = int.Parse(torrent.Leechers) + int.Parse(torrent.Seeders),
+ PublishDate = torrent.UploadTime.ToUniversalTime(),
+ Golden = torrent.GoldenPopcorn,
+ Scene = torrent.Scene,
+ Approved = torrent.Checked
+ });
+ }
+ // Don't add any torrents
+ else if (_settings.Approved && !torrent.Checked)
+ {
+ continue;
+ }
+ }
+ }
+
+ // prefer golden
+ // prefer scene
+ // require approval
+ return torrentInfos.OrderBy(o => ((dynamic)o).Golden ? 0 : 1).ThenBy(o => ((dynamic)o).Scene ? 0 : 1).ThenByDescending(o => ((dynamic)o).PublishDate).ToArray();
+ }
+
+ private string GetDownloadUrl(int torrentId, string authKey, string passKey)
+ {
+ var url = new HttpUri(_settings.BaseUrl)
+ .CombinePath("/torrents.php")
+ .AddQueryParam("action", "download")
+ .AddQueryParam("id", torrentId)
+ .AddQueryParam("authkey", authKey)
+ .AddQueryParam("torrent_pass", passKey);
+
+ return url.FullUri;
+ }
+
+ private string GetInfoUrl(string groupId, int torrentId)
+ {
+ var url = new HttpUri(_settings.BaseUrl)
+ .CombinePath("/torrents.php")
+ .AddQueryParam("id", groupId)
+ .AddQueryParam("torrentid", torrentId);
+
+ return url.FullUri;
+ }
+
+ //public static bool IsPropertyExist(dynamic torrents, string name)
+ //{
+ // return torrents.GetType().GetProperty(name) != null;
+ //}
+ }
+}
diff --git a/src/NzbDrone.Core/Indexers/BitMeTv/BitMeTvRequestGenerator.cs b/src/NzbDrone.Core/Indexers/PassThePopcorn/PassThePopcornRequestGenerator.cs
similarity index 64%
rename from src/NzbDrone.Core/Indexers/BitMeTv/BitMeTvRequestGenerator.cs
rename to src/NzbDrone.Core/Indexers/PassThePopcorn/PassThePopcornRequestGenerator.cs
index e7966dcba..773f18b79 100644
--- a/src/NzbDrone.Core/Indexers/BitMeTv/BitMeTvRequestGenerator.cs
+++ b/src/NzbDrone.Core/Indexers/PassThePopcorn/PassThePopcornRequestGenerator.cs
@@ -1,37 +1,37 @@
-using System.Collections.Generic;
+using System;
+using System.Collections.Generic;
+using System.Linq;
using NzbDrone.Common.Http;
+using NzbDrone.Common.Serializer;
using NzbDrone.Core.IndexerSearch.Definitions;
-namespace NzbDrone.Core.Indexers.BitMeTv
+namespace NzbDrone.Core.Indexers.PassThePopcorn
{
- public class BitMeTvRequestGenerator : IIndexerRequestGenerator
+ public class PassThePopcornRequestGenerator : IIndexerRequestGenerator
{
- public BitMeTvSettings Settings { get; set; }
-
+ public PassThePopcornSettings Settings { get; set; }
+
public virtual IndexerPageableRequestChain GetRecentRequests()
{
var pageableRequests = new IndexerPageableRequestChain();
- pageableRequests.Add(GetRssRequests());
+ pageableRequests.Add(GetRequest(null));
return pageableRequests;
}
+ public IndexerPageableRequestChain GetSearchRequests(MovieSearchCriteria searchCriteria)
+ {
+ var pageableRequests = new IndexerPageableRequestChain();
+ pageableRequests.Add(GetRequest(searchCriteria.Movie.ImdbId));
+ return pageableRequests;
+ }
+
public virtual IndexerPageableRequestChain GetSearchRequests(SingleEpisodeSearchCriteria searchCriteria)
{
return new IndexerPageableRequestChain();
}
- public virtual IndexerPageableRequestChain GetSearchRequests(SeasonSearchCriteria searchCriteria)
- {
- return new IndexerPageableRequestChain();
- }
-
- public virtual IndexerPageableRequestChain GetSearchRequests(DailyEpisodeSearchCriteria searchCriteria)
- {
- return new IndexerPageableRequestChain();
- }
-
public virtual IndexerPageableRequestChain GetSearchRequests(AnimeEpisodeSearchCriteria searchCriteria)
{
return new IndexerPageableRequestChain();
@@ -42,9 +42,19 @@ namespace NzbDrone.Core.Indexers.BitMeTv
return new IndexerPageableRequestChain();
}
- private IEnumerable GetRssRequests()
+ public virtual IndexerPageableRequestChain GetSearchRequests(DailyEpisodeSearchCriteria searchCriteria)
{
- var request = new IndexerRequest(string.Format("{0}/rss.php?uid={1}&passkey={2}", Settings.BaseUrl.Trim().TrimEnd('/'), Settings.UserId, Settings.RssPasskey), HttpAccept.Html);
+ return new IndexerPageableRequestChain();
+ }
+
+ public virtual IndexerPageableRequestChain GetSearchRequests(SeasonSearchCriteria searchCriteria)
+ {
+ return new IndexerPageableRequestChain();
+ }
+
+ private IEnumerable GetRequest(string searchParameters)
+ {
+ var request = new IndexerRequest(string.Format("{0}/torrents.php?json=noredirect&searchstr={1}", Settings.BaseUrl.Trim().TrimEnd('/'), searchParameters), HttpAccept.Json);
foreach (var cookie in HttpHeader.ParseCookies(Settings.Cookie))
{
diff --git a/src/NzbDrone.Core/Indexers/PassThePopcorn/PassThePopcornSettings.cs b/src/NzbDrone.Core/Indexers/PassThePopcorn/PassThePopcornSettings.cs
new file mode 100644
index 000000000..88d7e15b2
--- /dev/null
+++ b/src/NzbDrone.Core/Indexers/PassThePopcorn/PassThePopcornSettings.cs
@@ -0,0 +1,52 @@
+using FluentValidation;
+using NzbDrone.Core.Annotations;
+using NzbDrone.Core.ThingiProvider;
+using NzbDrone.Core.Validation;
+using System.Text.RegularExpressions;
+
+namespace NzbDrone.Core.Indexers.PassThePopcorn
+{
+ public class PassThePopcornSettingsValidator : AbstractValidator
+ {
+ public PassThePopcornSettingsValidator()
+ {
+ RuleFor(c => c.BaseUrl).ValidRootUrl();
+ RuleFor(c => c.Cookie).NotEmpty();
+
+ RuleFor(c => c.Cookie)
+ .Matches(@"__cfduid=[0-9a-f]{43}", RegexOptions.IgnoreCase)
+ .WithMessage("Wrong pattern")
+ .AsWarning();
+ }
+ }
+
+ public class PassThePopcornSettings : IProviderConfig
+ {
+ private static readonly PassThePopcornSettingsValidator Validator = new PassThePopcornSettingsValidator();
+
+ public PassThePopcornSettings()
+ {
+ BaseUrl = "https://passthepopcorn.me";
+ }
+
+ [FieldDefinition(0, Label = "API URL", Advanced = true, HelpText = "Do not change this unless you know what you're doing. Since your cookie will be sent to that host.")]
+ public string BaseUrl { get; set; }
+
+ [FieldDefinition(1, Label = "Cookie", HelpText = "PassThePopcorn uses a login cookie needed to access the API, you'll have to retrieve it via a browser.")]
+ public string Cookie { get; set; }
+
+ [FieldDefinition(2, Type = FieldType.Checkbox, Label = "Prefer Golden", HelpText = "Favors Golden Popcorn-releases over all other releases.")]
+ public bool Golden { get; set; }
+
+ [FieldDefinition(3, Type = FieldType.Checkbox, Label = "Prefer Scene", HelpText = "Favors scene-releases over non-scene releases.")]
+ public bool Scene { get; set; }
+
+ [FieldDefinition(4, Type = FieldType.Checkbox, Label = "Require Approved", HelpText = "Require staff-approval for releases to be accepted.")]
+ public bool Approved { get; set; }
+
+ public NzbDroneValidationResult Validate()
+ {
+ return new NzbDroneValidationResult(Validator.Validate(this));
+ }
+ }
+}
diff --git a/src/NzbDrone.Core/Indexers/Rarbg/RarbgRequestGenerator.cs b/src/NzbDrone.Core/Indexers/Rarbg/RarbgRequestGenerator.cs
index 3b43e0f35..b3cb1d9d8 100644
--- a/src/NzbDrone.Core/Indexers/Rarbg/RarbgRequestGenerator.cs
+++ b/src/NzbDrone.Core/Indexers/Rarbg/RarbgRequestGenerator.cs
@@ -1,4 +1,5 @@
-using System.Collections.Generic;
+using System;
+using System.Collections.Generic;
using NzbDrone.Common.Extensions;
using NzbDrone.Common.Http;
using NzbDrone.Core.IndexerSearch.Definitions;
@@ -101,7 +102,7 @@ namespace NzbDrone.Core.Indexers.Rarbg
requestBuilder.AddQueryParam("ranked", "0");
}
- requestBuilder.AddQueryParam("category", "18;41");
+ requestBuilder.AddQueryParam("category", "tv");
requestBuilder.AddQueryParam("limit", "100");
requestBuilder.AddQueryParam("token", _tokenProvider.GetToken(Settings));
requestBuilder.AddQueryParam("format", "json_extended");
@@ -109,5 +110,48 @@ namespace NzbDrone.Core.Indexers.Rarbg
yield return new IndexerRequest(requestBuilder.Build());
}
+
+ private IEnumerable GetMovieRequest(MovieSearchCriteria searchCriteria)
+ {
+ var requestBuilder = new HttpRequestBuilder(Settings.BaseUrl)
+ .Resource("/pubapi_v2.php")
+ .Accept(HttpAccept.Json);
+
+ if (Settings.CaptchaToken.IsNotNullOrWhiteSpace())
+ {
+ requestBuilder.UseSimplifiedUserAgent = true;
+ requestBuilder.SetCookie("cf_clearance", Settings.CaptchaToken);
+ }
+
+ requestBuilder.AddQueryParam("mode", "search");
+
+ requestBuilder.AddQueryParam("search_imdb", searchCriteria.Movie.ImdbId);
+
+ if (!Settings.RankedOnly)
+ {
+ requestBuilder.AddQueryParam("ranked", "0");
+ }
+
+ requestBuilder.AddQueryParam("category", "movies");
+ requestBuilder.AddQueryParam("limit", "100");
+ requestBuilder.AddQueryParam("token", _tokenProvider.GetToken(Settings));
+ requestBuilder.AddQueryParam("format", "json_extended");
+ requestBuilder.AddQueryParam("app_id", "Sonarr");
+
+ yield return new IndexerRequest(requestBuilder.Build());
+ }
+
+ public IndexerPageableRequestChain GetSearchRequests(MovieSearchCriteria searchCriteria)
+ {
+
+
+ var pageableRequests = new IndexerPageableRequestChain();
+
+ pageableRequests.Add(GetMovieRequest(searchCriteria));
+
+ return pageableRequests;
+
+
+ }
}
}
diff --git a/src/NzbDrone.Core/Indexers/RssIndexerRequestGenerator.cs b/src/NzbDrone.Core/Indexers/RssIndexerRequestGenerator.cs
index 2ae5d4ed4..f9de0d54c 100644
--- a/src/NzbDrone.Core/Indexers/RssIndexerRequestGenerator.cs
+++ b/src/NzbDrone.Core/Indexers/RssIndexerRequestGenerator.cs
@@ -1,4 +1,5 @@
-using NzbDrone.Common.Http;
+using System;
+using NzbDrone.Common.Http;
using NzbDrone.Core.IndexerSearch.Definitions;
namespace NzbDrone.Core.Indexers
@@ -22,6 +23,11 @@ namespace NzbDrone.Core.Indexers
return pageableRequests;
}
+ public IndexerPageableRequestChain GetSearchRequests(MovieSearchCriteria searchCriteria)
+ {
+ throw new NotImplementedException();
+ }
+
public virtual IndexerPageableRequestChain GetSearchRequests(SingleEpisodeSearchCriteria searchCriteria)
{
return new IndexerPageableRequestChain();
diff --git a/src/NzbDrone.Core/Indexers/TorrentPotato/TorrentPotato.cs b/src/NzbDrone.Core/Indexers/TorrentPotato/TorrentPotato.cs
new file mode 100644
index 000000000..2eeb09f37
--- /dev/null
+++ b/src/NzbDrone.Core/Indexers/TorrentPotato/TorrentPotato.cs
@@ -0,0 +1,64 @@
+using System;
+using System.Collections.Generic;
+using NLog;
+using NzbDrone.Common.Extensions;
+using NzbDrone.Common.Http;
+using NzbDrone.Core.Configuration;
+using NzbDrone.Core.Exceptions;
+using NzbDrone.Core.IndexerSearch.Definitions;
+using NzbDrone.Core.ThingiProvider;
+using NzbDrone.Core.Http.CloudFlare;
+using NzbDrone.Core.Parser;
+using NzbDrone.Core.Validation;
+
+namespace NzbDrone.Core.Indexers.TorrentPotato
+{
+ public class TorrentPotato : HttpIndexerBase
+ {
+ public override string Name => "TorrentPotato";
+
+ public override DownloadProtocol Protocol => DownloadProtocol.Torrent;
+ public override TimeSpan RateLimit => TimeSpan.FromSeconds(2);
+
+ public TorrentPotato(IHttpClient httpClient, IIndexerStatusService indexerStatusService, IConfigService configService, IParsingService parsingService, Logger logger)
+ : base(httpClient, indexerStatusService, configService, parsingService, logger)
+ {
+
+ }
+
+ public override IEnumerable DefaultDefinitions
+ {
+ get
+ {
+ yield return GetDefinition("Jackett", new TorrentPotatoSettings { BaseUrl = "http://localhost:9117/potato/YOURINDEXER"});
+ }
+ }
+
+ private IndexerDefinition GetDefinition(string name, TorrentPotatoSettings settings)
+ {
+ return new IndexerDefinition
+ {
+ EnableRss = false,
+ EnableSearch = false,
+ Name = name,
+ Implementation = GetType().Name,
+ Settings = settings,
+ Protocol = DownloadProtocol.Torrent,
+ SupportsRss = SupportsRss,
+ SupportsSearch = SupportsSearch
+ };
+ }
+
+ public override IIndexerRequestGenerator GetRequestGenerator()
+ {
+ return new TorrentPotatoRequestGenerator() { Settings = Settings };
+ }
+
+ public override IParseIndexerResponse GetParser()
+ {
+ return new TorrentPotatoParser();
+ }
+
+
+ }
+}
\ No newline at end of file
diff --git a/src/NzbDrone.Core/Indexers/TorrentPotato/TorrentPotatoParser.cs b/src/NzbDrone.Core/Indexers/TorrentPotato/TorrentPotatoParser.cs
new file mode 100644
index 000000000..fdaf7bb9d
--- /dev/null
+++ b/src/NzbDrone.Core/Indexers/TorrentPotato/TorrentPotatoParser.cs
@@ -0,0 +1,66 @@
+using System.Collections.Generic;
+using System.Net;
+using System.Text.RegularExpressions;
+using NzbDrone.Common.Http;
+using NzbDrone.Core.Indexers.Exceptions;
+using NzbDrone.Core.Parser.Model;
+
+namespace NzbDrone.Core.Indexers.TorrentPotato
+{
+ public class TorrentPotatoParser : IParseIndexerResponse
+ {
+ private static readonly Regex RegexGuid = new Regex(@"^magnet:\?xt=urn:btih:([a-f0-9]+)", RegexOptions.Compiled);
+
+ public IList ParseResponse(IndexerResponse indexerResponse)
+ {
+ var results = new List();
+
+ switch (indexerResponse.HttpResponse.StatusCode)
+ {
+ default:
+ if (indexerResponse.HttpResponse.StatusCode != HttpStatusCode.OK)
+ {
+ throw new IndexerException(indexerResponse, "Indexer API call returned an unexpected StatusCode [{0}]", indexerResponse.HttpResponse.StatusCode);
+ }
+ break;
+ }
+
+ var jsonResponse = new HttpResponse(indexerResponse.HttpResponse);
+
+ foreach (var torrent in jsonResponse.Resource.results)
+ {
+ var torrentInfo = new TorrentInfo();
+
+ torrentInfo.Guid = GetGuid(torrent);
+ torrentInfo.Title = torrent.release_name;
+ torrentInfo.Size = (long)torrent.size*1000*1000;
+ torrentInfo.DownloadUrl = torrent.download_url;
+ torrentInfo.InfoUrl = torrent.details_url;
+ torrentInfo.PublishDate = new System.DateTime();
+ torrentInfo.Seeders = torrent.seeders;
+ torrentInfo.Peers = torrent.leechers + torrent.seeders;
+ torrentInfo.Freeleech = torrent.freeleech;
+ torrentInfo.PublishDate = torrent.publishdate.ToUniversalTime();
+
+ results.Add(torrentInfo);
+ }
+
+ return results;
+ }
+
+ private string GetGuid(Result torrent)
+ {
+ var match = RegexGuid.Match(torrent.download_url);
+
+ if (match.Success)
+ {
+ return string.Format("potato-{0}", match.Groups[1].Value);
+ }
+ else
+ {
+ return string.Format("potato-{0}", torrent.download_url);
+ }
+ }
+
+ }
+}
diff --git a/src/NzbDrone.Core/Indexers/TorrentPotato/TorrentPotatoRequestGenerator.cs b/src/NzbDrone.Core/Indexers/TorrentPotato/TorrentPotatoRequestGenerator.cs
new file mode 100644
index 000000000..808a40b89
--- /dev/null
+++ b/src/NzbDrone.Core/Indexers/TorrentPotato/TorrentPotatoRequestGenerator.cs
@@ -0,0 +1,136 @@
+using System;
+using System.Collections.Generic;
+using NzbDrone.Common.Extensions;
+using NzbDrone.Common.Http;
+using NzbDrone.Core.IndexerSearch.Definitions;
+
+namespace NzbDrone.Core.Indexers.TorrentPotato
+{
+ public class TorrentPotatoRequestGenerator : IIndexerRequestGenerator
+ {
+
+ public TorrentPotatoSettings Settings { get; set; }
+
+ public TorrentPotatoRequestGenerator()
+ {
+
+ }
+
+ public virtual IndexerPageableRequestChain GetRecentRequests()
+ {
+ var pageableRequests = new IndexerPageableRequestChain();
+
+ pageableRequests.Add(GetPagedRequests("list", null, null));
+
+ return pageableRequests;
+ }
+
+ public virtual IndexerPageableRequestChain GetSearchRequests(SingleEpisodeSearchCriteria searchCriteria)
+ {
+ var pageableRequests = new IndexerPageableRequestChain();
+
+ pageableRequests.Add(GetPagedRequests("search", searchCriteria.Series.TvdbId, "S{0:00}E{1:00}", searchCriteria.SeasonNumber, searchCriteria.EpisodeNumber));
+
+ return pageableRequests;
+ }
+
+ public virtual IndexerPageableRequestChain GetSearchRequests(SeasonSearchCriteria searchCriteria)
+ {
+ var pageableRequests = new IndexerPageableRequestChain();
+
+ pageableRequests.Add(GetPagedRequests("search", searchCriteria.Series.TvdbId, "S{0:00}", searchCriteria.SeasonNumber));
+
+ return pageableRequests;
+ }
+
+ public virtual IndexerPageableRequestChain GetSearchRequests(DailyEpisodeSearchCriteria searchCriteria)
+ {
+ var pageableRequests = new IndexerPageableRequestChain();
+
+ pageableRequests.Add(GetPagedRequests("search", searchCriteria.Series.TvdbId, "\"{0:yyyy MM dd}\"", searchCriteria.AirDate));
+
+ return pageableRequests;
+ }
+
+ public virtual IndexerPageableRequestChain GetSearchRequests(AnimeEpisodeSearchCriteria searchCriteria)
+ {
+ return new IndexerPageableRequestChain();
+ }
+
+ public virtual IndexerPageableRequestChain GetSearchRequests(SpecialEpisodeSearchCriteria searchCriteria)
+ {
+ var pageableRequests = new IndexerPageableRequestChain();
+
+ foreach (var queryTitle in searchCriteria.EpisodeQueryTitles)
+ {
+ var query = queryTitle.Replace('+', ' ');
+ query = System.Web.HttpUtility.UrlEncode(query);
+
+ pageableRequests.Add(GetPagedRequests("search", searchCriteria.Series.TvdbId, query));
+ }
+
+ return pageableRequests;
+ }
+
+ private IEnumerable GetPagedRequests(string mode, int? tvdbId, string query, params object[] args)
+ {
+ var requestBuilder = new HttpRequestBuilder(Settings.BaseUrl)
+ .Accept(HttpAccept.Json);
+
+ requestBuilder.AddQueryParam("passkey", Settings.Passkey);
+ if (!string.IsNullOrWhiteSpace(Settings.User))
+ {
+ requestBuilder.AddQueryParam("user", Settings.User);
+ }
+ else
+ {
+ requestBuilder.AddQueryParam("user", "");
+ }
+
+ requestBuilder.AddQueryParam("search", "the");
+
+ yield return new IndexerRequest(requestBuilder.Build());
+ }
+
+ private IEnumerable GetMovieRequest(MovieSearchCriteria searchCriteria)
+ {
+ var requestBuilder = new HttpRequestBuilder(Settings.BaseUrl)
+ .Accept(HttpAccept.Json);
+
+ requestBuilder.AddQueryParam("passkey", Settings.Passkey);
+
+ if (!string.IsNullOrWhiteSpace(Settings.User))
+ {
+ requestBuilder.AddQueryParam("user", Settings.User);
+ }
+ else
+ {
+ requestBuilder.AddQueryParam("user", "");
+ }
+
+ if (searchCriteria.Movie.ImdbId.IsNotNullOrWhiteSpace())
+ {
+ requestBuilder.AddQueryParam("imdbid", searchCriteria.Movie.ImdbId);
+ }
+ else
+ {
+ requestBuilder.AddQueryParam("search", searchCriteria.Movie.Title);
+ }
+
+ yield return new IndexerRequest(requestBuilder.Build());
+ }
+
+ public IndexerPageableRequestChain GetSearchRequests(MovieSearchCriteria searchCriteria)
+ {
+
+
+ var pageableRequests = new IndexerPageableRequestChain();
+
+ pageableRequests.Add(GetMovieRequest(searchCriteria));
+
+ return pageableRequests;
+
+
+ }
+ }
+}
diff --git a/src/NzbDrone.Core/Indexers/TorrentPotato/TorrentPotatoResponse.cs b/src/NzbDrone.Core/Indexers/TorrentPotato/TorrentPotatoResponse.cs
new file mode 100644
index 000000000..b0551ca67
--- /dev/null
+++ b/src/NzbDrone.Core/Indexers/TorrentPotato/TorrentPotatoResponse.cs
@@ -0,0 +1,27 @@
+using System;
+using System.Collections.Generic;
+
+namespace NzbDrone.Core.Indexers.TorrentPotato
+{
+
+ public class TorrentPotatoResponse
+ {
+ public Result[] results { get; set; }
+ public int total_results { get; set; }
+ }
+
+ public class Result
+ {
+ public string release_name { get; set; }
+ public string torrent_id { get; set; }
+ public string details_url { get; set; }
+ public string download_url { get; set; }
+ public bool freeleech { get; set; }
+ public string type { get; set; }
+ public int size { get; set; }
+ public int leechers { get; set; }
+ public int seeders { get; set; }
+ public DateTime publishdate { get; set; }
+ }
+
+}
diff --git a/src/NzbDrone.Core/Indexers/TorrentPotato/TorrentPotatoSettings.cs b/src/NzbDrone.Core/Indexers/TorrentPotato/TorrentPotatoSettings.cs
new file mode 100644
index 000000000..14c91e2d0
--- /dev/null
+++ b/src/NzbDrone.Core/Indexers/TorrentPotato/TorrentPotatoSettings.cs
@@ -0,0 +1,38 @@
+using FluentValidation;
+using NzbDrone.Core.Annotations;
+using NzbDrone.Core.ThingiProvider;
+using NzbDrone.Core.Validation;
+
+namespace NzbDrone.Core.Indexers.TorrentPotato
+{
+ public class TorrentPotatoSettingsValidator : AbstractValidator
+ {
+ public TorrentPotatoSettingsValidator()
+ {
+ RuleFor(c => c.BaseUrl).ValidRootUrl();
+ }
+ }
+
+ public class TorrentPotatoSettings : IProviderConfig
+ {
+ private static readonly TorrentPotatoSettingsValidator Validator = new TorrentPotatoSettingsValidator();
+
+ public TorrentPotatoSettings()
+ {
+ BaseUrl = "http://127.0.0.1";
+ }
+
+ [FieldDefinition(0, Label = "API URL", HelpText = "URL to TorrentPotato api.")]
+ public string BaseUrl { get; set; }
+
+ [FieldDefinition(1, Label = "Username", HelpText = "The username you use at your indexer.")]
+ public string User { get; set; }
+
+ [FieldDefinition(2, Label = "Passkey", HelpText = "The password you use at your Indexer,")]
+ public string Passkey { get; set; }
+ public NzbDroneValidationResult Validate()
+ {
+ return new NzbDroneValidationResult(Validator.Validate(this));
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/NzbDrone.Core/Indexers/TorrentRss/TorrentRssIndexerRequestGenerator.cs b/src/NzbDrone.Core/Indexers/TorrentRss/TorrentRssIndexerRequestGenerator.cs
index a0bf58cbc..1a77709cd 100644
--- a/src/NzbDrone.Core/Indexers/TorrentRss/TorrentRssIndexerRequestGenerator.cs
+++ b/src/NzbDrone.Core/Indexers/TorrentRss/TorrentRssIndexerRequestGenerator.cs
@@ -1,4 +1,5 @@
-using System.Collections.Generic;
+using System;
+using System.Collections.Generic;
using NzbDrone.Common.Extensions;
using NzbDrone.Common.Http;
using NzbDrone.Core.IndexerSearch.Definitions;
@@ -23,6 +24,11 @@ namespace NzbDrone.Core.Indexers.TorrentRss
return new IndexerPageableRequestChain();
}
+ public IndexerPageableRequestChain GetSearchRequests(MovieSearchCriteria searchCriteria)
+ {
+ return new IndexerPageableRequestChain();
+ }
+
public virtual IndexerPageableRequestChain GetSearchRequests(SeasonSearchCriteria searchCriteria)
{
return new IndexerPageableRequestChain();
diff --git a/src/NzbDrone.Core/Indexers/Torrentleech/Torrentleech.cs b/src/NzbDrone.Core/Indexers/Torrentleech/Torrentleech.cs
deleted file mode 100644
index 5c7620a1a..000000000
--- a/src/NzbDrone.Core/Indexers/Torrentleech/Torrentleech.cs
+++ /dev/null
@@ -1,32 +0,0 @@
-using NzbDrone.Common.Http;
-using NzbDrone.Core.Configuration;
-using NzbDrone.Core.Parser;
-using NLog;
-
-namespace NzbDrone.Core.Indexers.Torrentleech
-{
- public class Torrentleech : HttpIndexerBase
- {
- public override string Name => "TorrentLeech";
-
- public override DownloadProtocol Protocol => DownloadProtocol.Torrent;
- public override bool SupportsSearch => false;
- public override int PageSize => 0;
-
- public Torrentleech(IHttpClient httpClient, IIndexerStatusService indexerStatusService, IConfigService configService, IParsingService parsingService, Logger logger)
- : base(httpClient, indexerStatusService, configService, parsingService, logger)
- {
-
- }
-
- public override IIndexerRequestGenerator GetRequestGenerator()
- {
- return new TorrentleechRequestGenerator() { Settings = Settings };
- }
-
- public override IParseIndexerResponse GetParser()
- {
- return new TorrentRssParser() { UseGuidInfoUrl = true, ParseSeedersInDescription = true };
- }
- }
-}
diff --git a/src/NzbDrone.Core/Indexers/Torrentleech/TorrentleechSettings.cs b/src/NzbDrone.Core/Indexers/Torrentleech/TorrentleechSettings.cs
deleted file mode 100644
index 957bfc3ed..000000000
--- a/src/NzbDrone.Core/Indexers/Torrentleech/TorrentleechSettings.cs
+++ /dev/null
@@ -1,37 +0,0 @@
-using FluentValidation;
-using NzbDrone.Core.Annotations;
-using NzbDrone.Core.ThingiProvider;
-using NzbDrone.Core.Validation;
-
-namespace NzbDrone.Core.Indexers.Torrentleech
-{
- public class TorrentleechSettingsValidator : AbstractValidator
- {
- public TorrentleechSettingsValidator()
- {
- RuleFor(c => c.BaseUrl).ValidRootUrl();
- RuleFor(c => c.ApiKey).NotEmpty();
- }
- }
-
- public class TorrentleechSettings : IProviderConfig
- {
- private static readonly TorrentleechSettingsValidator Validator = new TorrentleechSettingsValidator();
-
- public TorrentleechSettings()
- {
- BaseUrl = "http://rss.torrentleech.org";
- }
-
- [FieldDefinition(0, Label = "Website URL")]
- public string BaseUrl { get; set; }
-
- [FieldDefinition(1, Label = "API Key")]
- public string ApiKey { get; set; }
-
- public NzbDroneValidationResult Validate()
- {
- return new NzbDroneValidationResult(Validator.Validate(this));
- }
- }
-}
\ No newline at end of file
diff --git a/src/NzbDrone.Core/Indexers/Torznab/Torznab.cs b/src/NzbDrone.Core/Indexers/Torznab/Torznab.cs
index 8d2649c2d..b17573758 100644
--- a/src/NzbDrone.Core/Indexers/Torznab/Torznab.cs
+++ b/src/NzbDrone.Core/Indexers/Torznab/Torznab.cs
@@ -7,7 +7,9 @@ using NzbDrone.Common.Extensions;
using NzbDrone.Common.Http;
using NzbDrone.Core.Configuration;
using NzbDrone.Core.Indexers.Newznab;
+using NzbDrone.Core.IndexerSearch.Definitions;
using NzbDrone.Core.Parser;
+using NzbDrone.Core.Parser.Model;
using NzbDrone.Core.ThingiProvider;
namespace NzbDrone.Core.Indexers.Torznab
@@ -95,8 +97,7 @@ namespace NzbDrone.Core.Indexers.Torznab
}
if (capabilities.SupportedTvSearchParameters != null &&
- new[] { "q", "tvdbid", "rid" }.Any(v => capabilities.SupportedTvSearchParameters.Contains(v)) &&
- new[] { "season", "ep" }.All(v => capabilities.SupportedTvSearchParameters.Contains(v)))
+ new[] { "q", "imdbid" }.Any(v => capabilities.SupportedTvSearchParameters.Contains(v)))
{
return null;
}
@@ -110,5 +111,6 @@ namespace NzbDrone.Core.Indexers.Torznab
return new ValidationFailure(string.Empty, "Unable to connect to indexer, check the log for more details");
}
}
+
}
}
diff --git a/src/NzbDrone.Core/Indexers/Torznab/TorznabRssParser.cs b/src/NzbDrone.Core/Indexers/Torznab/TorznabRssParser.cs
index 253386963..27ad87129 100644
--- a/src/NzbDrone.Core/Indexers/Torznab/TorznabRssParser.cs
+++ b/src/NzbDrone.Core/Indexers/Torznab/TorznabRssParser.cs
@@ -39,10 +39,7 @@ namespace NzbDrone.Core.Indexers.Torznab
protected override ReleaseInfo ProcessItem(XElement item, ReleaseInfo releaseInfo)
{
var torrentInfo = base.ProcessItem(item, releaseInfo) as TorrentInfo;
-
- torrentInfo.TvdbId = GetTvdbId(item);
- torrentInfo.TvRageId = GetTvRageId(item);
-
+ torrentInfo.ImdbId = int.Parse(GetImdbId(item).Substring(2));
return torrentInfo;
}
@@ -100,31 +97,12 @@ namespace NzbDrone.Core.Indexers.Torznab
return url;
}
- protected virtual int GetTvdbId(XElement item)
+ protected virtual string GetImdbId(XElement item)
{
- var tvdbIdString = TryGetTorznabAttribute(item, "tvdbid");
- int tvdbId;
-
- if (!tvdbIdString.IsNullOrWhiteSpace() && int.TryParse(tvdbIdString, out tvdbId))
- {
- return tvdbId;
- }
-
- return 0;
+ var imdbIdString = TryGetTorznabAttribute(item, "imdbid");
+ return (!imdbIdString.IsNullOrWhiteSpace() ? imdbIdString.Substring(2) : null);
}
- protected virtual int GetTvRageId(XElement item)
- {
- var tvRageIdString = TryGetTorznabAttribute(item, "rageid");
- int tvRageId;
-
- if (!tvRageIdString.IsNullOrWhiteSpace() && int.TryParse(tvRageIdString, out tvRageId))
- {
- return tvRageId;
- }
-
- return 0;
- }
protected override string GetInfoHash(XElement item)
{
return TryGetTorznabAttribute(item, "infohash");
diff --git a/src/NzbDrone.Core/Indexers/Wombles/Wombles.cs b/src/NzbDrone.Core/Indexers/Wombles/Wombles.cs
index 571a85288..eab281ee8 100644
--- a/src/NzbDrone.Core/Indexers/Wombles/Wombles.cs
+++ b/src/NzbDrone.Core/Indexers/Wombles/Wombles.cs
@@ -1,7 +1,11 @@
-using NLog;
+using System;
+using System.Collections.Generic;
+using NLog;
using NzbDrone.Common.Http;
using NzbDrone.Core.Configuration;
+using NzbDrone.Core.IndexerSearch.Definitions;
using NzbDrone.Core.Parser;
+using NzbDrone.Core.Parser.Model;
using NzbDrone.Core.ThingiProvider;
namespace NzbDrone.Core.Indexers.Wombles
@@ -20,7 +24,7 @@ namespace NzbDrone.Core.Indexers.Wombles
public override IIndexerRequestGenerator GetRequestGenerator()
{
- return new RssIndexerRequestGenerator("http://newshost.co.za/rss/?sec=TV&fr=false");
+ return new RssIndexerRequestGenerator("http://newshost.co.za/rss/?sec=Movies&fr=false");
}
public Wombles(IHttpClient httpClient, IIndexerStatusService indexerStatusService, IConfigService configService, IParsingService parsingService, Logger logger)
diff --git a/src/NzbDrone.Core/Jobs/ScheduledTask.cs b/src/NzbDrone.Core/Jobs/ScheduledTask.cs
index 5d842696d..a91faf3d1 100644
--- a/src/NzbDrone.Core/Jobs/ScheduledTask.cs
+++ b/src/NzbDrone.Core/Jobs/ScheduledTask.cs
@@ -6,7 +6,7 @@ namespace NzbDrone.Core.Jobs
public class ScheduledTask : ModelBase
{
public string TypeName { get; set; }
- public int Interval { get; set; }
+ public double Interval { get; set; }
public DateTime LastExecution { get; set; }
}
}
\ No newline at end of file
diff --git a/src/NzbDrone.Core/Jobs/TaskManager.cs b/src/NzbDrone.Core/Jobs/TaskManager.cs
index 3ad7b909a..33ba087b4 100644
--- a/src/NzbDrone.Core/Jobs/TaskManager.cs
+++ b/src/NzbDrone.Core/Jobs/TaskManager.cs
@@ -61,7 +61,7 @@ namespace NzbDrone.Core.Jobs
{
var defaultTasks = new[]
{
- new ScheduledTask{ Interval = 1, TypeName = typeof(CheckForFinishedDownloadCommand).FullName},
+ new ScheduledTask{ Interval = 0.25f, TypeName = typeof(CheckForFinishedDownloadCommand).FullName},
new ScheduledTask{ Interval = 5, TypeName = typeof(MessagingCleanupCommand).FullName},
new ScheduledTask{ Interval = 6*60, TypeName = typeof(ApplicationUpdateCommand).FullName},
new ScheduledTask{ Interval = 3*60, TypeName = typeof(UpdateSceneMappingCommand).FullName},
diff --git a/src/NzbDrone.Core/MediaCover/MediaCoverService.cs b/src/NzbDrone.Core/MediaCover/MediaCoverService.cs
index deb2b35a5..048d04068 100644
--- a/src/NzbDrone.Core/MediaCover/MediaCoverService.cs
+++ b/src/NzbDrone.Core/MediaCover/MediaCoverService.cs
@@ -22,6 +22,8 @@ namespace NzbDrone.Core.MediaCover
public class MediaCoverService :
IHandleAsync,
+ IHandleAsync,
+ IHandleAsync,
IHandleAsync,
IMapCoversToLocal
{
@@ -83,6 +85,8 @@ namespace NzbDrone.Core.MediaCover
return Path.Combine(_coverRootFolder, seriesId.ToString());
}
+
+
private void EnsureCovers(Series series)
{
foreach (var cover in series.Images)
@@ -110,6 +114,33 @@ namespace NzbDrone.Core.MediaCover
}
}
+ private void EnsureCovers(Movie movie)
+ {
+ foreach (var cover in movie.Images)
+ {
+ var fileName = GetCoverPath(movie.Id, cover.CoverType);
+ var alreadyExists = false;
+ try
+ {
+ alreadyExists = _coverExistsSpecification.AlreadyExists(cover.Url, fileName);
+ if (!alreadyExists)
+ {
+ DownloadCover(movie, cover);
+ }
+ }
+ catch (WebException e)
+ {
+ _logger.Warn(string.Format("Couldn't download media cover for {0}. {1}", movie, e.Message));
+ }
+ catch (Exception e)
+ {
+ _logger.Error(e, "Couldn't download media cover for " + movie);
+ }
+
+ EnsureResizedCovers(movie, cover, !alreadyExists);
+ }
+ }
+
private void DownloadCover(Series series, MediaCover cover)
{
var fileName = GetCoverPath(series.Id, cover.CoverType);
@@ -118,6 +149,14 @@ namespace NzbDrone.Core.MediaCover
_httpClient.DownloadFile(cover.Url, fileName);
}
+ private void DownloadCover(Movie series, MediaCover cover)
+ {
+ var fileName = GetCoverPath(series.Id, cover.CoverType);
+
+ _logger.Info("Downloading {0} for {1} {2}", cover.CoverType, series, cover.Url);
+ _httpClient.DownloadFile(cover.Url, fileName);
+ }
+
private void EnsureResizedCovers(Series series, MediaCover cover, bool forceResize)
{
int[] heights;
@@ -163,12 +202,69 @@ namespace NzbDrone.Core.MediaCover
}
}
+ private void EnsureResizedCovers(Movie series, MediaCover cover, bool forceResize)
+ {
+ int[] heights;
+
+ switch (cover.CoverType)
+ {
+ default:
+ return;
+
+ case MediaCoverTypes.Poster:
+ case MediaCoverTypes.Headshot:
+ heights = new[] { 500, 250 };
+ break;
+
+ case MediaCoverTypes.Banner:
+ heights = new[] { 70, 35 };
+ break;
+
+ case MediaCoverTypes.Fanart:
+ case MediaCoverTypes.Screenshot:
+ heights = new[] { 360, 180 };
+ break;
+ }
+
+ foreach (var height in heights)
+ {
+ var mainFileName = GetCoverPath(series.Id, cover.CoverType);
+ var resizeFileName = GetCoverPath(series.Id, cover.CoverType, height);
+
+ if (forceResize || !_diskProvider.FileExists(resizeFileName) || _diskProvider.GetFileSize(resizeFileName) == 0)
+ {
+ _logger.Debug("Resizing {0}-{1} for {2}", cover.CoverType, height, series);
+
+ try
+ {
+ _resizer.Resize(mainFileName, resizeFileName, height);
+ }
+ catch
+ {
+ _logger.Debug("Couldn't resize media cover {0}-{1} for {2}, using full size image instead.", cover.CoverType, height, series);
+ }
+ }
+ }
+ }
+
public void HandleAsync(SeriesUpdatedEvent message)
{
EnsureCovers(message.Series);
_eventAggregator.PublishEvent(new MediaCoversUpdatedEvent(message.Series));
}
+ public void HandleAsync(MovieUpdatedEvent message)
+ {
+ EnsureCovers(message.Movie);
+ _eventAggregator.PublishEvent(new MediaCoversUpdatedEvent(message.Movie));
+ }
+
+ public void HandleAsync(MovieAddedEvent message)
+ {
+ EnsureCovers(message.Movie);
+ _eventAggregator.PublishEvent(new MediaCoversUpdatedEvent(message.Movie));
+ }
+
public void HandleAsync(SeriesDeletedEvent message)
{
var path = GetSeriesCoverPath(message.Series.Id);
diff --git a/src/NzbDrone.Core/MediaCover/MediaCoversUpdatedEvent.cs b/src/NzbDrone.Core/MediaCover/MediaCoversUpdatedEvent.cs
index 7335f7f9b..2f56e7cb0 100644
--- a/src/NzbDrone.Core/MediaCover/MediaCoversUpdatedEvent.cs
+++ b/src/NzbDrone.Core/MediaCover/MediaCoversUpdatedEvent.cs
@@ -7,9 +7,16 @@ namespace NzbDrone.Core.MediaCover
{
public Series Series { get; set; }
+ public Movie Movie { get; set; }
+
public MediaCoversUpdatedEvent(Series series)
{
Series = series;
}
+
+ public MediaCoversUpdatedEvent(Movie movie)
+ {
+ Movie = movie;
+ }
}
}
diff --git a/src/NzbDrone.Core/MediaFiles/Commands/DownloadedMovieScanCommand.cs b/src/NzbDrone.Core/MediaFiles/Commands/DownloadedMovieScanCommand.cs
new file mode 100644
index 000000000..69e1bb34d
--- /dev/null
+++ b/src/NzbDrone.Core/MediaFiles/Commands/DownloadedMovieScanCommand.cs
@@ -0,0 +1,17 @@
+using NzbDrone.Core.MediaFiles.EpisodeImport;
+using NzbDrone.Core.Messaging.Commands;
+
+namespace NzbDrone.Core.MediaFiles.Commands
+{
+ public class DownloadedMovieScanCommand : Command
+ {
+ public override bool SendUpdatesToClient => SendUpdates;
+
+ public bool SendUpdates { get; set; }
+
+ // Properties used by third-party apps, do not modify.
+ public string Path { get; set; }
+ public string DownloadClientId { get; set; }
+ public ImportMode ImportMode { get; set; }
+ }
+}
diff --git a/src/NzbDrone.Core/MediaFiles/Commands/RenameFilesCommand.cs b/src/NzbDrone.Core/MediaFiles/Commands/RenameFilesCommand.cs
index e0dc34e10..5cbbe7dfb 100644
--- a/src/NzbDrone.Core/MediaFiles/Commands/RenameFilesCommand.cs
+++ b/src/NzbDrone.Core/MediaFiles/Commands/RenameFilesCommand.cs
@@ -1,4 +1,4 @@
-using System.Collections.Generic;
+using System.Collections.Generic;
using NzbDrone.Core.Messaging.Commands;
namespace NzbDrone.Core.MediaFiles.Commands
diff --git a/src/NzbDrone.Core/MediaFiles/Commands/RenameMovieCommand.cs b/src/NzbDrone.Core/MediaFiles/Commands/RenameMovieCommand.cs
new file mode 100644
index 000000000..012a835f8
--- /dev/null
+++ b/src/NzbDrone.Core/MediaFiles/Commands/RenameMovieCommand.cs
@@ -0,0 +1,19 @@
+using NzbDrone.Core.Messaging.Commands;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+
+namespace NzbDrone.Core.MediaFiles.Commands
+{
+ public class RenameMovieCommand : Command
+ {
+ public List MovieIds { get; set; }
+
+ public override bool SendUpdatesToClient => true;
+
+ public RenameMovieCommand()
+ {
+ }
+ }
+}
diff --git a/src/NzbDrone.Core/MediaFiles/Commands/RenameMovieFilesCommand.cs b/src/NzbDrone.Core/MediaFiles/Commands/RenameMovieFilesCommand.cs
new file mode 100644
index 000000000..d2781e3ab
--- /dev/null
+++ b/src/NzbDrone.Core/MediaFiles/Commands/RenameMovieFilesCommand.cs
@@ -0,0 +1,26 @@
+using NzbDrone.Core.Messaging.Commands;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+
+namespace NzbDrone.Core.MediaFiles.Commands
+{
+ public class RenameMovieFilesCommand : Command
+ {
+ public int MovieId { get; set; }
+ public List Files { get; set; }
+
+ public override bool SendUpdatesToClient => true;
+
+ public RenameMovieFilesCommand()
+ {
+ }
+
+ public RenameMovieFilesCommand(int movieId, List files)
+ {
+ MovieId = movieId;
+ Files = files;
+ }
+ }
+}
diff --git a/src/NzbDrone.Core/MediaFiles/Commands/RescanMovieCommand.cs b/src/NzbDrone.Core/MediaFiles/Commands/RescanMovieCommand.cs
new file mode 100644
index 000000000..3671aa6af
--- /dev/null
+++ b/src/NzbDrone.Core/MediaFiles/Commands/RescanMovieCommand.cs
@@ -0,0 +1,20 @@
+using NzbDrone.Core.Messaging.Commands;
+
+namespace NzbDrone.Core.MediaFiles.Commands
+{
+ public class RescanMovieCommand : Command
+ {
+ public int? MovieId { get; set; }
+
+ public override bool SendUpdatesToClient => true;
+
+ public RescanMovieCommand()
+ {
+ }
+
+ public RescanMovieCommand(int movieId)
+ {
+ MovieId = movieId;
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/NzbDrone.Core/MediaFiles/DiskScanService.cs b/src/NzbDrone.Core/MediaFiles/DiskScanService.cs
index 84a75e8e6..1c37adb82 100644
--- a/src/NzbDrone.Core/MediaFiles/DiskScanService.cs
+++ b/src/NzbDrone.Core/MediaFiles/DiskScanService.cs
@@ -22,6 +22,7 @@ namespace NzbDrone.Core.MediaFiles
public interface IDiskScanService
{
void Scan(Series series);
+ void Scan(Movie movie);
string[] GetVideoFiles(string path, bool allDirectories = true);
string[] GetNonVideoFiles(string path, bool allDirectories = true);
List