mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-26 05:16:01 +08:00
opt audio playlist
Closes #1547 Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -1,10 +1,38 @@
|
||||
import 'package:PiliPlus/grpc/bilibili/app/listener/v1.pbenum.dart'
|
||||
show PlaylistSource;
|
||||
|
||||
enum SourceType {
|
||||
normal(-1),
|
||||
archive(1),
|
||||
watchLater(2),
|
||||
fav(3),
|
||||
playlist(3);
|
||||
normal(
|
||||
mediaType: -1,
|
||||
playlistSource: PlaylistSource.UP_ARCHIVE,
|
||||
),
|
||||
archive(
|
||||
mediaType: 1,
|
||||
extraId: 1,
|
||||
playlistSource: PlaylistSource.MEDIA_LIST,
|
||||
),
|
||||
watchLater(
|
||||
mediaType: 2,
|
||||
extraId: 2,
|
||||
playlistSource: PlaylistSource.MEDIA_LIST,
|
||||
),
|
||||
fav(
|
||||
mediaType: 3,
|
||||
extraId: 2,
|
||||
playlistSource: PlaylistSource.USER_FAVOURITE,
|
||||
),
|
||||
playlist(
|
||||
mediaType: 3,
|
||||
extraId: 4,
|
||||
playlistSource: PlaylistSource.MEDIA_LIST,
|
||||
);
|
||||
|
||||
final int mediaType;
|
||||
const SourceType(this.mediaType);
|
||||
final int? extraId;
|
||||
final PlaylistSource playlistSource;
|
||||
const SourceType({
|
||||
required this.mediaType,
|
||||
this.extraId,
|
||||
required this.playlistSource,
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user