Esempio n. 1
0
			position: absolute;
			top: 0;
			width:120px;
			height:90px
	  }
    </style>
	</head>
<body>
	<div class="download">
	<h1 class="download-heading">抓取结果</h1>
<?php 
$curl = new curl();
/* First get the video info page for this video id */
$my_id = $site->videoId;
$my_video_info = 'http://www.youtube.com/get_video_info?&video_id=' . $my_id;
$my_video_info = $curl->curlGet($my_video_info);
/* TODO: Check return from curl for status code */
$thumbnail_url = $title = $url_encoded_fmt_stream_map = $type = $url = '';
parse_str($my_video_info);
echo '<div id="info">';
switch ($config['ThumbnailImageMode']) {
    case 2:
        echo '<img src="getimage.php?videoid=' . $site->videoId . '" border="0" hspace="2" vspace="2">';
        break;
    case 1:
        echo '<img src="' . $thumbnail_url . '" border="0" hspace="2" vspace="2">';
        break;
    case 0:
    default:
        // nothing
}