Skip to content

Commit

Permalink
Added subscribe_itunes() for adding podcasts to iTunes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Parman committed Jun 19, 2007
1 parent 1a98ed9 commit cd3b184
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions simplepie.inc
Expand Up @@ -1939,6 +1939,18 @@ function embed_wmedia(width, height, link) {
}
}

function subscribe_itunes()
{
if ($this->feed_url !== null)
{
return SimplePie_Misc::fix_protocol($this->feed_url, 4);
}
else
{
return null;
}
}

/**
* Creates the subscribe_* methods' return data
*
Expand Down Expand Up @@ -7345,6 +7357,10 @@ class SimplePie_Misc
{
return substr_replace($url, 'podcast', 0, 4);
}
elseif ($http == 4 && strtolower($parsed['scheme']) == 'http')
{
return substr_replace($url, 'itpc', 0, 4);
}
else
{
return $url;
Expand Down

0 comments on commit cd3b184

Please sign in to comment.