mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-09-13 16:05:18 +00:00

* feat: add playback history provider * feat: implement recently played section * refactor: use route names * feat: add stats summary and top tracks/artists/albums * feat: add top date based filtering * feat: add stream money calculation * refactor: place search in mobile navbar and settings in home appbar * feat: add individual minutes and streams page * feat(stats): add individual minutes and streams page * chore: default period to 1 month * feat: add text to explain user how hypothetical fees are calculated * chore: ensure usage of route names instead of direct paths * cd: add cache key * cd: remove media_kit_event_loop from git
22 lines
557 B
Dart
22 lines
557 B
Dart
import 'package:spotify/spotify.dart';
|
|
|
|
extension AlbumExtensions on AlbumSimple {
|
|
Album toAlbum() {
|
|
Album album = Album();
|
|
album.albumType = albumType;
|
|
album.artists = artists;
|
|
album.availableMarkets = availableMarkets;
|
|
album.externalUrls = externalUrls;
|
|
album.href = href;
|
|
album.id = id;
|
|
album.images = images;
|
|
album.name = name;
|
|
album.releaseDate = releaseDate;
|
|
album.releaseDatePrecision = releaseDatePrecision;
|
|
album.tracks = tracks;
|
|
album.type = type;
|
|
album.uri = uri;
|
|
return album;
|
|
}
|
|
}
|