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

FR: Optional download folder #292

Closed gerroon closed 9 months ago

gerroon commented 1 year ago

Hi

It would be very nice if there was an optional subfolder option for the currently added playlist/video list to be downloaded to. If no folder defined the downloads will be going to be in the default set folder. If a folder is given then that folder will be created in the main folder and the currently added videos at the time of custom folder will be put in that subfolder.

thanks

alexta69 commented 1 year ago

But this feature exists -- if you click the arrow to the right of the Add button, you can add a custom subfolder. Is there anything wrong with it?

gerroon commented 1 year ago

Hah, epic. I did not see it. I will give it a try

esturniolo commented 2 months ago

Hi! Am I doing something wrong?

If I try to download something and I clikc the arrow and where it says "Custom name prefix" add some thing like this: name/

A new directory name is created, but the files created will be created inside the new directory called name but it will created with a .

So the files will be hidden in the new directory.

PikuZheng commented 2 months ago

Hi! Am I doing something wrong?

If I try to download something and I clikc the arrow and where it says "Custom name prefix" add some thing like this: name/

A new directory name is created, but the files created will be created inside the new directory called name but it will created with a .

So the files will be hidden in the new directory.

looks like #413 and he said his OUTPUT_TEMPLATE was missing .%(ext)s

esturniolo commented 2 months ago

Thanks for your fast response @PikuZheng The dot in the beggining appears and the extension too. I mean, I don't have any problem with the extension.

I tried with this in my docker compose file

    environment:
      - OUTPUT_TEMPLATE=%(title)s.%(ext)s 

And I still have the . in the begining of the file. 🤔 imagen

PikuZheng commented 2 months ago

oh I see. if you want to download to subdir, why not create it and use Download Folder?

yes there is a · between custom_name_prefix and OUTPUT_TEMPLATE but why? @hellodword

https://github.com/alexta69/metube/blob/2ff7b0975a519273c3ac8c5ed403352bbc667fd7/app/ytdl.py#L252

esturniolo commented 2 months ago

oh I see. if you want to download to subdir, why not create it and use Download Folder?

Because I'll create the folders depending the download items. I've some "main" folders and then I want to create "dynamically" (manually) the folder name for that thinkg downlaoded. If you have any other way to do this, I'm all ears.

And I'm happy to see that I'm not crazy and the dot is really there. 😆