Skip to content

Commit 00317e4

Browse files
alchzhedwardslabs
authored andcommitted
fix merge conflict
1 parent a5ec670 commit 00317e4

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

plugins/amazon.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,12 @@ def amazon(text, _parsed=False):
7575
r"|Spedizione gratuita)", item.text, re.I):
7676
tags.append("$(b)Free Shipping$(b)")
7777

78-
price = item.find('span', {'class': ['s-price', 'a-color-price']}).text
78+
try:
79+
price = item.find('span', {'class': ['s-price', 'a-color-price']}).text
80+
except AttributeError:
81+
for i in item.find_all('sup', {'class': 'sx-price-fractional'}):
82+
i.string.replace_with('.' + i.string)
83+
price = item.find('span', {'class': 'sx-price'}).text
7984

8085
# use a whole lot of BS4 and regex to get the ratings
8186
try:

0 commit comments

Comments
 (0)