whereis: Don't include yt: prefix when showing url to content retrieved with youtube-dl

I don't think this was really intentional behavior. It may be that it was
useful to include it so it could be passed to rmurl, since without it rmurl
would not actually remove the url. Since that was changed earlier today,
now seems like a good time to clean up the display of these urls.

This commit was sponsored by Jochen Bartl on Patreon.
This commit is contained in:
Joey Hess 2021-03-22 19:56:02 -04:00
parent 29f9cf188d
commit c68ba7d893
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
2 changed files with 4 additions and 1 deletions

View file

@ -14,6 +14,8 @@ git-annex (8.20210311) UNRELEASED; urgency=medium
special remote, fix a bug that caused the url to to not be removed.
* unregisterurl: Fix a bug that caused an url to not be unregistered
when it is claimed by a special remote other than the web.
* whereis: Don't include yt: prefix when showing url to content
retrieved with youtube-dl.
* Work around some buggy webdav server behavior involving renaming files.
* Make --debug also enable debugging in child git-annex processes.
* fsck: When --from is used in combination with --all or similar options,

View file

@ -131,7 +131,8 @@ getUUIDUrls key uuids remotemap = forM uuids $ \uu -> (,)
getRemoteUrls :: Key -> Remote -> Annex [URLString]
getRemoteUrls key remote
| uuid remote == webUUID = getWebUrls key
| uuid remote == webUUID =
map (fst . getDownloader) <$> getWebUrls key
| otherwise = (++)
<$> askremote
<*> claimedurls