Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pull in rating from pages without json data
Browse files Browse the repository at this point in the history
jmeosbn committed Dec 24, 2017
1 parent c2a1328 commit 86b851d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Contents/Code/__init__.py
Original file line number Diff line number Diff line change
@@ -479,6 +479,7 @@ def update(self, metadata, media, lang, force=False):
for r in html.xpath('//div[contains (@id, "adbl_page_content")]'):
date = self.getDateFromString(self.getStringContentFromXPath(r, '//li[contains (., "{0}")]/span[2]//text()'.format(ctx['REL_DATE_INFO']).decode('utf-8')))
title = self.getStringContentFromXPath(r, '//h1[contains (@class, "adbl-prod-h1-title")]/text()')
rating = self.getStringContentFromXPath(r, '//span[contains (@class, "rating-average")]/text()')
murl = self.getAnchorUrlFromXPath(r, 'div/div/div/div/a[1]')
thumb = self.getImageUrlFromXPath(r, 'div/div/div/div/div/img')
author = self.getStringContentFromXPath(r, '//li//a[contains (@class,"author-profile-link")][1]')

0 comments on commit 86b851d

Please sign in to comment.