Merge pull request #100 from arabcoders/dev

Updated dependencies & added data list for download path to ease path…
This commit is contained in:
Abdulmohsen 2024-06-16 16:30:07 +03:00 committed by GitHub
commit 381d6d50d7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 728 additions and 703 deletions

36
Pipfile.lock generated
View file

@ -117,11 +117,11 @@
}, },
"anyio": { "anyio": {
"hashes": [ "hashes": [
"sha256:048e05d0f6caeed70d731f3db756d35dcc1f35747c8c403364a8332c630441b8", "sha256:5aadc6a1bbb7cdb0bede386cac5e2940f5e2ff3aa20277e991cf028e0585ce94",
"sha256:f75253795a87df48568485fd18cdd2a3fa5c4f7c5be8e5e36637733fce06fed6" "sha256:c1b2d8f46a8a812513012e1107cb0e68c17159a7a594208005a57dc776e1bdc7"
], ],
"markers": "python_version >= '3.8'", "markers": "python_version >= '3.8'",
"version": "==4.3.0" "version": "==4.4.0"
}, },
"argparse": { "argparse": {
"hashes": [ "hashes": [
@ -253,11 +253,11 @@
}, },
"certifi": { "certifi": {
"hashes": [ "hashes": [
"sha256:0569859f95fc761b18b45ef421b1290a0f65f147e92a1e5eb3e635f9a5e4e66f", "sha256:3cd43f1c6fa7dedc5899d69d3ad0398fd018ad1a17fba83ddaf78aa46c747516",
"sha256:dc383c07b76109f368f6106eee2b593b04a011ea4d55f652c6ca24a754d1cdd1" "sha256:ddc6c8ce995e6987e7faf5e3f1b02b302836a0e5d98ece18392cb1a36c72ad56"
], ],
"markers": "python_version >= '3.6'", "markers": "python_version >= '3.6'",
"version": "==2024.2.2" "version": "==2024.6.2"
}, },
"charset-normalizer": { "charset-normalizer": {
"hashes": [ "hashes": [
@ -827,11 +827,11 @@
}, },
"python-engineio": { "python-engineio": {
"hashes": [ "hashes": [
"sha256:979859bff770725b75e60353d7ae53b397e8b517d05ba76733b404a3dcca3e4c", "sha256:7631cf5563086076611e494c643b3fa93dd3a854634b5488be0bba0ef9b99709",
"sha256:e87459c15638e567711fd156e6f9c4a402668871bed79523f0ecfec744729ec7" "sha256:f995e702b21f6b9ebde4e2000cd2ad0112ba0e5116ec8d22fe3515e76ba9dddd"
], ],
"markers": "python_version >= '3.6'", "markers": "python_version >= '3.6'",
"version": "==4.9.0" "version": "==4.9.1"
}, },
"python-magic": { "python-magic": {
"hashes": [ "hashes": [
@ -860,11 +860,11 @@
}, },
"requests": { "requests": {
"hashes": [ "hashes": [
"sha256:dd951ff5ecf3e3b3aa26b40703ba77495dab41da839ae72ef3c8e5d8e2433289", "sha256:55365417734eb18255590a9ff9eb97e9e1da868d4ccd6402399eaf68af20a760",
"sha256:fc06670dd0ed212426dfeb94fc1b983d917c4f9847c863f313c9dfaaffb7c23c" "sha256:70761cfe03c773ceb22aa2f671b4757976145175cdfca038c02654d061d6dcc6"
], ],
"markers": "python_version >= '3.8'", "markers": "python_version >= '3.8'",
"version": "==2.32.2" "version": "==2.32.3"
}, },
"simple-websocket": { "simple-websocket": {
"hashes": [ "hashes": [
@ -892,11 +892,11 @@
}, },
"typing-extensions": { "typing-extensions": {
"hashes": [ "hashes": [
"sha256:83f085bd5ca59c80295fc2a82ab5dac679cbe02b9f33f7d83af68e241bea51b0", "sha256:04e5ca0351e0f3f85c6853954072df659d0d13fac324d0072316b67d7794700d",
"sha256:c1f94d72897edaf4ce775bb7558d5b79d8126906a14ea5ed1635921406c0387a" "sha256:1a7ead55c7e559dd4dee8856e3a88b41225abfe1ce8df57b7c13915fe121ffb8"
], ],
"markers": "python_version < '3.11'", "markers": "python_version < '3.11'",
"version": "==4.11.0" "version": "==4.12.2"
}, },
"tzlocal": { "tzlocal": {
"hashes": [ "hashes": [
@ -1098,12 +1098,12 @@
}, },
"yt-dlp": { "yt-dlp": {
"hashes": [ "hashes": [
"sha256:884deab9e38b2c67a39b0e39b820d860c5d46d9d5d6f7c883b73ff70bd891d7c", "sha256:3566c0de240d0cd3d1c2285ce655f72ca38dfc618d634d46818b00d89d5288be",
"sha256:ae9bef603f9da76115f863750598d3afbd60bcd808234efc28be393d7e83369b" "sha256:5dbedb7610ae9440cc44e744f528e078828142bbe09af950cf7e99ce69c866d9"
], ],
"index": "pypi", "index": "pypi",
"markers": "python_version >= '3.8'", "markers": "python_version >= '3.8'",
"version": "==2024.5.26" "version": "==2024.5.27"
} }
}, },
"develop": {} "develop": {}

View file

@ -138,6 +138,10 @@ class Main:
except Exception as e: except Exception as e:
pass pass
# get directory listing
dlDir: str = self.config.download_path
data['directories'] = [ name for name in os.listdir(dlDir) if os.path.isdir(os.path.join(dlDir, name)) ]
await self.sio.emit('initial_data', self.serializer.encode(data), to=sid) await self.sio.emit('initial_data', self.serializer.encode(data), to=sid)
async def version_check(self): async def version_check(self):

File diff suppressed because it is too large Load diff

View file

@ -76,6 +76,7 @@ onMounted(() => {
const initialData = JSON.parse(stream); const initialData = JSON.parse(stream);
config.app = initialData['config']; config.app = initialData['config'];
config.tasks = initialData['tasks']; config.tasks = initialData['tasks'];
config.directories = initialData['directories'];
for (const id in initialData['queue']) { for (const id in initialData['queue']) {
downloading[id] = initialData['queue'][id]; downloading[id] = initialData['queue'][id];

View file

@ -50,7 +50,7 @@
</div> </div>
<div class="control is-expanded"> <div class="control is-expanded">
<input type="text" class="input is-fullwidth" id="path" v-model="downloadPath" placeholder="Default" <input type="text" class="input is-fullwidth" id="path" v-model="downloadPath" placeholder="Default"
:disabled="!config.isConnected"> :disabled="!config.isConnected" list="directories">
</div> </div>
</div> </div>
</div> </div>
@ -86,8 +86,8 @@
placeholder="Uses default format if non is given."> placeholder="Uses default format if non is given.">
</div> </div>
<span class="subtitle is-6 has-text-info"> <span class="subtitle is-6 has-text-info">
All format options can be found at <a class="has-text-danger" target="_blank" referrerpolicy="no-referrer" All format options can be found at <a class="has-text-danger" target="_blank"
href="https://github.com/yt-dlp/yt-dlp#output-template">this page</a>. referrerpolicy="no-referrer" href="https://github.com/yt-dlp/yt-dlp#output-template">this page</a>.
</span> </span>
</div> </div>
</div> </div>
@ -140,6 +140,9 @@
</div> </div>
</div> </div>
</div> </div>
<datalist id="directories" v-if="config?.directories">
<option v-for="dir in config.directories" :key="dir" :value="dir" />
</datalist>
</main> </main>
</template> </template>