Code Monkey home page Code Monkey logo

youtube-playlist-tracker's People

Contributors

on4r avatar

Watchers

 avatar

youtube-playlist-tracker's Issues

Improve logs

Add info about added videos to console.log if there are less the 5 videos added.

Generalize naming

filenames, functions, variables, etc. should be the same across the board. thx.

Add validation to 'update-video' route

Validate user_title

Router.post("/videos/:id/update", async function(req, res) {
const video_id = req.params.id
const user_title = req.body.user_title
// validate user_title (serialize, escape, w/e)
try {
await Database.open()
await Database.updateVideo(video_id, {user_title})
} catch (error) {
console.log("Error while POST /videos/:id/update/", error)
} finally {
await Database.close()
}
res.redirect(`${stripQueryParams(req.headers.referer)}?updated=${video_id}`)
return
})

Fix mass delete and create

Passiert manchmal und ohne offensichtlichen Grund:

In einem update:

Deleted 474 Joint-Relations of playlist 4

und direkt danach:

Created 474 Joint-Relations 

WHY?!

Potential error if youtube-dl is outdated

Attention:

// start the async "youtube-dl and fill database" script
await Controller.parsePlaylistAndUpdateTables(playlist)

Here we call the update playlist script without checking if youtube-dl is up-to-date. This could lead to an error.
The same thing applys if you call the npm scripts to update playlist(s).

Currently we are only checking for updates in the cron module.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.