ciderapp / Apple-Music-Electron

Apple Music Electron is now deprecated. See our new project Cider https://github.com/ciderapp/Cider
https://cider.sh
MIT License
840 stars 64 forks source link

[Enhancement] Preferences page integrated with the site #211

Closed coredev-uk closed 2 years ago

coredev-uk commented 3 years ago

The easiest way to do this would probably be directing users to account settings and set the inner HTML of the box div.

coredev-uk commented 2 years ago

223 to be implemented with this.

quacksire commented 2 years ago

I got the lastfm side. Thinking just a basic URI

if (String(param).includes('auth')) {
            // [URI]://auth/?token=[32 Char token]
            app.preferences.value('general.lastfmAuthKey') = String(param).split('token=')[1]
}
quacksire commented 2 years ago

https://www.last.fm/api/auth?api_key=[apiKey]&cb=ame://auth(no need for url encoding) -> Allow Access-> ame://auth/?token=[32 Char token]-> app.preferences.value('general.lastfmAuthKey', String(param).split('token=')[1])`

quacksire commented 2 years ago

ab1d60a -Store.set('lastfm.token') = String(param).split('token=')[1])

coredev-uk commented 2 years ago

Done.

quacksire commented 2 years ago

I got the lastfm side.

Thinking just a basic URI


if (String(param).includes('auth')) {

            // [URI]://auth/?token=[32 Char token]

            app.preferences.value('general.lastfmAuthKey') = String(param).split('token=')[1]

}

will do today