removed user/pass login, fixed Deezer API check, added changelog

This commit is contained in:
deeplydrumming
2024-07-23 10:25:17 +01:00
parent d18cb84608
commit 420e0ede9d
4 changed files with 24 additions and 21 deletions

View File

@@ -71,12 +71,11 @@ class Track {
}
async parseData (dz, id, trackAPI, albumAPI, playlistAPI) {
/* if (id && (!trackAPI || trackAPI && !trackAPI.track_token)) { */ // mickey
if (id && (!trackAPI || (trackAPI && !trackAPI.md5_origin))) {
/* if (id && (!trackAPI || (trackAPI && !trackAPI.trackToken))) { */
if (id) {
let trackAPI_new = await dz.gw.get_track_with_fallback(id)
trackAPI_new = map_track(trackAPI_new)
if (!trackAPI) trackAPI = {}
/* trackAPI = {...trackAPI_new, ...trackAPI} */ // mickey
trackAPI = { ...trackAPI, ...trackAPI_new }
} else if (!trackAPI) { throw new NoDataToParse() }

View File

@@ -1,6 +1,6 @@
{
"name": "deemix",
"version": "3.6.15",
"version": "3.6.16",
"description": "a barebones deezer downloader library",
"main": "deemix/index.js",
"scripts": {

View File

@@ -37,9 +37,13 @@
<h2>Changelog</h2>
<ul class="no-dots">
<h3>23/07/2024</h3>
- Fixed wrong API check for Deezer APIs<br>
- Removed email/password login (for now) to avoid confusion<br>
<br>
<h3>22/07/2024 - part2</h3>
- Added Dev branch<br>
- Rebased on RemixDev original project to maintain all commit history<br>
- Rebased on RemixDev original project to maintain all commit history<br>
<br>
<h3>22/07/2024 - part1</h3>
- Fixed warning "Failed to make bytecode node20-x64 for file dateformat.js" during build phase<br>

View File

@@ -31,7 +31,7 @@
<div v-else>
<div class="flex w-full">
<div class="grid card bg-base-300 rounded-box place-items-center">
<!-- <div class="grid card bg-base-300 rounded-box place-items-center">
<form ref="loginWithCredentialsForm" @submit.prevent="loginWithCredentials">
<label>
<span>{{ $t('settings.login.email') }}</span>
@@ -44,10 +44,10 @@
<button class="btn btn-primary login-button" type="submit">{{ $t('settings.login.login') }}</button>
</form>
</div>
<div class="divider divider-horizontal">OR</div>
<div class="grid card bg-base-300 rounded-box place-items-center">
<div class="divider divider-horizontal">OR</div> -->
<div class="grid card bg-base-300 rounded-box place-items-center" style="width:100%">
<h3>{{ $t('settings.login.arl.title') }}</h3>
<div class="my-5 space-y-5">
<div class="my-5 space-y-5" style="width:100%">
<div class="flex items-center">
<input id="login_input_arl" ref="loginInput" :value="arl" autocomplete="off" placeholder="ARL"
type="password" />
@@ -569,30 +569,30 @@
<select v-model="settings.dateFormat">
<option value="Y-M-D">
{{
`${$t('settings.other.dateFormat.year')}-${$t('settings.other.dateFormat.month')}-${$t(
'settings.other.dateFormat.day'
)}`
`${$t('settings.other.dateFormat.year')}-${$t('settings.other.dateFormat.month')}-${$t(
'settings.other.dateFormat.day'
)}`
}}
</option>
<option value="Y-D-M">
{{
`${$t('settings.other.dateFormat.year')}-${$t('settings.other.dateFormat.day')}-${$t(
'settings.other.dateFormat.month'
)}`
`${$t('settings.other.dateFormat.year')}-${$t('settings.other.dateFormat.day')}-${$t(
'settings.other.dateFormat.month'
)}`
}}
</option>
<option value="D-M-Y">
{{
`${$t('settings.other.dateFormat.day')}-${$t('settings.other.dateFormat.month')}-${$t(
'settings.other.dateFormat.year'
)}`
`${$t('settings.other.dateFormat.day')}-${$t('settings.other.dateFormat.month')}-${$t(
'settings.other.dateFormat.year'
)}`
}}
</option>
<option value="M-D-Y">
{{
`${$t('settings.other.dateFormat.month')}-${$t('settings.other.dateFormat.day')}-${$t(
'settings.other.dateFormat.year'
)}`
`${$t('settings.other.dateFormat.month')}-${$t('settings.other.dateFormat.day')}-${$t(
'settings.other.dateFormat.year'
)}`
}}
</option>
<option value="Y">{{ $t('settings.other.dateFormat.year') }}</option>