A clean and minimal youtube frontend, without all the ads and whistles
JavaScript
chore: less logs repo during init
Christian Fei67f5eb745fbf
diff --git a/lib/repository.js b/lib/repository.jsindex 04b7945..4d08d7d 100644--- a/lib/repository.js+++ b/lib/repository.js@@ -13,25 +13,25 @@ export default class Repository {fs.mkdirSync(`${this.basePath}/videos`, { recursive: true })if (!fs.existsSync(this.paths.videos)) {- console.log('initializing ', this.paths.videos)+ // console.log('initializing ', this.paths.videos)fs.writeFileSync(this.paths.videos, '[]')}if (!fs.existsSync(this.paths.channels)) {- console.log('initializing ', this.paths.channels)+ // console.log('initializing ', this.paths.channels)fs.writeFileSync(this.paths.channels, '[]')}if (!fs.existsSync(this.paths.settings)) {- console.log('initializing ', this.paths.settings)+ // console.log('initializing ', this.paths.settings)fs.writeFileSync(this.paths.settings, JSON.stringify({"videoQuality":720}, null, 2))}try {this.videos = JSON.parse(fs.readFileSync(this.paths.videos))- console.log('read videos', this.videos.length)+ // console.log('read videos', this.videos.length)this.channels = JSON.parse(fs.readFileSync(this.paths.channels))- console.log('read channels', this.channels.length)+ // console.log('read channels', this.channels.length)this.settings = JSON.parse(fs.readFileSync(this.paths.settings))- console.log('read settings', this.settings)+ // console.log('read settings', this.settings)} catch (err) {console.error(err)}