Following on from my last post about saving Facebook tagged photos to ownCloud, here’s a plugin that addresses my Flickr favourites rule.
This plugin, when set up on IFTTT, will use exactly the same mechanism to save any public photos I tag as a favourite on Flickr to my owncloud folder.
Here’s my flickrfaves.php
]*src *= *["\']?([^"\']*)/', $object->description, $matches)) { $url = $matches[1]; $parsed = parse_url($url); if ($object->pass == $this->expected_password) { $filename = basename($parsed['path']); file_put_contents($this->owncloud_path.$filename, file_get_contents($url)); } } return $object; } }
+1ed this.