mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-18 06:54:15 +00:00
- Implement Playlist class with create, modify, delete, appendItem, and removeItem - Refactor lyrics endpoints to use video_starts_at instead of sync_audio_at - Improve LRC parsing and timing logic for synced lyrics - Fix track and release data ordering and assignment - Remove unused imports and minor code cleanup
18 lines
454 B
JavaScript
18 lines
454 B
JavaScript
import { Track, Playlist, MusicRelease } from "@db_models"
|
|
|
|
import toggleFavorite from "./methods/toggleFavorite"
|
|
import getUserLibrary from "./methods/getUserLibrary"
|
|
import isFavorite from "./methods/isFavorite"
|
|
|
|
export default class Library {
|
|
static kindToModel = {
|
|
tracks: Track,
|
|
playlists: Playlist,
|
|
releases: MusicRelease,
|
|
}
|
|
|
|
static toggleFavorite = toggleFavorite
|
|
static getUserLibrary = getUserLibrary
|
|
static isFavorite = isFavorite
|
|
}
|