Commit graph

36 commits

Author SHA1 Message Date
wukko
d27366dc8a
stream/manage: remove unnecessary variable from catch 2024-04-27 18:58:03 +06:00
dumbmoron
ec746f57a7
stream/manage: pass service name to internal stream 2024-04-27 10:48:22 +00:00
dumbmoron
66e58d21ec
feat: internal streams 2024-04-26 11:53:50 +00:00
wukko
2ce033b754 stream/manage: fix and clean up verifyStream function
- no longer throws an incorrect type of error
- checks whether cache exists before attempting to decrypt it
2024-03-22 22:43:56 +06:00
jj
3e36c5e2ca
Merge branch '7.11' into encrypt-stream
Signed-off-by: jj <log@riseup.net>
2024-03-05 17:58:37 +01:00
dumbmoron
7fab5a37ff
crypto: use secret directly instead of deriving key 2024-03-05 16:49:00 +00:00
wukko
f4acd2f141 stream/manage: replace base64 with base64url 2024-03-05 21:15:13 +06:00
wukko
6ed03b0035 crypto: rename sha256 func to generateHmac
it has always been actually hmac
2024-03-05 20:55:17 +06:00
wukko
9211b39588 createStream: removed an outdated variable 2024-03-05 20:45:54 +06:00
wukko
dbe2a02152 stream/manage: remove unnecessary Math.floor for timestamp from prehistoric times 2024-03-05 20:41:08 +06:00
wukko
e16ee6c1d3 env: readable environment variables in all files
apiPort -> API_PORT
apiURL -> API_URL
apiName -> API_NAME
cors -> ENABLE_CORS
cookiePath -> COOKIE_PATH

webPort -> WEB_PORT
webURL -> WEB_URL
showSponsors -> SHOW_SPONSORS
isBeta -> IS_BETA
2024-03-05 19:08:59 +06:00
wukko
e282a9183f stream: encrypt cached stream data & clean up related modules
also limited CORS methods to GET and POST
2024-03-05 18:14:26 +06:00
dumbmoron
b0996b85fb
page, stream: drop leftover selfURL usage 2024-01-14 23:02:49 +00:00
wukko
e27c02c55e twitter & stream: formatting 2023-12-17 23:50:04 +06:00
wukko
5bd50fd55f twitter: remux all videos
- increased stream link lifespan to 90 seconds
- decreased max video duration back to 3 hours
2023-12-02 20:44:19 +06:00
wukko
65161107fa 6.2: no more ip verification
- removed ip verification and updated privacy policy to reflect this change.
- streamable links now last for 20 seconds instead of 2 minutes.
- cleaned up stream verification algorithm. now the same function isn't run 4 times in a row.
- removed deprecated way of hosting a cobalt instance.
2023-06-27 19:56:15 +06:00
wukko
038c07c1b8 attempt to fix the weird issue with authorization 2023-06-22 20:24:01 +06:00
wukko
92c0e1d7b7 ugh 2023-06-07 22:06:21 +06:00
wukko
4d369170ff separated web and api, build improvements
wip:
- separate web and api servers.
- script for building static pages.
- building improvements.
- async localisation preloading.
2023-05-19 16:13:38 +06:00
wukko
6e097de2db 5.4.7: added support for ancient vk videos & salt improvements
- now you can download 240p hardbass videos from 2008!
- implemented updated stream salt and ip salt properly
2023-04-29 21:30:59 +06:00
wukko
d8e9fc16d0 make stream salt change on every server start 2023-04-29 17:40:08 +06:00
wukko
68703ae300 5.3.2: link sharing and nanoid
- you can now share video links directly from cobalt!
- cobalt is now using nanoid for stream ids instead of giant sha256 hashes
- one more fix to address the copy animation, this time on pc
2023-04-08 22:55:44 +06:00
wukko
c57d16b615 added 5.0 changelog 2023-02-13 21:56:52 +06:00
wukko
dacaaf5b27 5.0-dev1
- rewrote and/or optimized all service modules
- rewrote matching and processing modules to optimize readability and performance
- added support for reddit gifs
- fixed various issues with twitter error explanations
- code optimizations and enhancements (such as finally getting rid of ==, prettier and more readable formatting, etc)
- added branch information
- all functions in currentCommit submodule run only once and cache received data
- added a test script. only twitter and soundcloud are 100% covered and tested atm, will add tests (and probably fixes) for the rest of services in next commits
- changed some localization strings for russian
- added more clarity to rate limit message
- moved services folder into processing folder
2023-02-12 13:40:49 +06:00
wukko
3432c91482 refactoring & fixes
- added duration check to vimeo module
- fixed quality picking in vimeo module for progressive video type
- dropping requests from ie users instead of redirecting
- probably something else but i forgot to be honest
2023-02-09 20:45:17 +06:00
wukko
6b87c7babd 4.8: new about popup and other visual improvements 2023-01-30 00:17:33 +06:00
wukko
3b5bf51ba7 4.7
fixes #63, #67, #68, and #71, among other issues
2023-01-14 00:34:48 +06:00
wukko
7f1ba6b36b 4.6.0: video muting and soundcloud client_id 2022-12-17 17:09:49 +06:00
wukko
316e6423f4 4.3: open api + post method for main endpoint 2022-11-12 22:40:11 +06:00
wukko
02529c0b54 4.1: better tiktok image downloads and celebrations 2022-10-27 22:27:20 +06:00
wukko
c532062aa2 twitter spaces and a ton of improvements 2022-10-24 19:03:11 +06:00
wukko
54c14232d5 3.0
probably the biggest update in history of cobalt
2022-08-12 19:36:19 +06:00
wukko
c0289b6a8c basically new readme and more languages
- indonesian localization by @LyfeV
- rewrote readme
- added new line at the end for files that were missing it
2022-08-01 21:48:37 +06:00
wukko
a4a9af6120 remade localization system once again
- new localization system: fast, dynamic, way more organized
- localization strings are WAY more descriptive
- it's now easier to add support for other languages (just one loc file instead of five)
- localization now falls back to english if localized string isnt available
- got rid of all static language selectors (probably)
- slightly updated english and russian strings
- miscellaneous settings items have been bundled together and moved to the bottom, cause they're used the least
- bottom links should no longer touch the popup border on overflow
- rearranged popup order in the rendered page
- bumped version up to 2.2.5

if you see strings that are like this: !!EXAMPLE!! or withoutspace please file an issue on github
2022-07-24 16:54:05 +06:00
wukko
8d275b0213 reddit is back!
- fixed reddit support (i had no idea older posts had a different naming pattern for media files)
- improved russian localisation
- now frontend handles more unexpected api errors in case something goes absolutely wrong
2022-07-22 14:05:36 +06:00
wukko
67223b3acd internal changes only
- remade config module
- renamed loc to i18n because that's what all developers do
- moved code to src to make repo look cleaner
- fixed some i18n strings
2022-07-17 17:08:49 +06:00
Renamed from modules/stream/manage.js (Browse further)