alexta69 / metube

Self-hosted YouTube downloader (web UI for youtube-dl / yt-dlp)
GNU Affero General Public License v3.0
4k stars 263 forks source link

longer file names are not supported #271

Closed nothanks91 closed 1 year ago

nothanks91 commented 1 year ago

i am getting following error while trying to download few videos,

ERROR: unable to open for writing: [Errno 36] Filename too long:

i am able to download similar videos using cli by passing (-o "%(title).100B [%(id)s].%(ext)s") in download command.

is there a way we can incorporate this restriction in GUI itself?

PikuZheng commented 1 year ago

yes just set the environment variable OUTPUT_TEMPLATE of the container as python string-format. for example, %(title).50s (default is %(title).s) means cut title to 50 letters which is suitable for most file system

nowjon commented 9 months ago

This worked for me Originally: %(channel)s/%(title)s.%(ext)s Now: %(channel)s/%(title).50s.%(ext)s