Commit graph

134 commits

Author SHA1 Message Date
dumbmoron
a375000ae9
api: use req.ip instead of cloudflare headers, ratelimit ipv6 by prefix
allows for more versatile configurations that do not necessarily have to use cloudflare

also ratelimits IPv6 addresses by prefix instead of individual addresses
currently set at /56, which should not be too strict
(yet allows a /48 holder to make 256 as many requests instead of 2^80 as many requests), change if needed
2024-01-31 10:36:19 +00:00
wukko
1f7089744d package: bump to 7.9.5 2024-01-28 13:34:24 +06:00
wukko
3f39cf818a package: bump version to 7.9.4 2024-01-21 22:48:02 +06:00
wukko
b6e7d73089 package: bump version to 7.9.3 2024-01-19 11:51:42 +06:00
wukko
dcb3cf3673 package: bump version to 7.9.2 2024-01-17 23:22:55 +06:00
wukko
01e28ec7e4 pinterest: accept more links 2024-01-17 20:20:18 +06:00
wukko
4fa6608bde package: bump version to 7.9 2024-01-17 15:57:58 +06:00
wukko
67329199e8 package: bump version to 7.8.6 2024-01-14 22:47:55 +06:00
wukko
f73f09c0aa 7.8.5: fix modal blurriness in chromium 2024-01-08 13:17:14 +06:00
wukko
1dda4e30f4 package: bump version to 7.8.4 2024-01-07 14:44:14 +06:00
wukko
3e419a1924 package: bump version to 7.8.3 2024-01-02 12:36:27 +06:00
wukko
f33b7044f4 package: bump version to 7.8.2 2023-12-29 08:19:33 +06:00
wukko
29b08bcf51 package: bump version to 7.8.1 2023-12-26 18:25:22 +06:00
wukko
354fbdfa55 package: bump version up to 7.8 2023-12-25 22:38:10 +06:00
dumbmoron
818c236782
package.json: lock psl version 2023-12-25 12:34:20 +00:00
dumbmoron
dd563eb752
api: rework url parsing
- tlds are now parsed and validated correctly (e.g. ".co.uk" works now)
- url patterns are pre-compiled instead of being compiled for every request
- aliases are computed in a safe manner using the URL object where possible
2023-12-25 12:34:20 +00:00
wukko
a4349b4c41 throw a critical error when youtube api returns a stub 2023-12-25 12:59:00 +06:00
wukko
0014c8b9fb front: fixed quick ⌘+V pasting on mac
also rearranged list of crypto donation methods
2023-12-21 00:31:48 +06:00
wukko
16397aed89 7.7.3: fix only affected twitter videos 2023-12-17 23:50:24 +06:00
wukko
e00a3a4849 7.7.2: made terms and ethics more descriptive 2023-12-08 18:54:44 +06:00
wukko
e605a99d54 front: removed download popup auto closing 2023-12-05 15:50:01 +06:00
wukko
5bd50fd55f twitter: remux all videos
- increased stream link lifespan to 90 seconds
- decreased max video duration back to 3 hours
2023-12-02 20:44:19 +06:00
wukko
aef9b390b0 7.6.8: minor updates
updated support and donation lists
2023-12-02 12:54:27 +06:00
wukko
252cb83ed3 7.6.7
- fixed support for reddit links in various languages (#253).
- added rich filenames support for twitch clips (#233).
2023-11-23 22:23:54 +06:00
wukko
463ece02c7 7.6.6: refined twitter module, removed spaces 2023-11-07 22:37:47 +06:00
wukko
e40835dec0 package: bump to 7.6.5 2023-11-06 07:54:28 +06:00
dumbmoron
cae4a68aa4
stream: improve shutdown handling, minor clean up
- try to close as many things as possible when shutting down

- remove redundant (e.g. `exit` on process when
  listening for `close`) and straight up useless
  (`disconnect`) event listeners
2023-11-06 01:37:24 +00:00
wukko
dfdf8580be fixed slash handling in file names 2023-10-15 15:11:39 +06:00
wukko
b093bf33bd 7.6.1: fixed numbers in metadata and file names
also replaced the 7.6 banner with webp version
2023-10-15 14:39:17 +06:00
wukko
1d3eb2fdae added a tiny testing script for file name presets 2023-10-15 00:03:55 +06:00
wukko
81d37e9987 final file name style picker 2023-10-14 22:51:53 +06:00
wukko
16f74094b9 filename pattern customization
- added metadata for rutube and vimeo.
- added a picker for preferred filename pattern.
- fixed content disposition header.
- mute and audio dub tags don't appear together in a file name anymore.
- youtube: dub file name tag doesn't appear anymore if audio track is default.
2023-10-12 23:14:54 +06:00
wukko
a57ee53b21 list of sponsors + fixes
- added list of sponsors, if you host an instance, it can be enabled with showSponsors.
- fixed download button thickness on ios.
- about button now opens about tab when no new changelog is available.
2023-10-12 17:33:26 +06:00
wukko
6c314a1a62 well that's just embarrassing 2023-10-08 18:31:04 +06:00
wukko
e721cf9878 support for rutube, fixes, accommodations for multi lang 2023-09-16 23:38:07 +06:00
wukko
04484f634f prepare for domain change, add settings migration 2023-09-09 03:10:43 +06:00
wukko
941683c96b 7.3.1: padding fixes 2023-09-08 14:26:46 +06:00
wukko
6ae16bfd1d 7.3 release stuff
added changelog and bumped up the version
2023-09-06 20:32:52 +06:00
wukko
055eff92da 7.2: small improvements
- increased video length to 5 hours from 3 hours.
- fixed clickable area for urgent notice.
- possibly fixed random 0kb files.
2023-08-29 23:24:00 +06:00
wukko
be21c86d89 youtube: added support for live links 2023-08-26 00:03:24 +06:00
wukko
b56edfc193 7.1.2
instagram & soundcloud improvements + minor fixes
2023-08-23 01:07:09 +06:00
wukko
2c4efc5a25 fix for picker on ios & popup title line height 2023-08-21 23:40:37 +06:00
wukko
b441b494ef fix vk downloads 2023-08-20 22:12:09 +06:00
dumbmoron
814bfa404a replace got with undici
might as well since it already comes with youtubei.js
2023-08-20 14:44:34 +00:00
wukko
2929b9535f added file metadata to videos & fixed youtube dubs 2023-08-20 18:14:15 +06:00
dumbmoron
a2216510b7 add cookie support
usage:
 - create cookies.json file somewhere, preferrably outside cobalt directory
 - in docker, you can bind mount it (`volumes` in composefile)
   - if you don't want cobalt to update the cookies, set it to `:ro` (cobalt will print a warning about this, ignore it)
 - set COOKIE_PATH to the absolute path of this file
 - enjoy?

usage in services: probably the simplest api ever
 - import { getCookie, updateCookie } from '../../cookie/manager.js';
 - const cookie = getCookie('<service_name>');
   - add this to headers - `headers: { cookie }`
 - after fetch is done, save potential cookie updates: updateCookie(cookie, fetch.headers)
 - see instagram.js for example usage
2023-08-16 19:59:33 +00:00
wukko
5541acee88 7.0.1: ui tweaks
- fixed streamable downloads in safari
- added background blur to popup backdrop
- reduced shadow blur for popups
- fixed content going out of corners in picker
2023-08-16 16:08:24 +06:00
wukko
5bc65ad44c 7.0 changelog 2023-08-15 16:07:43 +06:00
wukko
5955594e48 even more cleansing
- added support for x.com urls
- removed del shortcut for clearing url input area because it was causing regular typing issues
- added info about no liability
- fixed donate button glow and text backdrop padding
- updated donation and privacy policy texts for more clarity in both english and russian
- made cors question in setup script to take yes as answer, not just 'y'
- text-to-copy now has proper rounding when highlighted
- home screen now smoothly fades in instead of popping in
2023-08-14 00:09:50 +06:00
wukko
998ab635d3 more ui enhancements
new in this commit:
- rounded corners everywhere! cobalt is now safe for everyone who can't handle sharp objects.
- proper banner loading. no more jumping text!
- proper banner error handling. if banner wasn't loaded, it'll simply go grey instead of disappearing.
- links are no longer italic and are instead underlined.
- collapsible lists now have corresponding emoji.
- donate button is now highlighted with magenta instead of white.
- added a list of keyboard shortcuts to about tab.
- centered old changelog loader.
2023-08-11 21:53:30 +06:00