Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

optimize playlist track fetching + og file downloading #523

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

aprilsbloom
Copy link

currently with playlists, each track is fetched 1 by 1 when iterating through. this can be improved by fetching the tracks using the get_tracks function. the api endpoint it calls has a limit of 50 (i believe)
one minor issue i ran into is that my current implementation seems to double the tracks? which is why i'm just making it a draft atm, but i've included a temporary workaround in the meantime

one more thing, when fetching the original file for a track, each track returns the downloadable attribute. in the download_original_file function, we aren't checking for that for some reason, and instead calling the endpoint to fetch the url regardless of if they have downloads enabled or not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant