Skip to content

Commit

Permalink
code: give PlaylistManager<T, E> what it wants
Browse files Browse the repository at this point in the history
  • Loading branch information
MSOB7YY committed Nov 5, 2024
1 parent 0508392 commit d993879
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion lib/class/track.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import 'dart:io';

import 'package:history_manager/history_manager.dart';
import 'package:intl/intl.dart';
import 'package:playlist_manager/playlist_manager.dart';

import 'package:namida/class/faudiomodel.dart';
import 'package:namida/class/folder.dart';
Expand All @@ -15,7 +16,7 @@ import 'package:namida/core/constants.dart';
import 'package:namida/core/enums.dart';
import 'package:namida/core/extensions.dart';

class TrackWithDate extends Selectable<Map<String, dynamic>> implements ItemWithDate {
class TrackWithDate extends Selectable<Map<String, dynamic>> implements ItemWithDate, PlaylistItemWithDate {
@override
Track get track => _track;

Expand Down
3 changes: 2 additions & 1 deletion lib/youtube/class/youtube_id.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import 'dart:io';

import 'package:history_manager/history_manager.dart';
import 'package:playlist_manager/module/playlist_id.dart';
import 'package:playlist_manager/playlist_manager.dart';
import 'package:share_plus/share_plus.dart';
import 'package:youtipie/core/url_utils.dart';

Expand All @@ -12,7 +13,7 @@ import 'package:namida/controller/thumbnail_manager.dart';
import 'package:namida/core/extensions.dart';
import 'package:namida/youtube/widgets/yt_thumbnail.dart';

class YoutubeID implements Playable<Map<String, dynamic>>, ItemWithDate {
class YoutubeID implements Playable<Map<String, dynamic>>, ItemWithDate, PlaylistItemWithDate {
final String id;
final YTWatch? watchNull;
final PlaylistID? playlistID;
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: namida
description: A Beautiful and Feature-rich Music Player, With YouTube & Video Support Built in Flutter
publish_to: "none"
version: 4.6.64-beta+241105210
version: 4.6.65-beta+241105212

environment:
sdk: ">=3.4.0 <4.0.0"
Expand Down

0 comments on commit d993879

Please sign in to comment.