From 47c22e94aa60f35531fba545dc50015c68f42ee0 Mon Sep 17 00:00:00 2001 From: Mitsukarenai Date: Fri, 12 Dec 2014 22:06:04 +0100 Subject: [PATCH] HumbleBundle: hack a timestamp into it --- bridges/HumbleStoreDiscountBridge.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bridges/HumbleStoreDiscountBridge.php b/bridges/HumbleStoreDiscountBridge.php index e918158f..4de541ec 100755 --- a/bridges/HumbleStoreDiscountBridge.php +++ b/bridges/HumbleStoreDiscountBridge.php @@ -26,6 +26,7 @@ class HumbleStoreDiscountBridge extends BridgeAbstract{ $new_price = $value['current_price'][0] . ' ' . $value['current_price'][1]; $full_price = $value['full_price'][0] . ' ' . $value['full_price'][1]; $product_name = $value['human_name']; + $sale_end = (int)$value['sale_end']; $product_uri = $store_link . $value['machine_name']; $platforms = str_replace('\'', '', implode("','", $value['platforms'])); $delivery_methods = str_replace('\'', '', implode("','", $value['delivery_methods'])); @@ -39,6 +40,7 @@ class HumbleStoreDiscountBridge extends BridgeAbstract{ $item = new \Item(); $item->title = $product_name . ' - ' . $new_price; $item->uri = $product_uri; + $item->timestamp = $sale_end - 10*24*3600; // just a hack, stamping game as 10 days before sales end (better than no timestamp) $item->content = $content; $this->items[] = $item; $limit++;