def video_screen_size(filename):
 if ((filename in bad_files) or (not sickbeard.helpers.isMediaFile(filename))):
  return (None, None)
 for method in [_mkv_screen_size, _avi_screen_size]:
  screen_size = method(filename)
  if (screen_size != (None, None)):
   return screen_size
 bad_files.add(filename)
 return (None, None)

def video_screen_size ( filename ) : if ( ( filename in bad_files ) or ( not sickbeard . helpers . isMediaFile ( filename ) ) ) : return ( None , None ) for method in [ _mkv_screen_size , _avi_screen_size ] : screen_size = method ( filename ) if ( screen_size != ( None , None ) ) : return screen_size bad_files . add ( filename ) return ( None , None )
attempts to read the width and height of a video file .