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

mpv not opening YouTube links through XDG protocol handler #15957

Open
6 tasks done
isaacnonato opened this issue Feb 24, 2025 · 2 comments
Open
6 tasks done

mpv not opening YouTube links through XDG protocol handler #15957

isaacnonato opened this issue Feb 24, 2025 · 2 comments

Comments

@isaacnonato
Copy link

mpv Information

mpv 0.39.0 Copyright © 2000-2024 mpv/MPlayer/mplayer2 projects
 built on Dec 24 2024 20:11:41
libplacebo version: v6.338.2
FFmpeg version: 6.1.2
FFmpeg library versions:
   libavcodec      60.31.102
   libavdevice     60.3.100
   libavfilter     9.12.100
   libavformat     60.16.100
   libavutil       58.29.100
   libswresample   4.12.100
   libswscale      7.5.100

Other Information

- Linux version: Void Linux
- Kernel Version: 6.12.11_1
- GPU Model: AMD RX 6600
- Mesa/GPU Driver Version: Mesa 24.2.8
- Window Manager and Version: i3 4.24
- Source of mpv: XBPS repositories

Reproduction Steps

  • Set up an XDG protocol handler for URLs starting with mpv:// (or anything else)
  • On the Exec field, put open_mpv %u where open_mpv is a script that strips the first x characters from the passed URL (since the full URL with mpv:// is passed to XDG), in my case:
#!/bin/bash

full_url="$1"
yt_url="${full_url:6}"
mpv --gpu-debug --log-file=/tmp/out.txt "$yt_url"
  • Open a YouTube link with mpv:// on the web browser

Expected Behavior

mpv should treat the URL as a YouTube link and start playing the YouTube video.

Actual Behavior

mpv treats the URL as the name of a normal file and instead tries to find the file at the home directory, failing to do so.

Log File

out.txt

Sample Files

No response

I carefully read all instruction and confirm that I did the following:

  • I tested with the latest mpv version to validate that the issue is not already fixed.
  • I provided all required information including system and mpv version.
  • I produced the log file with the exact same set of files, parameters, and conditions used in "Reproduction Steps", with the addition of --log-file=output.txt.
  • I produced the log file while the behaviors described in "Actual Behavior" were actively observed.
  • I attached the full, untruncated log file.
  • I attached the backtrace in the case of a crash.
@Dudemanguy
Copy link
Member

mpv://

It's not expected to work. Would be fixed by #15898

@kasper93
Copy link
Contributor

For youtube you can register ytdl:// and it should work fine.

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

No branches or pull requests

3 participants