sublime_music.adapters.subsonic.api_objects module
These are the API objects that are returned by Subsonic.
- class sublime_music.adapters.subsonic.api_objects.Album(name: str, id: Optional[str], cover_art: Optional[str] = None, song_count: Optional[int] = None, year: Optional[int] = None, duration: Optional[datetime.timedelta] = None, created: Optional[datetime.datetime] = None, songs: List[ForwardRef('Song')] = <factory>, play_count: Optional[int] = None, starred: Optional[datetime.datetime] = None, _artist: Optional[str] = None, artist_id: Optional[str] = None, _genre: Optional[str] = None)[source]
Bases:
sublime_music.adapters.api_objects.Album
- Parameters
name (str) –
duration (Optional[datetime.timedelta]) –
created (Optional[datetime.datetime]) –
songs (List[sublime_music.adapters.subsonic.api_objects.Song]) –
starred (Optional[datetime.datetime]) –
- Return type
None
- __init__(name, id, cover_art=None, song_count=None, year=None, duration=None, created=None, songs=<factory>, play_count=None, starred=None, _artist=None, artist_id=None, _genre=None)
- Parameters
name (str) –
duration (Optional[datetime.timedelta]) –
created (Optional[datetime.datetime]) –
songs (List[sublime_music.adapters.subsonic.api_objects.Song]) –
starred (Optional[datetime.datetime]) –
- Return type
None
- artist: Optional[sublime_music.adapters.subsonic.api_objects.ArtistAndArtistInfo]
- created: Optional[datetime.datetime] = None
- dataclass_json_config = {'letter_case': <function camelcase>}
- duration: Optional[datetime.timedelta] = None
- classmethod from_dict(kvs, *, infer_missing=False)
- classmethod from_json(s, *, parse_float=None, parse_int=None, parse_constant=None, infer_missing=False, **kw)
- genre: Optional[sublime_music.adapters.subsonic.api_objects.Genre]
- classmethod schema(*, infer_missing=False, only=None, exclude=(), many=False, context=None, load_only=(), dump_only=(), partial=False, unknown=None)
- songs: List[sublime_music.adapters.subsonic.api_objects.Song]
- starred: Optional[datetime.datetime] = None
- to_dict(encode_json=False)
- to_json(*, skipkeys=False, ensure_ascii=True, check_circular=True, allow_nan=True, indent=None, separators=None, default=None, sort_keys=False, **kw)
- class sublime_music.adapters.subsonic.api_objects.AlbumList2(album: List[sublime_music.adapters.subsonic.api_objects.Album] = <factory>)[source]
Bases:
object
- Parameters
album (List[sublime_music.adapters.subsonic.api_objects.Album]) –
- Return type
None
- __init__(album=<factory>)
- Parameters
album (List[sublime_music.adapters.subsonic.api_objects.Album]) –
- Return type
None
- album: List[sublime_music.adapters.subsonic.api_objects.Album]
- dataclass_json_config = {'letter_case': <function camelcase>}
- classmethod from_dict(kvs, *, infer_missing=False)
- classmethod from_json(s, *, parse_float=None, parse_int=None, parse_constant=None, infer_missing=False, **kw)
- classmethod schema(*, infer_missing=False, only=None, exclude=(), many=False, context=None, load_only=(), dump_only=(), partial=False, unknown=None)
- to_dict(encode_json=False)
- to_json(*, skipkeys=False, ensure_ascii=True, check_circular=True, allow_nan=True, indent=None, separators=None, default=None, sort_keys=False, **kw)
- class sublime_music.adapters.subsonic.api_objects.ArtistAndArtistInfo(name: str, id: Optional[str], albums: List[sublime_music.adapters.subsonic.api_objects.Album] = <factory>, album_count: Optional[int] = None, cover_art: Optional[str] = None, artist_image_url: Optional[str] = None, starred: Optional[datetime.datetime] = None, similar_artists: List[ForwardRef('ArtistAndArtistInfo')] = <factory>, biography: Optional[str] = None, music_brainz_id: Optional[str] = None, last_fm_url: Optional[str] = None)[source]
Bases:
sublime_music.adapters.api_objects.Artist
- Parameters
name (str) –
albums (List[sublime_music.adapters.subsonic.api_objects.Album]) –
starred (Optional[datetime.datetime]) –
similar_artists (List[sublime_music.adapters.subsonic.api_objects.ArtistAndArtistInfo]) –
- Return type
None
- __init__(name, id, albums=<factory>, album_count=None, cover_art=None, artist_image_url=None, starred=None, similar_artists=<factory>, biography=None, music_brainz_id=None, last_fm_url=None)
- Parameters
name (str) –
albums (List[sublime_music.adapters.subsonic.api_objects.Album]) –
starred (Optional[datetime.datetime]) –
similar_artists (List[sublime_music.adapters.subsonic.api_objects.ArtistAndArtistInfo]) –
- Return type
None
- albums: List[sublime_music.adapters.subsonic.api_objects.Album]
- augment_with_artist_info(artist_info)[source]
- Parameters
artist_info (Optional[sublime_music.adapters.subsonic.api_objects.ArtistInfo]) –
- dataclass_json_config = {'letter_case': <function camelcase>}
- classmethod from_dict(kvs, *, infer_missing=False)
- classmethod from_json(s, *, parse_float=None, parse_int=None, parse_constant=None, infer_missing=False, **kw)
- classmethod schema(*, infer_missing=False, only=None, exclude=(), many=False, context=None, load_only=(), dump_only=(), partial=False, unknown=None)
- starred: Optional[datetime.datetime] = None
- to_dict(encode_json=False)
- to_json(*, skipkeys=False, ensure_ascii=True, check_circular=True, allow_nan=True, indent=None, separators=None, default=None, sort_keys=False, **kw)
- class sublime_music.adapters.subsonic.api_objects.ArtistInfo(similar_artists: List[sublime_music.adapters.subsonic.api_objects.ArtistAndArtistInfo] = <factory>, biography: Optional[str] = None, last_fm_url: Optional[str] = None, artist_image_url: Optional[str] = None, music_brainz_id: Optional[str] = None)[source]
Bases:
object
- Parameters
- Return type
None
- __init__(similar_artists=<factory>, biography=None, last_fm_url=None, artist_image_url=None, music_brainz_id=None)
- dataclass_json_config = {'letter_case': <function camelcase>}
- classmethod from_dict(kvs, *, infer_missing=False)
- classmethod from_json(s, *, parse_float=None, parse_int=None, parse_constant=None, infer_missing=False, **kw)
- classmethod schema(*, infer_missing=False, only=None, exclude=(), many=False, context=None, load_only=(), dump_only=(), partial=False, unknown=None)
- similar_artists: List[sublime_music.adapters.subsonic.api_objects.ArtistAndArtistInfo]
- to_dict(encode_json=False)
- to_json(*, skipkeys=False, ensure_ascii=True, check_circular=True, allow_nan=True, indent=None, separators=None, default=None, sort_keys=False, **kw)
- class sublime_music.adapters.subsonic.api_objects.ArtistsID3(ignored_articles: Optional[str] = None, index: List[sublime_music.adapters.subsonic.api_objects.IndexID3] = <factory>)[source]
Bases:
object
- Parameters
- Return type
None
- __init__(ignored_articles=None, index=<factory>)
- Parameters
- Return type
None
- dataclass_json_config = {'letter_case': <function camelcase>}
- classmethod from_dict(kvs, *, infer_missing=False)
- classmethod from_json(s, *, parse_float=None, parse_int=None, parse_constant=None, infer_missing=False, **kw)
- classmethod schema(*, infer_missing=False, only=None, exclude=(), many=False, context=None, load_only=(), dump_only=(), partial=False, unknown=None)
- to_dict(encode_json=False)
- to_json(*, skipkeys=False, ensure_ascii=True, check_circular=True, allow_nan=True, indent=None, separators=None, default=None, sort_keys=False, **kw)
- class sublime_music.adapters.subsonic.api_objects.Directory(id: str, name: Optional[str] = None, title: Optional[str] = None, parent_id: Optional[str] = None, _children: List[Dict[str, Any]] = <factory>)[source]
Bases:
sublime_music.adapters.api_objects.Directory
,dataclasses_json.api.DataClassJsonMixin
- Parameters
- Return type
None
- __init__(id, name=None, title=None, parent_id=None, _children=<factory>)
- children: List[Union[sublime_music.adapters.subsonic.api_objects.Directory, sublime_music.adapters.subsonic.api_objects.Song]]
- dataclass_json_config = {'letter_case': <function camelcase>}
- classmethod from_dict(kvs, *, infer_missing=False)
- classmethod from_json(s, *, parse_float=None, parse_int=None, parse_constant=None, infer_missing=False, **kw)
- classmethod schema(*, infer_missing=False, only=None, exclude=(), many=False, context=None, load_only=(), dump_only=(), partial=False, unknown=None)
- to_dict(encode_json=False)
- to_json(*, skipkeys=False, ensure_ascii=True, check_circular=True, allow_nan=True, indent=None, separators=None, default=None, sort_keys=False, **kw)
- class sublime_music.adapters.subsonic.api_objects.Genre(name: str, song_count: Optional[int] = None, album_count: Optional[int] = None)[source]
Bases:
sublime_music.adapters.api_objects.Genre
- __init__(name, song_count=None, album_count=None)
- dataclass_json_config = {'letter_case': <function camelcase>}
- classmethod from_dict(kvs, *, infer_missing=False)
- classmethod from_json(s, *, parse_float=None, parse_int=None, parse_constant=None, infer_missing=False, **kw)
- classmethod schema(*, infer_missing=False, only=None, exclude=(), many=False, context=None, load_only=(), dump_only=(), partial=False, unknown=None)
- to_dict(encode_json=False)
- to_json(*, skipkeys=False, ensure_ascii=True, check_circular=True, allow_nan=True, indent=None, separators=None, default=None, sort_keys=False, **kw)
- class sublime_music.adapters.subsonic.api_objects.Genres(genre: List[sublime_music.adapters.subsonic.api_objects.Genre] = <factory>)[source]
Bases:
object
- Parameters
genre (List[sublime_music.adapters.subsonic.api_objects.Genre]) –
- Return type
None
- __init__(genre=<factory>)
- Parameters
genre (List[sublime_music.adapters.subsonic.api_objects.Genre]) –
- Return type
None
- dataclass_json_config = {'letter_case': <function camelcase>}
- classmethod from_dict(kvs, *, infer_missing=False)
- classmethod from_json(s, *, parse_float=None, parse_int=None, parse_constant=None, infer_missing=False, **kw)
- genre: List[sublime_music.adapters.subsonic.api_objects.Genre]
- classmethod schema(*, infer_missing=False, only=None, exclude=(), many=False, context=None, load_only=(), dump_only=(), partial=False, unknown=None)
- to_dict(encode_json=False)
- to_json(*, skipkeys=False, ensure_ascii=True, check_circular=True, allow_nan=True, indent=None, separators=None, default=None, sort_keys=False, **kw)
- class sublime_music.adapters.subsonic.api_objects.Index(name: str, artist: List[Dict[str, Any]] = <factory>)[source]
Bases:
object
- __init__(name, artist=<factory>)
- dataclass_json_config = {'letter_case': <function camelcase>}
- classmethod from_dict(kvs, *, infer_missing=False)
- classmethod from_json(s, *, parse_float=None, parse_int=None, parse_constant=None, infer_missing=False, **kw)
- classmethod schema(*, infer_missing=False, only=None, exclude=(), many=False, context=None, load_only=(), dump_only=(), partial=False, unknown=None)
- to_dict(encode_json=False)
- to_json(*, skipkeys=False, ensure_ascii=True, check_circular=True, allow_nan=True, indent=None, separators=None, default=None, sort_keys=False, **kw)
- class sublime_music.adapters.subsonic.api_objects.IndexID3(name: str, artist: List[sublime_music.adapters.subsonic.api_objects.ArtistAndArtistInfo] = <factory>)[source]
Bases:
object
- Parameters
name (str) –
artist (List[sublime_music.adapters.subsonic.api_objects.ArtistAndArtistInfo]) –
- Return type
None
- __init__(name, artist=<factory>)
- Parameters
name (str) –
artist (List[sublime_music.adapters.subsonic.api_objects.ArtistAndArtistInfo]) –
- Return type
None
- dataclass_json_config = {'letter_case': <function camelcase>}
- classmethod from_dict(kvs, *, infer_missing=False)
- classmethod from_json(s, *, parse_float=None, parse_int=None, parse_constant=None, infer_missing=False, **kw)
- classmethod schema(*, infer_missing=False, only=None, exclude=(), many=False, context=None, load_only=(), dump_only=(), partial=False, unknown=None)
- to_dict(encode_json=False)
- to_json(*, skipkeys=False, ensure_ascii=True, check_circular=True, allow_nan=True, indent=None, separators=None, default=None, sort_keys=False, **kw)
- class sublime_music.adapters.subsonic.api_objects.Indexes(ignored_articles: Optional[str] = None, index: List[sublime_music.adapters.subsonic.api_objects.Index] = <factory>)[source]
Bases:
object
- Parameters
- Return type
None
- __init__(ignored_articles=None, index=<factory>)
- Parameters
- Return type
None
- dataclass_json_config = {'letter_case': <function camelcase>}
- classmethod from_dict(kvs, *, infer_missing=False)
- classmethod from_json(s, *, parse_float=None, parse_int=None, parse_constant=None, infer_missing=False, **kw)
- index: List[sublime_music.adapters.subsonic.api_objects.Index]
- classmethod schema(*, infer_missing=False, only=None, exclude=(), many=False, context=None, load_only=(), dump_only=(), partial=False, unknown=None)
- to_dict(encode_json=False)
- to_json(*, skipkeys=False, ensure_ascii=True, check_circular=True, allow_nan=True, indent=None, separators=None, default=None, sort_keys=False, **kw)
- class sublime_music.adapters.subsonic.api_objects.PlayQueue(songs: List[sublime_music.adapters.subsonic.api_objects.Song] = <factory>, position: datetime.timedelta = datetime.timedelta(0), username: Optional[str] = None, changed: Optional[datetime.datetime] = None, changed_by: Optional[str] = None, value: Optional[str] = None, current: Optional[str] = None, current_index: Optional[int] = None)[source]
Bases:
sublime_music.adapters.api_objects.PlayQueue
- Parameters
songs (List[sublime_music.adapters.subsonic.api_objects.Song]) –
position (datetime.timedelta) –
changed (Optional[datetime.datetime]) –
- Return type
None
- __init__(songs=<factory>, position=datetime.timedelta(0), username=None, changed=None, changed_by=None, value=None, current=None, current_index=None)
- Parameters
songs (List[sublime_music.adapters.subsonic.api_objects.Song]) –
position (datetime.timedelta) –
changed (Optional[datetime.datetime]) –
- Return type
None
- changed: Optional[datetime.datetime] = None
- dataclass_json_config = {'letter_case': <function camelcase>}
- classmethod from_dict(kvs, *, infer_missing=False)
- classmethod from_json(s, *, parse_float=None, parse_int=None, parse_constant=None, infer_missing=False, **kw)
- position: datetime.timedelta = datetime.timedelta(0)
- classmethod schema(*, infer_missing=False, only=None, exclude=(), many=False, context=None, load_only=(), dump_only=(), partial=False, unknown=None)
- songs: List[sublime_music.adapters.subsonic.api_objects.Song]
- to_dict(encode_json=False)
- to_json(*, skipkeys=False, ensure_ascii=True, check_circular=True, allow_nan=True, indent=None, separators=None, default=None, sort_keys=False, **kw)
- class sublime_music.adapters.subsonic.api_objects.Playlist(id: str, name: str, songs: List[sublime_music.adapters.subsonic.api_objects.Song] = <factory>, song_count: Optional[int] = None, duration: Optional[datetime.timedelta] = None, created: Optional[datetime.datetime] = None, changed: Optional[datetime.datetime] = None, comment: Optional[str] = None, owner: Optional[str] = None, public: Optional[bool] = None, cover_art: Optional[str] = None)[source]
Bases:
sublime_music.adapters.api_objects.Playlist
- Parameters
id (str) –
name (str) –
songs (List[sublime_music.adapters.subsonic.api_objects.Song]) –
duration (Optional[datetime.timedelta]) –
created (Optional[datetime.datetime]) –
changed (Optional[datetime.datetime]) –
- Return type
None
- __init__(id, name, songs=<factory>, song_count=None, duration=None, created=None, changed=None, comment=None, owner=None, public=None, cover_art=None)
- Parameters
id (str) –
name (str) –
songs (List[sublime_music.adapters.subsonic.api_objects.Song]) –
duration (Optional[datetime.timedelta]) –
created (Optional[datetime.datetime]) –
changed (Optional[datetime.datetime]) –
- Return type
None
- changed: Optional[datetime.datetime] = None
- created: Optional[datetime.datetime] = None
- dataclass_json_config = {'letter_case': <function camelcase>}
- duration: Optional[datetime.timedelta] = None
- classmethod from_dict(kvs, *, infer_missing=False)
- classmethod from_json(s, *, parse_float=None, parse_int=None, parse_constant=None, infer_missing=False, **kw)
- classmethod schema(*, infer_missing=False, only=None, exclude=(), many=False, context=None, load_only=(), dump_only=(), partial=False, unknown=None)
- songs: List[sublime_music.adapters.subsonic.api_objects.Song]
- to_dict(encode_json=False)
- to_json(*, skipkeys=False, ensure_ascii=True, check_circular=True, allow_nan=True, indent=None, separators=None, default=None, sort_keys=False, **kw)
- class sublime_music.adapters.subsonic.api_objects.Playlists(playlist: List[sublime_music.adapters.subsonic.api_objects.Playlist] = <factory>)[source]
Bases:
object
- Parameters
playlist (List[sublime_music.adapters.subsonic.api_objects.Playlist]) –
- Return type
None
- __init__(playlist=<factory>)
- Parameters
playlist (List[sublime_music.adapters.subsonic.api_objects.Playlist]) –
- Return type
None
- dataclass_json_config = {'letter_case': <function camelcase>}
- classmethod from_dict(kvs, *, infer_missing=False)
- classmethod from_json(s, *, parse_float=None, parse_int=None, parse_constant=None, infer_missing=False, **kw)
- playlist: List[sublime_music.adapters.subsonic.api_objects.Playlist]
- classmethod schema(*, infer_missing=False, only=None, exclude=(), many=False, context=None, load_only=(), dump_only=(), partial=False, unknown=None)
- to_dict(encode_json=False)
- to_json(*, skipkeys=False, ensure_ascii=True, check_circular=True, allow_nan=True, indent=None, separators=None, default=None, sort_keys=False, **kw)
- class sublime_music.adapters.subsonic.api_objects.Response(artists=None, artist=None, artist_info=None, albums=None, album=None, directory=None, genres=None, indexes=None, playlist=None, playlists=None, play_queue=None, song=None, search_result=None)[source]
Bases:
dataclasses_json.api.DataClassJsonMixin
The base Subsonic response object.
- Parameters
artists (Optional[sublime_music.adapters.subsonic.api_objects.ArtistsID3]) –
artist (Optional[sublime_music.adapters.subsonic.api_objects.ArtistAndArtistInfo]) –
artist_info (Optional[sublime_music.adapters.subsonic.api_objects.ArtistInfo]) –
albums (Optional[sublime_music.adapters.subsonic.api_objects.AlbumList2]) –
album (Optional[sublime_music.adapters.subsonic.api_objects.Album]) –
directory (Optional[sublime_music.adapters.subsonic.api_objects.Directory]) –
genres (Optional[sublime_music.adapters.subsonic.api_objects.Genres]) –
indexes (Optional[sublime_music.adapters.subsonic.api_objects.Indexes]) –
playlist (Optional[sublime_music.adapters.subsonic.api_objects.Playlist]) –
playlists (Optional[sublime_music.adapters.subsonic.api_objects.Playlists]) –
play_queue (Optional[sublime_music.adapters.subsonic.api_objects.PlayQueue]) –
song (Optional[sublime_music.adapters.subsonic.api_objects.Song]) –
search_result (Optional[sublime_music.adapters.subsonic.api_objects.SearchResult3]) –
- Return type
None
- __init__(artists=None, artist=None, artist_info=None, albums=None, album=None, directory=None, genres=None, indexes=None, playlist=None, playlists=None, play_queue=None, song=None, search_result=None)
- Parameters
artists (Optional[sublime_music.adapters.subsonic.api_objects.ArtistsID3]) –
artist (Optional[sublime_music.adapters.subsonic.api_objects.ArtistAndArtistInfo]) –
artist_info (Optional[sublime_music.adapters.subsonic.api_objects.ArtistInfo]) –
albums (Optional[sublime_music.adapters.subsonic.api_objects.AlbumList2]) –
album (Optional[sublime_music.adapters.subsonic.api_objects.Album]) –
directory (Optional[sublime_music.adapters.subsonic.api_objects.Directory]) –
genres (Optional[sublime_music.adapters.subsonic.api_objects.Genres]) –
indexes (Optional[sublime_music.adapters.subsonic.api_objects.Indexes]) –
playlist (Optional[sublime_music.adapters.subsonic.api_objects.Playlist]) –
playlists (Optional[sublime_music.adapters.subsonic.api_objects.Playlists]) –
play_queue (Optional[sublime_music.adapters.subsonic.api_objects.PlayQueue]) –
song (Optional[sublime_music.adapters.subsonic.api_objects.Song]) –
search_result (Optional[sublime_music.adapters.subsonic.api_objects.SearchResult3]) –
- Return type
None
- album: Optional[sublime_music.adapters.subsonic.api_objects.Album] = None
- albums: Optional[sublime_music.adapters.subsonic.api_objects.AlbumList2] = None
- artist: Optional[sublime_music.adapters.subsonic.api_objects.ArtistAndArtistInfo] = None
- artist_info: Optional[sublime_music.adapters.subsonic.api_objects.ArtistInfo] = None
- artists: Optional[sublime_music.adapters.subsonic.api_objects.ArtistsID3] = None
- directory: Optional[sublime_music.adapters.subsonic.api_objects.Directory] = None
- genres: Optional[sublime_music.adapters.subsonic.api_objects.Genres] = None
- indexes: Optional[sublime_music.adapters.subsonic.api_objects.Indexes] = None
- play_queue: Optional[sublime_music.adapters.subsonic.api_objects.PlayQueue] = None
- playlist: Optional[sublime_music.adapters.subsonic.api_objects.Playlist] = None
- playlists: Optional[sublime_music.adapters.subsonic.api_objects.Playlists] = None
- search_result: Optional[sublime_music.adapters.subsonic.api_objects.SearchResult3] = None
- song: Optional[sublime_music.adapters.subsonic.api_objects.Song] = None
- class sublime_music.adapters.subsonic.api_objects.SearchResult3(artist: List[sublime_music.adapters.subsonic.api_objects.ArtistAndArtistInfo] = <factory>, album: List[sublime_music.adapters.subsonic.api_objects.Album] = <factory>, song: List[sublime_music.adapters.subsonic.api_objects.Song] = <factory>)[source]
Bases:
object
- Parameters
- Return type
None
- __init__(artist=<factory>, album=<factory>, song=<factory>)
- Parameters
- Return type
None
- album: List[sublime_music.adapters.subsonic.api_objects.Album]
- dataclass_json_config = {'letter_case': <function camelcase>}
- classmethod from_dict(kvs, *, infer_missing=False)
- classmethod from_json(s, *, parse_float=None, parse_int=None, parse_constant=None, infer_missing=False, **kw)
- classmethod schema(*, infer_missing=False, only=None, exclude=(), many=False, context=None, load_only=(), dump_only=(), partial=False, unknown=None)
- to_dict(encode_json=False)
- to_json(*, skipkeys=False, ensure_ascii=True, check_circular=True, allow_nan=True, indent=None, separators=None, default=None, sort_keys=False, **kw)
- class sublime_music.adapters.subsonic.api_objects.Song(id: str, title: str, path: Optional[str] = None, parent_id: Optional[str] = None, duration: Optional[datetime.timedelta] = None, _artist: Optional[str] = None, artist_id: Optional[str] = None, _album: Optional[str] = None, album_id: Optional[str] = None, _genre: Optional[str] = None, track: Optional[int] = None, disc_number: Optional[int] = None, year: Optional[int] = None, size: Optional[int] = None, cover_art: Optional[str] = None, user_rating: Optional[int] = None, starred: Optional[datetime.datetime] = None)[source]
Bases:
sublime_music.adapters.api_objects.Song
,dataclasses_json.api.DataClassJsonMixin
- Parameters
id (str) –
title (str) –
duration (Optional[datetime.timedelta]) –
starred (Optional[datetime.datetime]) –
- Return type
None
- __init__(id, title, path=None, parent_id=None, duration=None, _artist=None, artist_id=None, _album=None, album_id=None, _genre=None, track=None, disc_number=None, year=None, size=None, cover_art=None, user_rating=None, starred=None)
- Parameters
id (str) –
title (str) –
duration (Optional[datetime.timedelta]) –
starred (Optional[datetime.datetime]) –
- Return type
None
- album: Optional[sublime_music.adapters.subsonic.api_objects.Album]
- artist: Optional[sublime_music.adapters.subsonic.api_objects.ArtistAndArtistInfo]
- dataclass_json_config = {'letter_case': <function camelcase>}
- duration: Optional[datetime.timedelta] = None
- classmethod from_dict(kvs, *, infer_missing=False)
- classmethod from_json(s, *, parse_float=None, parse_int=None, parse_constant=None, infer_missing=False, **kw)
- genre: Optional[sublime_music.adapters.subsonic.api_objects.Genre]
- classmethod schema(*, infer_missing=False, only=None, exclude=(), many=False, context=None, load_only=(), dump_only=(), partial=False, unknown=None)
- starred: Optional[datetime.datetime] = None
- to_dict(encode_json=False)
- to_json(*, skipkeys=False, ensure_ascii=True, check_circular=True, allow_nan=True, indent=None, separators=None, default=None, sort_keys=False, **kw)
- sublime_music.adapters.subsonic.api_objects.translation_function(t)