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 ); } } Sara Kermanshahi – The Earology Dept. https://www.theearologydept.com Where the food sounds good, and the music is pretty tasty too. Sat, 10 Dec 2011 15:14:27 +0000 en-US hourly 1 https://wordpress.org/?v=5.2.24 50391680 Our First Interview: Natureboy’s Sara Kermanshahi https://www.theearologydept.com/our-first-interview-natureboys-sara-kermanshahi/ https://www.theearologydept.com/our-first-interview-natureboys-sara-kermanshahi/#respond Sat, 10 Dec 2011 15:14:27 +0000 http://mittenmouthmusic.wordpress.com/?p=2374 Recently I had the great pleasure of interviewing Bushwick, New York native Sara Kermanshahi of the band Natureboy. And if you haven’t listened to her latest self-titled release Natureboy, you’re missing out. Her songs are infectious acoustic odes laden with degrees of tenderness, fragility and longing. Her guitar playing is sedate and mellifluous, punctuated with …

The post Our First Interview: Natureboy’s Sara Kermanshahi appeared first on The Earology Dept..

]]>
Recently I had the great pleasure of interviewing Bushwick, New York native Sara Kermanshahi of the band Natureboy. And if you haven’t listened to her latest self-titled release Natureboy, you’re missing out. Her songs are infectious acoustic odes laden with degrees of tenderness, fragility and longing. Her guitar playing is sedate and mellifluous, punctuated with a potency both endearing and captivating. Sara’s songs when played draw you closer; unconsciously you lean into them just to catch hints of their glowing warmth.

d. durand: I’ve been checking up on you Sara and I know you are a first generation Iranian-American born and bred in the great state of Washington. A Seattleite. Tell me about what it was like growing up in Seattle.

Sara: Seattle was good for the most part. Gray and rainy as well.  Made some friends, started a band, went through teenage angst, pretty much like everywhere else.

d. durand: Growing up in Seattle obviously there is a lot of history as far as bands go, any musical influences aside from Nirvana?

Sara: Oh yeah, but Nirvana really turned my head around and made me like good music. Growing up I listened to a lot of Nirvana, Smashing Pumpkins, Radiohead, Modest Mouse, My Bloody Valentine, PJ Harvey, The Cure etc….

d. durand: Ok, an odd question. If you could be a Nirvana song which one would it be, and why?

Sara: That IS an odd question! Probably “Negative Creep.” It says it all in the title.

d. durand: Being a first generation Iranian-American how does your heritage influence you approach to songwriting, or not?

Sara: It doesn’t really. I’m still lost on my approach to songwriting. I don’t have a certain method or technique to writing. I know I have to be inspired, if I’m not inspired then its all shit.

d. durand: Do you come from a musical family?

Sara: Not that I know of, my parents were artists when they were young, mostly painting.

d. durand: What music was you exposed to while growing up before you developed your own musical taste?

Sara: Well, there was a lot of Persian music around and I did take a liking to it, would sing some songs in Farsi. But I never really got into it. So American radio was my thing until I could buy CD’s.

d. durand: How did your family react to your decision to pursue music as a career?

Sara: Sure they have their worries but they have been very supportive. They really want me to do what makes me happy. They’d do and have done anything they can to help me.

d. durand: Is it me or do I hear a bit of the Middle Eastern time signatures, especially the phrasing typically associated with the sitar. Is that a conscious thing or totally subconscious?

Sara: Totally subconscious. I don’t even think about time signatures when I’m writing. It just comes out naturally.


d. durand: In a previous life you played in the electrified band House On A Hill, knowing that, it’s hard for me to imagine your beautiful voice coupled with anything other than the acoustic mode you now practice, why the change?

Sara: I just got tired with the electric rock thing. I’ve always played on acoustic, just never recorded much. And I was going to do my own thing, instead of writing songs with someone else like in House on a Hill, and the acoustic made sense. But the funny thing is the 1st House on a Hill record was a lot like the NB stuff. We just went in a very different direction for the 2nd and 3rd ones.

d. durand: In my off-kilter mind I imagine if Billy Holiday was a folk singer I think she would have sounded a lot like you, any secret Jazz influences we should know about?

Sara: Not that I know of, my parents were artists when they were young, mostly painting.

d. durand: When I first started listening to your music I played it almost non-stop. The music you create could be described as haunting and melancholy. Was it a conscious direction or did it just come out that way?

Sara: Just came out that way. That’s the music I love to hear, so its natural to create.

d. durand: Your song “Pariah” is my favorite, what is the song about?

Sara: I don’t really want to say, because I like for people to have their own interpretations. And most of my songs are not just about one thing, but there are general themes like unrequited love or feeling isolated.


d. durand: I hear influences like the Cowboy Junkies, Patty Smith, Joan Armatrading, and the great Joni Mitchell, even a bit of Radiohead’s atmospherics, is this close?

Sara: I love Patti Smith and Radiohead. Other influences would be Cat Power, Bon Iver, Beach House, Bob Dylan, and a bunch of other artists. Seriously a lot of other ones that I can’t name off the top of my head right now.

d. durand: Out of your entire catalog of songs as Natureboy, what is by far your favorite song you never tire of performing?

Sara: It’s probably this song called “Head to Toe” that’s going on the next record, but we’ve played it live a bunch too.

d. durand: When your out on the road touring what is something you miss the most from home?

Sara: My bed.

d. durand: Any guilty pleasures you care to admit to?

Sara: Haha no.

d. durand: Whiskey or wine?

Sara: Whiskey.

d. durand: Good answer. Alright. Name three bands you are listening to right now?

Sara: Cass Mccombs, Atlas Sounds, Depeche Mode.

d. durand: Is there any venues you haven’t played yet you would love to play?

Sara: Sure, lots of them. Brooklyn has great venues. Bowery Ballroom in the city would be real nice.

d. durand: Continuing along the theme, is there one particular band or artist that you would love to tour with or headline for?

Sara: Atlas Sounds.

d. durand: Another fun question. If you, Hope Sandoval and Chan Marshall had a girls night out what would the three of you do and where would you go?

Sara: Ha! Well I love both those ladies but I don’t know them or have any idea what they consider a fun night, so I would leave it up to them, and I would follow along with adoration.

d. durand: How did you connect with Bleek Records?

Sara: Kevin from Kevchino.com has been a huge fan and supporter of NB and we’ve all been friends for a couple of years now. He decided to start a label with Scot Bowman who runs the Sky Report and their friend Nick Gretto and they all wanted to officially release the debut NB record in the U.S. because it never was. We are really happy to be working with them and know that they want the best for their artists. So there was no question.

d. durand: Last question. For now you’ve toured mainly the East and West Coasts, and a few places in-between. When are you coming to Michigan?

Sara: I don’t know. I want to of course. There are talks of a U.S. tour in the works, so we’ll see.

 

I want to extend many warm thanks to Sara and Bleek Records for making this interview happen. For more information and music from Natureboy visit them at bandcamp and Facebook. For more updates follow the band on Twitter. Peace.

The post Our First Interview: Natureboy’s Sara Kermanshahi appeared first on The Earology Dept..

]]>
https://www.theearologydept.com/our-first-interview-natureboys-sara-kermanshahi/feed/ 0 2374
Natureboy – Natureboy https://www.theearologydept.com/natureboy-natureboy/ https://www.theearologydept.com/natureboy-natureboy/#comments Thu, 17 Nov 2011 04:30:50 +0000 http://mittenmouthmusic.wordpress.com/?p=1938 A guitar. Her acoustic guitar. A voice. Her haunting voice. This voice belongs to Sara Kermanshahi and when her music is playing it is the only light in the room. Needless to say her voice has a chafed and corporeal quality to it that I love. It is reminiscent of the scorched remnants of a …

The post Natureboy – Natureboy appeared first on The Earology Dept..

]]>
A guitar. Her acoustic guitar. A voice. Her haunting voice. This voice belongs to Sara Kermanshahi and when her music is playing it is the only light in the room. Needless to say her voice has a chafed and corporeal quality to it that I love. It is reminiscent of the scorched remnants of a bruised and curling flower petal languishing in the potent light of the sun. A mouthful I know, but she does this to me; makes me feel such heartful emotions. Her album Naturboy is resilient and beautiful; as only a somber collection of songs can be. Listen to the entire album below and soon you’ll notice you’re disappearing into the music too. Peace.

The post Natureboy – Natureboy appeared first on The Earology Dept..

]]>
https://www.theearologydept.com/natureboy-natureboy/feed/ 1 1938