UNPKG

larakazagumo

Version:

A shoukaku wrapper with built-in queue support.

28 lines (27 loc) 941 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.KazagumoUtils = void 0; class KazagumoUtils { static convertKazagumoTrackToTrack(track) { var _a, _b, _c; if (track.info) return track; track = track; return { encoded: track.track, info: { isSeekable: track.isSeekable, isStream: track.isStream, title: track.title, uri: track.uri, identifier: track.identifier, sourceName: track.sourceName, author: (_a = track.author) !== null && _a !== void 0 ? _a : '', length: (_b = track.length) !== null && _b !== void 0 ? _b : 0, position: (_c = track.position) !== null && _c !== void 0 ? _c : 0, }, pluginInfo: {}, }; } } exports.KazagumoUtils = KazagumoUtils;