nitanmarcel / tl_radio

Telegram UserBot to play and stream audio to telegram group chat using YoutubeDl and TgCalls.
GNU General Public License v3.0
16 stars 2 forks source link

Add custom extractors #8

Open nitanmarcel opened 3 years ago

nitanmarcel commented 3 years ago

While youtubedl doesn't support external extractors this could be easily made by parsing the content of an website (ex: Spotify, Deezer) search for an item title or/and artist then simply passing the result to YoutubeDl so the library can do an YouTube search for it.

Even tho the easier way is to simply use a python library I prefer doing all of this on a way that the user installing Tl-Radio doesn't have to download unnecessary packages while this can be easily done within the bot's code.