Skip to content

Commit 894a027

Browse files
committed
Update URLs and enhance song output logging
- Changed `BaseUrl` and `AuthUrl` in `GlobalObjects.cs` to hardcoded "https://songify.rocks" for simplified configuration. - Modified parameter name in `currentSongOutput` formatting in `SongFetcher.cs` for improved clarity. - Added functionality to log the current song's URL to `url.txt` in `GlobalObjects.RootDirectory`.
1 parent 3d5bfc6 commit 894a027

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

Songify Slim/Util/General/GlobalObjects.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ namespace Songify_Slim.Util.General
3434
public static class GlobalObjects
3535
{
3636
public const string ApiUrl = "https://api.songify.rocks/v2";
37-
public static string BaseUrl = Settings.Settings.BaseUrl;
38-
public static string AuthUrl = Settings.Settings.BaseUrl;
37+
public static string BaseUrl = "https://songify.rocks";
38+
public static string AuthUrl = "https://songify.rocks";
3939
public const string AltAuthUrl = "https://songify.bloemacher.com";
4040
public static string ApiResponse;
4141
public static string AppVersion;

Songify Slim/Util/Songify/SongFetcher.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -798,7 +798,7 @@ private static Task WriteSongInfo(TrackInfo songInfo, Enums.RequestPlayerType pl
798798
// this only is used for Spotify because here the artist and title are split
799799
// replace parameters with actual info
800800
currentSongOutput = currentSongOutput.Format(
801-
singleArtist => songInfo.FullArtists == null ? "" : songInfo.FullArtists.FirstOrDefault().Name,
801+
single_artist => songInfo.FullArtists == null ? "" : songInfo.FullArtists.FirstOrDefault().Name,
802802
artist => songInfo.Artists,
803803
title => songInfo.Title,
804804
extra => "",
@@ -913,6 +913,7 @@ private static Task WriteSongInfo(TrackInfo songInfo, Enums.RequestPlayerType pl
913913
}
914914

915915
if (Settings.Settings.SplitOutput) IoManager.WriteSplitOutput(songInfo.Artists, songInfo.Title, "", rq?.Requester);
916+
IoManager.WriteOutput($"{GlobalObjects.RootDirectory}/url.txt", songInfo.Url);
916917

917918
// if upload is enabled
918919
if (Settings.Settings.Upload)

0 commit comments

Comments
 (0)