yash-dk / TorToolkit-Telegram

Most versatile Telegram torrent, direct-link, mega, and youtube-dl bot. Uploads to various cloud storage like Gdrive, Mega, Telegram, etc.
GNU General Public License v3.0
674 stars 1.56k forks source link

#Error Uploading Video due to caption Too Long for all command /ytdl /leech, /instadl #86

Closed norm-git closed 3 years ago

norm-git commented 3 years ago

When downloading URL from sites support using /ytdl command and URL from any supported sites containing too long text (name), get this error

2021-08-10 03:38:42,927 INFO MainThread root Uplaoding the directory:- /torapp/userdata/16285469091257668 2021-08-10 03:39:38,511 ERROR MainThread tortoolkit.core.ttk_ytdl ERROR: unable to open for writing: [Errno 36] File name too long: '/torapp/userdata/1628546972955728/#Tokio2020 en Español - ¡En tan solo 6⃣ horas viviremos la #CeremoniaDeClausura de #Tokio2020!🇯🇵 Revive el inolvidable cierre de los @juegosolimpicos #Rio2016. 🎆 Hoy será el turno de @Paris2024. 🇫🇷 #UnitedByEmotion #StrongerTogether.mp4.part

Btw, as an additional "issue" to download url with credentials, it is missing netrc support

a0v0 commented 3 years ago

also images are being uploaded as document no matter I choose Force Document or not

norm-git commented 3 years ago

also images are being uploaded as document no matter I choose Force Document or not

i didnt get you show screenshot of problem

yash-dk commented 3 years ago

Surely will look into it.

norm-git commented 3 years ago

Surely will look into it.

Good, in new ytdl downloader.py have support netrc using 'usenetrc': True in get_yt_link_detail/ydl_opts. I will wait with the new update, hopefully soon