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 ); } } Synth Pop – The Earology Dept. https://www.theearologydept.com Where the food sounds good, and the music is pretty tasty too. Sun, 06 Mar 2016 15:11:18 +0000 en-US hourly 1 https://wordpress.org/?v=5.2.20 50391680 poliça | lately https://www.theearologydept.com/13486-2/ https://www.theearologydept.com/13486-2/#respond Fri, 26 Feb 2016 13:45:32 +0000 http://www.theearologydept.com/?p=13486   poliça | lately   Poliça‘s forthcoming release United Crushers is expected to drop in March along with our collective hearts! SIGH! I adore (read obsessed) this little indie band that could, would and should be a part of music playlist, if only you let ’em in. Why for? Well, I’ll give you one reason, …

The post poliça | lately appeared first on The Earology Dept..

]]>
poliça  | Lately
poliça | lately

 

poliça | lately

 
Poliça‘s forthcoming release United Crushers is expected to drop in March along with our collective hearts! SIGH! I adore (read obsessed) this little indie band that could, would and should be a part of music playlist, if only you let ’em in. Why for? Well, I’ll give you one reason, Channy Leaneagh and her wickedly mellifluous voice! EEEKK! Yes, I gotta check myself before I wreck myself! Okay, I got two thing. First, check out the track Lately after the jump. And secondly, you gotta’ feast your eyes on a The Current live session featuring Poliça playing their track Wedding. Good stuff! That’s all I got, for now. Peace.
 

 

 
Band: Poliça
Album: United Crushers
Featured Track: Lately
iTunes
Amazon
Google Play

The post poliça | lately appeared first on The Earology Dept..

]]>
https://www.theearologydept.com/13486-2/feed/ 0 13486
phantogram // black out days + video https://www.theearologydept.com/phantogram-black-days-video/ https://www.theearologydept.com/phantogram-black-days-video/#respond Fri, 20 Dec 2013 07:28:56 +0000 http://www.theearologydept.com/?p=10807   Phantogram (Joshua Carter and Sarah Barthel) is a personal fav around here and I am only too happy (understatement) to showcase the electro-duo’s brand new video Black Out Days. The track is taken from their forthcoming Voices LP. It drops February 18, via Republic Records. Also, if you pre-order Voices now you get an …

The post phantogram // black out days + video appeared first on The Earology Dept..

]]>

 
Phantogram (Joshua Carter and Sarah Barthel) is a personal fav around here and I am only too happy (understatement) to showcase the electro-duo’s brand new video Black Out Days. The track is taken from their forthcoming Voices LP. It drops February 18, via Republic Records. Also, if you pre-order Voices now you get an instant download of the beautiful track Fall In Love. I like that. Peace.
 

 
FYI:
 
The track Black Out Days also appears on Phantogram’s self-titled Phantogram EP released back in September.
 
Here’s the breakdown:
 
Phantogram EP tracklist:
 
01. Black Out Days *
02. Never Going Home
03. The Day You Died
04. Celebrating Nothing
 
Voices LP tracklist:
 
01. Nothing But Trouble
02. Black Out Days *
03. Fall In Love
04. Never Going Home
05. The Day You Died
06. Howling At the Moon
07. Bad Dreams
08. Bill Murray
09. I Don’t Blame You
10. Celebrating Nothing
11. My Only Friend

The post phantogram // black out days + video appeared first on The Earology Dept..

]]>
https://www.theearologydept.com/phantogram-black-days-video/feed/ 0 10807
toro y moi // say that (official video) https://www.theearologydept.com/toro-y-moi-say-that-official-video/ https://www.theearologydept.com/toro-y-moi-say-that-official-video/#comments Fri, 04 Jan 2013 13:39:37 +0000 http://mittenmouthmusic.wordpress.com/?p=7652 At this point in Toro Y Moi‘s music career he needs little promotion, basically the product sells itself. Regardless of popularity check out the latest video for the song “Say That“. This is the second single reveal from the forthcoming album ‘Anything In Return‘ via Carpark Records set to drop January 22nd. Previously, the single …

The post toro y moi // say that (official video) appeared first on The Earology Dept..

]]>
A compositional sugar-rush of aural delight.

At this point in Toro Y Moi‘s music career he needs little promotion, basically the product sells itself. Regardless of popularity check out the latest video for the song “Say That“. This is the second single reveal from the forthcoming album ‘Anything In Return‘ via Carpark Records set to drop January 22nd. Previously, the single “So Many Details,” was released and you can watch that video here. Peace.

The post toro y moi // say that (official video) appeared first on The Earology Dept..

]]>
https://www.theearologydept.com/toro-y-moi-say-that-official-video/feed/ 1 7652
toro y moi // so any details (remix featuring hodgy beats) https://www.theearologydept.com/toro-y-moi-so-any-details-remix-featuring-hodgy-beats/ https://www.theearologydept.com/toro-y-moi-so-any-details-remix-featuring-hodgy-beats/#respond Tue, 13 Nov 2012 12:07:51 +0000 http://mittenmouthmusic.wordpress.com/?p=7330 south carolina native Toro Y Moi def knows how to keep his music fresh picked and ear-o-matically delicious. check out his latest, “So Many Detail” (Ft. Hodgy Beats) is all about the smooveness (yep, i like made-up words). by the way, as a part of a special Record Store Day this track will drop on …

The post toro y moi // so any details (remix featuring hodgy beats) appeared first on The Earology Dept..

]]>

south carolina native Toro Y Moi def knows how to keep his music fresh picked and ear-o-matically delicious. check out his latest, “So Many Detail” (Ft. Hodgy Beats) is all about the smooveness (yep, i like made-up words). by the way, as a part of a special Record Store Day this track will drop on Black Friday as a 7″ (Nov. 23rd). in addition you can expect Toro Y Moi’s 3rd studio album Anything In Return via Carpark on January 22nd. peace.

The post toro y moi // so any details (remix featuring hodgy beats) appeared first on The Earology Dept..

]]>
https://www.theearologydept.com/toro-y-moi-so-any-details-remix-featuring-hodgy-beats/feed/ 0 7330
toro y moi // so many details https://www.theearologydept.com/toro-y-moi-so-many-details/ https://www.theearologydept.com/toro-y-moi-so-many-details/#respond Thu, 18 Oct 2012 10:37:15 +0000 http://mittenmouthmusic.wordpress.com/?p=7039 after much success with the previous releases ‘freaking out’ and ‘underneath the pine’ the chillwave specialist toro y moi (chazwick bundick) is dropping new space dope january 22nd. listen to the first single, “so many details” and luxuriate in its smooth as silk charm. look for the forthcoming album ‘anything in return‘ via carpark records. …

The post toro y moi // so many details appeared first on The Earology Dept..

]]>

after much success with the previous releases ‘freaking out’ and ‘underneath the pine’ the chillwave specialist toro y moi (chazwick bundick) is dropping new space dope january 22nd. listen to the first single, “so many details” and luxuriate in its smooth as silk charm. look for the forthcoming album ‘anything in return‘ via carpark records. peace.

The post toro y moi // so many details appeared first on The Earology Dept..

]]>
https://www.theearologydept.com/toro-y-moi-so-many-details/feed/ 0 7039
les sins // taken https://www.theearologydept.com/les-sins-taken/ https://www.theearologydept.com/les-sins-taken/#comments Mon, 03 Sep 2012 13:46:58 +0000 http://mittenmouthmusic.wordpress.com/?p=6638 South Cackalacka native son Chazwick Bundick aka Toro Y Moi and more recently under the moniker Les Sins is releasing two 7″ via Jiaolong. Both tracks, “Taken” and “Fetch” are a groovier departure from the tranquility of the classic Toro Y Moi chillwave sound. And if you find yourself dancing under the stars to these, …

The post les sins // taken appeared first on The Earology Dept..

]]>

South Cackalacka native son Chazwick Bundick aka Toro Y Moi and more recently under the moniker Les Sins is releasing two 7″ via Jiaolong. Both tracks, “Taken” and “Fetch” are a groovier departure from the tranquility of the classic Toro Y Moi chillwave sound. And if you find yourself dancing under the stars to these, well that’s the point. Peace.


The post les sins // taken appeared first on The Earology Dept..

]]>
https://www.theearologydept.com/les-sins-taken/feed/ 3 6638
future unlimited // lightweight eyes https://www.theearologydept.com/future-unlimited-lightweight-eyes/ https://www.theearologydept.com/future-unlimited-lightweight-eyes/#respond Fri, 20 Jul 2012 23:20:17 +0000 http://mittenmouthmusic.wordpress.com/?p=6425 I don’t what’s happening in Nashville, Tennessee but whatever it is it’s working. Recently, in the land of country music there have been quite a few acts that are charting on Indie and Alternative outlets on college campuses everywhere. And Future Unlimited (David Miller & Samuel D’Amelio) is one of the best Nashville acts (or …

The post future unlimited // lightweight eyes appeared first on The Earology Dept..

]]>

I don’t what’s happening in Nashville, Tennessee but whatever it is it’s working. Recently, in the land of country music there have been quite a few acts that are charting on Indie and Alternative outlets on college campuses everywhere. And Future Unlimited (David Miller & Samuel D’Amelio) is one of the best Nashville acts (or anywhere else for that matter) making outstanding dreamy Electro-Pop. After the jump take in the delicate, “Lightweight Eyes” and let it take you there. I also included the duo’s previous EP, hope you enjoy. Peace.


The post future unlimited // lightweight eyes appeared first on The Earology Dept..

]]>
https://www.theearologydept.com/future-unlimited-lightweight-eyes/feed/ 0 6425
popeska // you’ll never know https://www.theearologydept.com/popeska-youll-never-know/ https://www.theearologydept.com/popeska-youll-never-know/#respond Fri, 20 Jul 2012 19:53:30 +0000 http://mittenmouthmusic.wordpress.com/?p=6414 Little known DJ/Producer Popeska hails from the ATL, and although you may not know his name just yet I suspect you’ll hear more from this young up and coming beat maker in the years to come. Especially if he keeps droppin’ bombs like, “You’ll Never Know” and 2011’s “Back To The Streets”, it’s a banga’!. …

The post popeska // you’ll never know appeared first on The Earology Dept..

]]>

Little known DJ/Producer Popeska hails from the ATL, and although you may not know his name just yet I suspect you’ll hear more from this young up and coming beat maker in the years to come. Especially if he keeps droppin’ bombs like, “You’ll Never Know” and 2011’s “Back To The Streets”, it’s a banga’!. Crank it! Peace.


 

The post popeska // you’ll never know appeared first on The Earology Dept..

]]>
https://www.theearologydept.com/popeska-youll-never-know/feed/ 0 6414
Toro Y Moi – How I Know https://www.theearologydept.com/toro-y-moi-all-alone/ https://www.theearologydept.com/toro-y-moi-all-alone/#respond Sat, 03 Sep 2011 00:58:23 +0000 http://mittenmouthmusic.wordpress.com/?p=130 The perfect feel good music, bright, not too sweet, and easy on the ears. Toro Y Moi is all these things and then some. The native South Cackalackian, that’s South Carolina for all the uninitiated, is finally getting the recognition he so rightly deserves. Born Chazwick Bundick way back in the day, and now going …

The post Toro Y Moi – How I Know appeared first on The Earology Dept..

]]>
Tora Y Moi

The perfect feel good music, bright, not too sweet, and easy on the ears. Toro Y Moi is all these things and then some. The native South Cackalackian, that’s South Carolina for all the uninitiated, is finally getting the recognition he so rightly deserves. Born Chazwick Bundick way back in the day, and now going by the moniker Toro Y Moi, he has created for himself a music that is mixed with the best of several genres, from R&B, Rock, Electronica, etc. the sound has been aptly described as chillwave, I couldn’t agree more. The track below, How I Know is taken from the Underneath the Pine EP, and the accompanying video involves murderous female ghosts looking for a few friends, creepy and funny just how an horror music video ought to be.


The post Toro Y Moi – How I Know appeared first on The Earology Dept..

]]>
https://www.theearologydept.com/toro-y-moi-all-alone/feed/ 0 130