added documentation for the fetching of metadata

This commit is contained in:
Lars Noack
2022-10-26 08:14:05 +02:00
parent 8e17b72000
commit c92ae213cf
12 changed files with 82 additions and 39 deletions

View File

@@ -71,4 +71,4 @@ def cli(start_at: int = 0):
if __name__ == "__main__":
cli(start_at=3)
cli(start_at=0)

View File

@@ -34,7 +34,7 @@ def get_download_link(default_url):
return f"https://musify.club/track/dl/{musify_id}/{musify_name}.mp3"
def download_from_musify(path, file, url):
def download_from_musify(file, url):
logging.info(f"downloading: '{url}'")
r = session.get(url)
if r.status_code != 200: