fix(search): added if-null check for playlist video count #317
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This reverts to the previous functionality of checking for
null
and returning0
when parsing a playlist's video count from the search page. Some auto-generated playlists currently returnMix
, rather than an actual video count, so in future, perhaps it would make sense to add some sort of indicator toSearchPlaylist
to denote this, or even return-1
instead.Closes #315.