fe80Grau / ytdlp2STRM

A little script to serve Youtube / Twitch / Crunchyroll videos without storage it. Uses yt-dlp HTTP data throught Flask and dynamic URLs. We can use this dynamic URLs to set STRM files.
https://github.com/fe80Grau/ytdlp2STRM
MIT License
173 stars 15 forks source link

Help requested - Service Failed to start #28

Closed NaturalDevCR closed 5 months ago

NaturalDevCR commented 5 months ago

Hi!, first I'd like to thank you for your work...

I've tried to install with the instructions... everything installs without errors, but service won't start:

● ytdlp2strm.service - ytdlp2STRM Service
     Loaded: loaded (/etc/systemd/system/ytdlp2strm.service; enabled; preset: enabled)
     Active: activating (auto-restart) (Result: exit-code) since Mon 2024-01-15 13:37:36 CST; 1s ago
    Process: 32809 ExecStart=/usr/bin/python3 /opt/ytdlp2STRM/main.py (code=exited, status=1/FAILURE)
   Main PID: 32809 (code=exited, status=1/FAILURE)
        CPU: 209ms

Jan 15 13:37:36 jelly-server systemd[1]: ytdlp2strm.service: Main process exited, code=exited, status=1/FAILURE
Jan 15 13:37:36 jelly-server systemd[1]: ytdlp2strm.service: Failed with result 'exit-code'.

I've tried uninstalling and installing again, but same result...

PD: I can't wait to see a Jellyfin Plugin integration with this!... thanks in advance!

NaturalDevCR commented 5 months ago

UPDATE:

I made the install using sudo, and now it's working... I can access the gui, but after I set the channel I want, and the directory, and after I run the command python cli.py --media youtube --params direct

I get this:

Preparing channel https://www.youtube.com/@Nico-RideMeFive
@Nico-RideMeFive
Working channel URL: https://www.youtube.com/@Nico-RideMeFive/videos
Getting channel ID...
yt-dlp --compat-options no-youtube-channel-redirect --compat-options no-youtube-unavailable-videos --restrict-filenames --ignore-errors --no-warnings --playlist-start 1 --playlist-end 1 --print channel_url https://www.youtube.com/@Nico-RideMeFive/videos
Generating name folder...
Getting name...
Command yt-dlp https://www.youtube.com/@Nico-RideMeFive --compat-options no-youtube-unavailable-videos --print "%(channel)s" --restrict-filenames --ignore-errors --no-warnings --playlist-items 1 --compat-options no-youtube-channel-redirect
Getting description...
Getting thumbnails...
Getting videos...
Created directory: /md4/Jellyfin/Youtube/Youtube/@Nico-RideMeFive [UCtZ-NR6mtwRGRR48AtrYLjg]
File created: /md4/Jellyfin/Youtube/Youtube/@Nico-RideMeFive [UCtZ-NR6mtwRGRR48AtrYLjg]/20240114 - Atravesando Europa  Episodio #5  Nuevo Continente [gqp1ZmqKHLI].strm
File created: /md4/Jellyfin/Youtube/Youtube/@Nico-RideMeFive [UCtZ-NR6mtwRGRR48AtrYLjg]/20240107 - Acampar a Bajo Cero, la moto no arranca  Episodio #4  Nuevo Continente [CR0wdEy5978].strm

Which seems to be ok, but looking into my /md4/Jellyfin/Youtube/Youtube/ folder, there's nothing created there.

/md4 is a Mounted drive just in case that information is useful.

NaturalDevCR commented 5 months ago

UPDATE 2:

OMG, I'm sorry, my mistake, a typo on the route, was the problem... thanks