Files
Crosspoint/src/activities/browser/OpdsFormatLabel.h
T
Joel Goguen 1986092522 feat(opds): Allow selecting the download format
When downloading a book via OPDS, the last acquisition link is chosen when there are multiple. This allows choosing which format to download when there are many. Having only one format will automatically download that.
2026-04-19 23:15:54 -04:00

14 lines
590 B
C++

#pragma once
#include <OpdsParser.h>
#include <string>
#include <vector>
const char* opdsBaseFormatLabel(const OpdsAcquisitionLink& acquisition);
std::string opdsFormatSelectionLabel(const OpdsAcquisitionLink& acquisition,
const std::vector<OpdsAcquisitionLink>& acquisitionLinks,
const std::string& serverUrl);
std::vector<std::string> buildOpdsFormatSelectionLabels(const std::vector<OpdsAcquisitionLink>& acquisitionLinks,
const std::string& serverUrl);