Skip to content

Commit

Permalink
Add get method hasYoutubePV
Browse files Browse the repository at this point in the history
  • Loading branch information
up2code committed Mar 13, 2024
1 parent 6494bfc commit 8772849
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/src/features/songs/domain/song.dart
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ extension SongExtended on Song {
String get pvSearchQuery =>
(pvs.isNotEmpty) ? pvs[0].name : '$artistString+$name';

bool get hasYoutubePV => youtubeUrl != null;

String? get youtubeUrl {
if(pvs.isEmpty) {
return null;
Expand Down

0 comments on commit 8772849

Please sign in to comment.