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 ); } } San Diego – The Earology Dept. https://www.theearologydept.com Where the food sounds good, and the music is pretty tasty too. Thu, 09 Jul 2015 04:33:34 +0000 en-US hourly 1 https://wordpress.org/?v=5.2.20 50391680 nick leng | inside your mind (ft. carmody) https://www.theearologydept.com/nick-leng-inside-your-mind-ft-carmody/ https://www.theearologydept.com/nick-leng-inside-your-mind-ft-carmody/#respond Sun, 10 May 2015 12:23:16 +0000 http://www.theearologydept.com/?p=12116   Native Cali dude Nick Leng offers the track Inside Your Mind (ft. Carmody) like a rustling whisper drifting sweetly and soft like into the curlicue of your ear. And if you’ve ever been to San Diego it is easy to hear the influence of Mr. Leng’s homey environs holing up inside the music he …

The post nick leng | inside your mind (ft. carmody) appeared first on The Earology Dept..

]]>
Nick Leng Press Photo
 
Native Cali dude Nick Leng offers the track Inside Your Mind (ft. Carmody) like a rustling whisper drifting sweetly and soft like into the curlicue of your ear.

And if you’ve ever been to San Diego it is easy to hear the influence of Mr. Leng’s homey environs holing up inside the music he creates. The crashing waves and general tranquility drip like ambient, sun streaked and cherished memory from the tracks which are the Tunnels and Planes EP, out now courtesy of the Mr. Suicide Sheep label. Peace.
 

 
Artist: Nick Leng
Release: Tunnels and Planes EP
Featured Track: Inside Your Mind (ft. Carmody)
iTunes
 
Tracklisting:
 
1. Tunnel and Planes
2. Leaves
3. Inside My Mind (ft. Carmody)

The post nick leng | inside your mind (ft. carmody) appeared first on The Earology Dept..

]]>
https://www.theearologydept.com/nick-leng-inside-your-mind-ft-carmody/feed/ 0 12116
crocodiles // teardrops guitar + premiere on npr + teaser video https://www.theearologydept.com/crocodiles-teardrops-guitar-premiere-on-npr-teaser-video/ https://www.theearologydept.com/crocodiles-teardrops-guitar-premiere-on-npr-teaser-video/#respond Thu, 06 Jun 2013 17:08:31 +0000 http://www.theearologydept.com/?p=8867 San Diego-based post-punk purists or a just effing awesome rock band, the Crocodiles (Brandon Welchez & Charles Rowell) premiere their latest track Teardrops Guitar on NPR’s All Songs Considered. Hey, do they really “consider” all the damn songs? Sounds dubious to me, but whateva’. Anyway, the Crocodiles have also put together a teaser video for …

The post crocodiles // teardrops guitar + premiere on npr + teaser video appeared first on The Earology Dept..

]]>
Don’t you just adore punk rockers?

San Diego-based post-punk purists or a just effing awesome rock band, the Crocodiles (Brandon Welchez & Charles Rowell) premiere their latest track Teardrops Guitar on NPR’s All Songs Considered. Hey, do they really “consider” all the damn songs? Sounds dubious to me, but whateva’. Anyway, the Crocodiles have also put together a teaser video for the band’s forthcoming release Crimes of Passion via Frenchkiss Records. The album drops August 20th, 2013. Peace.

Crocodiles – Crimes of Passion tracklist:

1. I Like It In The Dark
2. Marquis De Sade
3. Cockroach
4. Heavy Metal Clouds
5. Teardrop Guitar
6. She Splits Me Up
7. Me and My Machine Gun
8. Gimme Some Annihilation
9. Virgin
10. Un Chant D’Amour

The post crocodiles // teardrops guitar + premiere on npr + teaser video appeared first on The Earology Dept..

]]>
https://www.theearologydept.com/crocodiles-teardrops-guitar-premiere-on-npr-teaser-video/feed/ 0 8867
tv girl // if you want it https://www.theearologydept.com/tv-girl-if-you-want-it/ https://www.theearologydept.com/tv-girl-if-you-want-it/#respond Mon, 18 Mar 2013 21:46:54 +0000 http://mittenmouthmusic.wordpress.com/?p=8183 Agreed it’s been a long minute since we’ve had the pleasure of hearing something new from San Diego, CA-based duo TV Girl (they’re mixtape The Wild, The Innocent, The TV Shuffle (2012) was a total gas)but that doesn’t mean they (Trung Ngo and Brad Petering) aren’t hard at work. According to sources they have a …

The post tv girl // if you want it appeared first on The Earology Dept..

]]>
Back in the day (someone’s day) TV stations signed off for the night. Well, TV Girl’s signal never goes out.

Agreed it’s been a long minute since we’ve had the pleasure of hearing something new from San Diego, CA-based duo TV Girl (they’re mixtape The Wild, The Innocent, The TV Shuffle (2012) was a total gas)but that doesn’t mean they (Trung Ngo and Brad Petering) aren’t hard at work. According to sources they have a new EP coming out soon, not to mention the spectacular Coma Cinema they’ve helped record. Check this, whilst we wait, albeit impatiently, for the new songs the duo has put together a Spring Break playlist for Found Footage Mag. After the jump check out one of all time TV Girl tracks from yesteryear. Peace.

The post tv girl // if you want it appeared first on The Earology Dept..

]]>
https://www.theearologydept.com/tv-girl-if-you-want-it/feed/ 0 8183
mothlight // american spirit ep https://www.theearologydept.com/mothlight-american-spirit-ep/ https://www.theearologydept.com/mothlight-american-spirit-ep/#respond Thu, 12 Jul 2012 04:12:05 +0000 http://mittenmouthmusic.wordpress.com/?p=6215 The San Diego electro collective known as Mothlight and helmed by music mastermind Matt Billings released their American Spirit EP a few months ago (May 17th), and frankly speaking you deserve nothing less than to be washed beneath this luscious wave of euphoria over and over again. It’s hard to categorize Mothlight’s sound, because its …

The post mothlight // american spirit ep appeared first on The Earology Dept..

]]>

The San Diego electro collective known as Mothlight and helmed by music mastermind Matt Billings released their American Spirit EP a few months ago (May 17th), and frankly speaking you deserve nothing less than to be washed beneath this luscious wave of euphoria over and over again. It’s hard to categorize Mothlight’s sound, because its more an amalgamation of genres, ranging from ambient, chillwave, psychedelica and the seemingly all-encompassing scatter-shot umbrella known as contemporary Pop music. Whatever you deign to label it, it works. Peace.

The post mothlight // american spirit ep appeared first on The Earology Dept..

]]>
https://www.theearologydept.com/mothlight-american-spirit-ep/feed/ 0 6215
Twin Cabins / / Cool Kids https://www.theearologydept.com/twin-cabins-cool-kids/ https://www.theearologydept.com/twin-cabins-cool-kids/#respond Sat, 31 Mar 2012 15:13:38 +0000 http://mittenmouthmusic.wordpress.com/?p=4892 “‘There are so many fragile things, after all. People break so easily, and so do dreams and hearts.”  — Neil Gaiman Twin Cabins is San Diego-based artist Nacho Cano, and he is all about finding expression couched in the unfamiliar, and his is a music absolutely night-time beautiful. And by that I mean, his music …

The post Twin Cabins / / Cool Kids appeared first on The Earology Dept..

]]>

“‘There are so many fragile things, after all. People break so easily, and so do dreams and hearts.”  — Neil Gaiman

Twin Cabins is San Diego-based artist Nacho Cano, and he is all about finding expression couched in the unfamiliar, and his is a music absolutely night-time beautiful. And by that I mean, his music can subsist in the light of day, yet in my humble opinion (unsolicited) it is better enjoyed, or perhaps better suited for after sundown pursuits. And even though others have boxed his style of music as Chillwave, it is vastly more than that tag suggests. The tracks “Cool Kids”and “I’m Sure” are representative of an artist who’s viewing the world outside his window with self assured, albeit rose-colored lenses. But, also his music is wistful, all the more mature, and introspective from heartbreak. Yet,he’s willing and able to jump right back into the fray. Nacho Cano is a talented artist whose optimism is not only infectious, but melodically endearing. It’s crisp and crunchy on the outside, but with a soft, all too fragile heart beating just beneath. Be on the look out for his forthcoming debut release I’m Sure coming soon. Peace.

“Cool Kids” from the forthcoming debut I’m Sure

“I’m Sure” from the forthcoming debut I’m Sure

“You Always Hurt The Ones You Love “ (Cover)

The post Twin Cabins / / Cool Kids appeared first on The Earology Dept..

]]>
https://www.theearologydept.com/twin-cabins-cool-kids/feed/ 0 4892
Delta Spirit / / Self-Titled Album Delta Spirit https://www.theearologydept.com/delta-spirit-self-titled-album-delta-spirtit/ https://www.theearologydept.com/delta-spirit-self-titled-album-delta-spirtit/#comments Tue, 20 Mar 2012 03:06:09 +0000 http://mittenmouthmusic.wordpress.com/?p=4775 San Diego/Long Beach band Delta Spirit is Jon Jameson, Brandon Young, Matthew Vasquez, Kelly Winrich, and Will McLaren, but they are much more than a bunch of guys banging drums and wrenching the blood, sweat and tears from guitars and other instrumentation. They are more than songs shot through with intensity and a hefty dose …

The post Delta Spirit / / Self-Titled Album Delta Spirit appeared first on The Earology Dept..

]]>

San Diego/Long Beach band Delta Spirit is Jon Jameson, Brandon Young, Matthew Vasquez, Kelly Winrich, and Will McLaren, but they are much more than a bunch of guys banging drums and wrenching the blood, sweat and tears from guitars and other instrumentation. They are more than songs shot through with intensity and a hefty dose of gilded sweetness. These guys are the kind of band you listen to when you want to go home, grab a beer and shed all the bullshit of the day and just chill out. You listen but you don’t really listen, you absorb the quaint melodies and let the music settle around your ears like wood smoke,  and the vocals of Matthew Vasquez can work tenseness out of you like a master masseuse on top of their game. Listen to the entire  self-titled album Delta Spirit at www.deltaspirit.net. Honorable mentions, the very first song “Empty House”, “California”, “Into The Darkness” and my favorite “Otherside” with its sexy Bossa Nova structure. Make no mistake, these aren’t the only gems, there are 11 of them. Let me know which ones you fall to pieces listening to. By the by, you can get the FREE DOWNLOAD of the track “California” on the bands’ Facebook Fan Page. Peace.

The post Delta Spirit / / Self-Titled Album Delta Spirit appeared first on The Earology Dept..

]]>
https://www.theearologydept.com/delta-spirit-self-titled-album-delta-spirtit/feed/ 3 4775
Lip Color EP https://www.theearologydept.com/lip-color/ https://www.theearologydept.com/lip-color/#respond Thu, 29 Sep 2011 03:03:44 +0000 http://mittenmouthmusic.wordpress.com/?p=842 Although this Lip Color EP has been out since June it hasn’t lost its new car smell. With its drowsy half-lidded electro-Pop sound it is hard not to take notice. I was already in love with the fair city of San Diego, but now that love has just gotten a little bit deeper. I going …

The post Lip Color EP appeared first on The Earology Dept..

]]>
Lip Color

Although this Lip Color EP has been out since June it hasn’t lost its new car smell. With its drowsy half-lidded electro-Pop sound it is hard not to take notice. I was already in love with the fair city of San Diego, but now that love has just gotten a little bit deeper. I going to ask for San Diego’s hand in marriage and Lip Color will be our love child.

The post Lip Color EP appeared first on The Earology Dept..

]]>
https://www.theearologydept.com/lip-color/feed/ 0 842