Commit Graph

137 Commits

Author SHA1 Message Date
wukko
7ff6d0036b api/snapchat: prevent errors if params are undefined 2025-04-24 15:44:34 +06:00
jj
6f6f885723 api/youtube: update Session arguments to match new constructor 2025-04-23 14:02:27 +00: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
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
wukko
d1b5983e49 api/youtube: disable HLS if a session server is used 2025-03-19 20:34:56 +06:00
wukko
b6cd0ad727 api: automatically pull youtube session tokens from a session server
if provided, cobalt will pull poToken & visitor_data from an instance of invidious' youtube-trusted-session-generator or its counterpart
2025-03-19 19:54:20 +06:00
wukko
d2d098dbfb api/youtube: use custom innertube client env & decipher for more clients 2025-03-14 08:54:42 +06:00
wukko
2ebe2899be api/youtube: return an appropriate error if a video is locked behind DRM 2025-03-13 13:23:03 +06:00
hyperdefined
d00d94f3dc api/pinterest: fix video parsing (#1153)
fixes #1148
2025-03-12 12:35:27 +01:00
wukko
39b6bb2593 api/twitter: change const to let for media 2025-03-11 14:01:34 +06:00
wukko
9579c3dd08 api/twitter: fix return in extractGraphqlMedia 2025-03-11 13:59:59 +06:00
wukko
69421a11ad api/twitter: refactor, move graphql media extraction to a function 2025-03-11 13:58:24 +06:00
wukko
75b498ed77 api/twitter: add fallback to syndication api
it's back yet again, now for good, i suppose
2025-03-11 12:34:04 +06:00
wukko
69dd37c5c3 api/twitter: handle 403 with no cookie in requestTweet() 2025-03-11 10:25:49 +06:00
wukko
9639c599f0 api/twitter: handle empty body properly 2025-03-11 10:00:24 +06:00
jj
dba405a6b4 api/facebook: add dispatcher support (#1115) 2025-02-18 17:44:25 +06:00
wukko
b5ba86dd75 api/youtube: return a proper error if the video is "inappropriate" 2025-02-13 17:09:03 +06:00
wukko
4dc7d28696 api/instagram: fall back to photo in extractOldPost if video has no url 2025-02-11 15:42:16 +06:00
zjy4fun
ca0bc9f395 api/ok: fix author not being handled properly (#1009) 2025-02-11 14:42:07 +06:00
wukko
09706160a9 api/snapchat: allow profile params to be missing
fixes broken story extraction
2025-02-10 00:33:23 +06:00
wukko
a0f227d68b api/reddit: add support for mobile links & bunch of other links (#1098)
* api/reddit: extract params from a mobile share link

* api/reddit: add support for a bunch of links & update the api endpoint

also fixed "undefined" in a filename when downloading a user post

* api/service-patterns: fix reddit id pattern
2025-02-10 00:17:48 +06:00
wukko
6e653f468b api/instagram: add a filename to all single images 2025-02-09 18:23:28 +06:00
jj
55f591b37d api/instagram: add explanation for resolveRedirectingURL user-agent 2025-02-09 11:59:10 +00:00
wukko
5b63e2e6f2 api/instagram: sort imports by line length 2025-02-09 17:48:49 +06:00
jj
3f6dd4fced api/youtube: expect errorInfo to not be json 2025-02-08 20:59:53 +00:00
jj
cca61275f1 api/instagram: add support for share urls
closes #998
2025-02-08 17:24:02 +00:00
jj
1be13a30bf api/instagram: age-restricted and private account-specific errors
fixes #222
2025-02-08 16:45:31 +00:00
jj
6d18dff5cc api/bilibili: use shortlink resolver 2025-02-08 16:27:33 +00:00
jj
bbcb2bee7c api/pinterest: use shortlink resolver 2025-02-08 16:09:49 +00:00
jj
5db5437b62 api/pinterest: fix undefined in name when downloading shortlink 2025-02-08 16:08:34 +00:00
jj
a758b1dbc6 api/snapchat: use shortlink resolver 2025-02-08 16:06:36 +00:00
jj
9e6582b76c api/xiaohongshu: use shortlink resolver 2025-02-08 16:05:51 +00:00
jj
77dca70792 api/instagram: yet another attempt at resurrection 2025-02-07 22:47:36 +00:00
wukko
36d4608ee5 api/bluesky: add support for tenor gifs 2025-01-21 17:18:49 +06:00
jj
ee3ef60a20 api/youtube: expect one of itags to be empty 2025-01-20 20:12:21 +00:00
wukko
0ab3fe4d2a api: itunnel transplants (#1065) 2025-01-21 00:10:49 +06:00
jj
19ade7c905 api/youtube: return internal metadata for replaying request 2025-01-20 14:47:09 +00:00
jj
7767a5f5bb api/youtube: add support for pinning client/itag 2025-01-20 14:46:55 +00:00
wukko
7488c74faf api/xiaohongshu: clean up the h265-h264 if statement
Co-authored-by: jj <log@riseup.net>
2025-01-20 19:46:12 +06:00
wukko
e39b0ae7b3 api/xiaohongshu: deduplicate h264 stream extraction
reduce() isn't called on 1 item arrays, so this is just fine

Co-authored-by: jj <log@riseup.net>
2025-01-20 19:41:02 +06:00
wukko
4963c9f128 api/xiaohongshu: remove duplicated extraction error
Co-authored-by: jj <log@riseup.net>
2025-01-20 19:37:23 +06:00
wukko
3cbed87c3e api/xiaohongshu: update initial state extraction regex
Co-authored-by: jj <log@riseup.net>
2025-01-20 19:35:53 +06:00
wukko
ed8f4353ea api/processing: add support for xiaohongshu 2025-01-20 19:10:02 +06:00
jj
ec0d773792 api/youtube: use Math.min instead of ternary operator 2025-01-20 12:38:12 +00:00
jj
0378a1ae15 api/youtube: fix error when downloading stuff from WEB 2025-01-20 12:37:36 +00:00