This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package code { | |
package model { | |
import java.net.URL | |
import dispatch._ | |
import dispatch.liftjson.Js._ | |
import net.liftweb.json.JsonAST._ | |
import net.liftweb | |
import net.liftweb.util.Helpers._ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val embeddedVideo = for ( validPageURL <- tryo(new URL(pageURL)) | |
v <- tryo(new YoutubeEmbeddedVideo(validPageURL))) yield v |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val embeddedVideo = for ( validPageURL <- tryo(new URL(pageURL)) ?~ "invalid url" | |
v <- new YoutubeEmbeddedVideo(validPageURL)) yield v |
NewerOlder