Embeds allowing bloggers to easily embed videos from Distrify. Just go to any Distrify film page or player and copy the URL. Paste that URL in any WordPress blog and it will automatically be converted to an embedded Distrify player. If you are logged in to distrify.com it will automatically add your affiliate tracking code to your embeds. Make sure you turn on Auto-embeds in your WP settings and also make sure that the URL is on its own line and not hyperlinked (clickable when viewing the post). The plugin also extracts the still image from the film and saves it as the Featured Image for the post. This actually works for any Embed (not just Distrify) that you embed into your WordPress blog. Author: Distrify Limited Version: 0.3.1 Author URI: http://www.distrify.com License: GPL2 Copyright 2011-2013 Distrify (email : hello@distrify.com) This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2, as published by the Free Software Foundation. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ /** * Does the work of adding the Distrify provider to wp_oembed */ function add_distrify_provider($the_content){ require_once( ABSPATH . WPINC . '/class-oembed.php' ); wp_oembed_add_provider('#https?://(www\.)?(distrify|muvies).com/films/.*#i', 'http://distrify.com/oembed.json', true ); wp_oembed_add_provider('http://muvi.es/*', 'http://distrify.com/oembed.json' ); wp_oembed_add_provider('#https?://.*\.muvies.com/.*reviews/.*#i', 'http://distrify.com/oembed.json', true ); } //add the provider on plugins_loaded. add_action('plugins_loaded', 'add_distrify_provider'); /** * from http://wordpress.stackexchange.com/q/70752/1685 * Automatically set the featured image if an oEmbed-compatible embed is found in the post content. * author: TheDeadMedic * author URI: http://wordpress.stackexchange.com/users/1685/thedeadmedic * */ add_action( 'wp_insert_post', array( 'ofi', 'init' ) ); class ofi { /** * The post thumbnail ID * * @var int */ private $_thumb_id; /** * The post ID * * @var int */ private $_post_id; /** * Sets up an instance if called statically, and attempts to set the featured * image from an embed in the post content (if one has not already been set). * * @param int $post_id * @return object|null */ public function init( $post_id ) { if ( ! isset( $this ) ) return new ofi( $post_id ); global $wp_embed; $this->_post_id = absint( $post_id ); if ( ! $this->_thumb_id = get_post_meta( $this->_post_id, '_thumbnail_id', true ) ) { if ( $content = get_post_field( 'post_content', $this->_post_id, 'raw' ) ) { add_filter( 'oembed_dataparse', array( $this, 'oembed_dataparse' ), 10, 3 ); $wp_embed->autoembed( $content ); remove_filter( 'oembed_dataparse', array( $this, 'oembed_dataparse' ), 10, 3 ); } } } /** * @see init() */ public function __construct( $post_id ) { $this->init( $post_id ); } /** * Callback for the "oembed_dataparse" hook, which will fire on a successful * response from the oEmbed provider. * * @see WP_oEmbed::data2html() * * @param string $return The embed HTML * @param object $data The oEmbed response * @param string $url The oEmbed content URL */ public function oembed_dataparse( $return, $data, $url ) { if ( ! empty( $data->thumbnail_url ) && ! $this->_thumb_id ) { // if ( in_array( @ $data->type, array( 'video' ) ) ) // Only set for video embeds $this->set_thumb_by_url( $data->thumbnail_url, @ $data->title ); } } /** * Attempt to download the image from the URL, add it to the media library, * and set as the featured image. * * @see media_sideload_image() * * @param string $url * @param string $title Optionally set attachment title */ public function set_thumb_by_url( $url, $title = null ) { /* Following assets will already be loaded if in admin */ require_once ABSPATH . 'wp-admin/includes/file.php'; require_once ABSPATH . 'wp-admin/includes/media.php'; require_once ABSPATH . 'wp-admin/includes/image.php'; $temp = download_url( $url ); if ( ! is_wp_error( $temp ) && $info = @ getimagesize( $temp ) ) { if ( ! strlen( $title ) ) $title = null; if ( ! $ext = image_type_to_extension( $info[2] ) ) $ext = '.jpg'; $data = array( 'name' => md5( $url ) . $ext, 'tmp_name' => $temp, ); $id = media_handle_sideload( $data, $this->_post_id, $title ); if ( ! is_wp_error( $id ) ) return update_post_meta( $this->_post_id, '_thumbnail_id', $this->_thumb_id = $id ); } if ( ! is_wp_error( $temp ) ) @ unlink( $temp ); } } Stockholm – The Earology Dept. https://www.theearologydept.com Where the food sounds good, and the music is pretty tasty too. Sun, 03 Jan 2016 01:31:33 +0000 en-US hourly 1 https://wordpress.org/?v=5.2.24 50391680 our sunday best: anaye ☿♥ pu$$y palace ☿♥ https://www.theearologydept.com/anaye-%e2%98%bf%e2%99%a5-puy-palace-%e2%98%bf%e2%99%a5/ https://www.theearologydept.com/anaye-%e2%98%bf%e2%99%a5-puy-palace-%e2%98%bf%e2%99%a5/#respond Sun, 19 May 2013 19:20:51 +0000 http://www.theearologydept.com/?p=8638   anaye | pu$$y palace   When is the last time you heard a fresh out the box socially conscious female Hip Hop Rap duo dropping it sickly out of Stockholm, Sweden? That’s what I thought. Anywho, check out the female MC’s Anaye (MayDar & Beastie). Their brand new debut offering is the salacious Pu$$y …

The post our sunday best: anaye ☿♥ pu$$y palace ☿♥ appeared first on The Earology Dept..

]]>
Juicy hardcore cuties…

 

anaye | pu$$y palace

 
When is the last time you heard a fresh out the box socially conscious female Hip Hop Rap duo dropping it sickly out of Stockholm, Sweden? That’s what I thought. Anywho, check out the female MC’s Anaye (MayDar & Beastie). Their brand new debut offering is the salacious Pu$$y Palace EP and frankly feminism never sounded so fly. I’m lovin’ ’em from head to toe. My fav track is Bad Wolf feat. Moa. Oh! How it rocks! Put these rhymes on repeat. Peace.
 
Band: Anaye
Release: Pu$$y Palace EP
 

The post our sunday best: anaye ☿♥ pu$$y palace ☿♥ appeared first on The Earology Dept..

]]>
https://www.theearologydept.com/anaye-%e2%98%bf%e2%99%a5-puy-palace-%e2%98%bf%e2%99%a5/feed/ 0 8638
shout of louds // walking in your footsteps + lissvik remix + north american tour https://www.theearologydept.com/walking-in-your-footsteps-lissvik-remix-north-american-tour/ https://www.theearologydept.com/walking-in-your-footsteps-lissvik-remix-north-american-tour/#respond Thu, 09 May 2013 20:46:52 +0000 http://www.theearologydept.com/?p=8525 The Stockholm, Sweden band of five, Shout Out Louds, kick off their North American Tour in support of their enthusiastically received new album Optica. And, as an especial treat the band, along with Merge Records, tapped Prins Thomas Diskomiks to reassemble their loop-to-loop and very dreamy single Illusions. It’s a match made in remix heaven. …

The post shout of louds // walking in your footsteps + lissvik remix + north american tour appeared first on The Earology Dept..

]]>

The Stockholm, Sweden band of five, Shout Out Louds, kick off their North American Tour in support of their enthusiastically received new album Optica. And, as an especial treat the band, along with Merge Records, tapped Prins Thomas Diskomiks to reassemble their loop-to-loop and very dreamy single Illusions. It’s a match made in remix heaven. Make your 2013 a memorable one and catch the band out on tour this summer, and please remember to give ’em my best. Peace.

 

The post shout of louds // walking in your footsteps + lissvik remix + north american tour appeared first on The Earology Dept..

]]>
https://www.theearologydept.com/walking-in-your-footsteps-lissvik-remix-north-american-tour/feed/ 0 8525
sibille attar // julian i want to be a dancer https://www.theearologydept.com/sibille-attar-julian-i-want-to-be-a-dancer/ https://www.theearologydept.com/sibille-attar-julian-i-want-to-be-a-dancer/#respond Tue, 07 May 2013 11:08:37 +0000 http://www.theearologydept.com/?p=8504 At times the unorthodox approach can yield unusually tantalizing results. Sibille Attar is an apt example of the quirky and offbeat set to music, but what music it is! The Stockholm-based musical roustabout chants her brand of sonic voodoo with the voice of a classically trained chanteuse (seemingly so). Her music is alive with a …

The post sibille attar // julian i want to be a dancer appeared first on The Earology Dept..

]]>

At times the unorthodox approach can yield unusually tantalizing results. Sibille Attar is an apt example of the quirky and offbeat set to music, but what music it is! The Stockholm-based musical roustabout chants her brand of sonic voodoo with the voice of a classically trained chanteuse (seemingly so). Her music is alive with a vibrancy I’m growing more and more partial to with every listen. Julian I Want To Be A Dancer is crisp as a new dew strewn day, and as bouncy as a bumble bee, fat and flying flower head to flower head. Check it out. Peace.

The post sibille attar // julian i want to be a dancer appeared first on The Earology Dept..

]]>
https://www.theearologydept.com/sibille-attar-julian-i-want-to-be-a-dancer/feed/ 0 8504
nima khak // searching all around (for you) https://www.theearologydept.com/nima-khak-searching-all-around-for-you/ https://www.theearologydept.com/nima-khak-searching-all-around-for-you/#respond Sat, 05 Jan 2013 02:32:42 +0000 http://mittenmouthmusic.wordpress.com/?p=7670 Nima Khak is a resident of Sweden but after listening to his productions  you’ll swear up and down he’s an interstellar time traveler. Listen to Nima Khak’s ‘Searching All Around (For You)‘ release via 1:53.2 Records, and it is all one needs to get the night headed in the right direction. The release also features …

The post nima khak // searching all around (for you) appeared first on The Earology Dept..

]]>
When in outer space do as they do and rocket.

Nima Khak is a resident of Sweden but after listening to his productions  you’ll swear up and down he’s an interstellar time traveler. Listen to Nima Khak’s ‘Searching All Around (For You)‘ release via 1:53.2 Records, and it is all one needs to get the night headed in the right direction. The release also features the tracks, “Bitter Sweet” and unconventional “A Tribe Called Quest“. In this posting I’ve also included a September 2012 mix session featuring not only Nima Khak but  also fellow DJ alum Bryan Chapman on the Future Underground Show. Peace.


The post nima khak // searching all around (for you) appeared first on The Earology Dept..

]]>
https://www.theearologydept.com/nima-khak-searching-all-around-for-you/feed/ 0 7670
avicii // silhouettes (the disco fries remix) https://www.theearologydept.com/avicii-silhouettes-the-disco-fries-remix/ https://www.theearologydept.com/avicii-silhouettes-the-disco-fries-remix/#respond Fri, 25 May 2012 20:23:10 +0000 http://mittenmouthmusic.wordpress.com/?p=5686 Nick Ditri & Danny Danger are The Disco Fries and here they’ve put their magic fingers all over the Avicii song “Silhouettes” and it’s a sexilicious joint. So, pump up the volume and get ready party all Memorial Weekend long. Peace.

The post avicii // silhouettes (the disco fries remix) appeared first on The Earology Dept..

]]>

Nick Ditri & Danny Danger are The Disco Fries and here they’ve put their magic fingers all over the Avicii song “Silhouettes” and it’s a sexilicious joint. So, pump up the volume and get ready party all Memorial Weekend long. Peace.

The post avicii // silhouettes (the disco fries remix) appeared first on The Earology Dept..

]]>
https://www.theearologydept.com/avicii-silhouettes-the-disco-fries-remix/feed/ 0 5686