searcher and matcher now uses the new related_libraries and root_library from media instead of using extra db queries

This commit is contained in:
Dean Gardiner
2013-12-02 23:27:26 +13:00
parent 11ea9b4e91
commit 3c675b5b8a
2 changed files with 28 additions and 37 deletions
+1 -2
View File
@@ -73,8 +73,7 @@ class Matcher(Plugin):
return True
def correctTitle(self, chain, media):
# TODO need to switch this to use media['related_libraries']
root_library = fireEvent('searcher.get_media_root', media['library'], single = True)
root_library = media['library']['root_library']
if 'show_name' not in chain.info or not len(chain.info['show_name']):
log.info('Wrong: missing show name in parsed result')