Anapher / Hurricane

The music player with style
GNU General Public License v3.0
130 stars 56 forks source link

Import of m3u and cue sheet play lists #4

Closed mikekov closed 9 years ago

mikekov commented 9 years ago

Please have a look at the changes and see if they can be accepted. I added code to import WinAmp m3u play lists and cue sheets. Note: cue sheets pointing to FLAC files import fine, but audio lib support for FLAC is currently broken, so they will not play (I submitted separate pull request to audio lib). One change I'm not sure about: LocalTrack comparison had file reading to calculate hash codes. I temporarily commented this out, as it was very expensive for FLAC files and also not working for local track fragments, since they point to the same file. Currently play list import code is invoked in drag&drop operation.

Anapher commented 9 years ago

Wow. Just wow. That is awesome, thank you :) The option Remove duplicates should also find equal files which aren't at the same location (copies). Because of this, equals also checked the file hash. But okay, I think an extra function would make more sense.