1
0
Fork 0
forked from blallo/rss-bridge

Merge pull request #191 from Polopollo/arte-desactivate-links

Desactivate auto play for Arte's links
This commit is contained in:
Mitsu 2015-12-24 02:17:21 +01:00
commit ac284f3ea4

View file

@ -112,7 +112,7 @@ class Arte7Bridge extends BridgeAbstract{
public function collectData(array $param){ 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; $url = 'http://www.arte.tv/guide/'.$lang.'/plus7/'.$category;
$input = file_get_contents($url) or die('Could not request ARTE.'); $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) { foreach($input_json['videos'] as $element) {
$item = new \Item(); $item = new \Item();
$item->uri = $element['url']; $item->uri = str_replace("autoplay=1", "", $element['url']);
$item->id = $element['id']; $item->id = $element['id'];
$hack_broadcast_time = $element['rights_end']; $hack_broadcast_time = $element['rights_end'];
$hack_broadcast_time = strtok($hack_broadcast_time, 'T'); $hack_broadcast_time = strtok($hack_broadcast_time, 'T');