metube icon indicating copy to clipboard operation
metube copied to clipboard

Help Needed: Configuring MeTube Docker Output for Numbered Playlists

Open Shoaib5136 opened this issue 1 year ago • 9 comments

Hi everyone, I'm using MeTube in a Docker Portainer setup and I'm trying to configure the output template so that the videos in a playlist are numbered in a three-digit format (e.g., 001, 002, 010, 100). Despite my attempts, I haven't been able to get the numbering to work correctly.

Here is my current Docker Compose configuration for the MeTube environment:

environment:  
  - 'OUTPUT_TEMPLATE=Playlist |%(playlist_title)s by %(playlist_uploader)s - %(playlist_index)03d of %(playlist_count)s - %(uploader|UNKNOWN_AUTHOR)s - %(title|UNKNOWN_TITLE)s - %(upload_date|UNKNOWN_DATE)s.%(ext)s'

I'm specifically trying to achieve the three-digit playlist numbering using %(playlist_index)03d, also tried with - %(autonumber)s-%(title)s.%(ext)s but it doesn't seem to be working as expected. I would appreciate any advice or examples of how others have successfully configured this. Screenshot 2024-12-26 012743 Thank you in advance for your help!

Best regards, Shoaib

Shoaib5136 avatar Dec 25 '24 20:12 Shoaib5136

are you meaning %(playlist_index)03d

PikuZheng avatar Dec 25 '24 22:12 PikuZheng

are you meaning %(playlist_index)03d

Yes

Shoaib5136 avatar Dec 25 '24 23:12 Shoaib5136

well, %(playlist_index)03d works for me. and the title is shown on the webui instead of the file name. please consider whether the saved file is correctly.

btw, if you use a conditional selector "|", The following will have no effect unless the previous expression evaluates to None

PikuZheng avatar Dec 26 '24 00:12 PikuZheng

%(playlist_index)03d

Like this? image I tried but it still didn't work if possible can you share your docker compose environment variables code?

Shoaib5136 avatar Dec 26 '24 18:12 Shoaib5136

sorry my mistoken. can you please fallback to ghcr.io/alexta69/metube:2024-08-07 and set

  - 'OUTPUT_TEMPLATE_PLAYLIST = %(playlist_title)s by %(playlist_uploader)s - %(playlist_index)03d of %(playlist_count)s - %(uploader|UNKNOWN_AUTHOR)s - %(title|UNKNOWN_TITLE)s - %(upload_date|UNKNOWN_DATE)s.%(ext)s'

and see if it's correctly?

PikuZheng avatar Dec 26 '24 23:12 PikuZheng

No need for sorry mate, I tried this but its still same no numbers

Shoaib5136 avatar Dec 27 '24 15:12 Shoaib5136

Similar issue here. I simply want the files to read as "01 Name.ext" - I tried a bunch of variations but still no luck. Keeps giving me the same output "Name.ext"

    environment:
      - 'OUTPUT_TEMPLATE_PLAYLIST = %(playlist_index)02d of %(playlist_count)s %(title|UNKNOWN_TITLE)s.%(ext)s'

markschechter avatar Feb 24 '25 04:02 markschechter

Same problem here. I wonder whether that could be due to metube's support for concurrent downloads? I could imagine (but haven't checked the code) a bug mechanism via which the playlist items would be first listed, then queued, and each individual item would get downloaded separately and not as part of a playlist. Could that be the case?

jucor avatar May 05 '25 20:05 jucor

Same problem here. I wonder whether that could be due to metube's support for concurrent downloads? I could imagine (but haven't checked the code) a bug mechanism via which the playlist items would be first listed, then queued, and each individual item would get downloaded separately and not as part of a playlist. Could that be the case?

you're right but it is another issue

PikuZheng avatar May 05 '25 23:05 PikuZheng