SubSonicMedia 1.0.5

dotnet add package SubSonicMedia --version 1.0.5
                    
NuGet\Install-Package SubSonicMedia -Version 1.0.5
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="SubSonicMedia" Version="1.0.5" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SubSonicMedia" Version="1.0.5" />
                    
Directory.Packages.props
<PackageReference Include="SubSonicMedia" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add SubSonicMedia --version 1.0.5
                    
#r "nuget: SubSonicMedia, 1.0.5"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package SubSonicMedia@1.0.5
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=SubSonicMedia&version=1.0.5
                    
Install as a Cake Addin
#tool nuget:?package=SubSonicMedia&version=1.0.5
                    
Install as a Cake Tool

SubSonicMedia

<p align="center"> <img src="assets/icon.svg" alt="SubSonicMedia Logo" width="64"/> </p>

Build and Test Status: Pre-Release License: GPL-3.0 .NET NuGet GitHub Copilot Built with Claude

SubSonicMedia is a comprehensive .NET client library for the Subsonic API, supporting API version 1.16.1.

✨ Features

  • (mostly) full implementation of Subsonic API v1.16.1
  • Strongly-typed response models
  • Interface-based architecture for easy testing and extensibility
  • Async support throughout
  • Comprehensive documentation

🎯 Not Yet Implemented / Roadmap

These Subsonic API methods aren’t exposed yet:

  • scrobble
  • getSimilarSongs
  • getSimilarSongs2
  • getTopSongs
  • getNowPlaying
  • getShares
  • updateShare
  • deleteShare

Full implementation status is detailed in the Implementation Status document.

Getting Started

Installation

dotnet add package SubSonicMedia

Example

using System;
using SubSonicMedia;

var connection = new SubsonicConnectionInfo(
    serverUrl: "https://your-subsonic-server",
    username: "username",
    password: "password"
);
using var client = new SubsonicClient(connection);

// Ping the server
var pong = await client.PingAsync();
Console.WriteLine($"Server API version: {pong.Version}");

TestKit Integration Test

The TestKit is a console application that validates the SubSonicMedia library against a real Subsonic-compatible server:

  • Structured API tests with clear pass/fail results
  • JSON output for test results
  • JUnit XML output for integration with CI/CD systems
  • Record server responses for future mocking
  • Command-line interface for automation
  • npm-style output with UTF-8 icons
  • Detailed logging and error reporting
  1. Navigate to the TestKit directory and copy the example environment file:

    cd SubSonicMedia.TestKit
    cp .env.example .env
    
  2. Open .env and set your server connection info:

    SUBSONIC_SERVER_URL=https://your-subsonic-server.com
    SUBSONIC_USERNAME=your-username
    SUBSONIC_PASSWORD=your-password
    API_VERSION=1.16.1
    RECORD_TEST_RESULTS=true
    OUTPUT_DIRECTORY=./TestResults
    JUNIT_XML_OUTPUT=true
    
  3. Run the TestKit application:

    dotnet run
    
  • Use dotnet run -- --junit-xml for JUnit XML output.
  • Use dotnet run list to list available tests.
  • Use dotnet run help for full CLI options.

Documentation

Explore the full documentation on SubSonicMedia Documentation.

License

This project is licensed under the GNU General Public License v3.0 or later.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request
Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.5 500 7/29/2025
1.0.5-beta.1 224 5/4/2025
1.0.4-beta.1 124 3/21/2025
1.0.3-beta.20 71 3/21/2025