In backups2datalad we ran into a behavior that addurl --raw
does not only not considers all the fancy handling for youtube and .torrents, but also disregards our (git-annex-remote-datalad
) external special remote (although still CLAIMURLs it first).
I think generally we would still prefer to use --raw
as to avoid possible side-effects when someone manages to add some .torrent
file which we want to add as a file, not to download it. But we would like to explicitly allow interactions with our special remote. That is why I think the most viable solution would be to provide --raw-except
which would be like --raw
but allowing explicitly listed special remotes (or hardcoded keywords like :torrents:
, :youtube:
) to be handled if encountered.
Seems pretty reasonable.
--raw-except=bittorrent would handle bittorrent, no special case needed for that.
Since yt-dlp is effectively part of the web special remote (despite being implemented as a special case in addurl), seems reasonable to make --raw-except=web disable other special remotes while still letting yt-dlp be used for appropriate urls.
Implemented.