diff --git a/bridges/HumbleStoreDiscountBridge.php b/bridges/HumbleStoreDiscountBridge.php
old mode 100644
new mode 100755
index 4bcea233..7d109e02
--- a/bridges/HumbleStoreDiscountBridge.php
+++ b/bridges/HumbleStoreDiscountBridge.php
@@ -29,10 +29,12 @@ class HumbleStoreDiscountBridge extends BridgeAbstract{
$product_uri = $store_link . $value['machine_name'];
$platforms = str_replace('\'', '', implode("','", $value['platforms']));
$delivery_methods = str_replace('\'', '', implode("','", $value['delivery_methods']));
+ $thumbnail = 'https://www.humblebundle.com' . $value['storefront_featured_image_small'];
- $content = '' . $product_name . '
Current price: ' . $new_price . '
Full price: ' . $full_price
- . '
Delivery methods: ' . $delivery_methods . '
Platforms: '
- . $platforms . '
' . $value['description'];
+ $content = '![' . $value['storefront_featured_image_small'] . '](' . $thumbnail . ')
' . $product_name
+ . '
Current price: ' . $new_price . '
Full price: ' . $full_price
+ . '
Developer: ' . $value['developer_name'] . '
Delivery methods: ' . $delivery_methods
+ . '
Platforms: ' . $platforms . '
' . $value['description'];
$item = new \Item();
$item->title = $product_name . ' - ' . $new_price;
@@ -56,4 +58,3 @@ class HumbleStoreDiscountBridge extends BridgeAbstract{
return 21600; // 6 hours
}
}
-
diff --git a/bridges/LeBonCoinBridge.php b/bridges/LeBonCoinBridge.php
new file mode 100755
index 00000000..e895bc2c
--- /dev/null
+++ b/bridges/LeBonCoinBridge.php
@@ -0,0 +1,61 @@
+returnError('Could not request LeBonCoin.', 404);
+
+ $list = $html->find('.list-lbc', 0);
+ $tags = $list->find('a');
+
+ foreach($tags as $element) {
+ $item = new \Item();
+ $item->uri = $element->href;
+ $title = $element->getAttribute('title');
+
+ $content = '
';
+ $date = $element->find('div.date', 0)->find('div', 0) . $element->find('div.date', 0)->find('div', 1) . '
';
+ $detailsList = $element->find('div.detail', 0);
+
+ for ($i = 1; $i < 4; $i++) {
+ $line = $detailsList->find('div', $i);
+ $content .= $line;
+ }
+
+ $item->title = $title . ' - ' . $detailsList->find('div', 3);
+ $item->content = $content . $date;
+ $this->items[] = $item;
+ }
+ }
+
+ public function getName(){
+ return 'LeBonCoin';
+ }
+
+ public function getURI(){
+ return 'http://www.leboncoin.fr';
+ }
+
+ public function getCacheDuration(){
+ return 3600; // 1 hour
+ }
+}