From 1a9248b003d37b762619c15f44e9b16643968f1d Mon Sep 17 00:00:00 2001 From: Mitsukarenai Date: Fri, 28 Jun 2013 11:43:54 +0200 Subject: [PATCH] add social: Youtube --- index.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/index.php b/index.php index 39cf47c..116e09a 100755 --- a/index.php +++ b/index.php @@ -554,8 +554,11 @@ if( !empty($_POST['socialinstance']) && ALLOW_NEW_AUTOBLOGS && ALLOW_NEW_AUTOBLO $rssurl = $siteurl."?do=rss"; $socialaccount = get_title_from_feed($rssurl); } - - + elseif($socialinstance === 'youtube') { + $sitetype = 'generic'; + $siteurl = 'https://www.youtube.com/user/'.$socialaccount; + $rssurl = 'https://gdata.youtube.com/feeds/base/users/'.$socialaccount.'/uploads?alt=atom&orderby=published'; + } if( empty($error) ) { try { $headers = get_headers($rssurl, 1); @@ -791,6 +794,7 @@ if( !empty($_POST['opml_file']) && ALLOW_NEW_AUTOBLOGS && ALLOW_NEW_AUTOBLOGS_BY Identica

+ Youtube