Skip to content

Instantly share code, notes, and snippets.

View rubenleikarnes's full-sized avatar
:octocat:
¯\_(ツ)_/¯

Ruben rubenleikarnes

:octocat:
¯\_(ツ)_/¯
View GitHub Profile
<?php
$url = 'http://clipsource.se/epg/api?key=1d795361b98aa0cb2d2ec6aaaeb09400c32ebae4e79cbae6f61c198e38494bb1&date=2018-10-31&channelId=no.viasat.sport.plus';
$xml = simplexml_load_file($url) or die("Error: Cannot create object");
foreach ($xml->contentList->content as $test) {
$size = count($test->titleList->title);
for ($i = 0; $i < $size; $i++) {
if($test->titleList->title[$i]->attributes()->type == "content") {
; # - win
; ! - alt
; ^ - ctrl
; + - shift
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.