yplaylist-0.5 - yad Youtube downloader

Moderator: Forum moderators

Post Reply
plinej
Posts: 248
Joined: Thu Jul 16, 2020 1:39 am
Has thanked: 9 times
Been thanked: 108 times

yplaylist-0.5 - yad Youtube downloader

Post by plinej »

yplaylist.png
yplaylist.png (23.61 KiB) Viewed 3743 times

Here's a little yad program that uses yt-dlp, ffmpeg, and ffprobe as backends. Paste in the Youtube playlist (or single video) that you'd like to download and select output directory, resolution, video and audio codecs. Tick the checkboxes if you want to trim silence from the start and end of videos and/or merge all videos in playlist to one video.

0.5 is a bit of a re-write. This version won't overwrite an existing file if the same file name already exists in the save directory, you will be prompted to select available audio and video, you can input video url links from non-youtube sites that yt-dlp supports. If you want just the video (no audio) from a youtube link, you can select null for your audio source. If you want just the audio (no video) from a youtube link, you can select null for your video source. The original intent of this script was to download as well as strip silence and merge files of a youtube playlist and that is still a function if a playlist link is submitted.

yplaylist-0.4.pet
(8.48 KiB) Downloaded 257 times
yplaylist-0.5.pet
(8.27 KiB) Downloaded 120 times
Last edited by plinej on Wed Apr 23, 2025 1:14 am, edited 4 times in total.
You can download my packages at https://archive.org/download/plinej-packages
User avatar
Governor
Posts: 1059
Joined: Sat Nov 12, 2022 7:11 pm
Location: https://rumble.com/v6sc4r5-karoline-lea ... inute.html
Has thanked: 297 times
Been thanked: 50 times
Contact:

Re: yplaylist-0.1 - yad Youtube downloader

Post by Governor »

:thumbup2:

plinej wrote: Mon Mar 25, 2024 11:48 pm

Here's a little yad program that uses yt-dlp, ffmpeg, and ffprobe as backends. Paste in the Youtube playlist (or single video) that you'd like to download and select output directory, resolution, video and audio codecs. Tick the checkboxes if you want to trim silence from the start and end of videos and/or merge all videos in playlist to one video.

yplaylist-0.1.pet

Where we go one, we go all.

User avatar
Jasper
Posts: 1906
Joined: Wed Sep 07, 2022 1:20 pm
Has thanked: 909 times
Been thanked: 392 times

Re: yplaylist-0.1 - yad Youtube downloader

Post by Jasper »

@plinej

Feature request - audio only downloads?

plinej
Posts: 248
Joined: Thu Jul 16, 2020 1:39 am
Has thanked: 9 times
Been thanked: 108 times

Re: yplaylist-0.1 - yad Youtube downloader

Post by plinej »

@Jasper, I should be able to implement that. I'll probably work on it tomorrow.

You can download my packages at https://archive.org/download/plinej-packages
User avatar
bigpup
Moderator
Posts: 7567
Joined: Tue Jul 14, 2020 11:19 pm
Location: Earth, South Eastern U.S.
Has thanked: 1031 times
Been thanked: 1689 times

Re: yplaylist-0.1 - yad Youtube downloader

Post by bigpup »

If you are tweaking.

I suggest you have it start with output directory already set to /mnt/home

That is a good location to download and not have the stuff in the save file/folder

/mnt/home will be the partition the Puppy OS is installed on or the partition where the save is located.

Just placed on the partition and not inside any directory.

For me it starts with root selected and that would be a location in the save.

The things you do not tell us, are usually the clue to fixing the problem.
When I was a kid, I wanted to be older.
This is not what I expected :o

plinej
Posts: 248
Joined: Thu Jul 16, 2020 1:39 am
Has thanked: 9 times
Been thanked: 108 times

Re: yplaylist-0.2 - yad Youtube downloader

Post by plinej »

0.2 is up. Audio only download checkbox added and if you've never run the program and if /mnt/home exists that will be the default save directory.

You can download my packages at https://archive.org/download/plinej-packages
User avatar
bigpup
Moderator
Posts: 7567
Joined: Tue Jul 14, 2020 11:19 pm
Location: Earth, South Eastern U.S.
Has thanked: 1031 times
Been thanked: 1689 times

Re: yplaylist-0.2 - yad Youtube downloader

Post by bigpup »

Not seeing the /mnt/home change in version 0.2

Yes It has /mnt/home in the operating file system.

This is what I see:
.

Screenshot.jpg
Screenshot.jpg (20.11 KiB) Viewed 3410 times

The things you do not tell us, are usually the clue to fixing the problem.
When I was a kid, I wanted to be older.
This is not what I expected :o

User avatar
Jasper
Posts: 1906
Joined: Wed Sep 07, 2022 1:20 pm
Has thanked: 909 times
Been thanked: 392 times

Re: yplaylist-0.2 - yad Youtube downloader

Post by Jasper »

@plinej

Happy Easter!!

Thank you, works perfectly for me :thumbup2:

plinej
Posts: 248
Joined: Thu Jul 16, 2020 1:39 am
Has thanked: 9 times
Been thanked: 108 times

Re: yplaylist-0.2 - yad Youtube downloader

Post by plinej »

@bigpup, you're right...

You can download my packages at https://archive.org/download/plinej-packages
plinej
Posts: 248
Joined: Thu Jul 16, 2020 1:39 am
Has thanked: 9 times
Been thanked: 108 times

Re: yplaylist-0.3 - yad Youtube downloader

Post by plinej »

0.3 is up. Try that @bigpup. You will have to delete ~/.yplaylist if you've run the program to see /mnt/home as the default save to...

You can download my packages at https://archive.org/download/plinej-packages
User avatar
bigpup
Moderator
Posts: 7567
Joined: Tue Jul 14, 2020 11:19 pm
Location: Earth, South Eastern U.S.
Has thanked: 1031 times
Been thanked: 1689 times

Re: yplaylist-0.3 - yad Youtube downloader

Post by bigpup »

Tried version 0.3

You got it!

Now starts set to download to /mnt/home

Nice little program!

I like it! :thumbup:

Note:
I am using it in BookwormPup64 10.0.6

The things you do not tell us, are usually the clue to fixing the problem.
When I was a kid, I wanted to be older.
This is not what I expected :o

plinej
Posts: 248
Joined: Thu Jul 16, 2020 1:39 am
Has thanked: 9 times
Been thanked: 108 times

Re: yplaylist-0.4 - yad Youtube downloader

Post by plinej »

updated to 0.4 bugfix

You can download my packages at https://archive.org/download/plinej-packages
User avatar
vtpup
Posts: 788
Joined: Sat Aug 15, 2020 2:34 pm
Location: Republic of Vermont
Has thanked: 216 times
Been thanked: 183 times
Contact:

Re: yplaylist-0.4 - yad Youtube downloader

Post by vtpup »

Thanks @plinej for this useful Youtube downloader. I've been using it on my laptop (in sig) for a couple weeks now and like it a lot.

I have come up with an issue, and that is, if I download a video from YouTube into a directory which has a video with the same title as another video, the first video gets overwritten, even though they are different youtube videos, with different youtube addresses.

For example if a downloade video in my folder is called "Engine Start" and I visit another channel with a video called "Engine Start" and download that one, it will simply overwrite the earlier video, with no warning, and then close.

Two possible solutions:

1.) Stop before saving to a duplicate name, and ask a user if they want to alter the name to something unique, or:

2.) Add a digit to the title or use the actual Youtube video address hash as part of the name, since those are unique. For example: Engine Start AwOvdq2YM1z.mkv

And a request:

It would be great, when downloading multiple videos, if the program didn't just close automatically after downloading one. Presently I keep opening the program again to download the next video.

Thanks again for this little program!

HP Envy Laptop 17t-cr100
Fossapup F-96 CE rev 4
Huge kernel: huge-6.1.8-fossapup64

My homemade foam boat:
www.youtube.com/watch?v=4sDubB0-REg

User avatar
vtpup
Posts: 788
Joined: Sat Aug 15, 2020 2:34 pm
Location: Republic of Vermont
Has thanked: 216 times
Been thanked: 183 times
Contact:

Re: yplaylist-0.4 - yad Youtube downloader

Post by vtpup »

Sorry to say, this down;loader is no longer working for me. Is there an update or alternative?

Example, YouTube video 0hoE_MuFpPI

Code: Select all

##### starting download process /mnt/home/my-documents/my-videos/CRANKSHAFT BALANCING MADE EASY | Finding Crankshaft Balance Factor | 2 STROKE TUNING #####
[youtube] Extracting URL: https://www.youtube.com/watch?v=0hoE_MuFpPI
[youtube] 0hoE_MuFpPI: Downloading webpage
[youtube] 0hoE_MuFpPI: Downloading tv client config
[youtube] 0hoE_MuFpPI: Downloading player 9599b765
[youtube] 0hoE_MuFpPI: Downloading tv player API JSON
[youtube] 0hoE_MuFpPI: Downloading ios player API JSON
WARNING: [youtube] 0hoE_MuFpPI: Native nsig extraction failed: Trying with PhantomJS
         n = DZAhEIgujhCwzGN ; player = https://www.youtube.com/s/player/9599b765/player_ias.vflset/en_US/base.js
[youtube] 0hoE_MuFpPI: Executing signature code
WARNING: [youtube] 0hoE_MuFpPI: nsig extraction failed: Some formats may be missing
         n = DZAhEIgujhCwzGN ; player = https://www.youtube.com/s/player/9599b765/player_ias.vflset/en_US/base.js
WARNING: [youtube] 0hoE_MuFpPI: Native nsig extraction failed: Trying with PhantomJS
         n = qYqovqWc1qwxt9Y ; player = https://www.youtube.com/s/player/9599b765/player_ias.vflset/en_US/base.js
[youtube] 0hoE_MuFpPI: Executing signature code
WARNING: [youtube] 0hoE_MuFpPI: nsig extraction failed: Some formats may be missing
         n = qYqovqWc1qwxt9Y ; player = https://www.youtube.com/s/player/9599b765/player_ias.vflset/en_US/base.js
WARNING: [youtube] 0hoE_MuFpPI: Native nsig extraction failed: Trying with PhantomJS
         n = IrZmAZz61y0jRWn ; player = https://www.youtube.com/s/player/9599b765/player_ias.vflset/en_US/base.js
[youtube] 0hoE_MuFpPI: Executing signature code
WARNING: [youtube] 0hoE_MuFpPI: nsig extraction failed: Some formats may be missing
         n = IrZmAZz61y0jRWn ; player = https://www.youtube.com/s/player/9599b765/player_ias.vflset/en_US/base.js
WARNING: [youtube] 0hoE_MuFpPI: Native nsig extraction failed: Trying with PhantomJS
         n = VFoPXwtNYX0vNEI ; player = https://www.youtube.com/s/player/9599b765/player_ias.vflset/en_US/base.js
[youtube] 0hoE_MuFpPI: Executing signature code
WARNING: [youtube] 0hoE_MuFpPI: nsig extraction failed: Some formats may be missing
         n = VFoPXwtNYX0vNEI ; player = https://www.youtube.com/s/player/9599b765/player_ias.vflset/en_US/base.js
[youtube] 0hoE_MuFpPI: Downloading m3u8 information
ERROR: [youtube] 0hoE_MuFpPI: Requested format is not available. Use --list-formats for a list of available formats
yt-dlp --force-overwrites --embed-metadata --embed-subs --embed-chapters --no-check-certificate -S vcodec:h264 -f bestvideo[height<=720]+bestaudio[ext=m4a]/best[height<=720] --newline --merge-output-format mkv --default-search ytsearch https://www.youtube.com/watch?v=0hoE_MuFpPI -o CRANKSHAFT BALANCING MADE EASY | Finding Crankshaft Balance Factor | 2 STROKE TUNING.mkv
above command was run but no output file was downloaded, exiting...
##### No files downloaded #####
##### All processes complete #####

HP Envy Laptop 17t-cr100
Fossapup F-96 CE rev 4
Huge kernel: huge-6.1.8-fossapup64

My homemade foam boat:
www.youtube.com/watch?v=4sDubB0-REg

User avatar
vtpup
Posts: 788
Joined: Sat Aug 15, 2020 2:34 pm
Location: Republic of Vermont
Has thanked: 216 times
Been thanked: 183 times
Contact:

Re: yplaylist-0.4 - yad Youtube downloader

Post by vtpup »

Solved it.

In console, type:

Code: Select all

yt-dlp -U

updates yt-dlp.

nevermind......

HP Envy Laptop 17t-cr100
Fossapup F-96 CE rev 4
Huge kernel: huge-6.1.8-fossapup64

My homemade foam boat:
www.youtube.com/watch?v=4sDubB0-REg

Clarity
Posts: 4280
Joined: Fri Jul 24, 2020 10:59 pm
Has thanked: 1840 times
Been thanked: 578 times

Re: yplaylist-0.4 - yad Youtube downloader

Post by Clarity »

Nice PET.

Could the "update" feature be added to the Window? OR, should an update be run in the background each time the Window is launched?

Reason: yt-dlp frequently updates without notifications

Just an idea

User avatar
Governor
Posts: 1059
Joined: Sat Nov 12, 2022 7:11 pm
Location: https://rumble.com/v6sc4r5-karoline-lea ... inute.html
Has thanked: 297 times
Been thanked: 50 times
Contact:

Re: yplaylist-0.4 - yad Youtube downloader

Post by Governor »

Does anyone have a solution for this TAR file issue with YT-DLP?
Thanks!

Code: Select all

/mnt/sda1/Images and Videos/Temp#_yt-dlp https://rumble.com/v6rvxfv-the-lone-gunmen-was-short-lived-spin-off-of-the-x-files-predicted-911.html
[Rumble] Extracting URL: https://rumble.com/v6rvxfv-the-lone-gunmen-was-short-lived-spin-off-of-the-x-files-predicted-911.html
[Rumble] v6rvxfv-the-lone-gunmen-was-short-lived-spin-off-of-the-x-files-predicted-911.html: Downloading webpage
[RumbleEmbed] Extracting URL: https://rumble.com/embed/v6pp171
[RumbleEmbed] v6pp171: Downloading JSON metadata
[RumbleEmbed] v6pp171: Downloading m3u8 information
[info] v6pp171: Downloading 1 format(s): tar-470p
ERROR: The extracted extension ('tar') is unusual and will be skipped for safety reasons. If you believe this is an error, please report this issue on  https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using  yt-dlp -U
/mnt/sda1/Images and Videos/Temp#_

BookwormPup64 10.0.6 (x86_64)

Where we go one, we go all.

User avatar
Wiz57
Moderator
Posts: 851
Joined: Fri Dec 13, 2019 3:54 pm
Location: Chickasha, OK USA
Has thanked: 114 times
Been thanked: 222 times

Re: yplaylist-0.4 - yad Youtube downloader

Post by Wiz57 »

Read and follow the instructions in the error message...

ERROR: The extracted extension ('tar') is unusual and will be skipped for safety reasons. If you believe this is an error, please report this issue on https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using yt-dlp -U

Signature available upon request

User avatar
Governor
Posts: 1059
Joined: Sat Nov 12, 2022 7:11 pm
Location: https://rumble.com/v6sc4r5-karoline-lea ... inute.html
Has thanked: 297 times
Been thanked: 50 times
Contact:

Re: yplaylist-0.4 - yad Youtube downloader

Post by Governor »

Wiz57 wrote: Mon Apr 14, 2025 8:37 pm

Read and follow the instructions in the error message...

ERROR: The extracted extension ('tar') is unusual and will be skipped for safety reasons. If you believe this is an error, please report this issue on https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using yt-dlp -U

Yes, I saw that, but since I am running a Linux yt-dlp, I am wondering how TAR can be an unknown file format for a Linux program. 🤔
It just seems odd to me. I also wonder if this could be a subterfuge to prevent users from downloading videos, and if someone else had already dealt with the issue.

Where we go one, we go all.

User avatar
Jasper
Posts: 1906
Joined: Wed Sep 07, 2022 1:20 pm
Has thanked: 909 times
Been thanked: 392 times

Re: yplaylist-0.4 - yad Youtube downloader

Post by Jasper »

@Governor ............ to download your video (HLS ...... streaming video)

Image

Image

Image

User avatar
Governor
Posts: 1059
Joined: Sat Nov 12, 2022 7:11 pm
Location: https://rumble.com/v6sc4r5-karoline-lea ... inute.html
Has thanked: 297 times
Been thanked: 50 times
Contact:

Re: yplaylist-0.4 - yad Youtube downloader

Post by Governor »

Jasper wrote: Tue Apr 15, 2025 7:48 am

@Governor ............ to download your video (HLS ...... streaming video)

Image

Image

Wow, that was amazing! :thumbup: :thumbup:
Currently on fossapup 9.5. Even though it worked great.
Deprecated Feature: Support for Python version 3.8 has been deprecated. Please update to Python 3.9 or above

I searched for python in the PPM and got nothing. How would I upgrade python in fossapup 9.5?
Thanks!

Where we go one, we go all.

User avatar
Jasper
Posts: 1906
Joined: Wed Sep 07, 2022 1:20 pm
Has thanked: 909 times
Been thanked: 392 times

Re: yplaylist-0.4 - yad Youtube downloader

Post by Jasper »

Which version of yt-dlp is installed?

Did you install it via Python?

Directly as a binary from GitHub?

Via a 3rd party application?

Yplaylist works great, your issue is not pertinent to the application.

Best to create a separate thread/topic.

libertas
Posts: 158
Joined: Thu Apr 22, 2021 8:35 pm
Has thanked: 31 times
Been thanked: 7 times

Re: yplaylist-0.4 - yad Youtube downloader

Post by libertas »

Hi @plinej,

Your work is great, but could be enhanced with some other functionalities.

1. To download a video with embedded subtitles, that is useful when we want something translated or just transcribed.
This command works:
youtube-dl --sub-lang pt,en --write-sub --write-auto-sub --embed-subs https://www.youtube.com/watch?v=
Can be youtube-dl or yt-dlp, of course.

With mpv we can choose which subtitle to use, pressing the v or j/J keys.

2. The above command can be combined with the following to download all videos from a playlist using embedded subtitles:
youtube-dl -i -f mp4 --yes-playlist 'https://.....'

3. Some other options regarding maximum or minimum quality of image
# Download best mp4 format available or any other best if no mp4 available
$ youtube-dl -f 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best'

# Download best format available but no better than 480p
$ youtube-dl -f 'bestvideo[height<=480]+bestaudio/best[height<=480]'

# Download best video only format but no bigger than 50 MB
$ youtube-dl -f 'best[filesize<50M]'

Sometimes it's good to have 4K videos, sometimes 360p are enough, depending on the subject, and on the purpose of it.

Thank you!

plinej
Posts: 248
Joined: Thu Jul 16, 2020 1:39 am
Has thanked: 9 times
Been thanked: 108 times

Re: yplaylist-0.4 - yad Youtube downloader

Post by plinej »

@libertas, I should be able to implement all that fairly easily. I'll probably look into that soon.

You can download my packages at https://archive.org/download/plinej-packages
User avatar
Jasper
Posts: 1906
Joined: Wed Sep 07, 2022 1:20 pm
Has thanked: 909 times
Been thanked: 392 times

Re: yplaylist-0.4 - yad Youtube downloader

Post by Jasper »

@plinej

Would it be useful to add the ability to use browser cookies for logged in sites?

This would allow to download content.

However, you would need to prompt the user to 'log in' to the site beforehand.

Cookies, vary in the length of duration validity. So, they would need to be reminded.

libertas
Posts: 158
Joined: Thu Apr 22, 2021 8:35 pm
Has thanked: 31 times
Been thanked: 7 times

Re: yplaylist-0.4 - yad Youtube downloader

Post by libertas »

Hi @plinej,

Another useful feature is regarding comments of a video.
Sometimes, they have useful information and it would be nice to have them in a text file where they can be stored like so, or grepped.
.
Your app could have an option to download the comments file, and then to choose the output format for them, like html or json.

This https://www.reddit.com/r/youtubedl/comm ... ment_file/ explains how to do this.
A script

Code: Select all

ytdlp_nest_comments.py

converts from the info.json file to a html or json file.

When we want only the comments and don't want to download the video, the

Code: Select all

yt-dlp --write-comments --no-download

is one way to do this, and then use the

Code: Select all

ytdlp_nest_comments.py

afterwards.

User avatar
mikeslr
Posts: 3115
Joined: Mon Jul 13, 2020 11:08 pm
Has thanked: 182 times
Been thanked: 1001 times

Re: yplaylist-0.4 - yad Youtube downloader

Post by mikeslr »

Works well under BookwormPup64 and NoblePup64.

Does not work under F-96: complains about IIRC python version. I don't mess with pythons. ;)

plinej
Posts: 248
Joined: Thu Jul 16, 2020 1:39 am
Has thanked: 9 times
Been thanked: 108 times

Re: yplaylist-0.5 - yad Youtube downloader

Post by plinej »

0.5 is up

You can download my packages at https://archive.org/download/plinej-packages
Post Reply

Return to “Browsers and Internet”