Skip to content

Instantly share code, notes, and snippets.

@urcadox
Created September 28, 2011 09:07
Show Gist options
  • Save urcadox/1247424 to your computer and use it in GitHub Desktop.
Save urcadox/1247424 to your computer and use it in GitHub Desktop.
val embeddedVideo = for ( validPageURL <- tryo(new URL(pageURL)) ?~ "invalid url"
v <- new YoutubeEmbeddedVideo(validPageURL)) yield v
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment