From d885897c4070cc228bff4dbe4727eaccdf1b40b6 Mon Sep 17 00:00:00 2001 From: Paul Vayssiere Date: Wed, 23 Dec 2015 13:33:50 -0800 Subject: [PATCH] Desactivate auto play for Arte's links No need to use my bandwidth and processor if I just want to look at more description --- bridges/Arte7Bridge.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bridges/Arte7Bridge.php b/bridges/Arte7Bridge.php index 005c94e..07de0a4 100644 --- a/bridges/Arte7Bridge.php +++ b/bridges/Arte7Bridge.php @@ -112,7 +112,7 @@ class Arte7Bridge extends BridgeAbstract{ public function collectData(array $param){ - function extractVideoset($category='toutes-les-videos', $lang='fr') + function extractVideoset($category='toutes-les-videos', $lang='fr') { $url = 'http://www.arte.tv/guide/'.$lang.'/plus7/'.$category; $input = file_get_contents($url) or die('Could not request ARTE.'); @@ -141,7 +141,7 @@ class Arte7Bridge extends BridgeAbstract{ foreach($input_json['videos'] as $element) { $item = new \Item(); - $item->uri = $element['url']; + $item->uri = str_replace("autoplay=1", "", $element['url']); $item->id = $element['id']; $hack_broadcast_time = $element['rights_end']; $hack_broadcast_time = strtok($hack_broadcast_time, 'T');