Do all the things like ++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatarSign Up
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple APILearn More
jay912319dInteresting, but what do you do with it? Download music to your smartphone?
I don't really get what it is meant for?
EDIT: Happy new year 2021!
Oktokolo173919dSo you are aiming at breaking Microsoft Word's featuritis world record? Well, good luck - it will take a while but you are definitely on the right track...
Why mp3 though, can't you download directly in opus format?
Condor3472819d@jay91 Yes, more or less. The bot is an attempt to replace my existing userbot (since the bot API is so much easier to use, and webhooks allow a simple webserver and CGI scripts to interact with Telegram instead). It also allows the bot functionalities to be separated from my own (fairly high access) account. As far as the /mp3 command in particular goes, youtube-dl requires a fairly long list of options to get what is IMO fairly basic functionality out of it... And I don't always have a shell available in the first place. So yeah, that's kinda where the bot should fill in the gaps.
Condor3472819d@electrineer OPUS isn't a very well supported format, at least in the media players I use. MP3 or FLAC are my go-to formats, but YouTube is only 128kbps anyway... MP3 fits the bill for me. ffmpeg is quite heavy compared to the rest of the Alpine system though..
@Oktokolo I mean that feature is currently a single function that's 10 lines long... Features yes (if they're useful), complex/convoluted code no, at least in my book. I strive for minimalism, and the bot is a manifestation of that (entire code is currently 137 lines long).