The main video file was correctly detected and moved.
It looks for the folders that remain the name is sometimes not conformant, but sometimes it looks like it is.
But, given the name contains the word “sample”, could the detection logic be updated to detect “**sample.ext” or “sample”?
Or is there another way?
Sonarr uses the runtime of the file to determine if it is a sample or not (based off the runtime of the series), relying on the filename is extremely unreliable.
Debug logs should show the runtime and why it didn’t remove it.
Example, looks like the file name parse causes the fail:
15-4-26 06:02:15.2|Debug|Parser|Parsing string 'Shaun.The.Sheep.S01E03.Shape.Up.With.Shaun.DVDRiP.XViD-WPi’
15-4-26 06:02:15.2|Debug|Parser|Episode Parsed. shaunsheep - S01E03
15-4-26 06:02:15.2|Debug|Parser|Language parsed: English
15-4-26 06:02:15.2|Debug|NzbDrone.Core.Parser.QualityParser|Trying to parse quality for Shaun.The.Sheep.S01E03.Shape.Up.With.Shaun.DVDRiP.XViD-WPi
15-4-26 06:02:15.2|Debug|Parser|Quality parsed: DVD v1
15-4-26 06:02:15.2|Debug|Parser|Release Group parsed: WPi
15-4-26 06:02:15.2|Debug|Parser|Parsing string 'Shaun.The.Sheep.S01E03.Shape.Up.With.Shaun.DVDRiP.XViD-WPi’
15-4-26 06:02:15.2|Debug|Parser|Episode Parsed. shaunsheep - S01E03
15-4-26 06:02:15.2|Debug|Parser|Language parsed: English
15-4-26 06:02:15.2|Debug|NzbDrone.Core.Parser.QualityParser|Trying to parse quality for Shaun.The.Sheep.S01E03.Shape.Up.With.Shaun.DVDRiP.XViD-WPi
15-4-26 06:02:15.2|Debug|Parser|Quality parsed: DVD v1
15-4-26 06:02:15.2|Debug|Parser|Release Group parsed: WPi
15-4-26 06:02:15.2|Debug|DownloadedEpisodesImportService|Shaun.The.Sheep.S01E03.Shape.Up.With.Shaun.DVDRiP.XViD-WPi folder quality: DVD v1
15-4-26 06:02:15.2|Debug|DiskScanService|Scanning ‘D:\Transfer\Complete\Series\Shaun.The.Sheep.S01E03.Shape.Up.With.Shaun.DVDRiP.XViD-WPi’ for video files
15-4-26 06:02:15.2|Debug|DiskScanService|1 video files were found in D:\Transfer\Complete\Series\Shaun.The.Sheep.S01E03.Shape.Up.With.Shaun.DVDRiP.XViD-WPi
15-4-26 06:02:15.2|Debug|ImportDecisionMaker|Analyzing 1/1 files.
15-4-26 06:02:15.2|Debug|NzbDrone.Core.Parser.QualityParser|Trying to parse quality for D:\Transfer\Complete\Series\Shaun.The.Sheep.S01E03.Shape.Up.With.Shaun.DVDRiP.XViD-WPi\sts103-wpi-sample.avi
15-4-26 06:02:15.2|Debug|VideoFileInfoReader|Getting media info from D:\Transfer\Complete\Series\Shaun.The.Sheep.S01E03.Shape.Up.With.Shaun.DVDRiP.XViD-WPi\sts103-wpi-sample.avi
15-4-26 06:02:15.2|Debug|DetectSample|[D:\Transfer\Complete\Series\Shaun.The.Sheep.S01E03.Shape.Up.With.Shaun.DVDRiP.XViD-WPi\sts103-wpi-sample.avi] appears to be a sample. Runtime: 00:01:01.4400000 seconds. Expected at least: 300 seconds
15-4-26 06:02:15.2|Debug|Parser|Parsing string 'sts103-wpi-sample.avi’
15-4-26 06:02:15.2|Debug|Parser|Unable to parse sts103-wpi-sample.avi
15-4-26 06:02:15.2|Debug|Parser|Attempting to parse episode info using directory and file names. Shaun.The.Sheep.S01E03.Shape.Up.With.Shaun.DVDRiP.XViD-WPi
15-4-26 06:02:15.2|Debug|Parser|Parsing string 'Shaun.The.Sheep.S01E03.Shape.Up.With.Shaun.DVDRiP.XViD-WPi sts103-wpi-sample.avi.avi’
15-4-26 06:02:15.2|Debug|Parser|Episode Parsed. shaunsheep - S01E03
15-4-26 06:02:15.2|Debug|Parser|Language parsed: English
15-4-26 06:02:15.2|Debug|NzbDrone.Core.Parser.QualityParser|Trying to parse quality for Shaun.The.Sheep.S01E03.Shape.Up.With.Shaun.DVDRiP.XViD-WPi sts103-wpi-sample.avi.avi
15-4-26 06:02:15.2|Debug|Parser|Quality parsed: DVD v1
15-4-26 06:02:15.2|Debug|Parser|Release Group parsed: sample
15-4-26 06:02:15.2|Debug|ImportDecisionMaker|Size: 11565268
15-4-26 06:02:15.2|Debug|VideoFileInfoReader|Getting media info from D:\Transfer\Complete\Series\Shaun.The.Sheep.S01E03.Shape.Up.With.Shaun.DVDRiP.XViD-WPi\sts103-wpi-sample.avi
15-4-26 06:02:15.3|Debug|Parser|Parsing string 'Shaun.The.Sheep.S01E03.Shape.Up.With.Shaun.DVDRiP.XViD-WPi’
15-4-26 06:02:15.3|Debug|Parser|Episode Parsed. shaunsheep - S01E03
15-4-26 06:02:15.3|Debug|Parser|Language parsed: English
15-4-26 06:02:15.3|Debug|NzbDrone.Core.Parser.QualityParser|Trying to parse quality for Shaun.The.Sheep.S01E03.Shape.Up.With.Shaun.DVDRiP.XViD-WPi
15-4-26 06:02:15.3|Debug|Parser|Quality parsed: DVD v1
15-4-26 06:02:15.3|Debug|Parser|Release Group parsed: WPi
15-4-26 06:02:15.3|Debug|VideoFileInfoReader|Getting media info from D:\Transfer\Complete\Series\Shaun.The.Sheep.S01E03.Shape.Up.With.Shaun.DVDRiP.XViD-WPi\sts103-wpi-sample.avi
15-4-26 06:02:15.3|Debug|DetectSample|[D:\Transfer\Complete\Series\Shaun.The.Sheep.S01E03.Shape.Up.With.Shaun.DVDRiP.XViD-WPi\sts103-wpi-sample.avi] appears to be a sample. Runtime: 00:01:01.4400000 seconds. Expected at least: 300 seconds
15-4-26 06:02:15.3|Debug|DiskScanService|Scanning ‘D:\Transfer\Complete\Series\Shaun.The.Sheep.S01E03.Shape.Up.With.Shaun.DVDRiP.XViD-WPi’ for video files
15-4-26 06:02:15.3|Debug|DiskScanService|1 video files were found in D:\Transfer\Complete\Series\Shaun.The.Sheep.S01E03.Shape.Up.With.Shaun.DVDRiP.XViD-WPi
15-4-26 06:02:15.3|Debug|Parser|Parsing string 'sts103-wpi-sample.avi’
15-4-26 06:02:15.3|Debug|Parser|Unable to parse sts103-wpi-sample.avi
15-4-26 06:02:15.3|Warn|DownloadedEpisodesImportService|Unable to parse file on import: [D:\Transfer\Complete\Series\Shaun.The.Sheep.S01E03.Shape.Up.With.Shaun.DVDRiP.XViD-WPi\sts103-wpi-sample.avi]
Example, looks like folder contains sample file names matching a different episode and ar treated as non-samples:
15-4-26 06:01:09.4|Debug|Parser|Parsing string 'Jake.And.The.Never.Land.Pirates.S01E01.DVDRip.XviD-FFNDVD’
15-4-26 06:01:09.4|Debug|Parser|Episode Parsed. jakeneverlandpirates - S01E01
15-4-26 06:01:09.4|Debug|Parser|Language parsed: English
15-4-26 06:01:09.4|Debug|NzbDrone.Core.Parser.QualityParser|Trying to parse quality for Jake.And.The.Never.Land.Pirates.S01E01.DVDRip.XviD-FFNDVD
15-4-26 06:01:09.4|Debug|Parser|Quality parsed: DVD v1
15-4-26 06:01:09.4|Debug|Parser|Release Group parsed: FFNDVD
15-4-26 06:01:09.4|Debug|Parser|Parsing string 'Jake.And.The.Never.Land.Pirates.S01E01.DVDRip.XviD-FFNDVD’
15-4-26 06:01:09.4|Debug|Parser|Episode Parsed. jakeneverlandpirates - S01E01
15-4-26 06:01:09.4|Debug|Parser|Language parsed: English
15-4-26 06:01:09.4|Debug|NzbDrone.Core.Parser.QualityParser|Trying to parse quality for Jake.And.The.Never.Land.Pirates.S01E01.DVDRip.XviD-FFNDVD
15-4-26 06:01:09.4|Debug|Parser|Quality parsed: DVD v1
15-4-26 06:01:09.4|Debug|Parser|Release Group parsed: FFNDVD
15-4-26 06:01:09.4|Debug|DownloadedEpisodesImportService|Jake.And.The.Never.Land.Pirates.S01E01.DVDRip.XviD-FFNDVD folder quality: DVD v1
15-4-26 06:01:09.4|Debug|DiskScanService|Scanning ‘D:\Transfer\Complete\Series\Jake.And.The.Never.Land.Pirates.S01E01.DVDRip.XviD-FFNDVD’ for video files
15-4-26 06:01:09.4|Debug|DiskScanService|2 video files were found in D:\Transfer\Complete\Series\Jake.And.The.Never.Land.Pirates.S01E01.DVDRip.XviD-FFNDVD
15-4-26 06:01:09.4|Debug|ImportDecisionMaker|Analyzing 2/2 files.
15-4-26 06:01:09.4|Debug|NzbDrone.Core.Parser.QualityParser|Trying to parse quality for D:\Transfer\Complete\Series\Jake.And.The.Never.Land.Pirates.S01E01.DVDRip.XviD-FFNDVD\jake.and.the.never.land.pirates.s01e02.dvdrip.xvid-ffndvd.avi
15-4-26 06:01:09.4|Debug|VideoFileInfoReader|Getting media info from D:\Transfer\Complete\Series\Jake.And.The.Never.Land.Pirates.S01E01.DVDRip.XviD-FFNDVD\jake.and.the.never.land.pirates.s01e02.dvdrip.xvid-ffndvd.avi
15-4-26 06:01:09.5|Debug|DetectSample|Runtime is over 90 seconds
15-4-26 06:01:09.5|Debug|Parser|Parsing string 'jake.and.the.never.land.pirates.s01e02.dvdrip.xvid-ffndvd.avi’
15-4-26 06:01:09.5|Debug|Parser|Episode Parsed. jakeneverlandpirates - S01E02
15-4-26 06:01:09.5|Debug|Parser|Language parsed: English
15-4-26 06:01:09.5|Debug|NzbDrone.Core.Parser.QualityParser|Trying to parse quality for jake.and.the.never.land.pirates.s01e02.dvdrip.xvid-ffndvd.avi
15-4-26 06:01:09.5|Debug|Parser|Quality parsed: DVD v1
15-4-26 06:01:09.5|Debug|Parser|Release Group parsed: ffndvd
15-4-26 06:01:09.5|Debug|NzbDrone.Core.Parser.QualityParser|Trying to parse quality for D:\Transfer\Complete\Series\Jake.And.The.Never.Land.Pirates.S01E01.DVDRip.XviD-FFNDVD\jake.and.the.never.land.pirates.s01e02.dvdrip.xvid-ffndvd.sample.avi
15-4-26 06:01:09.5|Debug|VideoFileInfoReader|Getting media info from D:\Transfer\Complete\Series\Jake.And.The.Never.Land.Pirates.S01E01.DVDRip.XviD-FFNDVD\jake.and.the.never.land.pirates.s01e02.dvdrip.xvid-ffndvd.sample.avi
15-4-26 06:01:09.5|Debug|DetectSample|[D:\Transfer\Complete\Series\Jake.And.The.Never.Land.Pirates.S01E01.DVDRip.XviD-FFNDVD\jake.and.the.never.land.pirates.s01e02.dvdrip.xvid-ffndvd.sample.avi] appears to be a sample. Runtime: 00:01:02.3120000 seconds. Expected at least: 300 seconds
15-4-26 06:01:09.5|Debug|Parser|Parsing string 'jake.and.the.never.land.pirates.s01e02.dvdrip.xvid-ffndvd.avi’
15-4-26 06:01:09.5|Debug|Parser|Episode Parsed. jakeneverlandpirates - S01E02
15-4-26 06:01:09.5|Debug|Parser|Language parsed: English
15-4-26 06:01:09.5|Debug|NzbDrone.Core.Parser.QualityParser|Trying to parse quality for jake.and.the.never.land.pirates.s01e02.dvdrip.xvid-ffndvd.avi
15-4-26 06:01:09.5|Debug|Parser|Quality parsed: DVD v1
15-4-26 06:01:09.5|Debug|Parser|Release Group parsed: ffndvd
15-4-26 06:01:09.6|Debug|ImportDecisionMaker|Size: 182710272
15-4-26 06:01:09.6|Debug|VideoFileInfoReader|Getting media info from D:\Transfer\Complete\Series\Jake.And.The.Never.Land.Pirates.S01E01.DVDRip.XviD-FFNDVD\jake.and.the.never.land.pirates.s01e02.dvdrip.xvid-ffndvd.avi
15-4-26 06:01:09.7|Debug|Parser|Parsing string 'Jake.And.The.Never.Land.Pirates.S01E01.DVDRip.XviD-FFNDVD’
15-4-26 06:01:09.7|Debug|Parser|Episode Parsed. jakeneverlandpirates - S01E01
15-4-26 06:01:09.7|Debug|Parser|Language parsed: English
15-4-26 06:01:09.7|Debug|NzbDrone.Core.Parser.QualityParser|Trying to parse quality for Jake.And.The.Never.Land.Pirates.S01E01.DVDRip.XviD-FFNDVD
15-4-26 06:01:09.7|Debug|Parser|Quality parsed: DVD v1
15-4-26 06:01:09.7|Debug|Parser|Release Group parsed: FFNDVD
15-4-26 06:01:09.7|Debug|MatchesFolderSpecification|Unexpected episode number(s) in file: 2
15-4-26 06:01:09.7|Debug|VideoFileInfoReader|Getting media info from D:\Transfer\Complete\Series\Jake.And.The.Never.Land.Pirates.S01E01.DVDRip.XviD-FFNDVD\jake.and.the.never.land.pirates.s01e02.dvdrip.xvid-ffndvd.avi
15-4-26 06:01:09.8|Debug|DetectSample|Runtime is over 90 seconds
15-4-26 06:01:09.8|Debug|Parser|Parsing string 'jake.and.the.never.land.pirates.s01e02.dvdrip.xvid-ffndvd.sample.avi’
15-4-26 06:01:09.8|Debug|Parser|Episode Parsed. jakeneverlandpirates - S01E02
15-4-26 06:01:09.8|Debug|Parser|Language parsed: English
15-4-26 06:01:09.8|Debug|NzbDrone.Core.Parser.QualityParser|Trying to parse quality for jake.and.the.never.land.pirates.s01e02.dvdrip.xvid-ffndvd.sample.avi
15-4-26 06:01:09.8|Debug|Parser|Quality parsed: DVD v1
15-4-26 06:01:09.8|Debug|Parser|Release Group parsed: ffndvd
15-4-26 06:01:09.8|Debug|ImportDecisionMaker|Size: 8331264
15-4-26 06:01:09.8|Debug|VideoFileInfoReader|Getting media info from D:\Transfer\Complete\Series\Jake.And.The.Never.Land.Pirates.S01E01.DVDRip.XviD-FFNDVD\jake.and.the.never.land.pirates.s01e02.dvdrip.xvid-ffndvd.sample.avi
15-4-26 06:01:09.8|Debug|Parser|Parsing string 'Jake.And.The.Never.Land.Pirates.S01E01.DVDRip.XviD-FFNDVD’
15-4-26 06:01:09.8|Debug|Parser|Episode Parsed. jakeneverlandpirates - S01E01
15-4-26 06:01:09.8|Debug|Parser|Language parsed: English
15-4-26 06:01:09.8|Debug|NzbDrone.Core.Parser.QualityParser|Trying to parse quality for Jake.And.The.Never.Land.Pirates.S01E01.DVDRip.XviD-FFNDVD
15-4-26 06:01:09.8|Debug|Parser|Quality parsed: DVD v1
15-4-26 06:01:09.8|Debug|Parser|Release Group parsed: FFNDVD
15-4-26 06:01:09.8|Debug|MatchesFolderSpecification|Unexpected episode number(s) in file: 2
15-4-26 06:01:09.8|Debug|VideoFileInfoReader|Getting media info from D:\Transfer\Complete\Series\Jake.And.The.Never.Land.Pirates.S01E01.DVDRip.XviD-FFNDVD\jake.and.the.never.land.pirates.s01e02.dvdrip.xvid-ffndvd.sample.avi
15-4-26 06:01:09.8|Debug|DetectSample|[D:\Transfer\Complete\Series\Jake.And.The.Never.Land.Pirates.S01E01.DVDRip.XviD-FFNDVD\jake.and.the.never.land.pirates.s01e02.dvdrip.xvid-ffndvd.sample.avi] appears to be a sample. Runtime: 00:01:02.3120000 seconds. Expected at least: 300 seconds
15-4-26 06:01:09.8|Debug|DiskScanService|Scanning ‘D:\Transfer\Complete\Series\Jake.And.The.Never.Land.Pirates.S01E01.DVDRip.XviD-FFNDVD’ for video files
15-4-26 06:01:09.8|Debug|DiskScanService|2 video files were found in D:\Transfer\Complete\Series\Jake.And.The.Never.Land.Pirates.S01E01.DVDRip.XviD-FFNDVD
15-4-26 06:01:09.8|Debug|Parser|Parsing string 'jake.and.the.never.land.pirates.s01e02.dvdrip.xvid-ffndvd.avi’
15-4-26 06:01:09.8|Debug|Parser|Episode Parsed. jakeneverlandpirates - S01E02
15-4-26 06:01:09.8|Debug|Parser|Language parsed: English
15-4-26 06:01:09.8|Debug|NzbDrone.Core.Parser.QualityParser|Trying to parse quality for jake.and.the.never.land.pirates.s01e02.dvdrip.xvid-ffndvd.avi
15-4-26 06:01:09.8|Debug|Parser|Quality parsed: DVD v1
15-4-26 06:01:09.8|Debug|Parser|Release Group parsed: ffndvd
15-4-26 06:01:09.8|Debug|NzbDrone.Core.Parser.QualityParser|Trying to parse quality for D:\Transfer\Complete\Series\Jake.And.The.Never.Land.Pirates.S01E01.DVDRip.XviD-FFNDVD\jake.and.the.never.land.pirates.s01e02.dvdrip.xvid-ffndvd.avi
15-4-26 06:01:09.8|Debug|VideoFileInfoReader|Getting media info from D:\Transfer\Complete\Series\Jake.And.The.Never.Land.Pirates.S01E01.DVDRip.XviD-FFNDVD\jake.and.the.never.land.pirates.s01e02.dvdrip.xvid-ffndvd.avi
15-4-26 06:01:09.9|Debug|DetectSample|Runtime is over 90 seconds
15-4-26 06:01:09.9|Warn|DownloadedEpisodesImportService|Non-sample file detected: [D:\Transfer\Complete\Series\Jake.And.The.Never.Land.Pirates.S01E01.DVDRip.XviD-FFNDVD\jake.and.the.never.land.pirates.s01e02.dvdrip.xvid-ffndvd.avi]
The first one is detected as a sample, but the folder was left behind for some reason (tough to say why without logs of the import process).
The second has a numbering conflict, which currently results in an error and there isn’t yet a way to override that error on Sonarr (already have a solution mostly implemented, but not released).
Sonarr won’t delete a folder unless it imports all the valid (non-sample) files in it, so the second issue is intended, the first issue sounds like an error during import, specifically the cleanup after import, so to anyone seeing this, debug logs of the import of that specific episode would be great.
When have free time I’ll redownload the shaun the sheep nzb and capture debug logs.
Yes, all files and folders are in the sabnzb tv series output folder, same folder as monitored by sonarr.