/*
Plugin Name: Distrify Embed
Plugin URI: http://support.distrify.com/customer/portal/articles/264106-how-do-i-embed-on-a-wordpress-blog-
Description: Extends WordPress's 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 );
}
}
Continue reading "hey ya | ben talmi & kamau"
The post hey ya | ben talmi & kamau appeared first on The Earology Dept..
]]>
Ben Talmi and KAMAU slow OutKast’s Hey Ya way down and infuse the track with a much more reflective time signature. I love the original version well enough but this right here is doing the most.
“Ya’ll don’t give a damn, ya’ll just wanna’ dance.”
This interpretation is a example of what you’ll experience on brother KAMAU’s deput A Gorgeous Fortune EP out now. The EP feature six creative and wonderfully bohemian soul tinged songs. I am going to keep my ear to the rail awaiting more from this artist. I dig. Also, make sure to heck out the tracklisting down, way down below. Peace.
Artist: Ben Talmi & KAMAU
Single: Hey Ya (Interpretation)
Hey Ya Lyrics:
My baby don’t mess around
Because she loves me so
And this I know for sure.
Uh, but does she really wanna
But can’t stand to see me
Walk out the door.
Don’t try to fight the feelin’
‘Cause the thought alone is killing me right now
Uh, thank god for mom and dad
For sticking two together
‘Cause we don’t know how
Hey… ya.
Hey ya.
Hey… ya.
Hey ya.
Hey… ya.
Hey ya.
Hey… ya.
Hey ya.
You think you’ve got it
Oh, you think you’ve got it
But got it just don’t get it
‘Til there’s nothing at all
We get together
Oh, we get together
But sex always better when there’s feelings involved
If what they say is “Nothing is forever”
Then what makes, then what makes, then what makes
Then what makes, what makes, what makes love the exception
So why you, why you
Why you, why you, why you are we so in denial
When we know we’re not happy here…
Y’all don’t give a damn, ya’lljust wanna dance
Hey… ya.
Hey ya.
Hey… ya.
Hey ya.
Hey… ya.
Hey ya.
Hey… ya.
Hey ya.
We rose like a rose from a stone under flourescent light
Love like glass in the water and we thought it was ice
Cold like earth when it froze unforgiven forgiven for it was dead from the go
We gets under the vultures confused it for mistletoe
We jump into the ocean without learning how to float.
The post hey ya | ben talmi & kamau appeared first on The Earology Dept..
]]>Continue reading "dj shadow | nobody speak"
The post dj shadow | nobody speak appeared first on The Earology Dept..
]]>
DJ Shadow pumps our ears full of fun with his latest collaborative track Nobody Speak featuring NYC’s dem spittin’ figha’ boys Run The Jewels ( El-P and Killer Mike). The forthcoming album A Mountain Will Fall drops June 24th via Mass Appeal Records. The album release will also offer the previously-released titled-track A Mountain Will Fall (⇦ check it out by clicking on the link). Peace. P.S. The opening (and subsequent) guitar work is most def channeling Ali Farka Touré, am I wrong?
*
Artist: DJ Shadow feat. Run The Jewels
Album: The Mountain Will Fall
Featured Track: Nobody Speak
Label: Mass Appeal Records
iTunes
Amazon
Spotify
Track List:
01. The Mountain Will Fall
02. Nobody Speak feat. Run The Jewels
03. Three Ralphs
04. Bergschrund feat. Nils Frahm
05. The Sideshow feat. Ernie Fresh
06. Depth Charge
07. Mambo
08. Ashes To Oceans feat. Matthew Halsall
09. Pitter Patter feat. G Jones & Bleep Bloop
10. California
11. Ghost Town
12. Suicide Pact
13. Swerve (iTunes Bonus Track)
The post dj shadow | nobody speak appeared first on The Earology Dept..
]]>Continue reading "domo genesis | dapper | ft. anderson paak"
The post domo genesis | dapper | ft. anderson paak appeared first on The Earology Dept..
]]>
Domo Genesis brings a bit a lighthearted frenetic energy to brush off the anticipated sun rays of a long hot summer (I hope). I am diggin’ the guitar solo, which gives the track Dapper an old school flare. You can cop this song March 25th and 11 more from Domo’s debut release GENESIS courtesy of Odd Future Records. Peace.
Artist: Domo Genesis
Release: GENESIS
Featured Track: Dapper ft. Anderson Paak
Record Label: Odd Future Records
Amazon
Google Play
iTunes
Tracklist:
01 Awkward Groove [prod. by Mike & Keys]
02 One Below [prod. by Sha Money XL]
03 Wanderer (ft. Tay Walker) [prod. by Cam O’bi]
04 Questions (ft. Da$h and Kendra Foster) [prod. by Maffyuu]
05 My Own (ft. JMSN) [prod. by Christian Rich]
06 Go (Gas) (ft. Wiz Khalifa, Juicy J, & Tyler, the Creator) [prod. by Tyler, The Creator]
07 Coming Back (ft. Mac Miller) [prod. by Sap]
08 Faded in the Moment (ft. Cam O’bi) [prod. by Cam O’Bi]
09 Dapper (ft. Anderson .Paak) [prod. by Garcia Bros]
10 Brotha [prod. by Drewbyrd & Kintaro]
11 All Night (ft. King Chip) [prod. by Left Brain]
12 Lost and Found [prod. by Steely Wonderbread]
The post domo genesis | dapper | ft. anderson paak appeared first on The Earology Dept..
]]>Continue reading "tunde olaniran | namesake"
The post tunde olaniran | namesake appeared first on The Earology Dept..
]]>
Tunde Olaniran is about to blow! One listen to his astutely wise and bangingly badass track Namesake and you’ll my prophetic stance. This young lion hailing from Flint, Michigan flows wickedly like whitewater over Celestial Falls. This track stylistically straddles a sound somewhere between Danny Brown and Kid Cudi, but it is wholly something different and on a higher plateau. If you are looking for something clever with a sound and production profile among the best out there then cop his debut Transgressor album. Pre-Order below. Peace.
Artist: Tunde Olaniran
Album: Transgressor
Featured Track: Namesake
Pre-Order
The post tunde olaniran | namesake appeared first on The Earology Dept..
]]>Continue reading "Our Sunday Best: L’Orange & Kool Keith | Time? Astonishing"
The post Our Sunday Best: L’Orange & Kool Keith | Time? Astonishing appeared first on The Earology Dept..
]]>
Hip Hop house producing underground legends Mello Music Group is slated to drop L’Orange & Kool Keith‘s album Time? Astonishing July 24th. If you’re tired of the embarrassment of what most mainstream Hip Hop isn’t then this is the remedy and the cure. L’Orange and Kool Keith shine like diamonds and come just as hard, not gangsta’ hard. No, never that, this is the hardness of truth and positivity. Good stuff. Peace.
Artist: L’Orange & Kool Keith
Album: Time? Astonishing
Label: Mello Music Group
01. Time? Astonishing!
02. The Traveler (feat. J-Live)
03. The Green Ray
04. Twenty Fifty Three (feat. Mr. Lif)
05. Meanwhile, Back Home (feat. Open Mike Eagle)
06. The Wanderer
07. This New World (feat. Blu, Montage One & DJ Trackstar)
08. Dr. Bipolar
09. Suspended Animation (feat. MC Paul Barman)
10. I Need Out Of This World (feat. MindsOne)
11. To Space!
12. Days I Used To Know
13. Bonus: Sometimes I Feel
The post Our Sunday Best: L’Orange & Kool Keith | Time? Astonishing appeared first on The Earology Dept..
]]>Continue reading "wu tang | a better tomorrow | full album stream"
The post wu tang | a better tomorrow | full album stream appeared first on The Earology Dept..
]]>The post wu tang | a better tomorrow | full album stream appeared first on The Earology Dept..
]]>Continue reading "angel haze | battle cry | acoustic"
The post angel haze | battle cry | acoustic appeared first on The Earology Dept..
]]>[Angel Haze]
It seems like yesterday that I was nothin’
Then all of a sudden I’m a volcanic eruption
Then all of a sudden it’s like spontaneous combustion
And I’m all up in your face yellin’: “Bitch, you can tell me nothin’.”
Cause I came from the bottom, now everybody’s watchin’
I said it was my time, now I’m who everybody’s clockin’
And I’m just out here sprintin’, I’m runnin’ right through my vision
I’m trying to outrun my past, but still trying to defeat my limits
Cause you only get one moment in this life to be great
And you can give it your all despite what it takes
And you never let ’em kill you, you take everything they give you
And throw it right fuckin’ at ’em and tell ’em it doesn’t build you
And no it don’t ever break you, and no it can’t overtake you
Life’s like a bed of roses, you take the thorns and you make do
Sometimes you have to hurt for the cause to be reached
But one day you’ll be stronger than all that you beat
And you can say
[Sia]
Money cannot buy
All the love that’s here tonight
All the love that’s here tonight
Ouh-ouh
It’s just you and I
So lift your hands toward the sky
Lift your hands toward the sky
Ouh-ouh
[Angel Haze]
I woke up one Sunday morning, stopped believing in Jesus
Stopped believing in churches, I stopped believing in preachers
I realized I was a teacher, not just one of the heathens
I’m born to destroy the fallacies, start creating believers
Start creating the leaders, tell ’em who they should follow
Nobody but themselves, especially if they hollow
Especially when they empty and death reserves for fulfillment
You the only person alive who holds the key to your healin’
So you take it and you run with it
And keep going even when your sun’s hidden
Because the time we spent in darkness when the rain come
Is where we often find the light soon as the pain’s done
There ain’t no material things in the world
That can change the fact that you feel alone
Despite the fact that it gets hard,
You take it all and you still go
Take the sun and you still grow,
Lose the light and you still glow
I been there, I’m still here and I know how you feel, so
[Sia]
Money cannot buy
All the love that’s here tonight
All the love that’s here tonight
Ouh-ouh
It’s just you and I
So lift your hands toward the sky
Lift your hands toward the sky
Ouh-ouh
[Bridge]
We don’t wanna fight
So sing with me your battle cry
Sing with me your battle cry
Ouh-ouh
Money cannot buy
All the love that’s here tonight
All the love that’s here tonight
Ouh-ouh
[Angel Haze]
It’s hard to explain my way of living to people who never lived it
A minute in my position filled with my opposition
That anybody not different fighting to stay the same
I got lives in my hands and I’m fighting to make ’em change
Couldn’t accept responsibility, find somebody to blame
The emotions that I’m harboring ’bout to drive me insane
Tried to say fuck everything, but I ain’t have a heart to
Rarely had a heart to do a lot of things I ought to
So now I spit it for people who say their cords missing
Inspire life into anybody that’s forfeiting
Cause it’s easy to keep pretending that there’s nothing wrong
But it’s harder to keep your head up and be fucking strong
So, now they tell me, “Go, Haze, they can’t stop you.
Heavyweight flow, if they can’t lift you then they can’t drop you
The pinnacle, if they can’t reach you then they can’t drop you
Man, they can’t do anything that you’re about to.”
[Sia]
Money cannot buy
All the love that’s here tonight
All the love that’s here tonight
Ouh-ouh
It’s just you and I
So lift your hands toward the sky
Lift your hands toward the sky
Ouh-ouh
We don’t wanna fight
So sing with me your battle cry
Sing with me your battle cry
Ouh-ouh
Money cannot buy
All the love that’s here tonight
All the love that’s here tonight
Ouh-ouh
The post angel haze | battle cry | acoustic appeared first on The Earology Dept..
]]>Continue reading "the hood internet // doin it good + kanye west + daft punk + free download"
The post the hood internet // doin it good + kanye west + daft punk + free download appeared first on The Earology Dept..
]]>
Summer 2013 pretty much belongs to Daft Punk and the release of their much lauded Random Access Memories LP. Point and set. Yet, there is another artist who’ll also be remembered in the year of our lord MMXIII. Enter Mr. Kanye West and his groundbreaking Yeezus LP. And as big as the former two acts are (they’re so not acting) there is two unsung heroes of the summer (and spring, autumn and winter too).
The Chicago-based dj/producer duo known worldwide as The Hood Internet. These guys are the precious golden thread, who often conjoin the urban with the suburban, taking the grit and grime and the globally inaccessible then carefully stitching them together like Siamese dreams. But on a higher plateau The Hood Internet perform a greater service, as global ambassadors: bridging cultures and gettin’ the party started. They rock the rural and roll the sublime, blending them into a potent tonic poured over sub-zero and multifaceted crushed ice. It’s a hard concept to understand without experiencing it firsthand or in this case firstear.
If you missed it then you’re in for a treat, as you listen to the superlative mash-up. The “Doin It Good,” remix takes the Hip-Hop fun of Kanye’s Good Life and marries it to the effortless euphoria of Daft Punk’s Doin’ It Right. This is an “all day everyday” anthem. Also, peep The Hood Internet’s The Mixtape Volume Seven. It is jammed packed with goodies and hoodies. Peace.
The post the hood internet // doin it good + kanye west + daft punk + free download appeared first on The Earology Dept..
]]>The post shabazz palaces // an echo from the hosts that profess infinitum + official music video appeared first on The Earology Dept..
]]>Just ahead of Shabazz Palaces‘ soon to launch tour of Asia. Seattle, WA-based avant garde Hip Hop torch bearers release the video for An Echo from the Hosts that Profess Infinitum, better later than never-ish, right? The video was directed by Joris Grelet, and features molotov cocktails and sword wielding assassins. The video comes nearly two years after the release of 2011’s Black Up from which the track is taken. The duo, Palaceer Lazaro and Tendai Maraire, are hopefully in the lab putting together new material. We can only hope. Also, after the jump check out the recent Shabazz Palaces Remix of Animal Collective‘s New Town Burnout. Peace.
The post shabazz palaces // an echo from the hosts that profess infinitum + official music video appeared first on The Earology Dept..
]]>Continue reading "our sunday best: anaye ☿♥ pu$$y palace ☿♥"
The post our sunday best: anaye ☿♥ pu$$y palace ☿♥ appeared first on The Earology Dept..
]]>
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..
]]>