Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Amazon VOD] Fix: Hide pay entries in watchlist if payCont isn't set #274

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 4 additions & 1 deletion plugin.video.amazon-test/resources/lib/amazontld.py
Expand Up @@ -392,6 +392,8 @@ def listContent(self, catalog, url, page, parent, export=False):
if self._g.watchlist in parent:
url += self._s.OfferGroup
if contentType == 'season':
if not self._s.payCont and not infoLabels['isPrime'] and self._g.watchlist in parent:
continue
name = self.formatSeason(infoLabels, parent)
if self._g.library not in parent and parent != '':
curl = 'SeriesASIN=%s&ContentType=TVSeason&IncludeBlackList=T%s' % (
Expand Down Expand Up @@ -726,8 +728,9 @@ def getList(self, listing, export, cont):
if not cj:
return
asins = ''
payParam = '/' if self._s.payCont and listing in self._g.watchlist else '/prime/'
for content in cont:
asins += self._scrapeAsins('/gp/video/%s/%s/?ie=UTF8&sort=%s' % (listing, content, self._s.wl_order), cj) + ','
asins += self._scrapeAsins(('/gp/video/%s/%s' + payParam + '?ie=UTF8&sort=%s') % (listing, content, self._s.wl_order), cj) + ','
else:
asins = listing

Expand Down