changed some links
This commit is contained in:
parent
fb094b9ea9
commit
7e86e27185
|
@ -19,7 +19,7 @@ errorPage msg = [r|
|
||||||
<h1>viddl</h1>
|
<h1>viddl</h1>
|
||||||
<p>|] <> msg <> [r|</p>
|
<p>|] <> 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>
|
||||||
|]
|
|]
|
||||||
|
|
|
@ -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>
|
||||||
|]
|
|]
|
||||||
|
|
|
@ -74,8 +74,9 @@ ytdl url res = 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 ", show status, ": ", err]))
|
(ExitFailure status) ->
|
||||||
|
pure . Left $ "execution failed with status " ++ show status ++ ": " ++ err
|
||||||
|
|
||||||
_ -> pure (Left "Unable to create ytdlProcess for downloading video")
|
_ -> (pure . Left) "Unable to create ytdlProcess for downloading video"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user