Compare commits

..

3 commits

Author SHA1 Message Date
Paul van Tilburg 4a4ea527f0
Update the documentation 2022-05-27 22:47:36 +02:00
Paul van Tilburg 485f605940
Add feed item limit support
* The feed item limit defaults to the default page size (50) if not
  provided
* Move caching from response to URL fetch results; add helper functions
* Add a helper function to set the paging query of an URL
* Modify paging so we don't retrieve more than the feed item limit
2022-05-27 22:31:17 +02:00
Paul van Tilburg 1bcc83bbfa
Retrieve all pages by following the next URL
* Derserialize the paging information
* Parse each next URL; handle URL parse errors
* Use a default page size of 50; pass offset 0 to count by item index
2022-05-26 22:13:54 +02:00

View file

@ -112,7 +112,7 @@ const DEFAULT_FILE_TYPE: &str = "audio/mpeg";
const DEFAULT_PAGE_SIZE: usize = 50;
/// Returns the default file type used by Mixcloud.
pub(crate) const fn default_file_type() -> &'static str {
pub(crate) fn default_file_type() -> &'static str {
DEFAULT_FILE_TYPE
}