-
Notifications
You must be signed in to change notification settings - Fork 48
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
Download all fixes #17
Comments
Been hacking at it further.... Some good progress but unfortunately I am missing something. I can open the song in another tab successfully, but downloading it fails... No idea why. Here is the code:
|
I don't think you'll be able to modify the file name unless they change something with the Blob API as part of Chrome. The download all button was borked ? |
@fzakaria ok I will see if I can keep on cracking on it because this whole renaming process is tedious. And yes the select all was broken. |
@julesmoretti +1. If I get some time I can probably help out with this. I think pre-pending the ID3 tag might not be that difficult. And actually a quick github search turned up a decent amount of things, enough to get started at least. Something like this might be good. More info on wikipedia and id3.org. As for how to do it cleanly with the current implementation, we could perhaps use the optional dataFilter method on the first response to insert the tag and just return the data untouched for the rest. "The dataFilter callback option is invoked immediately upon successful receipt of response data. It receives the returned data and the value of dataType, and must return the (possibly altered) data to pass on to success." |
I think the problem was Google chrome doesn't let you set the filename for files downloaded from a different domain. |
@someburner - I love where your heads at, and the solutions you are suggesting. I also love the fact that they used Justice as an example Lol. I will see if I can integrate this in the next week or two. Unless if @someburner you feel like giving it a stab first? If so just keep me in the look and I can try to chime in. |
@fzakaria - I've seen filenames be strange before too and yeah I'd rather not mess with it. If you set the ID3 properly then filenames don't matter. The user can import with any music library program and have the library customize the name. Plus having weird stuff in the ID3 is OK vs. in a filename where special characters could cause problems. @julesmoretti - Haha I didn't notice that. Hopefully good taste in music == good taste in code! I'll give it a stab in the next 2-3 days and report back. If it works out like it is in my head it shouldn't be too bad. |
@someburner - For sure it does! hahaha and thank you so much, you rock! |
Hello @fzakaria
I have added some google chrome in order for the download all to work:
https://github.com/julesmoretti/HypeMachine-Extension
look at the jules branch.
Also I have started to look into ways to have the download file be properly named as the download attribute is not currently working.
The closest solution (but not functional yet) is using the following:
Where the
.DownloadJulesSongButton
is a simple span.It sounds like you are busy these days but I would really love your help with this to get this back and working fully.
Cheers :)
The text was updated successfully, but these errors were encountered: