It is currently Mon Mar 16, 2020 8:39 am

All times are UTC - 7 hours



Post new topic Reply to topic  [ 17 posts ]  Go to page Previous  1, 2
Go to page Previous  1, 2
Author Message
Post subject: Re: Downloading all presets possibility?
Posted: Sat Dec 29, 2012 1:13 pm
Offline
Fender Staff
User avatar

Joined: Thu Jan 21, 2010 1:12 pm
Posts: 4396
Hi Newstech,

Thanks for the additional detail. Please let us know what you find as you check things out.

_________________
Fender Technology Support Lab
Fender Musical Instruments Corporation
TSL@Fender.com
(800) 856-9801


Top
Profile
Fender Play Winter Sale 2020
Post subject: Re: Downloading all presets possibility?
Posted: Tue Aug 08, 2017 4:01 am
Offline
Hobbyist
Hobbyist

Joined: Tue Aug 08, 2017 3:44 am
Posts: 1
I found that the presets are downloaded using URLs with the pattern:
Code:
<preset_url>/download

So you can download it directly without pressing the Download button. But you also have to be logged in.
In Firefox when I go directly to that URL it always shows me a dialog to confirm the download. But in Chrome it seems to download it without asking.

So you can prepare a list of presets (their URLs) you want to download and save it to a text file. Add to each line the '/download' part. For this you can use Notepad++ (google a trick to add text for each line) or Sublime Text editor (select lines, Ctrl+Shift+L, End, print your text).

Then you can create bookmarks for those URLs. In Firefox it's just copying all the text from the saved text file and paste it to the Bookmarks Manager in any folder. Then open all the bookmarks in the browser. But again in Firefox you maybe need to press OK button for each download.

In Chrome it's not so easy to paste multiple URLs as bookmarks at once. I found some tricks but all require some programming operations which convert text to HTML formatted file which could be imported to the Bookmarks Manager.
Like this one:
https://www.reddit.com/r/chrome/comment ... rome_from/

The easiest way I found to solve it was here:
https://superuser.com/a/861876

So basically:
- open the saved text file in Chrome
- open Javascript Console (I used Ctrl+Shift+J shortcut)
- paste the script to the console:
Code:
Array.prototype.forEach.call(document.body.outerText.split("\n"), function(a){window.open(a)});

This will go through each line of the text file and open new tab with saved URLs. So at the end all the presets from that file should be downloaded.
You could also create a bookmarklet with that script line. It's just a bookmark with the script instead of URL. But you should give it appropriate format to work. So the final bookmark's URL will be:
Code:
javascript:(function(){ Array.prototype.forEach.call(document.body.outerText.split("\n"), function(a){window.open(a)}); })()

It will execute the Javascript commands for the current tab. So with text file opened in Chrome press the created bookmarklet and you'll get the same result (downloading presets).
This way it would be rather difficult to download all the presets but you can achieve some level of automation with it.

Also it's possible to go further and use batch download tools (like wget) to download more files at once. But it could be even trickier to config this process. They need correct HTTP headers sent in the download request, like 'Cookie' with current session keys.

-------------

Note for the Fender team.
Sorry if I discovered a company secret with that download URL.
But in this situation no hacking was used, just what is seen in the browser default tools.


Top
Profile
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 17 posts ]  Go to page Previous  1, 2
Go to page Previous  1, 2

All times are UTC - 7 hours

Fender Play Winter Sale 2020

Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to: