From 877284919ce304d9551bebd51931cea0e6365c50 Mon Sep 17 00:00:00 2001 From: Augsorn Chanklad Date: Wed, 13 Mar 2024 17:44:15 +0700 Subject: [PATCH] Add get method hasYoutubePV --- lib/src/features/songs/domain/song.dart | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/src/features/songs/domain/song.dart b/lib/src/features/songs/domain/song.dart index 1a3cabb8..ca210948 100644 --- a/lib/src/features/songs/domain/song.dart +++ b/lib/src/features/songs/domain/song.dart @@ -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;