Skip to content

Commit

Permalink
gfycat support.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Feb 1, 2016
1 parent 9a92fcc commit 277b4f5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions feed/index.php
Expand Up @@ -118,6 +118,14 @@ function process_item($item)
$imgid = $matches[2];
$url = "http://i.lvme.me/$imgid.jpg";
} // else if
else if (preg_match('/^.*?\:\/\/gfycat\.com\/(.*?)$/', $url, $matches) > 0)
{
// pull gfycat image out of base URL.
$appendimg = true;
$credithtml = "<br/><font size='-2'><a href='$url'>view this at gfycat.com</a></font>";
$imgid = $matches[1];
$url = "http://giant.gfycat.com/$imgid.gif";
} // else if
} // if

// URL filename has an extension?
Expand Down

0 comments on commit 277b4f5

Please sign in to comment.