Initial commit
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
import '../../core/contracts/library.dart';
|
||||
|
||||
|
||||
String? buildTmdbCtaLabel({
|
||||
required String mediaType,
|
||||
required TmdbLibraryHit? primaryHit,
|
||||
required int hitCount,
|
||||
}) {
|
||||
if (primaryHit == null) return null;
|
||||
final hasProgress = (primaryHit.playbackPositionTicks ?? 0) > 0;
|
||||
return hasProgress ? '继续播放' : '播放';
|
||||
}
|
||||
Reference in New Issue
Block a user