mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-12-10 17:07:30 +00:00
Remove the unrelated commits
see https://github.com/KRTirtho/spotube/pull/1187
This commit is contained in:
parent
24955aa213
commit
23268ffe36
@ -14,7 +14,6 @@ import 'package:spotube/models/local_track.dart';
|
||||
import 'package:spotube/models/logger.dart';
|
||||
|
||||
import 'package:spotube/models/skip_segment.dart';
|
||||
import 'package:spotube/models/source_match.dart';
|
||||
|
||||
import 'package:spotube/provider/blacklist_provider.dart';
|
||||
import 'package:spotube/provider/palette_provider.dart';
|
||||
@ -450,20 +449,6 @@ class ProxyPlaylistNotifier extends PersistedStateNotifier<ProxyPlaylist>
|
||||
makeAppropriateSource(newTrack),
|
||||
);
|
||||
|
||||
// update cache: first remove track, then add the new source
|
||||
await SourceMatch.box.delete(state.activeTrack?.id);
|
||||
await SourceMatch.box.put(
|
||||
newTrack.id,
|
||||
SourceMatch(
|
||||
id: newTrack.id!,
|
||||
sourceType: SourceType.youtube,
|
||||
createdAt: DateTime.now(),
|
||||
sourceId: sibling.id,
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Future<void> next() async {
|
||||
if (audioPlayer.nextSource == null) return;
|
||||
final oldTrack = mapSourcesToTracks([audioPlayer.nextSource!]).firstOrNull;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user