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
228 stars 21 forks source link

ytdlp2strm is downloading streams from crunchyroll instead of streaming #43

Closed s3tupw1zard closed 6 months ago

s3tupw1zard commented 7 months ago

Hello,

When I try to stream a Crunchyroll Video using this tool, it downloads the episode requested instead of streaming it.

Is there a setting to completely disable downloading for crunchyroll?

I've already set it to direct.

fe80Grau commented 7 months ago

Hello, it's a shame but since the last update of the Crunchyroll endpoints, it only shows Dash routes for the separate audio and video, there is no longer an endpoint with the direct content. Work started at https://github.com/fe80Grau/ytdlp2STRM/issues/36#issuecomment-2045858376

I've also not been able to remux in RAM and transmit in real time as the final flow is built, therefore the only option is to download as a temporary file. In ./config/config.json there is a new parameter called ytdlp2strm_temp_file_duration, this has the duration of a temporary file in seconds, by default 86400s / 24h. This means that a temporary file (located in ./temp) that is older than 86400 seconds will be automatically deleted.

You also have new parameters in ./plugins/crunchyroll/config.json jellyfin_preload, if you set it to True and the other Jellyfin connection options are set correctly, will download the next episode while you play the current one, thus avoiding waiting for continuous playback. There is also jellyfin_preload_last_episode, this will automatically download the temporary file when generating the strm of the last episode. With both options enabled and taking into account ytdlp2strm_temp_file_duration you can achieve wait-free playback when accessed within the allocated time slot.

fe80Grau commented 6 months ago

Fixed!! with bridge mode