Comedy Central Video Embedding Solution

The following is a public service for the blogotubing community. So you may have noticed that I’ve been a little unhappy with Comedy Central’s video embed code. It — how you say? — blows.

• It probably has more source code than my entire blog.

• The source code shows up in the entry excerpts as text (as opposed to, say, YouTube’s code which is always hidden).

• And there’s a lot of miscellaneous crap above and below the video itself.

But today, I figured out how to break it down. If you have a blog of your own and you routinely post Comedy Central clips from The Daily Show and The Colbert Report, you might want to bookmark this procedure.

1. When you paste the code into your blog entry field, delete everything from: <style type=’text/css’ through </a></div></div>. That last part appears just prior to the <embed style tag. Do not delete <embed style.

2. Skip down to the tag: bgcolor=’#000000′></embed>. Just after that tag, delete everything else from <div class=’cc_links’ on down.

3. You should be left with code that looks something like this:

<embed style=’float:left; clear:left;’ src=’http://media.mtvnservices.com/mgid:cms:item:comedycentral.com:
220573′ width=’360′ height=’301′ type=’application/x-shockwave-flash’ wmode=’window’ allowFullscreen=’true’ flashvars=’autoPlay=false’ allowscriptaccess=’always’ allownetworking=’all’ bgcolor=’#000000′></embed>

4. Last step. This is pretty important. Delete: style=’float:left; clear:left;’. You should be left with a clean video embed without all of that additional happy crappy.

5. Enjoy.

This entry was posted in Blogging and tagged . Bookmark the permalink.
  • http://www.broadwaycarl.blogspot.com Broadway Carl™

    Sweet! Thanks, Bob.

  • http://freeforallpolitics.multiply.com/ Cody

    I was gonna let you know this once… but I thought maybe you figured that out and was simply still complaining about the length of the code.A lot of other players also have extra code that you don’t need.Just keep the section between the “embed” tags.Same with some widgets.

  • http://freeforallpolitics.multiply.com/ Cody

    Now… when are you gonna figure out there’s better browsers than that Windows IE you use…? lol

  • JeremyB

    Of course, [embed] is not valid XHTML, but hey, baby steps.

  • http://www.osborneink.com Matt Osborne

    Bob rocks.

  • http://davidwraith.livejournal.com david wraith

    Thank you, thank you, thank you.It took me forever to clean up Comedy Central’s code through trial and error and, of course, I took no notes.

  • GItheJOE

    BOB!?!?We are in a recession. This is a capitalistic nation and you just GAVE SHIT AWAY FOR FREE? What are you thinking COMMIE? Where is the personal responsibility(the go fuck yourself mentality of capitalism)? You could of charged a fee for this information. Fucking liberals and their charity. The only place worthy of charity is the church(because it is tax exempt)! Why are you not dying yet?

  • http://www.politicalpartypooper.wordpress.com politicalpartypooper

    GI Joe,Not to worry. Being the capitalist I am, and noticing that Bob did not put a copyright on it, I did it myself, and am now selling it for a hundred bucks a pop. Thanks!