Commit graph

170 commits

Author SHA1 Message Date
wukko
dec977e34d
api/youtube: fix variable shadowing in normalizeQuality 2024-11-13 18:45:18 +06:00
wukko
c88e21d4a8
api/youtube/adaptive: refactor, avoid extra loops, fallback all codecs 2024-11-13 18:41:57 +06:00
wukko
5f1c19d0f1
api/youtube: add no matching format error
this error is returned when cobalt got a response from innertube, but couldn't find a matching combo of video and audio streams. sometimes youtube returns only video or only audio per format combo for whatever reason.
2024-11-13 15:00:09 +06:00
wukko
8b972c7a85
api/youtube: disable hls if user prefers av1 2024-11-13 14:50:13 +06:00
wukko
b6e827c6f9
api/youtube: improve video quality normalization once again 2024-11-13 14:49:51 +06:00
wukko
8fc9ca2916
api/bluesky: add a dispatcher & update unknown error message 2024-11-11 12:23:53 +06:00
wukko
f50bd6339b
api/service-config: add support for loom embed links 2024-11-07 20:53:25 +06:00
jj
5a7635cdf7
api/cookie: write cookies only if from-file cookie was changed 2024-11-02 18:48:26 +00:00
jj
c44a5ecc89
api/cookie: fix cookie.set() being ran only once 2024-11-02 18:46:56 +00:00
wukko
ca665c5382
api: replace psl with homegrown & up-to-date fork
finally no more punycode warning
2024-11-02 21:19:19 +06:00
wukko
541bf04575
api/services: fix createStream calls in pickers
oops
2024-11-02 16:43:36 +06:00
jj
d48cc8fc07
api/cookie: implement cluster synchronization 2024-11-01 16:43:01 +00:00
jj
42ec28a642
api/cookie: update cookies value-by-value in manager 2024-11-01 14:58:04 +00:00
jj
f098da870c
api/cookie: pick cookie at random instead of round-robin 2024-11-01 14:55:00 +00:00
jj
2351cf74f4
api/cookie: formatting 2024-11-01 14:05:18 +00:00
wukko
2c451c69d0
api/youtube: rename quality variable in matchQuality 2024-10-31 21:43:02 +06:00
wukko
3dd6165472
api/youtube: slight refactor of matchQuality 2024-10-31 21:37:11 +06:00
wukko
5470926d52
api/youtube: adjust matched resolution
heights like 714 are now adjusted to 720, so that preferred quality is picked correctly
2024-10-31 21:31:39 +06:00
wukko
da72b9615e
api/youtube: use best quality if all else fails 2024-10-31 21:18:34 +06:00
wukko
406ac7613c
api/youtube: make sure language exists when checking for hls dubs
oops
2024-10-30 22:55:50 +06:00
wukko
367cab0de4
api/youtube: update hls vp9 container to webm
way better compatibility this way
2024-10-30 17:18:18 +06:00
wukko
e081751c59
api/youtube: fix dubbed audio track matching 2024-10-28 23:05:56 +06:00
wukko
17c020fe22
api/youtube: fix dubbed hls audio marking 2024-10-28 21:38:25 +06:00
wukko
cdfc91844d
api/schema: update youtubeDubLang to accept all valid language codes 2024-10-28 19:56:18 +06:00
wukko
b14c618228
api/youtube: pick a default track for videos with ai dubs 2024-10-28 19:35:08 +06:00
wukko
14ca47b73d
api/youtube: make mp3 the best format for hls audio 2024-10-28 18:30:01 +06:00
wukko
866427a7a7
api/youtube: fix local variable overlap 2024-10-28 16:55:44 +06:00
wukko
effec1bfb9
api/youtube: return correct audio url in hls mode
my disappointment in its quality is immeasurable
2024-10-28 16:45:48 +06:00
wukko
0ddb3e3ecc
api/match-action: add isHLS to audio stream info 2024-10-28 16:45:30 +06:00
wukko
fba6ba09c2
api/youtube: add hls codec fallback, update hls error code, refactor
also fixed best audio format
2024-10-28 15:45:18 +06:00
wukko
c9eefc4d55
api/youtube: add an option to use HLS streams
- added `youtubeHLS` variable to api
- added youtube HLS parsing & handling
2024-10-28 15:17:54 +06:00
wukko
24ae08b105
api/stream: add isHLS to stream cache 2024-10-28 15:15:41 +06:00
wukko
a46e04358a
api/match-action: rename isM3U8 to isHLS and u to url 2024-10-28 15:14:36 +06:00
wukko
7c516c0468
api/cookie/manager: pass cookiePath to writeChanges()
also reordered functions to maintain the hierarchy
2024-10-28 12:08:12 +06:00
wukko
7798844755
api/youtube: refactor, fix fallback, don't repeat same actions
fallback to h264 is now done if there's no required media, not only if adaptive formats list is empty.

best audio and best video are now picked only once.
2024-10-28 12:01:38 +06:00
jj
b434b0b45e
api/cookies: log message to confirm successful file load 2024-10-27 18:12:01 +00:00
jj
5a5a65b373
api/cookies: trigger cookie load from api entrypoint 2024-10-27 18:10:57 +00:00
KwiatekMiki
b22d0efbf1
api/service-patterns: recognize older streamable links (#862) 2024-10-27 18:34:11 +01:00
wukko
fb7325f3b2
api/youtube: more refactoring, return audio even if there's no video 2024-10-26 23:53:43 +06:00
wukko
8b15fe7863
api/youtube: check if playability is ok after the status switch 2024-10-26 22:49:16 +06:00
wukko
cfb05282c3
api/youtube: refactor, fallback codecs, don't return premuxed videos 2024-10-23 19:56:59 +06:00
wukko
ae271fd3c6
api/youtube: refactor playability status handling 2024-10-23 18:08:50 +06:00
wukko
a3ee3d9c16
api/youtube: catch one more age limit error 2024-10-23 14:01:10 +06:00
wukko
c33017283d
api/twitter: fix gifs having a wrong file extension in a picker 2024-10-13 09:59:52 +06:00
wukko
fe1d17ba8d
api/service-patterns: update the tiktok tester 2024-10-12 23:29:19 +06:00
wukko
6ad838b649
api/tiktok: fix url patterns 2024-10-12 22:06:54 +06:00
wukko
1e26788a1e
api/match-action: add missing ok case to video switch
closes #797
2024-10-08 16:09:08 +06:00
KwiatekMiki
b3137ad9ac
feat/api: add support for twitter bookmark links (#706)
* feat: add support for twitter bookmark links

* feat: add tests for bookmark twitter links
2024-10-03 12:26:38 +06:00
wukko
bf7a48a36c
api/youtube: fix youtube music metadata parsing
still pretty crappy tho
2024-09-28 02:01:43 +06:00
dumbmoron
8ae48fa524
api: allow colons (:) in url paths 2024-09-21 13:24:39 +00:00
dumbmoron
d560c0d34a
api: return correct extension for gif downloads in api response 2024-09-18 18:03:04 +00:00
wukko
a1feadb917
api/bluesky: add support for recordWithMedia embed type
& catch various api errors
2024-09-13 09:54:05 +06:00
wukko
ca538a2e6c
api/youtube: use webm container for av1 and opus 2024-09-12 20:07:56 +06:00
wukko
e768e7f6fa
api/create-filename: don't assign any of potentially blank tags 2024-09-12 14:35:42 +06:00
wukko
80a01494c7
api/match-action: add missing twitch case to redirect group
closes #741
2024-09-12 14:30:21 +06:00
wukko
64173f7a03
api/create-filename: don't push youtubeFormat if it doesn't exist
oops
2024-09-11 22:18:51 +06:00
wukko
2dbcdb18f9
api/bluesky: remove redundant await & async 2024-09-09 19:32:17 +06:00
dumbmoron
fba64df118
api/snapchat: fix regex matching to thumbnail 2024-09-09 12:53:46 +00:00
wukko
498e6f4419
api/snapchat: fix spotlight url extraction 2024-09-09 18:40:59 +06:00
wukko
002e70cb89
api/schema: make tiktokFullAudio false by default 2024-09-08 22:03:29 +06:00
dumbmoron
08490c54e4
api: include generated filename in api response 2024-09-07 12:26:43 +00:00
dumbmoron
438fce3c58
api/processing: append audio extension to filename before response 2024-09-07 12:26:43 +00:00
wukko
fff1c6c7a6
web & api: rename stream to tunnel
- updated the endpoint to /tunnel
- updated status to tunnel
- fixed one incorrectly named error in web
2024-09-05 00:26:48 +06:00
wukko
645542c910
api/bluesky: catch video errors & prevent loading videos not from bsky 2024-09-03 13:24:08 +06:00
wukko
8cee4e58c5
api/match: accept object as single argument
hi im what i do
2024-09-02 08:27:31 +06:00
wukko
93f2a6b226
api/bluesky: add support for saving images
one or multiple, everything works
2024-09-01 16:37:24 +06:00
wukko
c71ed59660
api/url: return friendly name in unsupported link error 2024-09-01 15:51:35 +06:00
wukko
97fb6e60a2
api/service-alias: refactor 2024-09-01 15:35:49 +06:00
wukko
740a75851e
api: add support for service name aliases
currently only used for bluesky
2024-09-01 15:28:29 +06:00
wukko
57050fb742
api/match-action: fix mute tag assignment for default filename
it's also no longer applied to photos and gifs LMFAOOO
2024-09-01 14:59:35 +06:00
wukko
b727a56d67
api/bluesky: catch fetch errors (oops) 2024-09-01 14:39:28 +06:00
wukko
6c9601690b
api: add support for bluesky videos & clean up service patterns 2024-09-01 14:34:44 +06:00
wukko
ccdcd4cb09
api/url: add missing break to dailymotion case 2024-09-01 12:00:48 +06:00
wukko
f464d87585
api/tiktok: add support for proxying images in a picker 2024-08-31 15:01:09 +06:00
wukko
0852f5dc09
api/snapchat: always proxy picker thumbs & support proxying everything 2024-08-31 14:52:12 +06:00
wukko
892b875e3f
api/reddit: add a filename to returned gifs 2024-08-31 14:27:46 +06:00
wukko
10717c69f6
api/twitter: support proxying videos & images in a picker 2024-08-31 14:23:18 +06:00
wukko
00da2a9339
api/twitter: return a filename for images 2024-08-31 14:19:01 +06:00
wukko
d026eb75a5
api/instagram: add support for proxying everything in a picker 2024-08-31 14:10:03 +06:00
wukko
4476ae0672
api/pinterest: add missing filenames to images & gifs 2024-08-31 14:09:34 +06:00
wukko
a9e65b0da0
api: add an option to always proxy files 2024-08-31 14:07:37 +06:00
wukko
329b068038
api/schema: don't decode the url
this is from the dinosaur era of cobalt and hasn't been used since we moved to POST requests
2024-08-30 14:09:18 +06:00
wukko
3295afdaae
api/create-filename: don't add dub name when it doesn't exist 2024-08-28 00:35:53 +06:00
wukko
a589bf7e54
api/youtube: fix audio dub track detection 2024-08-25 14:48:46 +06:00
wukko
6dcd951e21
api/create-filename: refactor 2024-08-25 14:48:28 +06:00
wukko
0bbf822d70
api/youtube: catch token expiration error 2024-08-24 18:34:02 +06:00
wukko
856004366e
api/match: fix typo in fetch.critical code 2024-08-24 17:28:43 +06:00
wukko
7478a373fc
api & web: add service context to api.fetch.critical error 2024-08-24 17:24:51 +06:00
wukko
7ac0726f37
api: move error context to matcher 2024-08-24 16:56:07 +06:00
wukko
37efa035a2
api/twitter: update no tweet error code 2024-08-24 16:31:19 +06:00
wukko
7041d61d80
api/core: fix link parsing error handling 2024-08-24 16:13:42 +06:00
wukko
7a557a97c3
api: move service disabling to DISABLED_SERVICES env 2024-08-23 00:16:26 +06:00
wukko
ee375a27cd
api/schema: enable tiktok full audio by default 2024-08-22 23:17:49 +06:00
wukko
102dec4a84
api/match-action: clean up audio action 2024-08-22 22:45:26 +06:00
wukko
ff9efdc471
api & web: update default audio bitrate to be 128kbps 2024-08-22 20:50:21 +06:00
wukko
42ff874c95
api/schema: add 8bkps audio bitrate option 2024-08-22 20:06:54 +06:00
wukko
91fd26e880
api: add audio bitrate functionality 2024-08-22 19:35:17 +06:00
wukko
fb5d68a830
api/instagram: add file name for proxied image thumbs 2024-08-22 18:02:53 +06:00
wukko
76fa1b2b87
api/twitter: add proper file name for proxied thumb 2024-08-22 17:40:44 +06:00
wukko
facf7741ce
api/stream: standardize stream types & clean up related functions 2024-08-22 17:37:31 +06:00