Skip to content

Commit e2a0868

Browse files
committed
Allow slightly longer product names
1 parent c291434 commit e2a0868

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

plugins/amazon.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def amazon(text):
3333
asin = item['data-asin']
3434

3535
# here we use dirty html scraping to get everything we need
36-
title = formatting.truncate(item.find('h2', {'class': 's-access-title'}).text, 50)
36+
title = formatting.truncate(item.find('h2', {'class': 's-access-title'}).text, 60)
3737
tags = []
3838

3939
# tags!

plugins/newegg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
def format_item(item, show_url=True):
2222
""" takes a newegg API item object and returns a description """
23-
title = formatting.truncate(item["Title"], 50)
23+
title = formatting.truncate(item["Title"], 60)
2424

2525
# format the rating nicely if it exists
2626
if not item["ReviewSummary"]["TotalReviews"] == "[]":

0 commit comments

Comments
 (0)