Liking cljdoc? Tell your friends :D

qy-upup.copyright-free-songs.core


extract-song-idclj

(extract-song-id song-url)

Extracts the song ID from a SuperMaker copyright-free song URL.

Assumes the URL format is: https://supermaker.ai/music/copyright-free-songs/<song-id>/

Args: song-url (string): The URL of a SuperMaker copyright-free song.

Returns: string: The song ID if found in the URL, otherwise nil.

Extracts the song ID from a SuperMaker copyright-free song URL.

Assumes the URL format is: https://supermaker.ai/music/copyright-free-songs/<song-id>/

Args:
  song-url (string): The URL of a SuperMaker copyright-free song.

Returns:
  string: The song ID if found in the URL, otherwise nil.
raw docstring

mock-song-dataclj

(mock-song-data n)

Generates mock song data for testing purposes.

Args: n (number): The number of mock song data entries to generate.

Returns: A sequence of maps, each representing mock song data. Each map contains keys: :id (string), :title (string), :artist (string), and :url (string).

Generates mock song data for testing purposes.

Args:
  n (number): The number of mock song data entries to generate.

Returns:
  A sequence of maps, each representing mock song data. Each map contains
  keys: :id (string), :title (string), :artist (string), and :url (string).
raw docstring

supermaker-urlclj

(supermaker-url page-number)

Generates a SuperMaker copyright-free songs URL for a given page number.

Args: page-number (number): The page number to generate the URL for.

Returns: string: The SuperMaker copyright-free songs URL for the given page number. Returns the base URL if page-number is nil or not a positive integer.

Generates a SuperMaker copyright-free songs URL for a given page number.

Args:
  page-number (number): The page number to generate the URL for.

Returns:
  string: The SuperMaker copyright-free songs URL for the given page number.
          Returns the base URL if page-number is nil or not a positive integer.
raw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close