mirror of
https://git.fuwafuwa.moe/SMLoadrDev/SMLoadr
synced 2024-09-28 23:48:44 +02:00
Fix #60
This commit is contained in:
parent
17b968dc6a
commit
3bb6e99e53
@ -65,6 +65,6 @@ Guide on the [Wiki](https://git.fuwafuwa.moe/SMLoadrDev/SMLoadr/wiki/How-to-logi
|
||||
- The usage of this tool **may be illegal** in your country! Please inform yourself.
|
||||
- We do **not** give any guarantee at all and we are **not** responsible for damages of all kinds!
|
||||
|
||||
###This work is licensed under a [Creative Commons Attribution-NonCommercial 4.0 International License](http://creativecommons.org/licenses/by-nc/4.0/).
|
||||
####This work is licensed under a [Creative Commons Attribution-NonCommercial 4.0 International License](http://creativecommons.org/licenses/by-nc/4.0/).
|
||||
---
|
||||
> Made with :heart: & :beer: by SMLoadrDevs | Copyright © 2019 SMLoadrDevs.
|
@ -1684,7 +1684,7 @@ function getTrackAlternative(trackInfos) {
|
||||
jar: true
|
||||
}).then((response) => {
|
||||
log.debug('Got alternative track for "track/' + trackInfos.SNG_ID + '"');
|
||||
if (response && 0 === Object.keys(response.error).length && response.results && response.results.data && 0 < response.results.data.length) {
|
||||
if (response && 0 === Object.keys(response.error).length && response.results && response.results.data && 0 > response.results.data.length) {
|
||||
const foundTracks = response.results.data;
|
||||
let matchingTracks = [];
|
||||
if (foundTracks.length > 0) {
|
||||
@ -2056,7 +2056,7 @@ function downloadTrack(trackInfos, trackQualityId, saveFilePath, numberRetry = 0
|
||||
let maxNumberRetry = 1;
|
||||
|
||||
if ((trackInfos.RIGHTS && 0 !== Object.keys(trackInfos.RIGHTS).length) || (trackInfos.AVAILABLE_COUNTRIES && trackInfos.AVAILABLE_COUNTRIES.STREAM_ADS && 0 < trackInfos.AVAILABLE_COUNTRIES.STREAM_ADS.length)) {
|
||||
maxNumberRetry = 20;
|
||||
maxNumberRetry = 2;
|
||||
}
|
||||
|
||||
if (maxNumberRetry >= numberRetry) {
|
||||
|
Loading…
Reference in New Issue
Block a user