Commit graph

91 commits

Author SHA1 Message Date
dumbmoron
dd56ae60e7
stream/internal: don't copy Host header from request
its basically always gonna be localhost:9k
2024-04-27 11:33:22 +00:00
dumbmoron
3d3a717f3e
stream/internal: also copy content-length where applicable 2024-04-27 11:11:05 +00:00
dumbmoron
6eb4af125b
stream/internal: special youtube stream handling 2024-04-27 11:00:45 +00:00
dumbmoron
49eaa7d4ed
stream: extract headers to shared file 2024-04-27 10:59:27 +00:00
dumbmoron
ec746f57a7
stream/manage: pass service name to internal stream 2024-04-27 10:48:22 +00:00
dumbmoron
5f1dc89c42
stream/types: attempt to pass through headers only if they exist 2024-04-27 10:47:09 +00:00
dumbmoron
66e58d21ec
feat: internal streams 2024-04-26 11:53:50 +00:00
wukko
43101b604c
stream/types: proper headers for all http requests & refactor 2024-04-26 15:07:32 +06: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
wukko
8385cd2663 package: remove unnecessary abort-controller dependency 2024-03-16 22:05:28 +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
db6a75529d
make all environment variables consistent & list them in docs (#380) 2024-03-05 20:19:01 +06:00
dumbmoron
a97733d257
feat: add dailymotion support
closes #343
2024-03-05 13:23:24 +00: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
d70754238e
stream: fix bilibili downloads
fixes #302
2024-02-24 18:09:46 +00:00
wukko
a14116e902 types: actually unwrap args 2024-01-21 22:37:55 +06:00
wukko
8b6e147b4b types: add nice priority to ffmpeg commands 2024-01-21 22:35:42 +06:00
dumbmoron
2acbbadbcb
Merge branch 'twitter-gif' into html-cleanup 2024-01-17 12:08:01 +01:00
wukko
a63a35c74d twitter: add option to convert .mp4 to .gif 2024-01-17 11:38:51 +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
3e8c059a3a vimeo: fix parsing and resolution in filename
- all videos/audios should now be downloadable
- proper resolution is now displayed in basic and pretty filename styles
2023-12-02 21:52:38 +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
dumbmoron
7a3be8b981
stream: don't listen for close event for audio 2023-11-06 01:48:49 +00:00
wukko
4a9e4cd915
types: make streamVideoOnly more readable 2023-11-06 01:37:27 +00:00
wukko
b662f472dd
types: added comments 2023-11-06 01:37:27 +00:00
dumbmoron
fb69dbdb4f
stream: use strings for signals instead of number
hopefully a little more explanatory than "9"
2023-11-06 01:37:27 +00:00
dumbmoron
2bd8a0bccd
stream: use descriptive variables for i/o for better readability 2023-11-06 01:37:27 +00:00
dumbmoron
f66ed5c414
stream: generalize pipe event handling 2023-11-06 01:37:27 +00:00
dumbmoron
7c871b6b85
stream: wrap abort controller in try-catch 2023-11-06 01:37:27 +00:00
dumbmoron
dbd13bc8b6
stream: send SIGKILL after timeout
in case the ffmpeg process decides to hang when SIGTERM'd
2023-11-06 01:37:27 +00:00
dumbmoron
cae4a68aa4
stream: improve shutdown handling, minor clean up
- try to close as many things as possible when shutting down

- remove redundant (e.g. `exit` on process when
  listening for `close`) and straight up useless
  (`disconnect`) event listeners
2023-11-06 01:37:24 +00:00
wukko
16f74094b9 filename pattern customization
- added metadata for rutube and vimeo.
- added a picker for preferred filename pattern.
- fixed content disposition header.
- mute and audio dub tags don't appear together in a file name anymore.
- youtube: dub file name tag doesn't appear anymore if audio track is default.
2023-10-12 23:14:54 +06:00
wukko
e721cf9878 support for rutube, fixes, accommodations for multi lang 2023-09-16 23:38:07 +06:00
wukko
055eff92da 7.2: small improvements
- increased video length to 5 hours from 3 hours.
- fixed clickable area for urgent notice.
- possibly fixed random 0kb files.
2023-08-29 23:24:00 +06:00
dumbmoron
a09b062f9d
Merge branch 'current' into undici 2023-08-20 17:03:22 +02:00
wukko
a6134c58d2 remove unused stuff 2023-08-20 21:02:20 +06:00
dumbmoron
d54655c6b0 passthrough content-type; content-length 2023-08-20 15:00:03 +00:00
dumbmoron
814bfa404a replace got with undici
might as well since it already comes with youtubei.js
2023-08-20 14:44:34 +00:00
wukko
2929b9535f added file metadata to videos & fixed youtube dubs 2023-08-20 18:14:15 +06:00
wukko
36622fc7ac collapsed two lines 2023-08-20 15:42:57 +06:00
dumbmoron
b0bed82167 always send something on stream failure
prevents reverse proxies (namely nginx) from assuming the server died because of an empty response
2023-08-17 21:04:17 +00:00
wukko
4f87618ceb added 6.2 changelog 2023-06-27 20:46:51 +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