function pmpapi_url_is_m3u in Public Media Platform API Integration 7
Determines if a URL seems like an M3U
Parameters
$url: A url pointing to the file
Return value
bool TRUE if path seems to point to an M3U, FALSE otherwise
1 call to pmpapi_url_is_m3u()
- pmpapi_pull_get_enclosure_url in pmpapi_pull/
pmpapi_pull.module - Determines the URL of a given PMP enclosure object.
File
- ./
pmpapi.module, line 671 - Creates basic calls to the PMP API.
Code
function pmpapi_url_is_m3u($url) {
$pieces = drupal_parse_url($url);
return substr($pieces['path'], -4) === '.m3u';
}