Sonarr not detecting correct quality

Sonarr version (exact version): 2.0.0.4472
Mono version (if Sonarr is not running on Windows):
OS: Windows Server 2016
Description of issue: Sonarr stating that an episode is HDTV-720p when in true fact it is HDTV-1080p, as it is detected as 720p it constantly searches, downloads and tries to import a 1080p copy which will then not import as its already available.

Plex also detects this episode in 1080p, just Sonarr doesn’t seem to detect it properly.

Just for reference, the troubled episdoes are the new season 3 of Sherlock on BBC. I have had this problem on both.

Sonarr Screenshot: https://puu.sh/tguvp/2a5c072c80.png
Plex Screenshot: https://puu.sh/tguxc/6a1e3263ce.png
Media Info Screenshot: https://puu.sh/tguDy/6cec084ba4.png

We’ll need to see the requested ((debug logs)) of the import to see why it’s detecting it that way, but it sounds like the filename doesn’t have the proper quality it in, forcing it to fallback to the extension.

Okay, i will enable debug now. Do i have to remove and re-add the episode to get sonarr to print it into the logs?

I have enabled Debug logs, removed the episode, readded the episode and then taken this from the sonarr.txt in the logs section.

If this isnt what you are looking for just let me know where to find these debug logs :slight_smile:

Thanks.

17-1-9 11:44:21.5|Warn|ImportApprovedEpisodes|Couldn't import episode B:\tv-sonarr\Sherlock.S04E02.The.Lying.Detective.1080p.AMZN.WEBRip.DD5.1.x264-CasStudio[rartv]\Sherlock.S04E02.The.Lying.Detective.1080p.AMZN.WEBRip.DD5.1.x264-CasStudio.mkv

[v2.0.0.4472] System.IO.DirectoryNotFoundException: Root folder '\\SIRIUS-A\SIRIUS_TV1\Ripped TV Shows\' was not found.
   at NzbDrone.Core.MediaFiles.EpisodeFileMovingService.EnsureEpisodeFolder(EpisodeFile episodeFile, Series series, Int32 seasonNumber, String filePath) in M:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\MediaFiles\EpisodeFileMovingService.cs:line 160
   at NzbDrone.Core.MediaFiles.EpisodeFileMovingService.CopyEpisodeFile(EpisodeFile episodeFile, LocalEpisode localEpisode) in M:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\MediaFiles\EpisodeFileMovingService.cs:line 88
   at NzbDrone.Core.MediaFiles.UpgradeMediaFileService.UpgradeEpisodeFile(EpisodeFile episodeFile, LocalEpisode localEpisode, Boolean copyOnly) in M:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\MediaFiles\UpgradeMediaFileService.cs:line 60
   at NzbDrone.Core.MediaFiles.EpisodeImport.ImportApprovedEpisodes.Import(List`1 decisions, Boolean newDownload, DownloadClientItem downloadClientItem, ImportMode importMode) in M:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\MediaFiles\EpisodeImport\ImportApprovedEpisodes.cs:line 103

Actually, since Sonarr has already imported it. you can check the import path of the episode in history, it’s shown in the history details modal (click the (i) icon on the right side).

Im slightly confused. This is what I have https://puu.sh/tgDX7/2c1d29923a.png im assuming your talking about this.

As im a moron and forgot to hit save when turning on debug. Heres the real debug logs lol.

Heres the history screen, you can see the quality for some reason changes. https://puu.sh/tgE9Y/aab4365243.png

17-1-9 17:54:34.7|Debug|Api|[PUT] /api/config/host: 202.Accepted (62 ms)
17-1-9 17:54:34.7|Debug|Api|[PUT] /api/config/host: 202.Accepted (78 ms)
17-1-9 17:54:34.8|Debug|Api|[GET] /api/health: 200.OK (0 ms)
17-1-9 17:54:34.8|Debug|Api|[GET] /api/health: 200.OK (0 ms)
17-1-9 17:54:57.3|Debug|Api|[GET] /api/queue??sort_by=timeleft&order=asc: 200.OK (0 ms)
17-1-9 17:54:57.3|Debug|Api|[GET] /api/system/task??sort_by=name&order=asc: 200.OK (15 ms)
17-1-9 17:54:57.3|Debug|Api|[GET] /api/system/task??sort_by=name&order=asc: 200.OK (15 ms)
17-1-9 17:54:57.8|Debug|Api|[GET] /api/episodefile??seriesId=51: 200.OK (31 ms)
17-1-9 17:54:57.8|Debug|Api|[GET] /api/episode??seriesId=51: 200.OK (46 ms)
17-1-9 17:54:59.9|Debug|Api|[POST] /api/command: 201.Created (0 ms)
17-1-9 17:54:59.9|Debug|XemProxy|Fetching Series IDs from
17-1-9 17:55:00.2|Info|SceneMappingService|Updating Scene mappings
17-1-9 17:55:00.2|Debug|XemProxy|Fetching alternate names
17-1-9 17:55:01.2|Info|RefreshSeriesService|Updating Info for Sherlock
17-1-9 17:55:01.4|Info|RefreshEpisodeService|Starting episode info refresh for: [176941][Sherlock]
17-1-9 17:55:01.5|Debug|Api|[GET] /api/episodefile??seriesId=51: 200.OK (15 ms)
17-1-9 17:55:01.5|Debug|EpisodeAddedService|No new episodes, skipping search
17-1-9 17:55:01.5|Info|RefreshEpisodeService|Finished episode refresh for series: [176941][Sherlock].
17-1-9 17:55:01.5|Debug|RefreshSeriesService|Finished series refresh for Sherlock
17-1-9 17:55:01.5|Info|DiskScanService|Scanning disk for Sherlock
17-1-9 17:55:01.5|Debug|DiskScanService|Scanning '\\SIRIUS-A\SIRIUS_TV1\Ripped TV Shows\Sherlock' for video files
17-1-9 17:55:01.6|Debug|Api|[GET] /api/episode??seriesId=51: 200.OK (78 ms)
17-1-9 17:55:01.6|Debug|DiskScanService|10 video files were found in \\SIRIUS-A\SIRIUS_TV1\Ripped TV Shows\Sherlock
17-1-9 17:55:01.6|Debug|DiskScanService|[176941][Sherlock] Cleaning up media files in DB
17-1-9 17:55:01.6|Debug|MediaFileTableCleanupService|File [\\SIRIUS-A\SIRIUS_TV1\Ripped TV Shows\Sherlock\Season 4\Sherlock - S04E02 - The Lying Detective.mkv] no longer exists on disk, removing from db
17-1-9 17:55:01.6|Debug|EpisodeService|Detaching episode 3776 from file.
17-1-9 17:55:01.7|Debug|ImportDecisionMaker|Analyzing 0/10 files.
17-1-9 17:55:01.7|Debug|OtherExtraFileService|Deleting Extra from database for episode file: [13997] Season 4\Sherlock - S04E02 - The Lying Detective.mkv
17-1-9 17:55:01.7|Debug|MetadataFileService|Deleting Extra from database for episode file: [13997] Season 4\Sherlock - S04E02 - The Lying Detective.mkv
17-1-9 17:55:01.7|Info|DiskScanService|Completed scanning disk for Sherlock
17-1-9 17:55:01.7|Debug|SubtitleFileService|Deleting Extra from database for episode file: [13997] Season 4\Sherlock - S04E02 - The Lying Detective.mkv
17-1-9 17:55:01.7|Debug|Api|[GET] /api/episodefile??seriesId=51: 200.OK (15 ms)
17-1-9 17:55:01.7|Debug|ExistingExtraFileService|Looking for existing extra files in \\SIRIUS-A\SIRIUS_TV1\Ripped TV Shows\Sherlock
17-1-9 17:55:01.7|Debug|DiskScanService|Scanning '\\SIRIUS-A\SIRIUS_TV1\Ripped TV Shows\Sherlock' for non-video files
17-1-9 17:55:01.7|Debug|DiskScanService|0 non-video files were found in \\SIRIUS-A\SIRIUS_TV1\Ripped TV Shows\Sherlock
17-1-9 17:55:01.7|Debug|ExistingMetadataImporter|Looking for existing metadata in \\SIRIUS-A\SIRIUS_TV1\Ripped TV Shows\Sherlock
17-1-9 17:55:01.8|Info|ExistingMetadataImporter|Found 0 existing metadata files
17-1-9 17:55:01.8|Debug|ExistingSubtitleImporter|Looking for existing subtitle files in \\SIRIUS-A\SIRIUS_TV1\Ripped TV Shows\Sherlock
17-1-9 17:55:01.8|Debug|Api|[GET] /api/episode??seriesId=51: 200.OK (78 ms)
17-1-9 17:55:01.8|Info|ExistingSubtitleImporter|Found 0 existing subtitle files
17-1-9 17:55:01.8|Debug|ExistingOtherExtraImporter|Looking for existing extra files in \\SIRIUS-A\SIRIUS_TV1\Ripped TV Shows\Sherlock
17-1-9 17:55:01.8|Info|ExistingOtherExtraImporter|Found 0 existing other extra files
17-1-9 17:55:01.8|Info|ExistingExtraFileService|Found 0 extra files
17-1-9 17:55:01.8|Debug|XemService|Scene numbering is not available for Sherlock [176941]
17-1-9 17:55:01.9|Debug|Api|[GET] /api/system/task??sort_by=name&order=asc: 200.OK (0 ms)
17-1-9 17:55:01.9|Debug|Api|[GET] /api/system/task??sort_by=name&order=asc: 200.OK (15 ms)
17-1-9 17:55:03.4|Debug|CleanExtraFileService|Cleaning missing metadata files for series: Sherlock
17-1-9 17:55:23.1|Debug|Api|[POST] /api/command: 201.Created (15 ms)
17-1-9 17:55:23.1|Info|RefreshSeriesService|Updating Info for Sherlock
17-1-9 17:55:23.4|Info|RefreshEpisodeService|Starting episode info refresh for: [176941][Sherlock]
17-1-9 17:55:23.4|Debug|EpisodeAddedService|No new episodes, skipping search
17-1-9 17:55:23.4|Info|RefreshEpisodeService|Finished episode refresh for series: [176941][Sherlock].
17-1-9 17:55:23.4|Debug|RefreshSeriesService|Finished series refresh for Sherlock
17-1-9 17:55:23.4|Info|DiskScanService|Scanning disk for Sherlock
17-1-9 17:55:23.4|Debug|DiskScanService|Scanning '\\SIRIUS-A\SIRIUS_TV1\Ripped TV Shows\Sherlock' for video files
17-1-9 17:55:23.4|Debug|Api|[GET] /api/episodefile??seriesId=51: 200.OK (15 ms)
17-1-9 17:55:23.4|Debug|DiskScanService|11 video files were found in \\SIRIUS-A\SIRIUS_TV1\Ripped TV Shows\Sherlock
17-1-9 17:55:23.4|Debug|DiskScanService|[176941][Sherlock] Cleaning up media files in DB
17-1-9 17:55:23.4|Debug|Api|[GET] /api/episode??seriesId=51: 200.OK (46 ms)
17-1-9 17:55:23.4|Debug|ImportDecisionMaker|Analyzing 1/11 files.
17-1-9 17:55:23.4|Debug|Parser|Parsing string 'Sherlock - S04E02 - The Lying Detective.mkv'
17-1-9 17:55:23.4|Debug|Parser|Episode Parsed. Sherlock - S04E02 
17-1-9 17:55:23.4|Debug|Parser|Language parsed: English
17-1-9 17:55:23.4|Debug|QualityParser|Trying to parse quality for Sherlock - S04E02 - The Lying Detective.mkv
17-1-9 17:55:23.5|Debug|Parser|Quality parsed: HDTV-720p v1
17-1-9 17:55:23.5|Debug|Parser|Release Group parsed: 
17-1-9 17:55:23.5|Debug|ImportDecisionMaker|Size: 3466429883
17-1-9 17:55:23.5|Debug|FreeSpaceSpecification|Skipping free space check for existing episode
17-1-9 17:55:23.5|Debug|NotSampleSpecification|Existing file, skipping sample check
17-1-9 17:55:23.5|Debug|NotUnpackingSpecification|\\SIRIUS-A\SIRIUS_TV1\Ripped TV Shows\Sherlock\Season 4\Sherlock - S04E02 - The Lying Detective.mkv is in series folder, skipping unpacking check
17-1-9 17:55:23.5|Debug|UnverifiedSceneNumberingSpecification|Skipping scene numbering check for existing episode
17-1-9 17:55:23.5|Debug|EpisodeService|Linking [Season 4\Sherlock - S04E02 - The Lying Detective.mkv] > [[3776]The Lying Detective]
17-1-9 17:55:23.5|Info|DiskScanService|Completed scanning disk for Sherlock
17-1-9 17:55:23.6|Debug|VideoFileInfoReader|Getting media info from \\SIRIUS-A\SIRIUS_TV1\Ripped TV Shows\Sherlock\Season 4\Sherlock - S04E02 - The Lying Detective.mkv
17-1-9 17:55:23.6|Debug|Api|[GET] /api/episodefile??seriesId=51: 200.OK (31 ms)
17-1-9 17:55:23.6|Debug|Api|[GET] /api/episode??seriesId=51: 200.OK (46 ms)
17-1-9 17:55:23.6|Debug|UpdateMediaInfoService|Updated MediaInfo for '\\SIRIUS-A\SIRIUS_TV1\Ripped TV Shows\Sherlock\Season 4\Sherlock - S04E02 - The Lying Detective.mkv'
17-1-9 17:55:23.6|Debug|ExistingExtraFileService|Looking for existing extra files in \\SIRIUS-A\SIRIUS_TV1\Ripped TV Shows\Sherlock
17-1-9 17:55:23.6|Debug|DiskScanService|Scanning '\\SIRIUS-A\SIRIUS_TV1\Ripped TV Shows\Sherlock' for non-video files
17-1-9 17:55:23.6|Debug|DiskScanService|0 non-video files were found in \\SIRIUS-A\SIRIUS_TV1\Ripped TV Shows\Sherlock
17-1-9 17:55:23.7|Debug|ExistingMetadataImporter|Looking for existing metadata in \\SIRIUS-A\SIRIUS_TV1\Ripped TV Shows\Sherlock
17-1-9 17:55:23.7|Info|ExistingMetadataImporter|Found 0 existing metadata files
17-1-9 17:55:23.7|Debug|ExistingSubtitleImporter|Looking for existing subtitle files in \\SIRIUS-A\SIRIUS_TV1\Ripped TV Shows\Sherlock
17-1-9 17:55:23.7|Info|ExistingSubtitleImporter|Found 0 existing subtitle files
17-1-9 17:55:23.7|Debug|ExistingOtherExtraImporter|Looking for existing extra files in \\SIRIUS-A\SIRIUS_TV1\Ripped TV Shows\Sherlock
17-1-9 17:55:23.7|Info|ExistingOtherExtraImporter|Found 0 existing other extra files
17-1-9 17:55:23.7|Info|ExistingExtraFileService|Found 0 extra files
17-1-9 17:55:23.7|Debug|XemService|Scene numbering is not available for Sherlock [176941]
17-1-9 17:55:23.9|Debug|Api|[GET] /api/system/task??sort_by=name&order=asc: 200.OK (15 ms)
17-1-9 17:55:23.9|Debug|Api|[GET] /api/system/task??sort_by=name&order=asc: 200.OK (15 ms)
17-1-9 17:55:24.1|Debug|CleanExtraFileService|Cleaning missing metadata files for series: Sherlock
17-1-9 17:55:27.3|Debug|Api|[GET] /api/system/task??sort_by=name&order=asc: 200.OK (15 ms)
17-1-9 17:55:27.3|Debug|Api|[GET] /api/system/task??sort_by=name&order=asc: 200.OK (15 ms)
17-1-9 17:55:28.5|Debug|Api|[GET] /api/queue??sort_by=timeleft&order=asc: 200.OK (15 ms)
17-1-9 17:55:28.6|Debug|Api|[GET] /api/system/task??sort_by=name&order=asc: 200.OK (0 ms)
17-1-9 17:55:28.6|Debug|Api|[GET] /api/system/task??sort_by=name&order=asc: 200.OK (0 ms)
17-1-9 17:55:29.2|Debug|Api|[GET] /api/config/mediamanagement: 200.OK (0 ms)
17-1-9 17:55:29.2|Debug|Api|[GET] /api/config/naming: 200.OK (0 ms)
17-1-9 17:55:29.2|Debug|Api|[GET] /api/config/indexer: 200.OK (0 ms)
17-1-9 17:55:29.3|Debug|Api|[GET] /api/config/downloadclient: 200.OK (15 ms)
17-1-9 17:55:29.3|Debug|Api|[GET] /api/notification: 200.OK (0 ms)
17-1-9 17:55:29.3|Debug|Api|[GET] /api/config/host: 200.OK (0 ms)
17-1-9 17:55:29.3|Debug|Api|[GET] /api/config/ui: 200.OK (0 ms)
17-1-9 17:55:29.3|Debug|Parser|Parsing string 'Series Title (2010) - S01E01 - Episode Title (1)'
17-1-9 17:55:29.3|Debug|Parser|Episode Parsed. Series Title (2010) - S01E01 
17-1-9 17:55:29.3|Debug|Parser|Language parsed: English
17-1-9 17:55:29.3|Debug|QualityParser|Trying to parse quality for Series Title (2010) - S01E01 - Episode Title (1)
17-1-9 17:55:29.3|Debug|Api|[GET] /api/profile: 200.OK (15 ms)
17-1-9 17:55:29.4|Debug|Api|[GET] /api/delayprofile: 200.OK (15 ms)
17-1-9 17:55:29.3|Debug|Parser|Quality parsed: Unknown v1
17-1-9 17:55:29.4|Debug|Parser|Release Group parsed: 
17-1-9 17:55:29.4|Debug|Parser|Parsing string 'Series Title (2010) - S01E01-02-03 - Episode Title'
17-1-9 17:55:29.4|Debug|Api|[GET] /api/qualitydefinition: 200.OK (0 ms)
17-1-9 17:55:29.4|Debug|Parser|Episode Parsed. Series Title (2010) - S01E01-02-03 
17-1-9 17:55:29.4|Debug|Parser|Language parsed: English
17-1-9 17:55:29.4|Debug|Api|[GET] /api/Restriction: 200.OK (0 ms)
17-1-9 17:55:29.4|Debug|QualityParser|Trying to parse quality for Series Title (2010) - S01E01-02-03 - Episode Title
17-1-9 17:55:29.4|Debug|Api|[GET] /api/downloadclient: 200.OK (15 ms)
17-1-9 17:55:29.4|Debug|Parser|Quality parsed: Unknown v1
17-1-9 17:55:29.4|Debug|Api|[GET] /api/remotePathMapping: 200.OK (0 ms)
17-1-9 17:55:29.4|Debug|Api|[GET] /api/indexer: 200.OK (0 ms)
17-1-9 17:55:29.4|Debug|Parser|Release Group parsed: 
17-1-9 17:55:29.4|Debug|Parser|Parsing string 'Series Title (2010) - 2013-10-30 - Episode Title (1) HDTV-720p Proper'
17-1-9 17:55:29.4|Debug|Api|[GET] /api/metadata: 200.OK (15 ms)
17-1-9 17:55:29.4|Debug|Parser|Episode Parsed. Series Title (2010 - 2013-10-30 
17-1-9 17:55:29.4|Debug|Parser|Language parsed: English
17-1-9 17:55:29.4|Debug|QualityParser|Trying to parse quality for Series Title (2010) - 2013-10-30 - Episode Title (1) HDTV-720p Proper
17-1-9 17:55:29.4|Debug|Parser|Quality parsed: HDTV-720p v2
17-1-9 17:55:29.4|Debug|Parser|Release Group parsed: 
17-1-9 17:55:29.4|Debug|Parser|Parsing string 'Series Title (2010) - S01E01 - Episode Title (1) HDTV-720p v2'
17-1-9 17:55:29.4|Debug|Parser|Episode Parsed. Series Title (2010) - S01E01 
17-1-9 17:55:29.4|Debug|Parser|Language parsed: English
17-1-9 17:55:29.4|Debug|QualityParser|Trying to parse quality for Series Title (2010) - S01E01 - Episode Title (1) HDTV-720p v2
17-1-9 17:55:29.4|Debug|Parser|Quality parsed: HDTV-720p v1
17-1-9 17:55:29.4|Debug|Parser|Release Group parsed: 
17-1-9 17:55:29.4|Debug|Parser|Parsing string 'Series Title (2010) - S01E01-02-03 - Episode Title HDTV-720p v2'
17-1-9 17:55:29.5|Debug|Parser|Episode Parsed. Series Title (2010) - S01E01-02-03 
17-1-9 17:55:29.5|Debug|Parser|Language parsed: English
17-1-9 17:55:29.5|Debug|QualityParser|Trying to parse quality for Series Title (2010) - S01E01-02-03 - Episode Title HDTV-720p v2
17-1-9 17:55:29.5|Debug|Parser|Quality parsed: HDTV-720p v1
17-1-9 17:55:29.5|Debug|Parser|Release Group parsed: 
17-1-9 17:55:29.5|Debug|Api|[GET] /api/config/naming/samples??renameEpisodes=true&replaceIllegalCharacters=true&multiEpisodeStyle=0&standardEpisodeFormat=%7BSeries+Title%7D+-+S%7Bseason%3A00%7DE%7Bepisode%3A00%7D+-+%7BEpisode+Title%7D&dailyEpisodeFormat=%7BSeries+Title%7D+-+%7BAir-Date%7D+-+%7BEpisode+Title%7D+%7BQuality+Full%7D&animeEpisodeFormat=%7BSeries+Title%7D+-+S%7Bseason%3A00%7DE%7Bepisode%3A00%7D+-+%7BEpisode+Title%7D+%7BQuality+Full%7D&seriesFolderFormat=%7BSeries+Title%7D&seasonFolderFormat=Season+%7Bseason%7D&includeSeriesTitle=false&includeEpisodeTitle=false&includeQuality=false&replaceSpaces=true&separator=+-+&numberStyle=S%7Bseason%3A00%7DE%7Bepisode%3A00%7D&id=1: 200.OK (171 ms)
17-1-9 17:55:31.9|Debug|Api|[GET] /api/health: 200.OK (0 ms)
17-1-9 17:55:32.0|Debug|Api|[GET] /api/health: 200.OK (15 ms)
17-1-9 17:55:33.0|Debug|Api|[GET] /api/log??page=1&pageSize=50&sortKey=time&sortDir=desc: 200.OK (15 ms)
17-1-9 17:55:33.1|Debug|Api|[GET] /api/log??page=1&pageSize=50&sortKey=time&sortDir=desc: 200.OK (15 ms)
17-1-9 17:55:34.9|Debug|Api|[GET] /api/log/file: 200.OK (0 ms)
17-1-9 17:55:34.9|Debug|Api|[GET] /api/log/file/sonarr.debug.txt: 200.OK (0 ms)
17-1-9 17:55:35.8|Warn|DiskSpaceService|Unable to get free space for: \\SIRIUS\SIRIUS_EXT1

No, those are from the logs.

The only file imported there is the HDTV 1080p file (3rd row from the bottom), other files were grabbed and some were deleted, but I’d expect to see something else imported.

The file already in your library (and shown in your logs) is already on disk and has no quality in the filename so Sonarr is relying on the extension (mkv = HDTV 720p)

Right okay, It did have the quality in the name but as sonarr automatically moved it, it gets renamed and the quality gets removed. Im assuming that means I should turn on quality in the naming scheme.

If Sonarr needs to re-read the files for some reason (moved/renamed outside of Sonarr), then yes. If you ever had to rebuild the Sonarr database it would be helpful to have that in otherwise qualities would be wrong all over the place.

1 Like

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