LibSaavn 1.0.0

dotnet add package LibSaavn --version 1.0.0
                    
NuGet\Install-Package LibSaavn -Version 1.0.0
                    
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="LibSaavn" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="LibSaavn" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="LibSaavn" />
                    
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 LibSaavn --version 1.0.0
                    
#r "nuget: LibSaavn, 1.0.0"
                    
#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 LibSaavn@1.0.0
                    
#: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=LibSaavn&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=LibSaavn&version=1.0.0
                    
Install as a Cake Tool

LibSaavn

Unofficial wrapper for Saavn Music Streaming platform, written entirely in C#.

Features:

Extract anything Top Trending songs or custom Query a song , recieve everything about the song with easy to use API.

Usage

Install lib from nuget or dotnet CLI

dotnet add package LibSaavn 

Create Saavn Client

using Saavn;
using static System.Console;

SaavnClient client = new();
  1. Search
var searchresult = await client.SearchAsync("Dua Lipa Songs");
foreach (var s in searchresult.Songs.Data)
{
    WriteLine($"Id: {s.Id}");
    WriteLine($"Title: {s.Title}");
    WriteLine($"Singers: {s.MoreInfo.Singers}");
    //get more info
}

  1. Fetch info about Song
var songDetails = await client.GetSongInfoAsync("-5JOWX7I"); //parameter is song id
//playable stream url
WriteLine(songDetails.DecryptedMediaUrl);
WriteLine(songDetails.HasLyrics);
WriteLine(songDetails.LyricsSnippet);
//and more
  1. Top Trending Songs
var top = await client.GetTopChartsAsync();
foreach (var s in top.List)
{
    WriteLine($"Id: {s.Id}");
    WriteLine($"Title: {s.Title}");
    ForegroundColor = ConsoleColor.Cyan;
    WriteLine($"URL: {s.MoreInfo.DecryptedMediaUrl}");
}
  1. Get Lyrics
var lyrics = await client.GetLyricsAsync("-5JOWX7I"); //parameter is song id
WriteLine(lyrics.Lyrics);
  1. Get Album Details
var album = await client.GetAlbumAsync("22765589");
WriteLine(album.Title);
  1. Get Playlist

WriteLine(searchresult.Playlists.Data[0].Id);
//155225861 get playlist id
var playlist = await client.GetPlayListAsync("155225861");
WriteLine(playlist.Listname);
Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  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.0 314 8/29/2021