Skip to content

Conversation

@Top-Cat
Copy link
Contributor

@Top-Cat Top-Cat commented Nov 24, 2021

When downloading playlists (and previously zips) from beatsaver the last url segment is not always the best name for the downloaded file. BeatSaver provides a header with both of these that suggests a name for the downloaded file. In the case of maps this is "{map key} ({song name} - {artist name}).zip" and for playlists it is "BeatSaver - {playlist name}.bplist"

This PR will prefer the server's suggestion for playlists which should result in the top file being created:
image

This is not intended to alter anything but the naming

@Assistant Assistant requested a review from luludotdev November 24, 2021 20:21
@luludotdev luludotdev merged commit c0abb58 into bsmg:master Nov 25, 2021
KibbeWater added a commit to KibbeWater/ModAssistant that referenced this pull request Dec 9, 2021
Support Content-Disposition header for download filenames (bsmg#419)
kcrg pushed a commit to kcrg/ModAssistant that referenced this pull request Feb 23, 2022
Add parameter to allow downloads to prefer to use the name provided by the server for downloaded files
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.

2 participants