From 54e8bb22288e0643eba5af5e7b7229bb185ba545 Mon Sep 17 00:00:00 2001 From: logmanoriginal Date: Sun, 6 Aug 2017 13:03:07 +0200 Subject: [PATCH] [VineBridge] Remove bridge MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On Oct 27, 2016 the discontinuation of Vine was announced: https://medium.com/@vine/important-news-about-vine-909c5f4ae7a7 "Today, we are sharing the news that in the coming months we’ll be discontinuing the mobile app." https://vine.co/ is still online, but has been put into an archive indefinitely. As the site does not allow further uploads, this bridge serves no further purpose. --- bridges/VineBridge.php | 40 ---------------------------------------- 1 file changed, 40 deletions(-) delete mode 100644 bridges/VineBridge.php diff --git a/bridges/VineBridge.php b/bridges/VineBridge.php deleted file mode 100644 index 61534a04..00000000 --- a/bridges/VineBridge.php +++ /dev/null @@ -1,40 +0,0 @@ - array( - 'name' => 'User id', - 'required' => true - ) - )); - - public function collectData(){ - $html = ''; - $uri = self::URI . '/u/' . $this->getInput('u') . '?mode=list'; - - $html = getSimpleHTMLDOM($uri) - or returnServerError('No results for this query.'); - - foreach($html->find('.post') as $element) { - $a = $element->find('a', 0); - $a->href = str_replace('https://', 'http://', $a->href); - $time = strtotime(ltrim($element->find('p', 0)->plaintext, ' Uploaded at ')); - $video = $element->find('video', 0); - $video->controls = 'true'; - $element->find('h2', 0)->outertext = ''; - - $item = array(); - $item['uri'] = $a->href; - $item['timestamp'] = $time; - $item['title'] = $a->plaintext; - $item['content'] = $element; - - $this->items[] = $item; - } - } -}