Remove a duplicate PlaylistTrack object
This commit is contained in:
parent
c49f201835
commit
4896be77e0
@ -1,13 +1,11 @@
|
|||||||
"""
|
"""
|
||||||
Classes designed to manage track-like objects
|
Classes designed to manage track-like objects
|
||||||
"""
|
"""
|
||||||
from datetime import datetime
|
|
||||||
from typing import Dict, List, Optional, Union
|
from typing import Dict, List, Optional, Union
|
||||||
|
|
||||||
from pydantic import BaseModel, Field
|
from pydantic import BaseModel, Field
|
||||||
|
|
||||||
from .album import SearchAlbum
|
from .album import SearchAlbum
|
||||||
from .user import PublicUser
|
|
||||||
|
|
||||||
|
|
||||||
class SimplifiedTrack(BaseModel):
|
class SimplifiedTrack(BaseModel):
|
||||||
@ -46,15 +44,3 @@ class Track(SimplifiedTrack):
|
|||||||
album: SearchAlbum
|
album: SearchAlbum
|
||||||
external_ids: Dict[str, str]
|
external_ids: Dict[str, str]
|
||||||
popularity: int
|
popularity: int
|
||||||
|
|
||||||
|
|
||||||
class PlaylistTrack(BaseModel):
|
|
||||||
"""
|
|
||||||
Track as returned from a playlist
|
|
||||||
"""
|
|
||||||
|
|
||||||
added_at: datetime
|
|
||||||
added_by: PublicUser
|
|
||||||
is_local: bool
|
|
||||||
primary_color: Optional[str]
|
|
||||||
track: Track
|
|
||||||
|
Loading…
Reference in New Issue
Block a user