File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -387,6 +387,7 @@ class Track(
387387 parentTitle (str): Name of the album for the track.
388388 primaryExtraKey (str) API URL for the primary extra for the track.
389389 ratingCount (int): Number of ratings contributing to the rating score.
390+ skipCount (int): Number of times the track has been skipped.
390391 viewOffset (int): View offset in milliseconds.
391392 year (int): Year the track was released.
392393 """
@@ -418,6 +419,7 @@ def _loadData(self, data):
418419 self .parentTitle = data .attrib .get ('parentTitle' )
419420 self .primaryExtraKey = data .attrib .get ('primaryExtraKey' )
420421 self .ratingCount = utils .cast (int , data .attrib .get ('ratingCount' ))
422+ self .skipCount = utils .cast (int , data .attrib .get ('skipCount' ))
421423 self .viewOffset = utils .cast (int , data .attrib .get ('viewOffset' , 0 ))
422424 self .year = utils .cast (int , data .attrib .get ('year' ))
423425
Original file line number Diff line number Diff line change @@ -298,10 +298,11 @@ def test_audio_Track_attrs(album):
298298 assert track .parentTitle == "Layers"
299299 assert track .playlistItemID is None
300300 assert track .primaryExtraKey is None
301- # assert utils.is_int(track.ratingCount)
301+ assert utils .is_int (track .ratingCount ) or track . ratingCount is None
302302 assert utils .is_int (track .ratingKey )
303303 assert track ._server ._baseurl == utils .SERVER_BASEURL
304304 assert track .sessionKey is None
305+ assert track .skipCount is None
305306 assert track .summary == ""
306307 if track .thumb :
307308 assert utils .is_thumb (track .thumb )
You can’t perform that action at this time.
0 commit comments