added detection of restricted qualities (addon will now load best quality available if preferred quality is restricted)