Giter Club home page Giter Club logo

metabrainz.musicbrainz.coverart's Introduction

MetaBrainz.MusicBrainz.CoverArt Build Status NuGet Version

This is a .NET implementation of the libcoverart library (wrapping the CoverArtArchive API). An attempt has been made to keep the same basic class hierarchy.

Debugging

The CoverArt class provides a TraceSource that can be used to configure debug output; its name is MetaBrainz.MusicBrainz.CoverArt.

Configuration

In Code

In code, you can enable tracing like follows:

// Use the default switch, turning it on.
CoverArt.TraceSource.Switch.Level = SourceLevels.All;

// Alternatively, use your own switch so multiple things can be
// enabled/disabled at the same time.
var mySwitch = new TraceSwitch("MyAppDebugSwitch", "All");
CoverArt.TraceSource.Switch = mySwitch;

// By default, there is a single listener that writes trace events to
// the debug output (typically only seen in an IDE's debugger). You can
// add (and remove) listeners as desired.
var listener = new ConsoleTraceListener {
  Name = "MyAppConsole",
  TraceOutputOptions = TraceOptions.DateTime | TraceOptions.ProcessId,
};
CoverArt.TraceSource.Listeners.Clear();
CoverArt.TraceSource.Listeners.Add(listener);

In Configuration

Starting from .NET 7 your application can also be set up to read tracing configuration from the application configuration file. To do so, the application needs to add the following to its startup code:

System.Diagnostics.TraceConfiguration.Register();

(Provided by the System.Configuration.ConfigurationManager package.)

The application config file can then have a system.diagnostics section where sources, switches and listeners can be configured.

<configuration>
  <system.diagnostics>
    <sharedListeners>
      <add name="console" type="System.Diagnostics.ConsoleTraceListener" traceOutputOptions="DateTime,ProcessId" />
    </sharedListeners>
    <sources>
      <source name="MetaBrainz.MusicBrainz.CoverArt" switchName="MetaBrainz.MusicBrainz.CoverArt">
        <listeners>
          <add name="console" />
          <add name="caa-log" type="System.Diagnostics.TextWriterTraceListener" initializeData="caa.log" />
        </listeners>
      </source>
    </sources>
    <switches>
      <add name="MetaBrainz.MusicBrainz.CoverArt" value="All" />
    </switches>
  </system.diagnostics>
</configuration>

Release Notes

These are available on GitHub.

metabrainz.musicbrainz.coverart's People

Contributors

dependabot[bot] avatar zastai avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

metabrainz.musicbrainz.coverart's Issues

NOOB question

Hello all!

Please forgive me for such a basic question. I downloaded the source code and opened the solution file using VS 2019.
When i tried to build, i got errors stating that Common.targets and Common.props are missing. Indeed, the whole "build" is empty. What am I missing?

Thank you!
RB

Handle "not found" case with a clearer error

My app uses your libraries for auto-tagging (both MusicBrainz, and MusicBrainz.CoverArt, wonderful library by the way), however i ran into an issue where i only need the link to the cover, i don't want to download it. looking at the library there is only Fetch methods which downloads the data. This is working perfectly fine in auto-tagging but I need to supply URL to parts of the app that does the downloading on demand and manually and sometimes hand off the URL to another libraries. Is there a way to get the cover URL instead of only downloading it.

MetaBrainz.MusicBrainz.CoverArt Update

Good morning, I am using MetaBrainz.MusicBrainz with MetaBrainz.MusicBrainz.CoverArt and I have updated the first one together with its MetaBrainz.Common.Json dependency to the last one released, but at the moment of wanting to instantiate the MetaBrainz.MusicBrainz.CoverArt it gives me an error due to the MetaBrainz.Common.Json update. My question is whether this MetaBrainz.MusicBrainz.CoverArt project will also undergo an update to MetaBrainz.Common.Json as was the case with the MetaBrainz.MusicBrainz project.
Greetings and thank you very much and congratulations on this very useful project.

License clarification

Hi, I'm part of the Jellyfin project.

I'm looking at using this, along with MetaBrainz.MusicBrainz for our Cover Art Archive and Music Brainz plugins, respectively.

However, while NuGet mentions the license as MS-PL (for both packages), there doesn't seem to be any mentions of licenses in the actual repos.

Is the MS-PL license correct? If not, what is the code licensed under?

Thanks in advance.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.