updated README and updated Failed text to incomplete
This commit is contained in:
parent
f59875a76b
commit
74c82731e2
2 changed files with 17 additions and 17 deletions
10
README.md
10
README.md
|
|
@ -134,7 +134,7 @@ Once there, you can use the yt-dlp command freely.
|
|||
|
||||
## Building and running locally
|
||||
|
||||
Make sure you have `node.js` and Python `3.11+` installed.
|
||||
Make sure you have `nodejs` and `Python 3.11+` installed.
|
||||
|
||||
```bash
|
||||
cd ytptube/frontend
|
||||
|
|
@ -181,7 +181,7 @@ The `config/ytdlp.json`, is a json file which can be used to alter the default `
|
|||
"format_sort": [
|
||||
"codec:avc:m4a"
|
||||
],
|
||||
// Your Choice of subtitle languages to download.
|
||||
// Your choice of subtitle languages to download.
|
||||
"subtitleslangs": [ "en", "ar" ],
|
||||
// postprocessors to run on the file
|
||||
"postprocessors": [
|
||||
|
|
@ -260,7 +260,7 @@ The `config/webhooks.json`, is a json file, which can be used to add webhook end
|
|||
// (on: array) - OPTIONAL - List of accepted events, if left empty it will send all events.
|
||||
// Allowed events ["added", "completed", "error", "not_live" ] you can choose one or all of them.
|
||||
"on": [ "added", "completed", "error", "not_live" ],
|
||||
"request":{
|
||||
"request": {
|
||||
// (url: string) - REQUIRED- The webhook url
|
||||
"url": "https://mysecert.webhook.com/endpoint",
|
||||
// (type: string) - OPTIONAL - The request type, it can be json or form.
|
||||
|
|
@ -268,7 +268,7 @@ The `config/webhooks.json`, is a json file, which can be used to add webhook end
|
|||
// (method: string) - OPTIONAL - The request method, it can be POST or PUT
|
||||
"method": "POST",
|
||||
// (headers: dictionary) - OPTIONAL - Extra headers to include.
|
||||
"headers":{
|
||||
"headers": {
|
||||
"Authorization": "Bearer my_secret_token"
|
||||
}
|
||||
}
|
||||
|
|
@ -278,7 +278,7 @@ The `config/webhooks.json`, is a json file, which can be used to add webhook end
|
|||
|
||||
# Social contact
|
||||
|
||||
If you have short or quick questions, you are free to join my [discord server](https://discord.gg/haUXHJyj6Y) and ask
|
||||
If you have short or quick questions, you are free to join my [discord server](https://discord.gg/G3GpVR8xpb) and ask
|
||||
the question. keep in mind it's solo project, as such it might take me a bit of time to reply.
|
||||
|
||||
# Donation
|
||||
|
|
|
|||
|
|
@ -43,23 +43,23 @@
|
|||
</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="column is-half-mobile" v-if="hasFailed">
|
||||
<button type="button" class="button is-fullwidth is-info is-inverted" @click="clearFailed">
|
||||
<div class="column is-half-mobile" v-if="hasIncomplete">
|
||||
<button type="button" class="button is-fullwidth is-info is-inverted" @click="clearIncomplete">
|
||||
<span class="icon-text is-block">
|
||||
<span class="icon">
|
||||
<font-awesome-icon icon="fa-solid fa-circle-xmark" />
|
||||
</span>
|
||||
<span>Clear Failed</span>
|
||||
<span>Clear Incomplete</span>
|
||||
</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="column is-half-mobile" v-if="hasFailed">
|
||||
<button type="button" class="button is-fullwidth is-warning is-inverted" @click="requeueFailed">
|
||||
<div class="column is-half-mobile" v-if="hasIncomplete">
|
||||
<button type="button" class="button is-fullwidth is-warning is-inverted" @click="requeueIncomplete">
|
||||
<span class="icon-text is-block">
|
||||
<span class="icon">
|
||||
<font-awesome-icon icon="fa-solid fa-rotate-right" />
|
||||
</span>
|
||||
<span>Re-queue Failed</span>
|
||||
<span>Re-queue Incomplete</span>
|
||||
</span>
|
||||
</button>
|
||||
</div>
|
||||
|
|
@ -144,7 +144,7 @@
|
|||
</div>
|
||||
<div class="columns is-mobile is-multiline">
|
||||
<div class="column is-half-mobile" v-if="item.status != 'finished'">
|
||||
<a class="button is-warning is-fullwidth" v-tooltip="'Re-queue failed download.'"
|
||||
<a class="button is-warning is-fullwidth" v-tooltip="'Re-queue incomplete download.'"
|
||||
@click="reQueueItem(item)">
|
||||
<span class="icon-text is-block">
|
||||
<span class="icon">
|
||||
|
|
@ -267,7 +267,7 @@ const showMessage = (item) => {
|
|||
return item.msg.length > 0;
|
||||
}
|
||||
|
||||
const hasFailed = computed(() => {
|
||||
const hasIncomplete = computed(() => {
|
||||
if (Object.keys(props.completed)?.length < 0) {
|
||||
return false;
|
||||
}
|
||||
|
|
@ -312,8 +312,8 @@ const clearCompleted = () => {
|
|||
emits('deleteItem', 'completed', keys);
|
||||
}
|
||||
|
||||
const clearFailed = () => {
|
||||
const state = confirm('Are you sure you want to clear all failed downloads?');
|
||||
const clearIncomplete = () => {
|
||||
const state = confirm('Are you sure you want to clear all incomplete downloads?');
|
||||
if (false === state) {
|
||||
return;
|
||||
}
|
||||
|
|
@ -349,8 +349,8 @@ const setIcon = (item) => {
|
|||
return 'fa-solid fa-circle';
|
||||
}
|
||||
|
||||
const requeueFailed = () => {
|
||||
if (false === confirm('Are you sure you want to re-queue all failed downloads?')) {
|
||||
const requeueIncomplete = () => {
|
||||
if (false === confirm('Are you sure you want to re-queue all incomplete downloads?')) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue