Quote:
Originally Posted by reydson
How do you get the link for the playlist file?
|
for cbs.com
Code:
http://link.theplatform.com/s/dJ5BDC/video.settings.pid?mbr=true&manifest=m3u
to find
video.settings.pid view source page code Ctrl+u (on firefox)
with normal user agent you have
5f4D520I206m rtmp protocol and not the better quality
with android user agent you have
0Ha_DNQpGzp3 hls protocol and 720p
or you can use this code in php
Code:
<?php
$pageUrl="$argv[1]";
$opts1 = array(
'http'=>array(
'method'=>"GET",
'header'=>"Referer: \r\n" .
"User-Agent: Mozilla/5.0 (Android 4.2; rv:19.0) Gecko/20121129 Firefox/19.0"
)
);
$return=file_get_contents($pageUrl, false, stream_context_create($opts1));
$pidb= strpos($return, "video.settings.pid = '"); $pide=strpos($return, "video.settings.content_id = '");
$pidf = $pide - $pidb ; $prepid =substr($return, $pidb , $pidf); $prepid = str_replace("video.settings.pid = '","",$prepid);
$prepidb = 0; $prepide=strpos($prepid, "'"); $prepidf = $prepide - $prepidb;
$pid = substr($prepid, $prepidb , $prepidf);
echo "http://link.theplatform.com/s/dJ5BDC/$pid?mbr=true&manifest=m3u\n\n";
?>
Code:
php cbs.php http://www.cbs.com/shows/zoo/video/LPtXL81U09ww5Pl4KDgRxbQzrrb_a_2K/zoo-sleuths/
NOTA: i'm newbie in php so the code can be improved