Skip to content
Permalink
Browse files
init
  • Loading branch information
gene9831 committed Feb 26, 2022
0 parents commit 47120a5870eedc3b244d2c0f3dea319ad223ec0a
Showing 6 changed files with 425 additions and 0 deletions.
@@ -0,0 +1,62 @@
/*
YouTube media parse
*/

// void OnInitialize()
// void OnFinalize()
// string GetTitle() -> get title for UI
// string GetVersion -> get version for manage
// string GetDesc() -> get detail information
// string GetLoginTitle() -> get title for login dialog
// string GetLoginDesc() -> get desc for login dialog
// string GetUserText() -> get user text for login dialog
// string GetPasswordText() -> get password text for login dialog
// string ServerCheck(string User, string Pass) -> server check
// string ServerLogin(string User, string Pass) -> login
// void ServerLogout() -> logout
//------------------------------------------------------------------------------------------------
// bool PlayitemCheck(const string &in) -> check playitem
// array<dictionary> PlayitemParse(const string &in) -> parse playitem
// bool PlaylistCheck(const string &in) -> check playlist
// array<dictionary> PlaylistParse(const string &in) -> parse playlist

string GetTitle()
{
return "Aliyun";
}

string GetVersion()
{
return "1";
}

string GetDesc()
{
return "https://www.aliyundrive.com//";
}

bool PlayitemCheck(const string &in path) {
return HostRegExpParse(path, "bj29.cn-beijing.data.alicloudccp.com/(.+)") != "";
}

string PlayitemParse(const string &in path, dictionary &MetaData, array<dictionary> &QualityList) {
// HostOpenConsole();

string userAgent = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.55 Safari/537.36 Edg/96.0.1054.34';
HostSetUrlUserAgentHTTP(path, userAgent);

string header = 'Referer: https://www.aliyundrive.com/';
header += '\nsec-ch-ua: " Not A;Brand";v="99", "Chromium";v="98", "Microsoft Edge";v="98"';
header += '\nsec-ch-ua-mobile: ?0';
header += '\nsec-ch-ua-platform: "Windows"';
header += '\nSec-Fetch-Dest: document';
header += '\nSec-Fetch-Mode: navigate';
header += '\nSec-Fetch-Site: cross-site';
header += '\nSec-Fetch-User: ?1';
header += '\nUpgrade-Insecure-Requests: 1';

HostSetUrlHeaderHTTP(path, header);

HostPrintUTF8(path);
return path;
}
Binary file not shown.
@@ -0,0 +1,15 @@
# AliyunDrive

PotPlayer 在线播放阿里云盘视频外链

如何在网页上获取外链,点击安装 tampermonkey 脚本 [阿里云盘](https://greasyfork.org/zh-CN/scripts/425955-%E9%98%BF%E9%87%8C%E4%BA%91%E7%9B%98)(支持提取阿里云盘外链的脚本不止一个,这个只是我常用的)

> 注意:目前只支持域名为 `bj29.cn-beijing.data.alicloudccp.com` 的外链
如果你使用上述脚本遇到了无法使用右键菜单复制外链的问题,有如下几种解决方法:

1. `Microsoft Edge` 浏览器最新版可以使用快捷键 `Ctrl + Shift + X` 开启复制文本功能
![1](resources/1.png)

2. 浏览器使用快捷键 `Ctrl + Shift + C` 打开开发者工具并定位元素
![2](resources/2.png)

0 comments on commit 47120a5

Please sign in to comment.