mirror of https://github.com/preservetube/auto.git
fully remove youtube.js
This commit is contained in:
parent
7791f92a56
commit
e14f9a74fa
|
|
@ -1,4 +1,3 @@
|
||||||
import { Innertube } from 'youtubei.js'
|
|
||||||
import healthStatus from '@/utils/health';
|
import healthStatus from '@/utils/health';
|
||||||
import { db } from '@/utils/database'
|
import { db } from '@/utils/database'
|
||||||
import { getChannelVideos } from './utils/metadata';
|
import { getChannelVideos } from './utils/metadata';
|
||||||
|
|
@ -8,7 +7,6 @@ if (healthStatus[process.env.METADATA!] != 'healthy') {
|
||||||
websocket = process.env.ALTERNATIVE_WEBSOCKET!
|
websocket = process.env.ALTERNATIVE_WEBSOCKET!
|
||||||
}
|
}
|
||||||
|
|
||||||
const yt = await Innertube.create();
|
|
||||||
const channels = await db.selectFrom('autodownload')
|
const channels = await db.selectFrom('autodownload')
|
||||||
.selectAll()
|
.selectAll()
|
||||||
.execute()
|
.execute()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue