Add an API to list all possible (non-disabled) archives #14

Open
opened 2025-12-06 15:03:38 +00:00 by boyska · 1 comment
Owner

one practical usecase is the feed2archivemetadata tool, which needs to get the archive.org link. right now, the only way to do this is to repeatedly make a request to /dl/, until you get the one you're interested in.

one practical usecase is the [feed2archivemetadata](https://git.lattuga.net/techbloc/feed2archivemetadata) tool, which needs to get the archive.org link. right now, the only way to do this is to repeatedly make a request to `/dl/`, until you get the one you're interested in.
Author
Owner

We don't need a separate API, we just need to implement Metalink HTTP headers: https://en.wikipedia.org/wiki/Metalink#Example_Metalink/HTTP_header_fields

when implementing it, we need to make sure about distinguishing between:

  • archived version with the same hash. They are rel=duplicate, and they're actually part of Metalink (RFC 6249).
  • other archived versions. they could probably be listed with rel=alternate

archived versions in other formats could go under rel=alternate, but we can probably also just skip them

We don't need a separate API, we just need to implement Metalink HTTP headers: https://en.wikipedia.org/wiki/Metalink#Example_Metalink/HTTP_header_fields when implementing it, we need to make sure about distinguishing between: * archived version with the same hash. They are `rel=duplicate`, and they're actually part of Metalink (RFC 6249). * other archived versions. they could probably be listed with `rel=alternate` archived versions in other formats could go under `rel=alternate`, but we can probably also just skip them
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
techbloc/caricari#14
No description provided.