This commit is contained in:
ArthurHoaro 2013-06-30 16:08:44 +02:00
parent 28d465bf01
commit 028d58e87b
2 changed files with 4 additions and 4 deletions

View file

@ -184,9 +184,9 @@ function updateType($siteurl) {
elseif( strpos( $siteurl, 'shaarli' ) !== FALSE ) {
return array('type' => 'shaarli', 'name' => 'shaarli');
}
elseif( strpos( $siteurl, 'youtube.com' ) !== FALSE ) {
return array('type' => 'youtube', 'name' => 'youtube');
}
//elseif( strpos( $siteurl, 'youtube.com' ) !== FALSE ) {
// return array('type' => 'youtube', 'name' => 'youtube');
//}
else
return array('type' => 'generic', 'name' => '');
}

View file

@ -551,7 +551,7 @@ if( !empty($_POST['socialinstance']) && ALLOW_NEW_AUTOBLOGS && ALLOW_NEW_AUTOBLO
$socialaccount = get_title_from_feed($rssurl);
}
elseif($socialinstance === 'youtube') {
$sitetype = 'youtube';
$sitetype = 'generic';
$siteurl = 'https://www.youtube.com/user/'.$socialaccount;
$rssurl = 'https://gdata.youtube.com/feeds/base/users/'.$socialaccount.'/uploads?alt=atom&orderby=published';
}