Folder not deleted after successful import

I had two different episodes download last night. Both had contained a Sample folder with a small video in it.
Both episodes where imported successfully and the files moved to the correct place. However, for one of the downloads Sonarr deleted the folder the episode used to be in (as expected) and for the other episode it did not delete the folder.

Here is some of the log for the folder that got deleted:
`16-2-9 01:36:50.8|Debug|NzbDrone.Core.Parser.QualityParser|Trying to parse quality for /data/Media/torrent/complete/tv/sonarr/The.Bachelor.S20E06.720p.HDTV.x264-ALTEREGO/Sample/sample-the.bachelor.s20e06.720p.hdtv.x264-alterego.mkv

16-2-9 01:36:50.8|Debug|VideoFileInfoReader|Getting media info from /data/Media/torrent/complete/tv/sonarr/The.Bachelor.S20E06.720p.HDTV.x264-ALTEREGO/Sample/sample-the.bachelor.s20e06.720p.hdtv.x264-alterego.mkv

16-2-9 01:36:50.9|Debug|DetectSample|[/data/Media/torrent/complete/tv/sonarr/The.Bachelor.S20E06.720p.HDTV.x264-ALTEREGO/Sample/sample-the.bachelor.s20e06.720p.hdtv.x264-alterego.mkv] appears to be a sample. Runtime: 00:00:58.5420000 seconds. Expected at least: 600 seconds

16-2-9 01:36:50.9|Debug|DownloadedEpisodesImportService|Deleting folder after importing valid files`

And here is some of the log for the folder that did not get deleted:
`16-2-9 06:54:08.7|Debug|NzbDrone.Core.Parser.QualityParser|Trying to parse quality for /data/Media/torrent/complete/tv/sonarr/Jimmy.Fallon.2016.02.08.Ben.Stiller.720p.HDTV.x264-aAF/Sample/jimmy.fallon.2016.02.08.ben.stiller.720p.hdtv.x264-aaf-sample.mkv

16-2-9 06:54:08.7|Debug|DetectSample|Special, skipping sample check

16-2-9 06:54:08.7|Warn|DownloadedEpisodesImportService|Non-sample file detected: [/data/Media/torrent/complete/tv/sonarr/Jimmy.Fallon.2016.02.08.Ben.Stiller.720p.HDTV.x264-aAF/Sample/jimmy.fallon.2016.02.08.ben.stiller.720p.hdtv.x264-aaf-sample.mkv]

16-2-9 06:54:08.7|Debug|DownloadEventHub|[Jimmy.Fallon.2016.02.08.Ben.Stiller.720p.HDTV.x264-aAF] Removing download from TorrentBlackhole history`

Any idea why the other folder did not get deleted?

Somehow thats detected as a special and because of that it skips the sample check and subsequently never deletes the folder, not sure how that would be picked up as a special.

How big is that file?
How long is that file?

From mediainfo:
Complete name : jimmy.fallon.2016.02.08.ben.stiller.720p.hdtv.x264-aaf-sample.mkv
File size : 26.1 MiB
Duration : 57s 199ms

1 Like

Need more of the log. The entire section from detection by CDH till Import. so 2016-02-09 06:53:30 - 2016-02-09 06:54:10 should do.

Here’s the log!
http://pastebin.com/rpvpFiN0

Tnx, found it.

@markus101, ShouldDeleteFolder checks for sample, yes, but daily doesn’t have SeasonNumber so it doesn’t actually check. I’ll fix it.

Awesome! Thanks so much.

Nice catch.

I actually have the same exact problem, with a daily but with a regular TV Show. Can’t figure why, would you have a clue?

pastebin.com/R1HFQAbC

Because there is a file that’s not a sample in there, based on the file name it looks legitimate.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.