Lets bring TYTD Back
Go to file
Mike Nolan 55f62811c7 Added a already exists url option in Creds.priv.cs 2024-10-19 03:46:48 -05:00
wwwroot Bring TYTD Back 2024-10-19 00:17:43 -05:00
.gitignore Bring TYTD Back 2024-10-19 00:17:43 -05:00
BringTYTDBack.csproj Bring TYTD Back 2024-10-19 00:17:43 -05:00
Creds.cs Added a already exists url option in Creds.priv.cs 2024-10-19 03:43:06 -05:00
Dockerfile Bring TYTD Back 2024-10-19 00:17:43 -05:00
LICENSE.md GPLv3 it 2024-10-19 00:18:46 -05:00
Program.cs Added a already exists url option in Creds.priv.cs 2024-10-19 03:43:06 -05:00
README.md Added a already exists url option in Creds.priv.cs 2024-10-19 03:46:48 -05:00

README.md

Bring TYTD Back

I wanted to bring TYTD back so I did somewhat

This project requires tytd-cli to be installed on a ssh (password protected server, could use private key if you modify Program.cs async Task AddVideo), the tytd-cli must be installed on PATH

To Configure you must add a file called Creds.priv.cs with the following content

    public static partial class Creds
    {
        static string _ip = "YOUR_SSH_SERVER";
        static string _username = "YOUR_SSH_USERNAME";
        static string _password = "YOUR_SSH_PASSWORD";
        static string _dir = "YOUR_SSH_PATH";
        static int _port = 22; //if ssh is on different port change it here
        
        static string _alreadyExists=""; //must be http(s) url such as https://tytdarchive.site.tesses.net/have.php?v= that the response must return "true" if it already exists or "false" if not
    }

WITHOUT DOCKER

then compile the project using

    dotnet publish -c Release -o out --self-contained -r linux-x64 -p:PublishSingleFile=true -p:PublishReadyToRun=true

then copy wwwroot to out

WITH DOCKER

    docker build -t bring-tytd-back:latest .
    docker run --restart unless-stopped -p 3252:3252 -d bring-tytd-back:latest