From d5d376269b17417c4d25bb3b0b0b263dce7c5958 Mon Sep 17 00:00:00 2001 From: Emmortal451 <45298380+Emmortal451@users.noreply.github.com> Date: Sat, 13 Apr 2019 10:32:57 -0400 Subject: [PATCH] Update to fix title matching I was having issues with the agent recently not matching anything. This fixes it to correctly match titles based on recent changes to the site and complete the match correctly. --- Contents/Code/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Contents/Code/__init__.py b/Contents/Code/__init__.py index a574ffe..119daca 100755 --- a/Contents/Code/__init__.py +++ b/Contents/Code/__init__.py @@ -62,7 +62,7 @@ def update(self, metadata, media, lang): metadata.genres.add(tag.text_content().strip()) # set movie title to shoot title - metadata.title = html.xpath('//div[@class="shoot-info"]//h1/text()')[0] + " (" + metadata.id + ")" + metadata.title = html.xpath('//h1[@class="shoot-title"]/text()')[0] + " (" + metadata.id + ")" # set content rating to XXX metadata.content_rating = 'XXX'