mirror of
https://github.com/ivuorinen/BassoFeed.git
synced 2026-03-01 06:54:04 +00:00
Updated readme to amplify content-type
This commit is contained in:
@@ -11,7 +11,7 @@ Usage
|
|||||||
-----
|
-----
|
||||||
To get, for example the awesome Alas-show's broadcast times you
|
To get, for example the awesome Alas-show's broadcast times you
|
||||||
|
|
||||||
header('Content-Type: text/html; charset=utf-8');
|
header('Content-Type: text/calendar; charset=utf-8');
|
||||||
date_default_timezone_set('Europe/Helsinki');
|
date_default_timezone_set('Europe/Helsinki');
|
||||||
|
|
||||||
require_once("simple_html_dom.php");
|
require_once("simple_html_dom.php");
|
||||||
@@ -20,4 +20,5 @@ To get, for example the awesome Alas-show's broadcast times you
|
|||||||
$basso_alas = new BassoFeed('alas');
|
$basso_alas = new BassoFeed('alas');
|
||||||
echo $basso_alas->get_ical();
|
echo $basso_alas->get_ical();
|
||||||
|
|
||||||
The "new BassoFeed(_showname_)" comes from the url, in Alas' case it's http://www.basso.fi/radio/*alas*
|
The "new BassoFeed(_showname_)" comes from the url, in Alas' case it's http://www.basso.fi/radio/*alas*
|
||||||
|
The *Content-Type: text/calendar* -part is really important, use it!
|
||||||
Reference in New Issue
Block a user