-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
150ca66
commit 5820f19
Showing
2 changed files
with
68 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
from dataclasses import dataclass | ||
from datetime import datetime | ||
from typing import List | ||
|
||
|
||
@dataclass | ||
class Metadata: | ||
trackId: str | ||
length: int # Duration in microseconds | ||
artUrl: str | ||
album: str | ||
albumArtist: List[str] | ||
artist: List[str] | ||
asText: str # Track lyrics (should not include timeline) | ||
audioBPM: int # The speed of the music, in beats per minute | ||
autoRating: float # An automatically-generated rating (0.0-1.0) | ||
comment: List[str] | ||
composer: List[str] | ||
contentCreated: datetime | ||
discNumber: int # The disc number on the album that this track is from | ||
firstUsed: datetime # When the track was first played. | ||
lastUsed: datetime # When the track was last played. | ||
genre: List[str] | ||
lyricist: List[str] | ||
title: str | ||
trackNumber: int | ||
url: str | ||
useCount: int | ||
userRating: float |