File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -47,6 +47,7 @@ def test_album(session):
4747 assert album .release_date == datetime .datetime (2011 , 9 , 22 )
4848 assert album .available_release_date == datetime .datetime (2011 , 9 , 22 )
4949 assert album .copyright == "Sinuz Recordings (a division of HITT bv)"
50+ assert album .upc == "3610151683488"
5051 assert album .version == "Deluxe"
5152 assert album .cover == "30d83a8c-1db6-439d-84b4-dbfb6f03c44c"
5253 assert album .video_cover is None
Original file line number Diff line number Diff line change @@ -62,6 +62,7 @@ class Album:
6262 tidal_release_date : Optional [datetime ] = None
6363 release_date : Optional [datetime ] = None
6464 copyright = None
65+ upc = None
6566 version = None
6667 explicit : Optional [bool ] = True
6768 universal_product_number : Optional [int ] = - 1
@@ -124,6 +125,7 @@ def parse(
124125 self .num_videos = json_obj .get ("numberOfVideos" )
125126 self .num_volumes = json_obj .get ("numberOfVolumes" )
126127 self .copyright = json_obj .get ("copyright" )
128+ self .upc = json_obj .get ("upc" )
127129 self .version = json_obj .get ("version" )
128130 self .explicit = json_obj .get ("explicit" )
129131 self .universal_product_number = json_obj .get ("upc" )
You can’t perform that action at this time.
0 commit comments