- putStrLn "lel"
- -- case video of
- -- Just (videoId, videoFilename) -> do
- -- let tmplContext = context $ [("timestamp", fromString . show $ (stamp::Integer)), ("title", pack entryName), ("videofilename", pack $ videoFilename), ("videoid", pack videoId)]
- -- let rawEntry = unpack . toStrict $ render videoTemplate tmplContext
- -- writeFile filename rawEntry
- -- callCommand $ "youtube-dl -f 'webm[height<1080]+bestaudio' \"https://www.youtube.com/watch?v=" ++ videoId ++ "\" -o 'build/videos/" ++ videoFilename ++ "'"
- -- Nothing -> do
- -- let tmplContext = context $ [("timestamp", fromString . show $ (stamp::Integer)), ("title", pack entryName)]
- -- let rawEntry = unpack . toStrict $ render normalTemplate tmplContext
- -- writeFile filename rawEntry