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

Adding new playlists by importing m3u files #197

Open
wants to merge 14 commits into
base: master
Choose a base branch
from

Conversation

sortedcord
Copy link

  • Feature

It can be quite a chore to add tracks to your playlist manually by looking up each and every track, especially if they existed on another application that allows the exporting of playlists by generating a .m3u playlist file.

Todo:

  • Implement endpoint for importing playlists by passing in m3u file content.
  • Fix & refactor certain parts of code.
  • Add an option for adding a new playlist via import (Client Side)
  • Display a "Track Matching Utility page" to match tracks that weren't (Client Side)

Currently it can matches tracks on two paramters:

  1. Duration, File name, Artist name present in the m3u file
  2. Duration, Track title, Artist Name present in the m3u file

I've implemented a get_tracks_containing_filepaths getter function in app/store/tracks.py. There's probably a better way to implement that, but I couldn't think of it while testing all of this out, so that needs to be changed along with a lot of other small things within the PR.

Duration matching can be seen as redundant but is especially important for things like VIP remixes, where they belong to the same artist and have similar titles but are two different tracks.

@sortedcord sortedcord marked this pull request as ready for review March 10, 2024 06:25
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