-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d8d4fcf
commit f5ff9d5
Showing
25 changed files
with
356 additions
and
126 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,31 @@ | ||
# NekoTube | ||
|
||
WIP | ||
|
||
## [Try it out here](https://tube.deniz.blue) | ||
|
||
## TODO | ||
|
||
- [x] LightTube support | ||
- [x] Invidious support | ||
- [ ] PokeTube support | ||
- [ ] Redirector | ||
- [x] Custom Instances | ||
- [x] Search | ||
- [ ] Search continuation | ||
- [x] Search Suggestions | ||
- [x] Comments | ||
- [x] Comments continuation | ||
- [x] Chapters from description | ||
- [x] Chapters from comments | ||
- [ ] User defined chapters | ||
- [ ] SponsorBlock segments | ||
- [ ] SponsorBlock skipping | ||
- [ ] DeArrow implementation | ||
- [ ] Progressbar hover tooltip | ||
- [ ] Storyboards | ||
- [ ] DASH playback | ||
- [ ] HLS playback | ||
- [ ] Captions | ||
- [ ] End screen items | ||
- [ ] Timestamp hovering |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
const RETURN_YOUTUBE_DISLIKE_API_URL = "https://returnyoutubedislikeapi.com"; | ||
|
||
export interface DislikeAPIResponse { | ||
id: string; | ||
dateCreated: string; | ||
likes: number; | ||
dislikes: number; | ||
rating: number; | ||
viewCount: number; | ||
deleted: boolean; | ||
}; | ||
|
||
export class DislikeAPI { | ||
url: string; | ||
|
||
constructor(url = RETURN_YOUTUBE_DISLIKE_API_URL) { | ||
this.url = url; | ||
} | ||
|
||
request = async <T>(path: string, opts?: { | ||
query: Record<string, string>; | ||
signal?: AbortSignal; | ||
}) => { | ||
let url = new URL(this.url + "/" + path); | ||
|
||
for(let [k,v] of Object.entries(opts?.query || {})) | ||
url.searchParams.set(k, v); | ||
|
||
let res = await fetch(url, { | ||
signal: opts?.signal, | ||
}); | ||
|
||
return await res.json() as T; | ||
} | ||
|
||
async getDislikes(videoId: string) { | ||
return await this.request("Votes", { query: { videoId } }) as DislikeAPIResponse; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.