File tree 2 files changed +3
-0
lines changed
2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -47,6 +47,7 @@ def test_album(session):
47
47
assert album .release_date == datetime .datetime (2011 , 9 , 22 )
48
48
assert album .available_release_date == datetime .datetime (2011 , 9 , 22 )
49
49
assert album .copyright == "Sinuz Recordings (a division of HITT bv)"
50
+ assert album .upc == "3610151683488"
50
51
assert album .version == "Deluxe"
51
52
assert album .cover == "30d83a8c-1db6-439d-84b4-dbfb6f03c44c"
52
53
assert album .video_cover is None
Original file line number Diff line number Diff line change @@ -62,6 +62,7 @@ class Album:
62
62
tidal_release_date : Optional [datetime ] = None
63
63
release_date : Optional [datetime ] = None
64
64
copyright = None
65
+ upc = None
65
66
version = None
66
67
explicit : Optional [bool ] = True
67
68
universal_product_number : Optional [int ] = - 1
@@ -124,6 +125,7 @@ def parse(
124
125
self .num_videos = json_obj .get ("numberOfVideos" )
125
126
self .num_volumes = json_obj .get ("numberOfVolumes" )
126
127
self .copyright = json_obj .get ("copyright" )
128
+ self .upc = json_obj .get ("upc" )
127
129
self .version = json_obj .get ("version" )
128
130
self .explicit = json_obj .get ("explicit" )
129
131
self .universal_product_number = json_obj .get ("upc" )
You can’t perform that action at this time.
0 commit comments