Merge pull request 'General Fixes' (#2) from dev into main

Reviewed-on: https://codeberg.orgBingus_Violet/Univerter#2
This commit is contained in:
Bingus_Violet 2024-01-29 14:42:29 +00:00
commit df1993250b
5 changed files with 62 additions and 12 deletions

View file

@ -1,11 +1,10 @@
# Univerter
A web youtube downloader & converter for youtube videos with no client-sided javascript. It can be found at https://yt.violets-purgatory.dev
A web downloader & converter for videos with no client-sided javascript. It can be found at https://yt.violets-purgatory.dev
Currently supports a wide variety of formats, but only supports youtube. If you have any other sites you want supported, or any other formats, please open an issue.
## Announcement
The developer branch is currently broken, as it is unfinished. Please don't report bugs yet.
Currently supports a wide variety of formats and sites, but if you have any other formats you want supported, please open an issue.
Formats added to Univerter must be supported by FFmpeg
Support for sites will only be added if those sites are supported by yt-dlp.
# Installation
@ -14,14 +13,14 @@ There are 2 main ways to install Univerter:
## Docker
The docker image can be found at https://hub.docker.com/r/bingusviolet/univerter
Port 8080 (or whatever you set the environment variable to) is exposed inside the container. It can be changed with `-p`
Port 8080 (or whatever you set the environment variable to) is exposed inside the container. It can be exposed with `-p`
Example:
```bash
docker run -p 8080:8080 bingusviolet/univerter
```
It can now be found on port 8080
This will allow it to be found on port 8080 (E.G. `localhost:8080`)
## Npm
## Node
1. Clone the repository
@ -35,6 +34,7 @@ cd YoutubeConverter
- [ffmpeg](https://github.com/FFmpeg/FFmpeg)
- [node](https://github.com/nodejs/node)
- [npm](https://github.com/npm/cli)
- [yt-dlp](https://github.com/yt-dlp/yt-dlp)
3. Download NodeJS Dependencies

View file

@ -184,6 +184,7 @@ app.get("/download", async (req, res) => {
url,
'-o', '-',
'--max-filesize', MAX_FILESIZE + 'm',
'-S', 'res:' + quality,
'--no-playlist',
])

View file

@ -12,7 +12,7 @@
</head>
<body>
<h1>Univerter <p>v4.0</p>
<h1>Univerter <p>v5.0</p>
<p style="color: lightgray">And still javascript free...</p>
<hr>
</h1>
@ -51,11 +51,23 @@
<input type="submit">
</form>
<br>
<p>Univerter was designed for youtube, but if you need something different please consult <a target="_blank" href="https://github.com/yt-dlp/yt-dlp/blob/master/supportedsites.md">this list</a> to see if your site is there. Be warned, though, they are all untested, so please report issues you encounter!</p>
<p>Univerter was designed for youtube, but if you need something different please consult <a target="_blank" href="https://github.com/yt-dlp/yt-dlp/blob/master/supportedsites.md">this list</a> to see if your site is there. Be warned, though, they are mostly untested!</p>
<p>Notable supported sites include:</p>
<ul>
<li>Youtube</li>
<li>Twitter</li>
<li>TikTok</li>
</ul>
<p>For a full list of things that have been tested you can find them <a href="./supported">here</a></p>
<hr>
<p><a target="_blank" href="https://ko-fi.com/bingus_violet">Please consider donating</a> or host the website yourself! Anything
helps! (Check <a href="https://codeberg.org/Bingus_Violet/Univerter">Codeberg</a> for more info)</p>
<p>Powered by <a target="_blank" href="https://github.com/yt-dlp/yt-dlp/">yt-dlp</a></p>
<p>
Powered by <a target="_blank" href="https://github.com/yt-dlp/yt-dlp/">yt-dlp</a>
<br>
Inspired by <a href="https://cobalt.tools">Cobalt</a><br>
Happy 100 commits :)
</p>
</body>
</html>

View file

@ -20,7 +20,8 @@ h1>* {
p,
select,
input {
input,
li {
font-size: 1.3rem;
}
@ -48,6 +49,10 @@ input {
display: inline;
}
a {
color: rgb(125, 125, 255)
}
.col-sm-3 {
outline: white solid 2px
}
@ -69,4 +74,8 @@ input:hover {
border: rgb(150, 50, 50) solid 2px;
border-radius: 15px;
display: inline-block;
}
ul {
display: inline-block;
}

View file

@ -0,0 +1,28 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="../style.css">
<title>Supported Sites</title>
</head>
<body>
<h1>Supported Sites
<hr>
</h1>
<p>Univerter was designed for youtube, but if you need something different please consult <a target="_blank" href="https://github.com/yt-dlp/yt-dlp/blob/master/supportedsites.md">this list</a> to see if your site is there. Be warned, though, they are all untested, so please report issues you encounter!</p>
<p>Tested and actively supported sites include:</p>
<ul>
<li>Youtube</li>
<li>Twitter</li>
<li>TikTok</li>
</ul>
</body>
</html>