Commit graph

106 commits

Author SHA1 Message Date
jj
72246cbc1f
tiktok: use new cookie for each request (#514)
* api: allow passing headers from service handler

* tiktok: use new cookie for each request
2024-05-23 22:29:39 +06:00
Damir Modyarov
2534931b60
tiktok: use webapp-based downloading method (#503)
Signed-off-by: Damir Modyarov <otomir@yandex.ru>
Co-authored-by: wukko <me@wukko.me>
2024-05-22 02:41:43 +06:00
wukko
b0da5bb893
stream: dont double send headers on critical error 2024-05-22 01:21:34 +06:00
wukko
f632c7dfb3
stream/types: move closeResponse to shared 2024-05-22 01:20:54 +06:00
wukko
7b67f05bbf
stream/manage: fix stream lifespan
so that stream lifespan isn't 90 ms
2024-05-16 22:59:40 +06:00
wukko
9eed3b5b67
config: move streamLifespan 2024-05-16 21:00:11 +06:00
wukko
98e05368ed
api: raw stream status responses, clean up core 2024-05-15 22:43:33 +06:00
dumbmoron
9419266cd7
stream: use freebind dispatcher in internal streams 2024-05-14 18:38:20 +00:00
dumbmoron
9332b2e196
config/env: validate platform for processingPriority on startup
instead of for every stream thread
2024-05-14 09:20:58 +00:00
jj
8f27c86a43
stream/types: set headers for both inputs in streamLiveRender (#470) 2024-04-29 20:29:37 +06:00
jsopn
5fbf35a8d3
refactor: centralize envs and their defaults in modules/config (#464)
* feat(config): centralized env variables and their default values

* fix: fip `corsWildcard` variable check in `corsConfig`

* fix(config): use already declared variables and default some strings to undefined

* fix: check processingPriority against NaN
2024-04-29 13:56:05 +02:00
jsopn
331f055367
stream/manage: add missing default API_PORT value for internal stream URLs (#463) 2024-04-28 13:19:05 +02:00
dumbmoron
70a79fdedd stream/manage: refactor internal stream handling, skip m3u8 services
- fix a typo caused by refactoring

Co-authored-by: wukko <me@wukko.me>
2024-04-28 02:34:50 +06:00
wukko
d27366dc8a
stream/manage: remove unnecessary variable from catch 2024-04-27 18:58:03 +06:00
wukko
656c0a3495
stream: add semicolons to imports 2024-04-27 18:51:12 +06:00
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