Closed rstrblstr closed 7 months ago
I rolled everything back to the most basic components of params.ini.
I'm not sure what was causing the problem, but it works now with this:
[app]
_api_route_download = /download
_api_route_queue = /queue
_api_route_extract_info = /extract_info
_api_route_info = /info
_api_route_active_downloads = /active_downloads
_enable_users_management = false
_log_level = 10
_log_backups = 7
_listen_port = 80
_listen_ip = 0.0.0.0
_enable_redis = true
_redis_ttl = 3600
_redis_host = ydl_api_ng_redis
_redis_port = 6379
_allow_dangerous_post_requests = false
;;;
;;; Locations
;;;
[location:DEFAULT]
paths = {"home" : "./downloads/"}
;;;
;;; Templates
;;;
[template:DEFAULT]
outtmpl = {"default" : "videos/%(channel)s_[youtube-%(channel_id)s]/%(channel)s/%(title)s_[youtube-%(id)s].%(ext)s"}
[template:AUDIO]
outtmpl = {"default" : "audio/%(title)s.%(ext)s", "chapter" : "audio/%(title)s/%(section_number)s-%(section_title)s.%(ext)s"}
[template:PLAYLIST]
outtmpl = {"default" : "videos/%(channel)s_[youtube-%(channel_id)s]/%(playlist)s_[youtube-%(playlist-id)s]/%(title)s_[youtube-%(id)s].%(ext)s"}
;;;
;;; Presets
;;;
[preset:DEFAULT]
_location = DEFAULT
_template = DEFAULT
; youtube-dlp default parameters :
quiet = true
noplaylist = true
updatetime = false
subtitleslangs = en
format = bestvideo[height<=1080][ext=mp4][fps<30][vcodec!~='vp']+bestaudio[ext=m4a]/best[ext=mp4][fps<30][height<=1080][vcodec!~='vp']/best
restrictfilenames = true
windowsfilenames = true
ignoreerrors = true
writeinfojson = true
writesubtitles = true
writethumbnail = true
postprocessors = [{"key": "SponsorBlock"}, {"key" : "FFmpegEmbedSubtitle", "already_have_subtitle": true}, {"key": "ModifyChapters", "sponsorblock_chapter_title" : true, "force_keyframes" : true}, {"key" : "FFmpegMetadata"}, {"key": "FFmpegSplitChapters", "force_keyframes": false}, {"key": "EmbedThumbnail", "already_have_thumbnail": true}]
_when_playlist = {"ignoreerrors" : true}
cachedir = /home/ydl_api_ng/cache
[preset:AUDIO]
_template = AUDIO
format = bestaudio
postprocessors = [{"key": "FFmpegExtractAudio", "preferredcodec": "mp3", "preferredquality": "320"}, {"key": "EmbedThumbnail"}, {"key" : "FFmpegMetadata"}, {"key": "FFmpegSplitChapters", "force_keyframes": false}]
writethumbnail = true
[preset:BEST]
;;; format = bestvideo[height<=1080][ext=mp4][fps<30][vcodec!~='vp']+bestaudio[ext=m4a]/best[ext=mp4][fps<30][height<=1080][vcodec!~='vp']/best
_template = DEFAULT
_preset = DEFAULT
[preset:FULLHD]
;;; format = bestvideo[height<=1080][ext=mp4][fps<30][vcodec!~='vp']+bestaudio[ext=m4a]/best[ext=mp4][fps<30][height<=1080][vcodec!~='vp']/best
_template = DEFAULT
_preset = DEFAULT
[preset:HD]
format = bestvideo[height<=720][ext=mp4][fps<30][vcodec!~='vp']+bestaudio[ext=m4a]/best[ext=mp4][fps<30][height<=720][vcodec!~='vp']/best
_template = DEFAULT
_preset = DEFAULT
[preset:SD]
format = bestvideo[height<=480][ext=mp4][fps<30][vcodec!~='vp']+bestaudio[ext=m4a]/best[ext=mp4][fps<30][height<=480][vcodec!~='vp']/best
_template = DEFAULT
_preset = DEFAULT
[preset:PLAYLIST]
_template = PLAYLIST
_preset = BEST
noplaylist = false
allow_playlist_files = true
;;;
;;; Sites
;;;
[site:KNOWN]
ignoreerrors = false
[site:YOUTUBE]
_hosts = www.youtube.com,youtu.be
_video_indicators = /watch?
_playlist_indicators = ?list=,&list=,/user/,/playlists,/videos
_site = KNOWN
cookiefile = /app/cookies/www.youtube.com_cookies.txt
I was super excited to find this, but keep running into trouble getting it to work. I rolled everything back to a default params.ini and still have the same issue.
using curl (and/or the userscript) successfully reaches the api, but nothing actually gets downloaded. I'm not seeing any errors that I recognize. Logs are set to debug.
api.log shows the api receiving and starting the download, along with a 200 response
yt-dlp direct from the command line works fine within the docker container
my params.ini is default sample, except for disabling user management, changing the host, and switching to DEBUG logs