Commit graph

606 commits

Author SHA1 Message Date
dumbmoron
b516033f09
match: clean up snapchat call & add missing breaks 2024-07-24 15:17:58 +00:00
Snazzah
4080cd4581
services: add snapchat support (#429)
* feat: snapchat support

* chore: remove redundancy

* chore: a bit of better matching

* chore: update readme

* refactor(snapchat): refactor story matching to use pickers

* fix: small fix to directly linked stories

* fix(snapchat): fix filenames

* chore: update readme

* ref(snapchat): rewrite service, new test, split redirects into a util

* fix(snapchat): small fixes

* chore: deepscan error fixed

* fix: remove debug logging

* fix(snapchat): fix merge, clean up code with new utils

* fix(snapchat): update with suggested changes

---------

Signed-off-by: Snazzah <7025343+Snazzah@users.noreply.github.com>
Co-authored-by: jj <log@riseup.net>
2024-07-24 17:06:10 +02:00
Brama Udi
c77ee2eb44
services: add facebook support (#403)
* feat: add facebook support

* chore: fix fail check

* chore: minor fix

* chore: add service in README.md

* chore: cleaning post-merge code

* facebook: add shared link pattern

* chore: clean up removing unnecessarily code

* fix: facebook shared link pattern

* matchActionDecider: redirect to facebook video instead of rendering

* facebook: pass sourceUrl in object

* url: fix botched lint

* fix: facebook shared link pattern with clean up

* test: change facebook test response to redirect

---------

Co-authored-by: dumbmoron <log@riseup.net>
2024-07-24 17:05:21 +02:00
dumbmoron
d68ce2f490
stream/types: only use nice if parsed processingPriority is a number
for some reason, isNaN(true) -> false, which is technically correct,
but what the fuck...
2024-07-12 00:01:18 +00:00
dumbmoron
2f4e43f78f
youtube: client_id/client_secret is optional in session data 2024-07-11 07:56:13 +00:00
dumbmoron
404cad711f
youtube: bump youtubei.js to v10.1.0 2024-07-10 14:13:56 +00:00
dumbmoron
ab1b07fe44
rutube: pick closest quality to requested quality 2024-07-07 15:14:16 +00:00
jj
216529bfdf
vimeo: use api to get video info, direct download if possible (#612) 2024-07-07 14:25:17 +02:00
wukko
eb65e816af
stream/internal: convert headers to iterable object 2024-07-06 23:15:15 +06:00
dumbmoron
3096bc9df0
api: use Map for internal stream headers instead of plain object 2024-07-06 11:36:25 +00:00
dumbmoron
479e14778d
services/pinterest: stricter hostname check on video regex 2024-07-06 08:55:48 +00:00
dumbmoron
4daeaa3107
services/soundcloud: properly check script hostname 2024-07-06 08:33:02 +00:00
dumbmoron
0fefc4ac27
services/ok: fix video data extraction
closes #589
2024-07-06 08:25:01 +00:00
dumbmoron
ed905fd60b
stream/manage: inherit controller from parent istream if it exists 2024-06-24 23:42:31 +00:00
wukko
b51bcc2a7c
vimeo: added more checks to avoid exceptions 2024-06-23 23:35:29 +06:00
wukko
de7df94271
vimeo: use proper local variable name in expandLink 2024-06-23 23:26:43 +06:00
wukko
850877369c
vimeo: clean up & fix 144p quality 2024-06-23 23:22:58 +06:00
wukko
cc4abbb3e2
vimeo: remove progressive parsing
it's no longer returned by the api
2024-06-23 23:15:05 +06:00
wukko
0432232ea4
vimeo: use HLS playlists instead of dash manifest 2024-06-23 23:02:57 +06:00
wukko
eb05c4b938
stream/internal-hls: transform HLS map when defined in playlist header 2024-06-23 22:17:11 +06:00
wukko
08c7aa1ce1
stream: add support for remuxing multiple m3u8 files 2024-06-23 22:13:36 +06:00
jj
33c3c398fc
stream/internal: don't abort immediately after close for generic streams (#584)
* stream: move closeRequest to shared functions

* stream: use closeRequest instead of abort() directly

* stream/internal: don't abort immediately after close for generic streams
2024-06-23 21:37:02 +06:00
jj
a6733ef0cc
stream/internal: refactor, abort controller in more places (#583) 2024-06-23 18:51:36 +06:00
wukko
a5e00be376
services: add support for m.vk.com links
closes #576
2024-06-22 17:02:50 +06:00
jj
ef97ff06af
stream: fix some memory leaks in internal stream handling (#581) 2024-06-22 16:57:30 +06:00
dumbmoron
21d5b4b8d4
instagram: use correct id when requesting from mobile API 2024-06-16 10:53:03 +00:00
jj
d2e5b6542f
api: randomize cipherlist for making requests to services (#574)
this makes cobalt less prone to TLS client fingerprinting, as it
avoids having the default node.js TLS fingerprint that is shared by
all node.js applications.
2024-06-15 18:20:33 +02:00
wukko
1d5fa62271
youtube: add ratelimit error, update sign in error 2024-06-08 22:59:30 +06:00
jj
04d66946fc
internal-hls: correctly handle URL concatenation of all types (#560) 2024-06-08 22:34:18 +06:00
wukko
f3056c6dc3
servicesConfig: enable reddit back 2024-06-08 18:31:00 +06:00
dumbmoron
ebe6668bc0
refactor: move generate-youtube-tokens to util 2024-06-08 11:52:53 +00:00
dumbmoron
d08e2ac04f
generate-youtube-tokens: use throw instead of process.exit
fuck off deepsource
2024-06-08 09:32:23 +00:00
dumbmoron
2387fc2fbb
youtube: update access token on change 2024-06-08 09:30:12 +00:00
dumbmoron
18d4372938
youtube: drop cookie support
it never really worked
2024-06-08 09:26:58 +00:00
dumbmoron
46274c8da0
youtube: add support for using OAuth2 tokens 2024-06-08 09:19:15 +00:00
wukko
7fb2e6d8d9
youtube: proper age & sign in limit errors 2024-06-07 21:46:45 +06:00
wukko
f7b36713e0
youtube: convert cookie to string 2024-06-07 19:37:01 +06:00
jj
f6632e2d61
youtube: add cookie support (#553) 2024-06-07 15:02:07 +02:00
Mikhail Serebryakov
68f311c318
stream: add hls support for internal streams (#525) 2024-06-07 17:08:20 +06:00
wukko
4c8cd9dd30
youtube: change innertube client to ios 2024-06-07 14:52:55 +06:00
dumbmoron
85bed9aa74
stream/internal: use pipe() to handle internal streams 2024-06-06 14:50:21 +00:00
dumbmoron
fe7d4974e4
stream: move pipe to shared functions 2024-06-06 14:39:28 +00:00
wukko
7ebd9bc0ff
servicesConfig: temporarily disable reddit support
reddit's media server times out unexpectedly
2024-05-31 20:10:16 +06:00
J4mez
9b4f49fcf6
web: stop password managers from autofilling data into url area (#533)
fixed dashlane autofill phone in url input
2024-05-31 18:53:25 +06:00
dumbmoron
03fda93f96
tiktok: fix error when user prefers h265 and downloads photo slideshow 2024-05-29 08:49:06 +00:00
dumbmoron
b7697268e5
youtube: return different error message if video doesn't exist 2024-05-29 08:28:26 +00:00
jj
44ecfeeea7
youtube: don't block api startup waiting for innertube to activate (#532)
cobalt api has been getting blocked for several seconds
during startup, and also crashing when unable to connect
to youtube (e.g. when it's blocked); this should fix both
those things
2024-05-29 10:26:17 +02:00
wukko
e4d42fa86a
processing: add loom support (#530) 2024-05-29 13:12:52 +06:00
wukko
2a2183aa84
rutube: add support for private video links 2024-05-29 13:02:05 +06:00
wukko
490bbf82ec
processing/url: clean up cleanURL query exceptions 2024-05-29 12:57:26 +06:00