jely2002 / youtube-dl-gui

A cross-platform GUI for youtube-dl made in Electron and node.js
GNU Affero General Public License v3.0
6.53k stars 456 forks source link

Fix "Open file" and "Show file in folder" buttons not working #336

Closed shanebrowncs closed 2 years ago

shanebrowncs commented 2 years ago

This pull request fixes issue #305.

The root cause was yt-dlp changing the prefix of their extractor output from [ffmpeg] to multiple names in different scenarios (examples below). I have made the parsing more generic in that it looks for the name of the action excluding the [bracketed] prefix.

[ffmpeg] Adding metadata to
[ffmpeg] Destination:

To:

[Metadata] Adding metadata to
[ExtractAudio] Destination:
[download] Destination:
Firefox0 commented 2 years ago

This doesn't fix the issue for me.