mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-09-12 23:45:18 +00:00
feat: remove macos bounds for reading and writing audio metadata
This commit is contained in:
parent
5866b0fcd6
commit
16064f68e8
@ -13,7 +13,6 @@ import 'package:spotube/models/CurrentPlaylist.dart';
|
||||
import 'package:spotube/models/Logger.dart';
|
||||
import 'package:spotube/provider/Playback.dart';
|
||||
import 'package:spotube/provider/UserPreferences.dart';
|
||||
import 'package:spotube/utils/platform.dart';
|
||||
import 'package:spotube/utils/primitive_utils.dart';
|
||||
import 'package:spotube/utils/type_conversion_utils.dart';
|
||||
|
||||
@ -45,17 +44,6 @@ final localTracksProvider = FutureProvider<List<Track>>((ref) async {
|
||||
}
|
||||
final entities = downloadDir.listSync(recursive: true);
|
||||
|
||||
// TODO: Add MacOS audiotag reading support
|
||||
if (kIsMacOS) {
|
||||
return entities
|
||||
.map(
|
||||
(entity) => TypeConversionUtils.localTrack_X_Track(
|
||||
File(entity.path),
|
||||
),
|
||||
)
|
||||
.toList();
|
||||
}
|
||||
|
||||
final filesWithMetadata = (await Future.wait(
|
||||
entities.map((e) => File(e.path)).where((file) {
|
||||
final mimetype = lookupMimeType(file.path);
|
||||
|
@ -13,7 +13,6 @@ import 'package:spotube/models/SpotubeTrack.dart';
|
||||
import 'package:spotube/provider/Playback.dart';
|
||||
import 'package:spotube/provider/UserPreferences.dart';
|
||||
import 'package:spotube/provider/YouTube.dart';
|
||||
import 'package:spotube/utils/platform.dart';
|
||||
import 'package:spotube/utils/type_conversion_utils.dart';
|
||||
import 'package:youtube_explode_dart/youtube_explode_dart.dart' hide Comment;
|
||||
|
||||
@ -94,9 +93,6 @@ class Downloader with ChangeNotifier {
|
||||
"[addToQueue] Download of ${file.path} is done successfully",
|
||||
);
|
||||
|
||||
// TODO: Add MacOS audiotag writing support
|
||||
if (kIsMacOS) return;
|
||||
|
||||
logger.v(
|
||||
"[addToQueue] Writing metadata to ${file.path}",
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user