Minor changes and fixes
- Added page for no results - Deleted unused Images - updated readme Todo list - Minor code format change to index.js
This commit is contained in:
parent
d2129512ae
commit
50bbb2199b
4 changed files with 6 additions and 4 deletions
|
@ -13,14 +13,17 @@ Simpletube is a NodeJS youtube client without ads or client-sided javascript.
|
|||
- [x] Add searching of videos
|
||||
- [x] Add searching of channels
|
||||
- [ ] Add searching of playlists
|
||||
- [ ] Add searching of lives
|
||||
- [ ] Add searching of lives (Note: Searching of lives has been implemented before, but I want to implement it in the same update as actual stream support.)
|
||||
- [ ] Add specific filter options
|
||||
- [ ] Add a screen for when a search fails
|
||||
- [x] Add a screen for when a search fails
|
||||
- [ ] Add mutiple search result pages
|
||||
## Caching
|
||||
- [x] "Cache" videos
|
||||
- [ ] Add cache options
|
||||
- [ ] Add options for sized based caching
|
||||
## Channels
|
||||
- [ ] Show Links
|
||||
## Other
|
||||
- [x] Add viewing of channels (Experimental)
|
||||
- [ ] Make documentation
|
||||
- [ ] Make links clickable by default
|
3
index.js
3
index.js
|
@ -253,6 +253,7 @@ app.get("/video", async (req, res) => {
|
|||
var range = req.headers.range
|
||||
|
||||
res.setHeader("X-Accel-Buffering", "no")
|
||||
res.setHeader("Content-Type", "video/mp4")
|
||||
|
||||
if (ytdl.validateURL(id)) {
|
||||
id = ytdl.getVideoID(id)
|
||||
|
@ -265,8 +266,6 @@ app.get("/video", async (req, res) => {
|
|||
return
|
||||
}
|
||||
|
||||
res.setHeader("Content-Type", "video/mp4")
|
||||
|
||||
if (range) {
|
||||
function ready(vidpath) {
|
||||
if (fs.existsSync(vidpath)) {
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 7.1 KiB |
Binary file not shown.
Before Width: | Height: | Size: 1.1 KiB |
Loading…
Reference in a new issue