1.1.24 - FLAC for HiFi users

This commit is contained in:
exttex
2021-07-25 16:20:11 +02:00
parent 6302f54fbd
commit 53f6b760fe
7 changed files with 93 additions and 23 deletions

View File

@ -148,12 +148,12 @@
"Save": "Zapisz",
"Edit": "Edytuj",
"Importer": "Importer",
"Enter URL": "Enter URL",
"Currently only Spotify is supported and limited to 100 tracks.": "Currently only Spotify is supported and limited to 100 tracks.",
"Import into playlist": "Import into playlist",
"Keep sidebar open": "Keep sidebar open",
"WARNING: Might require reload to work properly!": "WARNING: Might require reload to work properly!",
"An error occured, URL might be invalid or unsupported.": "An error occured, URL might be invalid or unsupported.",
"Enter URL": "Wprowadź adres URL",
"Currently only Spotify is supported and limited to 100 tracks.": "Obecnie obsługuje tylko Spotify i maksymalnie 100 utworów.",
"Import into playlist": "Importuj na playlistę",
"Keep sidebar open": "Panel boczny zawsze otwarty",
"WARNING: Might require reload to work properly!": "UWAGA: Może wymagać ponownego uruchomienia, by działać poprawnie!",
"An error occured, URL might be invalid or unsupported.": "Wystąpił błąd, adres URL może być nieprawidłowy lub nieobsługiwany.",
"Top tracks": "Najpopularniejsze utwory",
"Show all top tracks": "Pokaż wszystkie najpopularniejsze utwory",
"Singles": "Single",
@ -163,9 +163,9 @@
"No": "Nie",
"Download Filename": "Nazwa pobieranego pliku",
"Language": "Język",
"Background Image": "Background Image",
"Enter URL or absolute path. WARNING: Requires reload!": "Enter URL or absolute path. WARNING: Requires reload!",
"LGBT Mode": "LGBT Mode",
"Native top bar": "Native top bar",
"Requires restart of Freezer!": "Requires restart of Freezer!"
"Background Image": "Obraz w tle",
"Enter URL or absolute path. WARNING: Requires reload!": "Wprowadź adres URL lub całą ścieżkę pliku. UWAGA: Wymaga ponownego uruchomienia!",
"LGBT Mode": "Tryb LGBT",
"Native top bar": "Natywny górny pasek",
"Requires restart of Freezer!": "Wymaga ponownego uruchomiania Freezera!"
}

View File

@ -236,7 +236,11 @@ new Vue({
this.playbackInfo = playbackInfo;
//Stream URL
let url = `${process.env.NODE_ENV === 'development' ? "http://localhost:10069" : window.location.origin}${this.playbackInfo.url}`;
let url;
if (this.playbackInfo.encrypted)
url = `${process.env.NODE_ENV === 'development' ? "http://localhost:10069" : window.location.origin}${this.playbackInfo.url}`;
else
url = this.playbackInfo.direct;
//Cancel loading
this.loaders--;
if (this.loaders > 0) {
@ -424,7 +428,10 @@ new Vue({
if (this.gapless.promise) resolve();
}
this.gapless.info = info
this.gapless.audio = new Audio(`${process.env.NODE_ENV === 'development' ? "http://localhost:10069" : window.location.origin}${info.url}`);
if (info.encrypted)
this.gapless.audio = new Audio(`${process.env.NODE_ENV === 'development' ? "http://localhost:10069" : window.location.origin}${info.url}`);
else
this.gapless.audio = new Audio(info.direct);
this.gapless.audio.volume = 0.00;
this.gapless.audio.preload = 'auto';
this.gapless.crossfade = false;