\n*** playlists:";print_r($playlists); //print "
\n*** favorites:";print_r($favorites); ?> 0 or $playlists['totalResults'] > 0) { $meta_kw = PROP003_PROP_NAME.",youtube,動画,連続再生,soyade,$parm_ytuid,お気に入り,favorite,プレイリスト,再生リスト,playlist"; $meta_desc = "$parm_ytuid さんのお気に入り、プレイリストを連続再生!YouTubeの動画を連続再生できる、".PROP003_PROP_NAME."!"; if (get_parm ('s_btn') != "") { // $yt_userid = $playlists['yt_userid']; if ($favorites['yt_userid'] != "") { $yt_userid = $favorites['yt_userid']; } error_log ("Analysis_YouTubeUser::$parm_ytuid"."\t". $yt_userid); $geo = getCountry ($_SERVER['REMOTE_ADDR']); error_log ("Analysis20_YouTubeUser" . CTRL_A . $geo["country_code"] . CTRL_A . $parm_ytuid . CTRL_B . $yt_userid ); } } else { $meta_kw = PROP003_PROP_NAME.",youtube,動画,連続再生,soyade"; $meta_desc = "YouTubeの動画を連続再生できる、".PROP003_PROP_NAME."!"; } disp_HTML_header ($parm_ytuid . "'s listing No. $parm_pos", $meta_kw, $meta_desc); ?> "; print "

Search YouTube user: "; print ""; print ""; print "

"; print ""; print "You can enjoy YouTube user's Favorites and Playlists!
"; //include 'php/prop003_from_search_ytuser.inc'; ?> \n"; $content_fav .= ""; $content_fav .= ""; $content_fav .= ""; $content_fav .= "$new_pos: "; if ($item['embed'] == 0) { $content_fav .= ""; } $content_fav .= "${item['title']}"; if ($embed_chk == 0) { $content_fav .= "
"; } else { $content_fav .= "
"; $content_fav .= ""; $content_fav .= "Please enjoy this movie on YouTube."; $content_fav .= " "; } $content_fav .= "ID: ${item['video_id']}"; $content_fav .= ""; $content_fav .= ""; $content_fav .= "\n"; $new_pos++; } $content_fav .= "

"; $content_fav .= ""; $content_fav .= ""; $content_fav .= "Play this favorite"; $content_fav .= ""; } while(0); // content playlist do { if ($playlists['totalResults'] == 0) { $content_pl ="No target."; break; } $new_pos = $parm_pos; $content_pl = ""; foreach ($playlists['item'] as $item) { // //print_r($item); $content_pl .= "\n"; $content_pl .= ""; $content_pl .= "\n"; $content_pl .= "\n"; $content_pl .= "\n"; $content_pl .= "
$new_pos: "; $content_pl .= ""; $content_pl .= "".$item['title'].""; $content_pl .= ""; $content_pl .= "
".$item['desc']."
"; $content_pl .= ""; $content_pl .= ""; $content_pl .= "Play this playlist"; $content_pl .= ""; $content_pl .= "
\n"; $new_pos++; } // build prev link if ($parm_pos == 1) { $prev_pos = $playlists['totalResults'] - $result_size; } else { $prev_pos = $parm_pos - $result_size; } if ($prev_pos < 1) { $prev_pos = 1; } $prev_link = ""; $prev_link .= ""; $prev_link .= "Prev page"; $prev_link .= "\n"; // build next link if (($parm_pos + $result_size) > $playlists['totalResults']) { $next_pos = 1; } else { $next_pos = $parm_pos + $result_size; } $next_link = ""; $next_link .= ""; $next_link .= "Next page"; $next_link .= "\n"; $content_pl .= "

$prev_link | $next_link"; } while(0); ?>
0) { print "

Favorites: ".$favorites['totalResults']." listed.

"; } else { if ($parm_ytuid == "") { print "

No YouTube ID. Please input it.

"; } else { print "

Favorites not found.

"; } } print $content_fav; ?>
0) { print "

Playlist: ".$playlists['totalResults']." found.

"; } else { if ($parm_ytuid == "") { print "

No YouTube ID. Please input it.

"; } else { print "

Playlist not founed

"; } } print $content_pl; ?>