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

Only downloaded the recent video from channel #37

Closed MyJellyfin closed 3 months ago

MyJellyfin commented 3 months ago

channel_list.json

[
    "https://www.youtube.com/@aswanthkok9312"
]

config.json

{
    "strm_output_folder" : "./Youtube",
    "channels_list_file" : "./plugins/youtube/channel_list.json",
    "days_dateafter" : "10", 
    "videos_limit" : "10",
    "sponsorblock" : false,
    "sponsorblock_cats" : "sponsor"
}

Response cli.py


20/03/2024 15:20:54
Running youtube with ['direct'] params
Preparing channel https://www.youtube.com/@aswanthkok9312
@aswanthkok9312
Working channel URL: https://www.youtube.com/@aswanthkok9312/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/@aswanthkok9312/videos
Generating name folder...
Getting name...
Command yt-dlp https://www.youtube.com/@aswanthkok9312 --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: ./Youtube/@aswanthkok9312 [UCr8xb2866oogDXDSN5-2Mxw]
File created: ./Youtube/@aswanthkok9312 [UCr8xb2866oogDXDSN5-2Mxw]/20240315 - Anchakkallakokkan Review  Ullas Chemban  Lukman Avaran  Chemban Vinod  Chembosky [z1UNrBd655g].strm
fe80Grau commented 3 months ago

Increase the value of days_dateafter, by default it is set to 10, this means that it will only process the videos uploaded to the channel in the last 10 days from the current day at the time of execution. For example, if you want to process the videos from the last 30 days, your config.json file would look like this

{
    "strm_output_folder" : "./Youtube",
    "channels_list_file" : "./plugins/youtube/channel_list.json",
    "days_dateafter" : "30", 
    "videos_limit" : "10",
    "sponsorblock" : false,
    "sponsorblock_cats" : "sponsor"
}
MyJellyfin commented 3 months ago

yup that works thanks