Unrud / video-downloader

Download videos from websites like YouTube and many others (based on yt-dlp)
GNU General Public License v3.0
794 stars 97 forks source link

FileNotFoundError: [Errno 2] No such file or directory #264

Closed vitacell closed 8 months ago

vitacell commented 8 months ago

When the program tryes to download a video, it says:

FileNotFoundError: [Errno 2] No such file or directory

dik23 commented 8 months ago

I get the same while using 0.12.11

When I look in the download location I find a folder which contains multiple files, depending on the source

There's always a .json a .m4a and a .mp4. Sometimes there's a .png

The .m4a and .mp4 can be combined into a, for example, .mkv which then works as I would expect the result if the error wasn't shown

Unrud commented 8 months ago

URL?

dik23 commented 8 months ago

Every URL

Examples:

https://www.bbc.co.uk/news/av/world-us-canada-68642024

https://www.reddit.com/r/AbruptChaos/comments/1bplgx1/they_saw_an_opportunity/

https://www.youtube.com/watch?v=i3svmrkl3_M

Result is always the same

I'm using the flatpak install

image

Unrud commented 8 months ago

Run the following command to get the complete stack trace:

env G_MESSAGES_DEBUG=yt-dlp flatpak run com.github.unrud.VideoDownloader
dik23 commented 8 months ago

download.log

Unrud commented 8 months ago

The error is related to the flatpak document portal. Change the download folder to ~/Downloads/VideoDownloader until the issue is resolved.

dik23 commented 8 months ago

Works for me

Unrud commented 8 months ago

Fixed in v0.12.12. It includes a workaround for https://github.com/flatpak/xdg-desktop-portal/issues/475.