Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Help Needed: Configuring MeTube Docker Output for Numbered Playlists #554

Open
Shoaib5136 opened this issue Dec 25, 2024 · 6 comments
Open

Comments

@Shoaib5136
Copy link

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

@PikuZheng
Copy link
Contributor

are you meaning %(playlist_index)03d

@Shoaib5136
Copy link
Author

are you meaning %(playlist_index)03d

Yes

@PikuZheng
Copy link
Contributor

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

@Shoaib5136
Copy link
Author

%(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?

@PikuZheng
Copy link
Contributor

PikuZheng commented Dec 26, 2024

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?

@Shoaib5136
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants