mirror of
https://github.com/Sarsoo/Spotify.NET.git
synced 2024-10-17 07:23:08 +01:00
Track Length check to confirm video ad is playing
This commit is contained in:
parent
006f085c4b
commit
be4ae2baaf
@ -24,10 +24,14 @@ namespace SpotifyAPI.Local.Models
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Checks if the track is an advert
|
/// Checks if the track is an advert
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <returns>true if the track is an advert, fals otherwise</returns>
|
/// <returns>true if the track is an advert, false otherwise</returns>
|
||||||
public bool IsAd()
|
public bool IsAd()
|
||||||
{
|
{
|
||||||
return TrackType == "ad";
|
if (TrackType == "ad")
|
||||||
|
return true;
|
||||||
|
if (Length == 0)
|
||||||
|
return true;
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
Loading…
Reference in New Issue
Block a user