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