[bug] `-N` skipping fragments?
See original GitHub issueSometimes file will fail to download (or merge, I’m really not sure since I haven’t seen any errors, though maybe I just missed them). This happened before I started using --path temp:D:\Temp\ but since using that, temporary files are getting left behind there for files that didn’t completely download (in this case fragments 377-745 and respective .part and .ytdl files. I understand the default is to resume downloads with previously downloaded fragments but it should still clear up all the fragments for that respective download on completion. The skipping of download might not be a bug but I was curious as to what --fragment-retries “infinite” really does since I have it set, I assume it is regarding that fragment as unavailable and by default getting skipped but I want it to retry until it finds it instead (at least for a minute).
Command (temporary switched back to batch files since the frontend I was using didn’t like some stuff):
yt-dlp -a "CR todownload - valarian.txt" -o "crunchyroll.com\%%(series)s - S%%(season_number)sE%%(episode_number)s - %%(episode)s - %%(epoch)s.%%(ext)s" --embed-subs --sub-lang en --cookies cookies-crunchyroll-com.txt --user-agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:89.0) Gecko/20100101 Firefox/89.0" --fragment-retries "infinite" -N 3 --no-mtime --download-archive archive.txt --path temp:D:\Temp\
_Originally posted by @Jules-A in https://github.com/yt-dlp/yt-dlp/issues/359#issuecomment-853906485_
Issue Analytics
- State:
- Created 2 years ago
- Comments:16 (16 by maintainers)
You were on the right track. But there are 2 issues
NA - SNAENA
|
is treated literally, not as the name of a fieldThis is what you want:
This will use
%(series)s - S%(season_number)sE%(episode_number)s
if all 3 of these fields are present, else it will use%(title)s
. ofc, change-O
to-o
and escape the%
as neededI see, thanks a tonne! Still can’t seem to wrap my head around Python regex (regex in general gives me headaches so I usually try to avoid it even in other languages…).