[Support] MeTube


Recommended Posts

  • 4 weeks later...
  • 1 month later...

is there a way to specify additional download parameters, such as:

--write-description

?

the output template is great, but doesn't quite let me do that^, thanks.

the description contains the links to the artists/songs, etc. and this would help greatly 🙏

Link to comment
10 hours ago, Construc_ said:

is there a way to specify additional download parameters, such as:

--write-description

?

the output template is great, but doesn't quite let me do that^, thanks.

the description contains the links to the artists/songs, etc. and this would help greatly 🙏

 

All the available options are described here : https://github.com/yt-dlp/yt-dlp/blob/master/yt_dlp/YoutubeDL.py#L183

 

There is indeed this option:

 

Quote

writedescription:       Write the video description to a .description file

 

The format to use in the docker container template would be to add the following in the "options" field (i.e.: the "Container Variable: YTDL_OPTIONS" variable):

 

"writedescription": true

 

Edited by Opawesome
Fix wrong link to available options
Link to comment
3 hours ago, Opawesome said:

 

All the available options are described here : https://github.com/yt-dlp/yt-dlp?tab=readme-ov-file#usage-and-options

 

There is indeed this option:

 

 

The format to use in the docker container template would be to add the following in the "options" field (i.e.: the "Container Variable: YTDL_OPTIONS" variable):

 

"writedescription": true

 

image.png.43a3f8e10bcb206ea7718dae3d3d77a1.pngi have no idea what im doing but i dont think im doing it correctly? im not entirely sure what you meant by `in the "options" field (i.e.: the "Container Variable: YTDL_OPTIONS" variable`, sorry.
i added a variable to the docker container, set its key to `YTDL_OPTIONS`, and tried both `"writedescription": true` and `--write-description` in the value field, to no effect.

where would i go to see what kinds of variables the docker container has? if thats where i should be looking for answers, thanks 🙏

image.png

image.png

Link to comment

You are in the right place 😀. I just think your syntax is wrong. You should probably set the value to:

 

{"writedescription": true}

 

to respect the JSON format requirement (I assumed you had already some options set up with the right format). See https://github.com/alexta69/metube?tab=readme-ov-file#configuration-via-environment-variables for the details.

 

It says:


 

Quote

YTDL_OPTIONS: Additional options to pass to youtube-dl, in JSON format. See available options here. They roughly correspond to command-line options, though some do not have exact equivalents here, for example --recode-video has to be specified via postprocessors. Also note that dashes are replaced with underscores. [...]

 

The following example value for YTDL_OPTIONS embeds English subtitles and chapter markers (for videos that have them), and also changes the permissions on the downloaded video and sets the file modification timestamp to the date of when it was downloaded:

environment: - 'YTDL_OPTIONS={"writesubtitles":true,"subtitleslangs":["en","-live_chat"],"updatetime":false,"postprocessors":[{"key":"Exec","exec_cmd":"chmod 0664","when":"after_move"},{"key":"FFmpegEmbedSubtitle","already_have_subtitle":false},{"key":"FFmpegMetadata","add_chapters":true}]}'

 

 

 

Edited by Opawesome
Link to comment
  • 2 weeks later...
On 9/23/2023 at 2:50 PM, Other Animal said:

Anyone feel like helping someone who has thoroughly confused themselves figure out how to get cookies to work?

 

I just got cookies going after a fair bit of trial and error.

 

I added two entries, one a path for the cookies folder, and the other is an environment variable to specify the YTDL_OPTIONS.


Path:

image.png.cf3630e1b6debc15d63036b61b77e32f.png

Host Path: /mnt/user/appdata/MeTube/cookies

 

Environment Variable:

image.png.a684c131c329f36446ff5914869e8174.png

Key: YTDL_OPTIONS

Value: {"cookiefile":"/cookies/cookies.txt"}

 

Exported my cookie file from my browser, put it into the correct folder on my server, restarted MeTube and it works.

image.png.4a26916a5baf04e9c93fbc0f040549bc.png

 

Link to comment

This youtube link does not work with mp3 download, but it works with online youtube-to-mp3 conversion. Could you please take a look. I'm running latest metube version. Thanks.

Update: I found the cause of error: the filename is too long. I don't know how to solve it because I can't set a customs filename with meTube. Any workaround solution?
Update2: I have changed the "Output Template" parameters from:

%(playlist_title)s/%(title)s.%(ext)s


to

%(title)s.%(ext)s


but meTube still can't convert it successfully. It still reported filename is too long, even the output filename is now less than 100 characters (94 to be exact including spaces). The status bar has some progress and then terminated. I did check the yt-dlp version, it is the latest one, 2024.03.10

I also tried converting it with yt-dlp.exe, same version, on my Win 11 terminal and it converted successfully
 

PS C:\Users\axath> D:/yt-dlp.exe  -o "%(title)s.%(ext)s" https://youtu.be/z6clhiZ4w4E?si=-y_Foai1Qh2KmTYp
[youtube] Extracting URL: https://youtu.be/z6clhiZ4w4E?si=-y_Foai1Qh2KmTYp
[youtube] z6clhiZ4w4E: Downloading webpage
[youtube] z6clhiZ4w4E: Downloading ios player API JSON
[youtube] z6clhiZ4w4E: Downloading android player API JSON
[youtube] z6clhiZ4w4E: Downloading m3u8 information
[info] z6clhiZ4w4E: Downloading 1 format(s): 22
[download] Destination: ไข่มุก เพ็ญสินี เพลง เอาความขมขื่นไปทิ้งแม่โขง | รอบ โจทย์เพลงทัศนาจร จากรายการเพลงเอกซีซั่น 3.mp4
[download] 100% of   27.54MiB in 00:00:01 at 23.78MiB/s
PS C:\Users\axath> d:/yt-dlp.exe --version
2024.03.10

 

Edited by bthoven
provide more updates
Link to comment
On 11/1/2021 at 3:51 PM, alexta69 said:

Hey,

Glad you're enjoying it!

There's actually a PR being worked on right now (https://github.com/alexta69/metube/pull/73) that adds MP3 support. So hopefully that will be in the master version soon enough. Other features are not planned at the moment from my side, but contributions are welcome, if you want to take a stab at it :)

Regarding YTDL_OPTIONS, it's specified that it's expected to be in JSON format, so it doesn't look to me that there's any information missing there.

 

Alex

has something happened to this docker? the download part works but when you want to edit them into or with another video there is no video this just started happening been using metube for 2 years now worked fine up to about 3 months ago so its not good unless you just want to watch it then its fine but if you want to use it in a video don't work you have to download the video then watch and screen rec it im mean i can just screen rec it from YouTube right from the get go no need to metube but if you have any info on what is going on thanks 

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.