Library entry point.
More...
|
| None | __init__ (self, Iterable[object] providers=()) |
| | Initialize the configured instance.
|
| Self | __aenter__ (self) |
| | Enter the asynchronous context.
|
| None | __aexit__ (self, object exc_type, object exc, object tb) |
| | Exit the asynchronous context.
|
| list[Recording] | search_track (self, str artist, str title) |
| | Search configured search-capable providers, in order.
|
Library entry point.
Providers are optional and independently configured.
◆ __init__()
| None musicforge.core.MusicForge.__init__ |
( |
| self, |
|
|
Iterable[object] | providers = () ) |
Initialize the configured instance.
- Parameters
-
| self | Current instance. |
| providers | Independently configured providers. |
◆ __aenter__()
| Self musicforge.core.MusicForge.__aenter__ |
( |
| self | ) |
|
Enter the asynchronous context.
- Parameters
-
- Returns
- Current instance.
◆ __aexit__()
| None musicforge.core.MusicForge.__aexit__ |
( |
| self, |
|
|
object | exc_type, |
|
|
object | exc, |
|
|
object | tb ) |
Exit the asynchronous context.
- Parameters
-
| self | Current instance. |
| exc_type | Exception type, if any. |
| exc | Exception instance, if any. |
| tb | Exception traceback, if any. |
◆ search_track()
| list[Recording] musicforge.core.MusicForge.search_track |
( |
| self, |
|
|
str | artist, |
|
|
str | title ) |
Search configured search-capable providers, in order.
- Parameters
-
| self | Current instance. |
| artist | Artist name. |
| title | Track title. |
- Returns
- Combined recording candidates in provider order.
A list is returned because artist/title pairs can identify multiple recordings. This initial implementation propagates provider errors; retries and partial-failure handling will be introduced with actual adapters.
◆ _providers
| musicforge.core.MusicForge._providers = tuple(providers) |
|
protected |
The documentation for this class was generated from the following file: