deniscerri / ytdlnis

Android Video/Audio Downloader app using yt-dlp
GNU General Public License v3.0
3.31k stars 117 forks source link

File name too long error #427

Closed KamrulShahed closed 4 months ago

KamrulShahed commented 4 months ago

In Facebook reels and tiktok it takes the hashtags as title and gives an error when the video file name in ytdlnis is set to title. Then refuse to download the file saying writing error - file name too long. Almost 2 videos (with too many hashtags) out of 10 gives this error. Seal doesnt give this error as it trims the filename to an accepted range (characters) automatically. I am on the 1.7.3.1 version. Previous versions also had the same issue.

teddysulaimanGL commented 4 months ago

Enable the video logs or go to the Extra Commands chip, then you'll see that the app is giving the trim filenames command every single time. The issue is that the command doesn't work well with non-Roman scripts and dot characters. The better workaround for this is to limit the number of your title characters using a filename template by yourself like this %(title).100B. Use it as the default template and use that with another metadata field like uploader if required even make it as the default template so there's no need to change every time

KamrulShahed commented 4 months ago

Thanks bro. It worked.