Compare commits

...

2 Commits

Author SHA1 Message Date
d01d2b3b0f Merge branch 'master' of githug.xyz:depsterr/viddl 2022-03-14 11:00:14 +01:00
7e86e27185 changed some links 2022-03-14 10:52:32 +01:00
3 changed files with 6 additions and 10 deletions

View File

@ -20,7 +20,7 @@ errorPage msg = [r|
<h1>viddl</h1> <h1>viddl</h1>
<p>|] <> (TL.fromStrict (sanitize (TL.toStrict msg))) <> [r|</p> <p>|] <> (TL.fromStrict (sanitize (TL.toStrict msg))) <> [r|</p>
<hr> <hr>
<p>viddl is free <a href="https://github.com/depsterr/viddl">open source</a> software and is powered by <a href="https://yt-dl.org/">youtube-dl</a>.</p> <p>viddl is free <a href="https://githug.xyz/depsterr/viddl">open source</a> software and is powered by <a href="https://yt-dl.org/">youtube-dl</a>.</p>
</center> </center>
</body> </body>
|] |]

View File

@ -48,7 +48,7 @@ indexPage = [r|
</tr> </tr>
</table> </table>
<hr> <hr>
<p>viddl is free <a href="https://github.com/depsterr/viddl">open source</a> software and is powered by <a href="https://yt-dl.org/">youtube-dl</a>.</p> <p>viddl is free <a href="https://githug.xyz/depsterr/viddl">open source</a> software and is powered by <a href="https://yt-dl.org/">youtube-dl</a>.</p>
</center> </center>
</body> </body>
|] |]

View File

@ -80,13 +80,9 @@ ytdl url res = ReaderT $ \cfg -> do
pure (Right fileName) pure (Right fileName)
else do else do
removeDirectoryRecursive dir removeDirectoryRecursive dir
pure (Left "An unknown error prevented the output file from being created") (pure . Left) "An unknown error prevented the output file from being created"
(ExitFailure status) -> pure (Left (concat ["execution failed with status '" (ExitFailure status) ->
, show status pure . Left $ "execution failed with status " ++ show status ++ ": " ++ err
, "' <pre><code>"
, out, err
, "' </pre></code>"
]))
_ -> pure (Left "Unable to spawn process for downloading") _ -> (pure . Left) "Unable to create ytdlProcess for downloading video"