Commit graph

61 commits

Author SHA1 Message Date
wukko
01240b6ca3 utils: getIP formatting 2024-01-31 16:47:18 +06:00
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
a63a35c74d twitter: add option to convert .mp4 to .gif 2024-01-17 11:38:51 +06:00
wukko
ddc87ca42b
api: clean url upon entry, not down the road 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
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
dumbmoron
190a0131d4
api: url-encode UTF-8 characters in url
this encode-decode construct is ugly, but necessary to retain
backwards compatibility for weirdos that encode the URL when
passing it in via json ( like the frontend, for example. :/ )
2023-11-23 14:52:08 +00:00
wukko
dfdf8580be fixed slash handling in file names 2023-10-15 15:11:39 +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
e721cf9878 support for rutube, fixes, accommodations for multi lang 2023-09-16 23:38:07 +06:00
wukko
05bb7bcd07
clean up 2023-09-16 18:20:29 +06:00
wukko
ad9b6ebdd3 twitch clean up 2023-09-16 16:27:53 +06:00
wukko
ff9d48740d
Merge branch 'current' into feat/twitch 2023-09-16 15:40:09 +06:00
dumbmoron
93aa1f4db4 add option to disable file metadata
closes #142
2023-08-25 17:57:03 +00:00
wukko
a6134c58d2 remove unused stuff 2023-08-20 21:02:20 +06:00
wukko
2929b9535f added file metadata to videos & fixed youtube dubs 2023-08-20 18:14:15 +06:00
wukko
789acbc99b fix download audio button in picker 2023-08-14 02:07:05 +06:00
wukko
43a3ebf475 7.0: ui refresh and more 2023-08-05 00:43:12 +06:00
wukko
db5d62ae58 6.2.2: fixes related to twitter screwing everything up
(also fixes an issue with some instagram links)
2023-06-30 16:29:21 +06:00
wukko
65161107fa 6.2: no more ip verification
- removed ip verification and updated privacy policy to reflect this change.
- streamable links now last for 20 seconds instead of 2 minutes.
- cleaned up stream verification algorithm. now the same function isn't run 4 times in a row.
- removed deprecated way of hosting a cobalt instance.
2023-06-27 19:56:15 +06:00
Snazzah
40291c4d24
feat: add pinterest support 2023-05-24 12:32:41 -05:00
Snazzah
8551243207
Merge branch 'current' into feat/twitch 2023-05-23 12:24:54 -05:00
wukko
de3b0cdfd2 last commit was extremely unsafe 2023-05-13 18:12:09 +06:00
Snazzah
fa7af1bf44
feat: add twitch vod/clip support 2023-04-29 14:33:36 -05:00
wukko
6e097de2db 5.4.7: added support for ancient vk videos & salt improvements
- now you can download 240p hardbass videos from 2008!
- implemented updated stream salt and ip salt properly
2023-04-29 21:30:59 +06:00
wukko
80de6a1ebe i don't get it 2023-04-09 11:38:37 +06:00
wukko
7dc8ab252d change the way user ip address is retrieved 2023-04-09 10:58:23 +06:00
wukko
dbc6bfef6e trying to get .git inside the container on hop 2023-04-09 09:23:16 +06:00
wukko
6e9f9efa28 vimeo support revamp and bug fixes
- completely reworked vimeo module.
- added support for audio downloads from vimeo.
- added support for chop type of dash for vimeo.
- added ability to choose between progressive and dash vimeo downloads. both to api and settings on frontend.
- added support for single m3u8 playlists. will be useful for future additions and is currently used for vimeo.
- proper error is now shown if there are no matching vimeo videos found
- temporarily disabled douyin support because bytedance killed off old endpoint.
- fixed the issue related to periods in tiktok usernames. (closes #96)
- fixed error text value patching in match module.
- fixed video stream removal for audio only option, wouldn't work in some edge cases.
- minor clean up.
2023-03-15 22:18:31 +06:00
wukko
a3daa65148 5.2
- page render caching
- onDemand block caching
- page html minify
- better rate limiting
- minor cobalt.js clean up
- page render platform indication in settings popup

all these changes are aimed to improve performance and responsiveness

!! not final version of 5.2 !!
2023-03-10 00:41:17 +06:00
wukko
6465ac8d6f 5.1
closes #62, #66, #75
2023-02-26 22:49:25 +06:00
wukko
75a85972aa 5.0
- finished writing tests for all services
- fixed douyin support
- fixed tiktok picker that was broken by previous commit
- temporarily removed douyin photos from list of supported services
- fixed support for "user view" vk clip links
- slightly improved the testing script
2023-02-13 19:44:58 +06:00
wukko
dacaaf5b27 5.0-dev1
- rewrote and/or optimized all service modules
- rewrote matching and processing modules to optimize readability and performance
- added support for reddit gifs
- fixed various issues with twitter error explanations
- code optimizations and enhancements (such as finally getting rid of ==, prettier and more readable formatting, etc)
- added branch information
- all functions in currentCommit submodule run only once and cache received data
- added a test script. only twitter and soundcloud are 100% covered and tested atm, will add tests (and probably fixes) for the rest of services in next commits
- changed some localization strings for russian
- added more clarity to rate limit message
- moved services folder into processing folder
2023-02-12 13:40:49 +06:00
wukko
3432c91482 refactoring & fixes
- added duration check to vimeo module
- fixed quality picking in vimeo module for progressive video type
- dropping requests from ie users instead of redirecting
- probably something else but i forgot to be honest
2023-02-09 20:45:17 +06:00
wukko
3b5bf51ba7 4.7
fixes #63, #67, #68, and #71, among other issues
2023-01-14 00:34:48 +06:00
wukko
7f1ba6b36b 4.6.0: video muting and soundcloud client_id 2022-12-17 17:09:49 +06:00
wukko
f13a82e152 4.5 2022-12-07 01:21:07 +06:00
wukko
035c64dc39 left a double variable declaration on accident 2022-11-12 22:44:17 +06:00
wukko
316e6423f4 4.3: open api + post method for main endpoint 2022-11-12 22:40:11 +06:00
wukko
c532062aa2 twitter spaces and a ton of improvements 2022-10-24 19:03:11 +06:00
wukko
2c79ae3807 multi media tweets support 2022-10-09 23:44:00 +06:00
wukko
c6d1761b11 vk fixes and new changelog system 2022-09-11 21:04:06 +06:00
wukko
ecf2dac5d8 fixed a silly mistake that broke soundcloud
also added an error handler for this issue if it happens ever again
2022-09-04 10:14:25 +06:00
wukko
9ea832caf5 tiktok images and crowdin 2022-09-03 21:32:39 +06:00
wukko
f70128f4fc fix small issues 2022-09-01 19:51:18 +06:00
wukko
5b61e95c1f oops: part 2 2022-08-23 21:05:30 +06:00
wukko
7472b1732a forgor 2022-08-23 20:47:08 +06:00
wukko
a8b5555a1b added ability to download full audios from tiktok (3.3.5)
- it's now possible to download full audios from tiktok videos, you just have to turn that on in settings.
- tiktok audios are better in quality when it's possible to get exact audio used in video and not the full version of it.
- cleaned up the way user preference stuff is passed over between modules, should be way more flexible now.
- added audio ignore list to services config json instead of hardcoding it.
2022-08-23 20:43:56 +06:00