MORE EXTRA STUFF REMOVED!

This commit is contained in:
Bingus_Violet 2024-02-28 09:33:41 -06:00
parent fd516111d8
commit e9e6231744

View file

@ -10,18 +10,18 @@ const PORT = process.env.PORT || 8080
const staticpath = path.join(__dirname, 'static') const staticpath = path.join(__dirname, 'static')
var mostRecentVideo = undefined // var mostRecentVideo = undefined
var config = JSON.parse(fs.readFileSync(path.join(__dirname, 'config.json'))) var config = JSON.parse(fs.readFileSync(path.join(__dirname, 'config.json')))
var thumborInstances = config.thumborInstances // var thumborInstances = config.thumborInstances
var thumbCount = 0 // var thumbCount = 0
function getThumbor() { // function getThumbor() {
thumbCount += 1 // thumbCount += 1
return thumborInstances[thumbCount % thumborInstances.length] + "unsafe" // return thumborInstances[thumbCount % thumborInstances.length] + "unsafe"
} // }
// async function getMostRecentVid() { // async function getMostRecentVid() {
// innertube = await ytjs.Innertube.create() // innertube = await ytjs.Innertube.create()
@ -39,7 +39,7 @@ app.listen(PORT, () => {
}) })
var cachePath = path.join(staticpath, 'cached') var cachePath = path.join(staticpath, 'cached')
var imgPath = path.join(staticpath, 'imgs') // var imgPath = path.join(staticpath, 'imgs')
if (!fs.existsSync(cachePath)) { if (!fs.existsSync(cachePath)) {
fs.mkdirSync(cachePath) fs.mkdirSync(cachePath)