Commit Graph

188 Commits

Author SHA1 Message Date
jj
91989b8de1 youtube: await decipher()s
Some checks failed
CodeQL / Analyze (javascript-typescript) (pull_request) Failing after 13s
Run service tests / test service functionality (pull_request) Successful in 23s
Run tests / check lockfile correctness (pull_request) Successful in 20s
Run tests / web sanity check (pull_request) Successful in 1m25s
Run tests / api sanity check (pull_request) Failing after 27s
Run service tests / test service: ${{ matrix.service }} (pull_request) Failing after 20s
they are async as of https://github.com/LuanRT/YouTube.js/pull/1047
2025-10-13 23:30:58 +00:00
jj
1dc0aa89df youtube: provide own JS interpreter
since the data should be side-effect free, this should
be fine for now, but maybe it might be a good idea to look
into a proper sandboxed environment in the future.
2025-10-13 23:30:58 +00:00
jj
c86ab40acd youtube: fix custom fetch breakage
https://github.com/LuanRT/YouTube.js/issues/962#issuecomment-2864091135
2025-10-13 23:30:58 +00:00
zImPatrick
83a8da7151 api/vimeo: add support for specifying access tokens (#1443)
* the android client now also needs a valid device_identifier, but already generated access_tokens work fine
* you can also get them from a rooted device by mitm'ing the device while starting vimeo for the first time or going into its data directory and searching for the token in shared_prefs/
2025-09-24 18:27:13 +02:00
jj
bec77b99e5 api/twitter: use newer graphql endpoint, refactor (#1436) 2025-09-05 19:00:50 +02:00
wukko
64a7b1dd62 api/bilibili: add support for video parts/episodes
different videos share the same id, kind of weird
2025-08-11 18:15:38 +06:00
wukko
95efd71eac api: update youtubei.js to 15.0.0, use main package again
undici update was merged upstream :D
2025-07-19 18:47:07 +06:00
KwiatekMiki
3f785e7cbe api: support new xiaohongshu links, add fallbacks to getRedirectingURL
closes #1394
Co-authored-by: wukko <me@wukko.me>
2025-07-18 20:43:58 +06:00
jj
60f02b18e4 vimeo: use android client for session 2025-07-11 18:35:02 +00:00
wukko
61de303dc4 api: add support for newgrounds
closes #620, replaces #1368
Co-authored-by: hyperdefined <contact@hyper.lol>
2025-07-10 00:56:35 +06:00
wukko
58ea4aed01 api/soundcloud: check if a cover url returns 200
some songs don't have a cover but artwork_url is still defined, even though the response is always 404
2025-07-09 15:56:22 +06:00
wukko
2e86a6ca70 api/bilibili: don't return isHLS
videos are no longer HLS i guess
2025-07-07 18:08:26 +06:00
wukko
2ac0436f71 api/tiktok: return empty error if there's nothing to download
sometimes posts are broken and don't have any valid media
2025-07-06 00:04:40 +06:00
wukko
b4290ecf30 api/vimeo: use bearer, update headers, better error handling 2025-07-04 15:55:40 +06:00
wukko
810e0a865c api/package: replace youtubei.js with a fork, update undici 2025-07-01 16:15:12 +06:00
wukko
9d818300f4 api/twitter: add subtitle extraction
closes #1219
2025-06-28 16:19:41 +06:00
wukko
d69100c68d api/tiktok: validate that redirected link is still tiktok 2025-06-26 21:32:31 +06:00
wukko
164ea8aeb9 api: return covers from soundcloud and youtube
& refactor createProxyTunnels() in stream/manage a little
2025-06-26 17:36:26 +06:00
wukko
f4637b746c api/rutube: add subtitles 2025-06-25 20:12:30 +06:00
wukko
28b85380c9 api/vk: allow auto generated subs & pick explicitly vtt
i couldn't find a single video that had any subtitles other than auto generated ones, so i think this is better than nothing at all
2025-06-24 17:56:04 +06:00
wukko
997b06ed0e api/vk: add support for subtitles 2025-06-24 17:06:19 +06:00
wukko
630e4a6e0d api/tiktok: add support for subtitles 2025-06-20 20:07:50 +06:00
wukko
ab526c234e api/loom: add transcription subtitles
since there's no language selection (at all), we just add the only transcription if a user wants subtitles
2025-06-20 18:59:35 +06:00
wukko
a44bea6b50 api/vimeo: add subtitle parsing from the mobile api 2025-06-20 18:21:00 +06:00
wukko
7ce9d6882b api/youtube: don't use session if user wants subtitles
cuz they're not currently available anywhere but HLS
2025-06-20 17:27:49 +06:00
wukko
33c801f66b api/youtube: add support for youtubeVideoContainer 2025-06-20 14:35:43 +06:00
wukko
259a0758f1 api: initial subtitles functionality with youtube support
this took way more effort than i expected it to do, mostly because of youtube locking everything down to shit

local processing doesn't function with subtitles yet, wasm needs to be updated
2025-06-18 20:24:13 +06:00
wukko
4b6447cba6 api/youtube: use the original track instead of default
closes #1329

default ≠ original, apparently. not sure why youtube thought it's a good idea to force ai generated dubs as default
2025-06-08 19:30:43 +06:00
jj
adc5b89fc2 api/soundcloud: ignore encrypted protocols, match against prefix 2025-06-08 13:17:14 +00:00
jj
2154f464d7 api/soundcloud: prefer progressive format over hls 2025-06-08 12:44:34 +00:00
hyperdefined
495729e174 api/pinterest: return fetch.empty if a link is invalid (#1299) 2025-06-08 18:11:05 +06:00
nexpid
170cf293bf api/soundcloud: add more metadata fields (#1313) 2025-06-08 18:07:38 +06:00
jj
ed18008493 api/soundcloud: return isHLS flag when appropriate 2025-05-29 17:08:22 +00:00
jj
ff7eb2639d api/loom: add support for non-transcoded links, add more tests 2025-05-29 15:29:53 +00:00
wukko
f36c749692 api/twitter: add support for saving media from ad cards 2025-05-23 13:06:51 +06:00
wukko
9a3d35185b merge: soundcloud fix from main 2025-04-30 13:11:02 +06:00
wukko
00b217796f api/soundcloud: fix short link url & refactor 2025-04-29 22:55:52 +06:00
wukko
4202c954d1 merge: api 10.9.3 from main 2025-04-24 16:27:17 +06:00
wukko
7ff6d0036b api/snapchat: prevent errors if params are undefined 2025-04-24 15:44:34 +06:00
wukko
c1b592430a merge: api updates from main 2025-04-23 21:10:52 +06:00
jj
6f6f885723 api/youtube: update Session arguments to match new constructor 2025-04-23 14:02:27 +00:00
wukko
06bc51db54 merge: 10.9 from main 2025-04-02 21:48:58 +06:00
jj
07f81c5d1d api/reddit: clean up duplicated headers 2025-04-02 12:35:45 +00:00
Felix Vuong 🍂
a6240d0192 api/url: replace user-agent argument with headers in redirect helpers 2025-04-02 11:44:13 +00:00
Felix Vuong 🍂
b1bde25dee api/reddit: add support for short links 2025-04-02 11:42:59 +00:00
wukko
0b29121c53 merge: changes from main 2025-03-27 20:02:46 +06:00
wukko
ab13f78326 api/tiktok: normalize short link URL & catch empty patternMatch 2025-03-25 18:31:12 +06:00
wukko
cf17f53405 api/youtube: use the iOS client for <=1080p vp9 videos 2025-03-21 21:29:25 +06:00
wukko
24ce19d09f api/youtube: use both ios & web_embedded client depending on request
this ensures better reliability & reduces rate limiting of either clients
2025-03-20 17:57:02 +06:00
wukko
073b169a93 api: remove code & docs related to youtube oauth
it hasn't been functional for a while, unfortunately
2025-03-19 20:43:31 +06:00