- Youtube to STRM files
- Youtube integration with Jellyfin/Emby
- Python 3
- yt-dlp
- Flask
A little script to serve yt-dlp video/audio as HTTP data throught Flask and dynamic URLs. We can use this dynamic URLs with youtube id video in url like http://127.0.0.1:5000/youtube/stream/FxCqhXVc9iY and open it with VLC or save it in .strm file (works in Jellyfin)
A little script to list last 60 days videos in channels setted on channel_list.py and save all as .strm files . I added id channels and videos in names [xxxx] for YoutubeMetadata Jellyfin plugin integration.
ytdlp2strm.service example service to run main.py with systemctl . Put it into /etc/systemd/system and run systemctl enable ytdlp2strm.service , systemctl start ytdlp2strm.service
- Example commands to generate strm files
- Download file (cached mode, duration info, disk usage)
cli.py --m make_files_strm --p youtube,download
- Stream content (no duration info, no disk usage)
cli.py --m make_files_strm --p youtube,stream
-
Edit variable media_folder , host and port /by default http://127.0.0.1 and 5000
-
Example cron.d file to create to create strm files from channel_list every 2 horus
cd /etc/cron.d && sudo echo "00 22 * * * root /usr/bin/python3 /opt/ytdlp2STRM/cli.py --m make_files_strm --p youtube,download" > ytdlp2STRM