Commit Graph

431 Commits

Author SHA1 Message Date
jj
11388cb418 api/stream: await all call types 2024-12-16 16:21:38 +00:00
jj
bf4675a5e3 api/stream: move bsky override into isHlsResponse 2024-12-16 11:29:13 +00:00
jj
bc597c817f api: move itunnel handlers to separate file 2024-12-16 10:38:31 +00:00
jj
f06aa65801 api: always create separate server for itunnels 2024-12-16 10:19:15 +00:00
jj
e7c2872e40 api/stream: rename getInternalStream to getInternalTunnel 2024-12-16 10:16:48 +00:00
jj
459b2c8283 api/internal-hls: don't remake chunk istreams if already wrapped 2024-12-15 17:59:47 +00:00
3dafdd825a api/types/proxy: use default dispatcher instead of a global one
this function never gets anything but internal streams, so global proxy (`API_EXTERNAL_PROXY`) is only causing issues here. this commit fixes an issue of cobalt attempting to proxy internal streams, and failing spectacularly.
2024-12-13 16:01:16 +06:00
112866096c api/url: return a diff error when youtube is disabled on main instance 2024-12-12 23:00:49 +06:00
4b8b0a0e9e api/youtube: don't retrieve the player as cobalt doesn't use it
we don't decipher anything lol
2024-12-10 17:30:32 +06:00
jj
6f0a8196ff api/istream: remove icy-metadata header if sent by client 2024-12-04 18:25:25 +00:00
jj
6c39edbc10 api/stream: use dispatcher if passed to istream 2024-12-04 18:17:13 +00:00
6ca377ded6 api/tiktok: catch unavailable post error 2024-12-04 12:28:05 +06:00
15a0ba30c7 api/tests/vk: add new domain test 2024-11-28 17:32:41 +06:00
4700682ccb api/vk: refactor quality picking 2024-11-28 17:32:10 +06:00
f696335278 api/vk: use proper api, add support for more links, refactor
also added support for video access keys
2024-11-28 16:01:26 +06:00
50344eda17 api/match-action: proper error code for unsupported audio extraction 2024-11-28 15:48:18 +06:00
eee9beef91 api/create-filename: don't require author for pretty title 2024-11-28 15:47:30 +06:00
jj
55c97f77b8 api/cookie: reformat console.error in getCookie 2024-11-26 14:24:54 +00:00
jj
58edad553e api/cookie: replace name exception with console log
much easier to debug when writing a service
2024-11-26 14:05:13 +00:00
jj
fbacb94495 api/cookie: do not recreate interval if it already exists 2024-11-26 14:02:16 +00:00
jj
a4cb6ada79 api/cookie: split initial load into separate function 2024-11-26 14:01:36 +00:00
jj
20074a5091 api/cookie: rephrase non-string warning 2024-11-26 13:55:18 +00:00
jj
00ac025235 api/cookie: warn if writing updated cookies fails 2024-11-26 13:52:20 +00:00
jj
3d95361c09 api/cookie: validate cookie file format 2024-11-26 13:51:49 +00:00
jj
31d65c9fb7 api/cookie: validate service names for cookies 2024-11-26 13:44:51 +00:00
d4bcb1ba61 api/service-config: add new domains for vk 2024-11-26 18:21:44 +06:00
e2f0123418 api/tests/tiktok: add an age restricted video test 2024-11-24 19:26:59 +06:00
a1fa79f2f5 api/tikok: catch an age restriction error 2024-11-24 19:26:44 +06:00
8a24dbb42d api/match-action: fix audio in tiktok picker
it didn't have an audio format in the filename, so it either failed or downloaded without an extension.

closes #870
2024-11-24 19:02:10 +06:00
cdd349cfb6 api/tests/rutube: add a region locked video test 2024-11-24 18:44:07 +06:00
6039eae6a3 api/rutube: catch a region lock error
closes #930
2024-11-24 18:43:50 +06:00
9b0e4ab0bd api/tests/soundcloud: add tests for region locked and paid songs 2024-11-24 18:35:32 +06:00
43c3294230 api/soundcloud: catch region locked and paid songs and show an error 2024-11-24 18:35:07 +06:00
eb52ab2be8 api/vimeo: return accidentally remove merge function 2024-11-24 18:19:56 +06:00
1cbffc2d75 api/stream/types: convert metadata in one place
also sanitize values & throw an error if tag isn't supported
2024-11-24 18:13:22 +06:00
6770738116 api/create-filename: build & sanitize filenames in one place 2024-11-24 18:12:21 +06:00
407c27ed86 api/utils: rename metadata converter function 2024-11-24 14:55:46 +06:00
6a430545d2 api/utils/cleanString: add more forbidden chars 2024-11-24 14:55:10 +06:00
ff9e248e4f api/util/test: add twitter to finnicky list
they seemingly blocked ips of github workers
2024-11-23 15:42:47 +06:00
5b445d5c7e api/youtube: catch even more innertube errors 2024-11-23 15:37:42 +06:00
jj
b31c126cec api/instagram: fix module not using graphql api 2024-11-18 17:34:48 +00:00
606f0fd29a api/stream/internal: workaround for wrong bsky content-type, refactor 2024-11-16 22:15:13 +06:00
b61b8c82a2 api/bluesky: use hls video cdn directly 2024-11-16 21:57:14 +06:00
3de3e9e158 api: remove support for vine cuz the archive is dead
masterful gambit elon musk
2024-11-15 18:29:21 +06:00
jj
f7dc6cebad all: add space after catch 2024-11-15 12:19:49 +00:00
jj
4c006b2291 api/test: add vk to finnicky services 2024-11-15 12:11:29 +00:00
jj
cf40f0542f api/test: make deepsource happy 2024-11-13 17:27:26 +00:00
jj
f6bffe543c api/test: replace test.js with test-ci.js 2024-11-13 17:26:15 +00:00
jj
91e8ef8ab4 api/test-ci: add functionality for running all tests 2024-11-13 17:26:15 +00:00
jj
aaf7077364 api/test: split up tests into individual files 2024-11-13 17:26:15 +00:00