mirror of
https://github.com/Cp0204/quark-auto-save.git
synced 2026-01-14 16:30:43 +08:00
Compare commits
2 Commits
f1cf1f0eb8
...
7472a96282
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7472a96282 | ||
|
|
a632d36ba2 |
@ -25,7 +25,11 @@
|
||||
}
|
||||
|
||||
.title {
|
||||
margin-top: 30px;
|
||||
margin-top: 36px;
|
||||
}
|
||||
|
||||
table.jsoneditor-tree>tbody>tr.jsoneditor-expandable:first-child {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.modal-body {
|
||||
@ -89,8 +93,8 @@
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div v-for="(plugin, pluginName) in formData.plugins" :key="pluginName" class="task mb-3">
|
||||
<div class="form-group row" style="display:flex; align-items:center">
|
||||
<div v-for="(plugin, pluginName) in formData.plugins" :key="pluginName">
|
||||
<div class="form-group row mb-0" style="display:flex; align-items:center;">
|
||||
<div class="col-9" data-toggle="collapse" :data-target="'#collapse_'+pluginName" aria-expanded="true" :aria-controls="'collapse_'+pluginName">
|
||||
<div class="btn btn-block text-left">
|
||||
<i class="bi bi-caret-right-fill"></i> <span v-html="`${pluginName}`"></span>
|
||||
@ -127,7 +131,7 @@
|
||||
<hr>
|
||||
<div class="row">
|
||||
<div class="col-lg-6 col-md-12">
|
||||
<div class="form-group row">
|
||||
<div class="row">
|
||||
<label class="col-form-label col-md-3">名称筛选</label>
|
||||
<div class="input-group col-md-9">
|
||||
<input type="text" class="form-control" v-model="taskNameFilter" placeholder="名称 筛选/搜索">
|
||||
@ -138,7 +142,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-6 col-md-12">
|
||||
<div class="form-group row">
|
||||
<div class="row">
|
||||
<label class="col-form-label col-md-3">路径筛选</label>
|
||||
<div class="input-group col-md-9">
|
||||
<select class="form-control" v-model="taskDirSelected">
|
||||
@ -257,7 +261,7 @@
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-2 col-form-label">运行星期</label>
|
||||
<div class="col-sm-10">
|
||||
<div class="col-sm-10 col-form-label">
|
||||
<div class="form-check form-check-inline" v-for="(day, index) in weekdays" :key="index">
|
||||
<input class="form-check-input" type="checkbox" v-model="task.runweek" :value="index+1">
|
||||
<label class="form-check-label" v-html="day"></label>
|
||||
|
||||
@ -51,7 +51,7 @@ class Aria2:
|
||||
{
|
||||
"header": [
|
||||
f"Cookie: {cookie}",
|
||||
f"User-Agent: {account.common_headers().get('user-agent')}",
|
||||
f"User-Agent: {account.USER_AGENT}",
|
||||
],
|
||||
"out": os.path.basename(save_path),
|
||||
"dir": os.path.dirname(save_path),
|
||||
|
||||
@ -151,6 +151,7 @@ class Config:
|
||||
class Quark:
|
||||
BASE_URL = "https://drive-pc.quark.cn"
|
||||
BASE_URL_APP = "https://drive-m.quark.cn"
|
||||
USER_AGENT = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) quark-cloud-drive/3.14.2 Chrome/112.0.5615.165 Electron/24.1.3.8 Safari/537.36 Channel/pckk_other_ch"
|
||||
|
||||
def __init__(self, cookie, index=None):
|
||||
self.cookie = cookie.strip()
|
||||
@ -177,7 +178,7 @@ class Quark:
|
||||
headers = {
|
||||
"cookie": self.cookie,
|
||||
"content-type": "application/json",
|
||||
"user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) quark-cloud-drive/3.14.2 Chrome/112.0.5615.165 Electron/24.1.3.8 Safari/537.36 Channel/pckk_other_ch",
|
||||
"user-agent": self.USER_AGENT,
|
||||
}
|
||||
if "headers" in kwargs:
|
||||
headers = kwargs["headers"]
|
||||
@ -263,7 +264,6 @@ class Quark:
|
||||
response = self._send_request(
|
||||
"POST", url, json=payload, params=querystring
|
||||
).json()
|
||||
print(response)
|
||||
if response.get("status") == 200:
|
||||
return True, response["data"]["stoken"]
|
||||
else:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user