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
Honor mpv HTTP headers when streaming videos #266
Comments
I have no idea how the mpv referrer system works, so you might need to do some more research and figure out how to implement it yourself (or find someone who can) if you want this feature. |
@LiteracyFanatic Does running Syncplay 1.6.7 and under 'Player Arguments' specifying referrer=URL work? |
Unfortunately it still doesn't work. I've attached a log file. This line stood out to me.
Maybe this needs to be handled from lua. Perhaps loading a URL from lua doesn't respect the command line options. |
It works but something happens with quotes that breaks it. If I put This doesn't happen when you put To check this enable mpv console and do |
I've not tested your particular use case but I have added some code to strip quotation marks from the beginning and end of per-player arguments which hopefully resolves any Syncplay-side issues with handling player arguments (5c3982f). |
Some streaming sites require certain HTTP headers to be set in order to play properly. For example, using plain MPV,
mpv 'https://twist.moe/anime/trigun/[a-s]_trigun_-_01_-_the_$$60_billion_man__rs2_[590CCDF8].mp4'
fails butmpv --referrer 'https://twist.moe/' 'https://twist.moe/anime/trigun/[a-s]_trigun_-_01_-_the_$$60_billion_man__rs2_[590CCDF8].mp4'
works fine. I've tried adding--referrer 'https://twist.moe/'
to the player arguments in the settings window, but syncplay still fails to load the video.The text was updated successfully, but these errors were encountered: