mirror of
https://github.com/antebudimir/tempus.git
synced 2026-04-15 16:27:26 +00:00
fix: Check for OpenSubsonic extensions also with password authentication (#375)
check for OpenSubsonic extensions also with pwd auth Co-authored-by: eddyizm <eddyizm@gmail.com>
This commit is contained in:
parent
a23a663d32
commit
e5b7756f96
1 changed files with 2 additions and 2 deletions
|
|
@ -384,7 +384,7 @@ public class MainActivity extends BaseActivity {
|
||||||
}
|
}
|
||||||
|
|
||||||
private void pingServer() {
|
private void pingServer() {
|
||||||
if (Preferences.getToken() == null) return;
|
if (Preferences.getToken() == null && Preferences.getPassword() == null) return;
|
||||||
|
|
||||||
if (Preferences.isInUseServerAddressLocal()) {
|
if (Preferences.isInUseServerAddressLocal()) {
|
||||||
mainViewModel.ping().observe(this, subsonicResponse -> {
|
mainViewModel.ping().observe(this, subsonicResponse -> {
|
||||||
|
|
@ -428,7 +428,7 @@ public class MainActivity extends BaseActivity {
|
||||||
}
|
}
|
||||||
|
|
||||||
private void getOpenSubsonicExtensions() {
|
private void getOpenSubsonicExtensions() {
|
||||||
if (Preferences.getToken() != null) {
|
if (Preferences.getToken() != null || Preferences.getPassword() != null) {
|
||||||
mainViewModel.getOpenSubsonicExtensions().observe(this, openSubsonicExtensions -> {
|
mainViewModel.getOpenSubsonicExtensions().observe(this, openSubsonicExtensions -> {
|
||||||
if (openSubsonicExtensions != null) {
|
if (openSubsonicExtensions != null) {
|
||||||
Preferences.setOpenSubsonicExtensions(openSubsonicExtensions);
|
Preferences.setOpenSubsonicExtensions(openSubsonicExtensions);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue