mirror of
https://github.com/YuzuZensai/play-dl-test.git
synced 2026-01-31 14:58:05 +00:00
Build with tsup, fix warnings and cleanup imports
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
import fs from 'node:fs';
|
||||
import { existsSync, readFileSync } from 'node:fs';
|
||||
import { StreamType } from '../YouTube/stream';
|
||||
import { request } from '../Request';
|
||||
import { SoundCloudPlaylist, SoundCloudTrack, SoundCloudTrackFormat, SoundCloudStream } from './classes';
|
||||
let soundData: SoundDataOptions;
|
||||
if (fs.existsSync('.data/soundcloud.data')) {
|
||||
soundData = JSON.parse(fs.readFileSync('.data/soundcloud.data').toString());
|
||||
if (existsSync('.data/soundcloud.data')) {
|
||||
soundData = JSON.parse(readFileSync('.data/soundcloud.data').toString());
|
||||
}
|
||||
|
||||
interface SoundDataOptions {
|
||||
|
||||
Reference in New Issue
Block a user