Select quality based on resolution instead of file extension

Whenever I import an existing series into Sonarr, Sonarr sets the quality of the files based on the extension instead of the resolution of the file. Windows has the resolution easily available. I don’t know Python but in VBScript, it can be checked with the following code:

Set objShellApplication = CreateObject( “Shell.Application” )
Set objFolderNamespace = objShellApplication.NameSpace( “d:\Series” )
For Each objFile In objFolderNamespace.Items
intWidth = objFolderNamespace.GetDetailsOf( objFile, 311 )
intHeight = objFolderNamespace.GetDetailsOf( objFile, 309 )
Next

extension would be mkv, mp4 ?,
and of my knowing it doesn’t check quality based on extension but on filename or what the indexer reports to Sonarr when doing a search.

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