mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-09-12 23:45:18 +00:00
fix: instance of Artist bug #1362
This commit is contained in:
parent
68374efd3e
commit
c8dd8025ec
@ -242,7 +242,7 @@ class ProxyPlaylistNotifier extends PersistedStateNotifier<ProxyPlaylist>
|
||||
}
|
||||
|
||||
final nthFetchedTrack = switch (track.runtimeType) {
|
||||
SourcedTrack => track as SourcedTrack,
|
||||
SourcedTrack() => track as SourcedTrack,
|
||||
_ => await SourcedTrack.fetchFromTrack(ref: ref, track: track),
|
||||
};
|
||||
|
||||
|
@ -2,6 +2,7 @@ import 'package:audio_service/audio_service.dart';
|
||||
import 'package:flutter_desktop_tools/flutter_desktop_tools.dart';
|
||||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||
import 'package:spotify/spotify.dart';
|
||||
import 'package:spotube/extensions/artist_simple.dart';
|
||||
import 'package:spotube/extensions/image.dart';
|
||||
import 'package:spotube/provider/proxy_playlist/proxy_playlist_provider.dart';
|
||||
import 'package:spotube/services/audio_services/mobile_audio_service.dart';
|
||||
@ -46,7 +47,7 @@ class AudioServices {
|
||||
id: track.id!,
|
||||
album: track.album?.name ?? "",
|
||||
title: track.name!,
|
||||
artist: track.artists?.toString() ?? "",
|
||||
artist: (track.artists)?.asString() ?? "",
|
||||
duration: track is SourcedTrack
|
||||
? track.sourceInfo.duration
|
||||
: Duration(milliseconds: track.durationMs ?? 0),
|
||||
|
Loading…
Reference in New Issue
Block a user