Jump to content
xisto Community
Sign in to follow this  
Normano

Myspacetv Download Php Script Help

Recommended Posts

I was trying to make a php script that can view myspace videos with jw flv player and wont to know how to do so if i put in "https://myspace.com/browser; it show the video "http://forums.xisto.com/no_longer_exists/(its the flv video file from myspacetv), I cant see the similarity with the links please help, thanks for viewing this topic :)

Edited by Normano (see edit history)

Share this post


Link to post
Share on other sites

I found this script for veoh but dont understand all-.-

<?php//Use veoh_filegrabber.php?video_url=http://http://www.veoh.com/watch/v1288822HBz3r9De$video_url = (isset($_GET["video_url"])) ? strval($_GET["video_url"]) : "http://http://www.veoh.com/watch/v1288822HBz3r9De getFlv($video_url){  preg_match('/http:\/\/veoh.com;, $video_url, $match);  $details_url = 'http://forums.xisto.com/no_longer_exists/; . $match[1] . '/details';  if ($details = file("$details_url"))  {	foreach($details as $value)	{	  //			  fullPreviewHashPath="http://content.veoh.com/flash/p/1288822/77c44b0448a3602f79d059c8e91e556ebf9e1b13.flv?ct=bf1913ed8788db2c804b5961e62ad111906735f5ca8e489c"	  if(preg_match('/fullPreviewHashPath=\"(.*?)\"/', $value, $match))	  {		$url = $match[1];	  }	}	header('Location: ' . $url);  }}?>
But its for veoh not for myspacetv and they using .htaccess hotlinking portection so i dont think i can use it:/

Share this post


Link to post
Share on other sites

i got a script for myspace here

<?php$url='http://mediaservices.myspace.com/services/rss.ashx?type=video&mediaID='.$_GET['video'];;if ($details = file("$url")){foreach($details as $value){if(preg_match('/url=\"(.*?)\"/', $value, $match)){$myspace = $match[1];}}header("Location: $myspace");}?>
but one problem is that it only work when i use it at my localhost(computer) and not at my website :)
do i need php setting fopen?

edit:do Xisto allow fopen and .htaccess?
Edited by Normano (see edit history)

Share this post


Link to post
Share on other sites

They do. I don't know much php, but that doesn't look right. A var isn't a string, so you don't need "". The foreach is going through the pages, of which there is one. And it'll make the browser go to the flv, it might be neater to provide a link, as it would be downloaded.

Share this post


Link to post
Share on other sites

when i go to "example.php?video=38105626" i get the flv file from the video with 38105626 as id, it was that i was searching for, thanks for all help, if u had not said "file/_get_content" i never search for it and found this, hope u understand my bad english :S

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.