Skip to content

GitHub Actions Test Workflow Status GitHub Actions Docs Workflow Status GitHub Actions Publish Workflow Status PowerShell Gallery Version PowerShell Gallery Downloads GitHub License Built with Material for MkDocs

PSubsonic

PSubsonic is an experimental PowerShell module for interacting with a Subsonic server. It was initially created as a part of a personal music library re-organization project where I simply needed a way to automate triggering a library scan in Navidrome.

Example of using Set-PSubRating and Set-PSubStar commands

Note: PSubsonic is pronounced "subsonic"

Installation

Install-Module PSubsonic

Examples

Connect to your Subsonic server

$address = Read-Host -Prompt 'Subsonic server address'
$credential = Get-Credential
Connect-PSubsonic -Address $address -Credential $credential

Start a music library scan

# This will trigger a "quick scan" in Navidrome
Start-PSubScan

# This will trigger a "full scan" in Navidrome and may not have any effect on other apps.
Start-PSubScan -Full

Get a list of artists

Get-PSubIndex

Get a list of tracks that are currently being played

Get-PSubNowPlaying

TODO

  • Write documentation
  • Write integration tests to run against a live Navidrome instance
  • Add support for more Subsonic API methods
  • Explore alternative output formatting for better support for piping or chaining commands together.