diff --git a/Rise Media Player Dev/Dialogs/MusixmatchTokenDialog.xaml b/Rise Media Player Dev/Dialogs/MusixmatchTokenDialog.xaml
deleted file mode 100644
index ccbf6693..00000000
--- a/Rise Media Player Dev/Dialogs/MusixmatchTokenDialog.xaml
+++ /dev/null
@@ -1,28 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/Rise Media Player Dev/Dialogs/MusixmatchTokenDialog.xaml.cs b/Rise Media Player Dev/Dialogs/MusixmatchTokenDialog.xaml.cs
deleted file mode 100644
index b0ec2c8e..00000000
--- a/Rise Media Player Dev/Dialogs/MusixmatchTokenDialog.xaml.cs
+++ /dev/null
@@ -1,24 +0,0 @@
-using Rise.App.ViewModels;
-using Windows.UI.Xaml.Controls;
-
-namespace Rise.App.Dialogs
-{
- ///
- /// A simple setup wizard for Musixmatch API tokens. For use when setting
- /// up online lyrics.
- ///
- public sealed partial class MusixmatchTokenDialog : ContentDialog
- {
- private SettingsViewModel ViewModel => App.SViewModel;
-
- public MusixmatchTokenDialog()
- {
- InitializeComponent();
- }
-
- private void ContentDialog_PrimaryButtonClick(ContentDialog sender, ContentDialogButtonClickEventArgs args)
- {
- ViewModel.MusixmatchLyricsToken = TokenBox.Text;
- }
- }
-}
diff --git a/Rise Media Player Dev/Dialogs/SetupDialogContent.xaml.cs b/Rise Media Player Dev/Dialogs/SetupDialogContent.xaml.cs
index e62e31a8..5b9b628b 100644
--- a/Rise Media Player Dev/Dialogs/SetupDialogContent.xaml.cs
+++ b/Rise Media Player Dev/Dialogs/SetupDialogContent.xaml.cs
@@ -37,7 +37,7 @@ private async void PrimaryButton_Click(object sender, RoutedEventArgs e)
int progress = ViewModel.SetupProgress;
if (progress == 1)
{
- ViewModel.FetchArtistPictures = true;
+ ViewModel.FetchOnlineData = true;
}
else if (progress == 5)
{
@@ -58,7 +58,7 @@ private async void SecondaryButton_Click(object sender, RoutedEventArgs e)
}
if (progress == 1)
{
- ViewModel.FetchArtistPictures = false;
+ ViewModel.FetchOnlineData = false;
}
else if (progress == 5)
{
diff --git a/Rise Media Player Dev/Helpers/MusixmatchHelper.cs b/Rise Media Player Dev/Helpers/MusixmatchHelper.cs
index 74375f65..9f2fa94d 100644
--- a/Rise Media Player Dev/Helpers/MusixmatchHelper.cs
+++ b/Rise Media Player Dev/Helpers/MusixmatchHelper.cs
@@ -1,5 +1,5 @@
-using Rise.Models;
-using System;
+using System;
+using Rise.Models;
using System.Threading.Tasks;
using Windows.Web.Http;
diff --git a/Rise Media Player Dev/Rise.App.csproj b/Rise Media Player Dev/Rise.App.csproj
index 84018b52..441d6e1f 100644
--- a/Rise Media Player Dev/Rise.App.csproj
+++ b/Rise Media Player Dev/Rise.App.csproj
@@ -149,9 +149,6 @@
LibraryPageEditDialog.xaml
-
- MusixmatchTokenDialog.xaml
- SetupDialogContent.xaml
@@ -695,10 +692,6 @@
DesignerMSBuild:Compile
-
- Designer
- MSBuild:Compile
- DesignerMSBuild:Compile
diff --git a/Rise Media Player Dev/Settings/MediaLibraryPages/MediaLibraryPage.xaml b/Rise Media Player Dev/Settings/MediaLibraryPages/MediaLibraryPage.xaml
index d4af4b5c..79effe81 100644
--- a/Rise Media Player Dev/Settings/MediaLibraryPages/MediaLibraryPage.xaml
+++ b/Rise Media Player Dev/Settings/MediaLibraryPages/MediaLibraryPage.xaml
@@ -3,10 +3,11 @@
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:labs="using:CommunityToolkit.Labs.WinUI"
+ xmlns:local1="using:Rise.App"
xmlns:markup="using:Rise.Common.Extensions.Markup"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:ui="using:Microsoft.Toolkit.Uwp.UI"
+ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
+ xmlns:uc="using:Rise.App.UserControls" xmlns:labs="using:CommunityToolkit.Labs.WinUI"
mc:Ignorable="d">
@@ -25,8 +26,8 @@
+ IsEnabled="False"
+ HeaderIcon="{ui:FontIcon Glyph=}">
+ IsClickEnabled="True" />
-
-
-
-
-
-
-
-
-
-
-
+ HeaderIcon="{ui:FontIcon Glyph=}">
+
+
diff --git a/Rise Media Player Dev/Settings/MediaLibraryPages/MediaLibraryPage.xaml.cs b/Rise Media Player Dev/Settings/MediaLibraryPages/MediaLibraryPage.xaml.cs
index 532c1bbc..60ac7a00 100644
--- a/Rise Media Player Dev/Settings/MediaLibraryPages/MediaLibraryPage.xaml.cs
+++ b/Rise Media Player Dev/Settings/MediaLibraryPages/MediaLibraryPage.xaml.cs
@@ -1,7 +1,5 @@
-using Rise.App.Dialogs;
-using Rise.App.ViewModels;
+using Rise.App.ViewModels;
using Rise.Common.Extensions.Markup;
-using System;
using System.Collections.Generic;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
@@ -29,10 +27,5 @@ private void GotoManage_Click(object sender, RoutedEventArgs e)
AllSettingsPage.Current.MainSettingsHeaderIcon.Glyph = "\uE838";
AllSettingsPage.Current.SettingsMainFrame.Navigate(typeof(MediaSourcesPage));
}
-
- private async void SetupLyrics_Click(object sender, RoutedEventArgs e)
- {
- _ = await new MusixmatchTokenDialog().ShowAsync();
- }
}
}
diff --git a/Rise Media Player Dev/Settings/ViewModels/SettingsViewModel.cs b/Rise Media Player Dev/Settings/ViewModels/SettingsViewModel.cs
index 8aa9ca76..cc4c7ac7 100644
--- a/Rise Media Player Dev/Settings/ViewModels/SettingsViewModel.cs
+++ b/Rise Media Player Dev/Settings/ViewModels/SettingsViewModel.cs
@@ -181,18 +181,12 @@ public AlbumViewMode AlbumViewMode
#endregion
#region Media Library
- public bool FetchArtistPictures
+ public bool FetchOnlineData
{
get => Get(true, "MediaLibrary");
set => Set(value, "MediaLibrary");
}
- public string MusixmatchLyricsToken
- {
- get => Get(string.Empty, "MediaLibrary");
- set => Set(value, "MediaLibrary");
- }
-
public int Deletion
{
get => Get(0, "MediaLibrary");
diff --git a/Rise Media Player Dev/Strings/en-GB/Settings.resw b/Rise Media Player Dev/Strings/en-GB/Settings.resw
index 49609140..a7e55907 100644
--- a/Rise Media Player Dev/Strings/en-GB/Settings.resw
+++ b/Rise Media Player Dev/Strings/en-GB/Settings.resw
@@ -59,46 +59,46 @@
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
-
-
+
+
-
+
-
-
-
-
+
+
+
+
-
-
+
+
-
-
+
+
-
-
-
-
+
+
+
+
-
+
-
+
@@ -447,16 +447,4 @@
Windows colours
-
- Fetch artist pictures
-
-
- Fetch lyrics
-
-
- Setup API token
-
-
- Get an API token
-
\ No newline at end of file
diff --git a/Rise Media Player Dev/ViewModels/MainViewModel.cs b/Rise Media Player Dev/ViewModels/MainViewModel.cs
index 1bf41bfb..650c8ba0 100644
--- a/Rise Media Player Dev/ViewModels/MainViewModel.cs
+++ b/Rise Media Player Dev/ViewModels/MainViewModel.cs
@@ -149,7 +149,7 @@ await Task.WhenAll(
await Repository.UpsertQueuedAsync();
await Repository.DeleteQueuedAsync();
- if (App.SViewModel.FetchArtistPictures)
+ if (App.SViewModel.FetchOnlineData)
{
MetadataFetchingStarted?.Invoke(this, EventArgs.Empty);
await FetchArtistsArtAsync(token);
diff --git a/Rise Media Player Dev/Views/Artists/ArtistSongsPage.xaml.cs b/Rise Media Player Dev/Views/Artists/ArtistSongsPage.xaml.cs
index 5f3e59bd..ee93ad90 100644
--- a/Rise Media Player Dev/Views/Artists/ArtistSongsPage.xaml.cs
+++ b/Rise Media Player Dev/Views/Artists/ArtistSongsPage.xaml.cs
@@ -89,7 +89,7 @@ private async void OnPageLoaded(object sender, RoutedEventArgs e)
ArtistDuration.Text = await Task.Run(() => TimeSpanToString.GetShortFormat(TimeSpan.FromSeconds(MediaViewModel.Items.Cast().Select(s => s.Length).Aggregate((t, t1) => t + t1).TotalSeconds)));
string name = SelectedArtist.Name;
- if (!SViewModel.FetchArtistPictures ||
+ if (!SViewModel.FetchOnlineData ||
!WebHelpers.IsInternetAccessAvailable() ||
name == ResourceHelper.GetString("UnknownArtistResource"))
{
diff --git a/Rise Media Player Dev/Windows/MainPage.xaml.cs b/Rise Media Player Dev/Windows/MainPage.xaml.cs
index d96cb0ff..3d82a20e 100644
--- a/Rise Media Player Dev/Windows/MainPage.xaml.cs
+++ b/Rise Media Player Dev/Windows/MainPage.xaml.cs
@@ -150,7 +150,7 @@ private async void OnPageLoaded(object sender, RoutedEventArgs args)
else
{
// Only run the neccessary steps for startup - change tracking & artist image fetching.
- if (SViewModel.FetchArtistPictures)
+ if (SViewModel.FetchOnlineData)
{
await Task.Delay(300);
diff --git a/Rise Media Player Dev/Windows/NowPlayingPage.xaml.cs b/Rise Media Player Dev/Windows/NowPlayingPage.xaml.cs
index 486f1145..20485e8d 100644
--- a/Rise Media Player Dev/Windows/NowPlayingPage.xaml.cs
+++ b/Rise Media Player Dev/Windows/NowPlayingPage.xaml.cs
@@ -154,7 +154,7 @@ private void ToggleFullScreen()
private async void OnLyricsListLoaded(object sender, RoutedEventArgs e)
{
- if (string.IsNullOrWhiteSpace(SViewModel.MusixmatchLyricsToken))
+ if (!SViewModel.FetchOnlineData)
{
_ = VisualStateManager.GoToState(this, "LyricsUnavailableState", true);
return;