updated README and updated Failed text to incomplete

This commit is contained in:
ArabCoders 2024-05-14 11:21:28 +03:00
parent f59875a76b
commit 74c82731e2
2 changed files with 17 additions and 17 deletions

View file

@ -134,7 +134,7 @@ Once there, you can use the yt-dlp command freely.
## Building and running locally ## 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 ```bash
cd ytptube/frontend 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": [ "format_sort": [
"codec:avc:m4a" "codec:avc:m4a"
], ],
// Your Choice of subtitle languages to download. // Your choice of subtitle languages to download.
"subtitleslangs": [ "en", "ar" ], "subtitleslangs": [ "en", "ar" ],
// postprocessors to run on the file // postprocessors to run on the file
"postprocessors": [ "postprocessors": [
@ -278,7 +278,7 @@ The `config/webhooks.json`, is a json file, which can be used to add webhook end
# Social contact # 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. the question. keep in mind it's solo project, as such it might take me a bit of time to reply.
# Donation # Donation

View file

@ -43,23 +43,23 @@
</span> </span>
</button> </button>
</div> </div>
<div class="column is-half-mobile" v-if="hasFailed"> <div class="column is-half-mobile" v-if="hasIncomplete">
<button type="button" class="button is-fullwidth is-info is-inverted" @click="clearFailed"> <button type="button" class="button is-fullwidth is-info is-inverted" @click="clearIncomplete">
<span class="icon-text is-block"> <span class="icon-text is-block">
<span class="icon"> <span class="icon">
<font-awesome-icon icon="fa-solid fa-circle-xmark" /> <font-awesome-icon icon="fa-solid fa-circle-xmark" />
</span> </span>
<span>Clear Failed</span> <span>Clear Incomplete</span>
</span> </span>
</button> </button>
</div> </div>
<div class="column is-half-mobile" v-if="hasFailed"> <div class="column is-half-mobile" v-if="hasIncomplete">
<button type="button" class="button is-fullwidth is-warning is-inverted" @click="requeueFailed"> <button type="button" class="button is-fullwidth is-warning is-inverted" @click="requeueIncomplete">
<span class="icon-text is-block"> <span class="icon-text is-block">
<span class="icon"> <span class="icon">
<font-awesome-icon icon="fa-solid fa-rotate-right" /> <font-awesome-icon icon="fa-solid fa-rotate-right" />
</span> </span>
<span>Re-queue Failed</span> <span>Re-queue Incomplete</span>
</span> </span>
</button> </button>
</div> </div>
@ -144,7 +144,7 @@
</div> </div>
<div class="columns is-mobile is-multiline"> <div class="columns is-mobile is-multiline">
<div class="column is-half-mobile" v-if="item.status != 'finished'"> <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)"> @click="reQueueItem(item)">
<span class="icon-text is-block"> <span class="icon-text is-block">
<span class="icon"> <span class="icon">
@ -267,7 +267,7 @@ const showMessage = (item) => {
return item.msg.length > 0; return item.msg.length > 0;
} }
const hasFailed = computed(() => { const hasIncomplete = computed(() => {
if (Object.keys(props.completed)?.length < 0) { if (Object.keys(props.completed)?.length < 0) {
return false; return false;
} }
@ -312,8 +312,8 @@ const clearCompleted = () => {
emits('deleteItem', 'completed', keys); emits('deleteItem', 'completed', keys);
} }
const clearFailed = () => { const clearIncomplete = () => {
const state = confirm('Are you sure you want to clear all failed downloads?'); const state = confirm('Are you sure you want to clear all incomplete downloads?');
if (false === state) { if (false === state) {
return; return;
} }
@ -349,8 +349,8 @@ const setIcon = (item) => {
return 'fa-solid fa-circle'; return 'fa-solid fa-circle';
} }
const requeueFailed = () => { const requeueIncomplete = () => {
if (false === confirm('Are you sure you want to re-queue all failed downloads?')) { if (false === confirm('Are you sure you want to re-queue all incomplete downloads?')) {
return false; return false;
} }