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输出 #4448

Merged
merged 4 commits into from
Oct 10, 2023

Conversation

Asukaaaaaa
Copy link
Contributor

@Asukaaaaaa Asukaaaaaa commented Sep 22, 2023

同时支持单文件和多文件,不需要额外下载程序处理mpv协议

image

}

console.log(finalURL)
Toast.show(`<a class="link" href="${encodeURI(finalURL)}" >播放</a>`, 'MPV播放', 600e3)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

你的链接看起来是个 mpv:// 协议并且传入了 Referer 参数, 是不是可以直接 window.open?
其他的 DownloadVideoOutput 使用 Toast.show 的原因是需要通过页面内的 <a> 将 Referer 带上

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

原来如此,复用了一些其他插件的代码,没有考虑到这些哈😅
已经改成 window.open 打开了

@the1812
Copy link
Owner

the1812 commented Oct 10, 2023

先合了, PR 检查有点问题无视就好

@the1812 the1812 merged commit ed2a7cf into the1812:preview-features Oct 10, 2023
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants