Pattern checker: Download video or audio using cobalt.tools #386
Replies: 1 comment 3 replies
-
Thanks for the pattern! Maybe a better pattern would be this one? "Try to download using cobalt.tools": {
"regex": "^https?:\/\/(?!cobalt\\.tools)",
"replacement": "https:\/\/cobalt.tools\/#$0"
} The regexp can be expanded to only support specific domains like this: ^https?:\/\/(www\\.bilibili\\.com|www\\.youtube\\.com|www\\.tumblr\\.com)\/ but since cobalt supports a lot of different services, and the list seems to grow, maybe it is a good idea to keep the 'all' regex and let the user manually decide to apply it or not. |
Beta Was this translation helpful? Give feedback.
-
https://cobalt.tools/ is a great website for downloading videos or mp3s from lots of website like youtube, reddit etc. It doesn't have paid features or limits or any of that stuff.
It has a url query feature which we can use with the pattern checker module to save us the pasting of links into the website:
Note that this lets you use it for any website cause it supports a lot and more might get added: https://github.com/imputnet/cobalt#supported-services
If there's someone who's better at regex than me that can get it to only trigger on certain domains that would be amazing but as it is it should prove handy.
Beta Was this translation helpful? Give feedback.
All reactions