mirror of
https://github.com/neosubhamoy/neodlp.git
synced 2026-03-22 22:55:48 +05:30
Compare commits
14 Commits
52dad3acb1
...
main
10
CHANGELOG.md
10
CHANGELOG.md
@@ -1,8 +1,6 @@
|
|||||||
### ✨ Changelog
|
### ✨ Changelog
|
||||||
|
|
||||||
- Added 'Health Check' section in app info
|
- Added support for linux Flatpak (some features are unavailable on Flatpak build due to it's strict sandboxing, check 'Settings > Info > Health Check' section for more info)
|
||||||
- Added Homebrew package for macOS
|
|
||||||
- Added initial compatibility with Flatpak for Linux
|
|
||||||
- Other minor fixes and improvements
|
- Other minor fixes and improvements
|
||||||
|
|
||||||
### 📝 Notes
|
### 📝 Notes
|
||||||
@@ -11,7 +9,7 @@
|
|||||||
> Users are always adviced to complete/cancel all paused downloads before updating to a newer version, otherwise paused downloads may not resume properly and re-start from the begining.
|
> Users are always adviced to complete/cancel all paused downloads before updating to a newer version, otherwise paused downloads may not resume properly and re-start from the begining.
|
||||||
|
|
||||||
> [!WARNING]
|
> [!WARNING]
|
||||||
> Linux users make sure `yt-dlp` and `deno` is not installed in your distro (otherwise you will get package installation conflict). Don't worry, You can still use yt-dlp cli as before (the only difference is that now it will be installed and auto-updated by neo-dlp, which You can also disable from neo-dlp Settings if you don't want to auto-update yt-dlp)
|
> Linux users make sure `yt-dlp`, `aria2c` and `deno` is not installed in your distro (otherwise you will get package installation conflict). Don't worry, You can still use yt-dlp cli as before (the only difference is that now it will be installed and auto-updated by neodlp, which You can also disable from neodlp Settings if you don't want to auto-update yt-dlp) (ignore this if you are installing AppImage/Flatpak)
|
||||||
|
|
||||||
> This is an Un-Signed Build (Windows doesn't trust this Certificate so, it may flag this as malicious software, in that case, disable Windows SmartScreen and Defender, install it, and then re-enable them)
|
> This is an Un-Signed Build (Windows doesn't trust this Certificate so, it may flag this as malicious software, in that case, disable Windows SmartScreen and Defender, install it, and then re-enable them)
|
||||||
|
|
||||||
@@ -21,7 +19,7 @@
|
|||||||
|
|
||||||
| yt-dlp (updateable) | ffmpeg | ffprobe | aria2c | deno | bgutil-pot-rs |
|
| yt-dlp (updateable) | ffmpeg | ffprobe | aria2c | deno | bgutil-pot-rs |
|
||||||
| :---- | :---- | :---- | :---- | :---- | :---- |
|
| :---- | :---- | :---- | :---- | :---- | :---- |
|
||||||
| v2026.03.02.233544 (nightly) | v7.1.1 | v7.1.1 | v1.37.0 | v2.7.1 | v0.7.2-1.3.0 |
|
| v2026.03.03.162408 (nightly) | v7.1.1 | v7.1.1 | v1.37.0 | v2.7.4 | v0.7.2-1.3.0 |
|
||||||
|
|
||||||
> ‼️ Linux builds (deb, rpm) does not ships with `ffmpeg` and `ffprobe` (though it will be auto installed as a dependency by your package manager, if you are on fedora make sure to [enable rpmfusion free+nonfree repos](https://docs.fedoraproject.org/en-US/quick-docs/rpmfusion-setup/#_enabling_the_rpm_fusion_repositories_using_command_line_utilities) before installing the rpm package)
|
> ‼️ Linux builds (deb, rpm) does not ships with `ffmpeg` and `ffprobe` (though it will be auto installed as a dependency by your package manager, if you are on fedora make sure to [enable rpmfusion free+nonfree repos](https://docs.fedoraproject.org/en-US/quick-docs/rpmfusion-setup/#_enabling_the_rpm_fusion_repositories_using_command_line_utilities) before installing the rpm package)
|
||||||
|
|
||||||
@@ -38,7 +36,7 @@
|
|||||||
|
|
||||||
> 🪟 Windows x86_64 binary also works on ARM64 (Windows on ARM) devices with emulation (Not planning to release native Windows ARM64 build anytime soon as, x86_64 one works fine on ARM64 without noticeable performance impact)
|
> 🪟 Windows x86_64 binary also works on ARM64 (Windows on ARM) devices with emulation (Not planning to release native Windows ARM64 build anytime soon as, x86_64 one works fine on ARM64 without noticeable performance impact)
|
||||||
|
|
||||||
> 🚫 Linux AppImage builds are experimental and does not support neodlp's browser intergration features due to it's sandboxed nature. Also, don't run the AppImage with portable (.home, .config) folders, it will break things (it is highly recommended to use native [deb, rpm, AUR] builds if possible for the full experiance, otherwise AppImages are good for trying out NeoDLP without installing)
|
> 🚫 Linux AppImage builds are experimental and does not support neodlp's browser intergration features due to it's limitations. Also, don't run the AppImage with portable (.home, .config) folders, it will break things (it is highly recommended to use native [deb, rpm, AUR] builds if possible for the full experiance, otherwise AppImages are good for trying out NeoDLP without installing)
|
||||||
|
|
||||||
> ⚠️ MacOS ARM64 binary downloads are experimental and may not open on Apple Silicon Macs if downloaded from browser (You will get 'Damaged File' error) it's because the binaries are not signed (signing MacOS binaries requires 99$/year Apple Developer Account subscription, which I can't afford RN!) and Apple Silicon Macs don't allow unsigned apps (downloaded from browser) to be installed on the system. If you want to use NeoDLP on your Apple Silicon Macs, There are few ways you can bypass these restrictions:
|
> ⚠️ MacOS ARM64 binary downloads are experimental and may not open on Apple Silicon Macs if downloaded from browser (You will get 'Damaged File' error) it's because the binaries are not signed (signing MacOS binaries requires 99$/year Apple Developer Account subscription, which I can't afford RN!) and Apple Silicon Macs don't allow unsigned apps (downloaded from browser) to be installed on the system. If you want to use NeoDLP on your Apple Silicon Macs, There are few ways you can bypass these restrictions:
|
||||||
> 1. Using our automated [Curl-Bash Installer](https://neodlp.neosubhamoy.com/download) (Recommended)
|
> 1. Using our automated [Curl-Bash Installer](https://neodlp.neosubhamoy.com/download) (Recommended)
|
||||||
|
|||||||
10
README.md
10
README.md
@@ -13,6 +13,7 @@ Cross-platform Video/Audio Downloader Desktop App based on YT-DLP with Modern UI
|
|||||||
> **🥰 Liked this project? Please consider giving it a Star (🌟) on github to show us your appreciation and help the algorythm recommend this project to even more awesome people like you!**
|
> **🥰 Liked this project? Please consider giving it a Star (🌟) on github to show us your appreciation and help the algorythm recommend this project to even more awesome people like you!**
|
||||||
|
|
||||||
[](https://github.com/microsoft/winget-pkgs/tree/master/manifests/n/neosubhamoy/neodlp)
|
[](https://github.com/microsoft/winget-pkgs/tree/master/manifests/n/neosubhamoy/neodlp)
|
||||||
|
[](https://flathub.org/en/apps/com.neosubhamoy.neodlp)
|
||||||
[](https://aur.archlinux.org/packages/neodlp)
|
[](https://aur.archlinux.org/packages/neodlp)
|
||||||
|
|
||||||
|
|
||||||
@@ -51,8 +52,8 @@ After installing the extension you can do the following directly from the browse
|
|||||||
## 💻 Supported Platforms
|
## 💻 Supported Platforms
|
||||||
|
|
||||||
- Windows (10 / 11)
|
- Windows (10 / 11)
|
||||||
- Linux (Debian / Fedora / RHEL / SUSE / Arch Linux base)
|
- Linux (Mostly all modern distros)
|
||||||
- MacOS (>11)
|
- MacOS (>=11)
|
||||||
|
|
||||||
## 🤝 External Dependencies
|
## 🤝 External Dependencies
|
||||||
|
|
||||||
@@ -85,8 +86,9 @@ After installing the extension you can do the following directly from the browse
|
|||||||
| Windows x86_64 / ARM64 | WinGet | `winget install neosubhamoy.neodlp` |
|
| Windows x86_64 / ARM64 | WinGet | `winget install neosubhamoy.neodlp` |
|
||||||
| MacOS x86_64 / ARM64 | Homebrew | `brew install neosubhamoy/tap/neodlp` |
|
| MacOS x86_64 / ARM64 | Homebrew | `brew install neosubhamoy/tap/neodlp` |
|
||||||
| MacOS x86_64 / ARM64 | Curl-Bash Installer | `curl -sSL https://neodlp.neosubhamoy.com/macos_installer.sh \| bash` |
|
| MacOS x86_64 / ARM64 | Curl-Bash Installer | `curl -sSL https://neodlp.neosubhamoy.com/macos_installer.sh \| bash` |
|
||||||
| Linux x86_64 / ARM64 | Curl-Bash Installer | `curl -sSL https://neodlp.neosubhamoy.com/linux_installer.sh \| bash` |
|
| Linux x86_64 / ARM64 (Flatpak) | Flathub | `flatpak install flathub com.neosubhamoy.neodlp` |
|
||||||
| Arch Linux x86_64 / ARM64 | AUR | `yay -S neodlp` or `paru -S neodlp` |
|
| Linux x86_64 / ARM64 (Native) | Curl-Bash Installer | `curl -sSL https://neodlp.neosubhamoy.com/linux_installer.sh \| bash` |
|
||||||
|
| Arch Linux x86_64 / ARM64 (Native) | AUR | `yay -S neodlp` or `paru -S neodlp` |
|
||||||
|
|
||||||
## 🧪 Package Testing Status
|
## 🧪 Package Testing Status
|
||||||
|
|
||||||
|
|||||||
@@ -39,7 +39,7 @@
|
|||||||
</screenshots>
|
</screenshots>
|
||||||
<content_rating type="oars-1.1" />
|
<content_rating type="oars-1.1" />
|
||||||
<releases>
|
<releases>
|
||||||
<release version="0.4.3" date="2026-03-05">
|
<release version="0.4.3" date="2026-03-07">
|
||||||
<url type="details">https://github.com/neosubhamoy/neodlp/releases/tag/v0.4.3</url>
|
<url type="details">https://github.com/neosubhamoy/neodlp/releases/tag/v0.4.3</url>
|
||||||
</release>
|
</release>
|
||||||
</releases>
|
</releases>
|
||||||
|
|||||||
1717
package-lock.json
generated
1717
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
30
package.json
30
package.json
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "neodlp",
|
"name": "neodlp",
|
||||||
"private": true,
|
"private": true,
|
||||||
"version": "0.4.2",
|
"version": "0.4.3",
|
||||||
"description": "Cross-platform Video/Audio Downloader Desktop App based on YT-DLP with Modern UI and Browser Integration",
|
"description": "Cross-platform Video/Audio Downloader Desktop App based on YT-DLP with Modern UI and Browser Integration",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
@@ -21,11 +21,11 @@
|
|||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@hookform/resolvers": "^5.2.2",
|
"@hookform/resolvers": "^5.2.2",
|
||||||
"@tanstack/devtools-vite": "^0.5.2",
|
"@tanstack/devtools-vite": "^0.6.0",
|
||||||
"@tanstack/react-devtools": "^0.9.6",
|
"@tanstack/react-devtools": "^0.10.0",
|
||||||
"@tanstack/react-pacer": "^0.20.0",
|
"@tanstack/react-pacer": "^0.20.0",
|
||||||
"@tanstack/react-pacer-devtools": "^0.5.2",
|
"@tanstack/react-pacer-devtools": "^0.5.5",
|
||||||
"@tanstack/react-query": "^5.90.21",
|
"@tanstack/react-query": "^5.91.2",
|
||||||
"@tanstack/react-query-devtools": "^5.91.3",
|
"@tanstack/react-query-devtools": "^5.91.3",
|
||||||
"@tauri-apps/api": "^2.10.1",
|
"@tauri-apps/api": "^2.10.1",
|
||||||
"@tauri-apps/plugin-clipboard-manager": "^2.3.2",
|
"@tauri-apps/plugin-clipboard-manager": "^2.3.2",
|
||||||
@@ -41,32 +41,30 @@
|
|||||||
"@tauri-apps/plugin-updater": "^2.10.0",
|
"@tauri-apps/plugin-updater": "^2.10.0",
|
||||||
"class-variance-authority": "^0.7.1",
|
"class-variance-authority": "^0.7.1",
|
||||||
"clsx": "^2.1.1",
|
"clsx": "^2.1.1",
|
||||||
"lucide-react": "^0.576.0",
|
"lucide-react": "^0.577.0",
|
||||||
"next-themes": "^0.4.6",
|
"next-themes": "^0.4.6",
|
||||||
"radix-ui": "^1.4.3",
|
"radix-ui": "^1.4.3",
|
||||||
"react": "^19.2.4",
|
"react": "^19.2.4",
|
||||||
"react-dom": "^19.2.4",
|
"react-dom": "^19.2.4",
|
||||||
"react-hook-form": "^7.71.2",
|
"react-hook-form": "^7.71.2",
|
||||||
"react-resizable-panels": "^4.7.0",
|
"react-resizable-panels": "^4.7.3",
|
||||||
"react-router-dom": "^7.13.1",
|
"react-router-dom": "^7.13.1",
|
||||||
"sonner": "^2.0.7",
|
"sonner": "^2.0.7",
|
||||||
"tailwind-merge": "^3.5.0",
|
"tailwind-merge": "^3.5.0",
|
||||||
"ulid": "^3.0.2",
|
"ulid": "^3.0.2",
|
||||||
"zod": "^4.3.6",
|
"zod": "^4.3.6",
|
||||||
"zustand": "^5.0.11"
|
"zustand": "^5.0.12"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@tailwindcss/postcss": "^4.2.1",
|
"@tailwindcss/vite": "^4.2.2",
|
||||||
"@tailwindcss/vite": "^4.2.1",
|
"@tauri-apps/cli": "^2.10.1",
|
||||||
"@tauri-apps/cli": "^2.10.0",
|
"@types/node": "^25.5.0",
|
||||||
"@types/node": "^25.3.3",
|
|
||||||
"@types/react": "^19.2.14",
|
"@types/react": "^19.2.14",
|
||||||
"@types/react-dom": "^19.2.3",
|
"@types/react-dom": "^19.2.3",
|
||||||
"@vitejs/plugin-react": "^5.1.4",
|
"@vitejs/plugin-react": "^6.0.1",
|
||||||
"postcss": "^8.5.8",
|
"tailwindcss": "^4.2.2",
|
||||||
"tailwindcss": "^4.2.1",
|
|
||||||
"tw-animate-css": "^1.4.0",
|
"tw-animate-css": "^1.4.0",
|
||||||
"typescript": "~5.9.3",
|
"typescript": "~5.9.3",
|
||||||
"vite": "^7.3.1"
|
"vite": "^8.0.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +0,0 @@
|
|||||||
export default {
|
|
||||||
plugins: {
|
|
||||||
"@tailwindcss/postcss": {},
|
|
||||||
},
|
|
||||||
}
|
|
||||||
@@ -16,11 +16,11 @@ const targetPlatform = process.argv[2];
|
|||||||
const targetBin = process.argv[3];
|
const targetBin = process.argv[3];
|
||||||
|
|
||||||
const versions = {
|
const versions = {
|
||||||
'yt-dlp': 'latest',
|
'yt-dlp': '2026.03.17.232108',
|
||||||
'ffmpeg-ffprobe': 'latest',
|
'ffmpeg-ffprobe': 'latest',
|
||||||
'deno': 'latest',
|
'deno': '2.7.7',
|
||||||
'aria2c': '1.37.0',
|
'aria2c': '1.37.0',
|
||||||
'neodlp-pot': '0.7.2'
|
'neodlp-pot': '0.8.1'
|
||||||
};
|
};
|
||||||
|
|
||||||
const binaries = {
|
const binaries = {
|
||||||
@@ -239,7 +239,7 @@ const binaries = {
|
|||||||
{
|
{
|
||||||
name: 'deno-x86_64-pc-windows-msvc',
|
name: 'deno-x86_64-pc-windows-msvc',
|
||||||
platform: 'win32',
|
platform: 'win32',
|
||||||
url: `https://github.com/denoland/deno/releases${versions['deno'] === 'latest' ? '/latest' : ''}/download${versions['deno'] !== 'latest' ? '/'+versions['deno'] : ''}/deno-x86_64-pc-windows-msvc.zip`,
|
url: `https://github.com/denoland/deno/releases${versions['deno'] === 'latest' ? '/latest' : ''}/download${versions['deno'] !== 'latest' ? '/v'+versions['deno'] : ''}/deno-x86_64-pc-windows-msvc.zip`,
|
||||||
src: path.join(downloadDir, 'deno-x86_64-pc-windows-msvc.zip'),
|
src: path.join(downloadDir, 'deno-x86_64-pc-windows-msvc.zip'),
|
||||||
dest: null,
|
dest: null,
|
||||||
archive: {
|
archive: {
|
||||||
@@ -259,7 +259,7 @@ const binaries = {
|
|||||||
{
|
{
|
||||||
name: 'deno-x86_64-unknown-linux-gnu',
|
name: 'deno-x86_64-unknown-linux-gnu',
|
||||||
platform: 'linux',
|
platform: 'linux',
|
||||||
url: `https://github.com/denoland/deno/releases${versions['deno'] === 'latest' ? '/latest' : ''}/download${versions['deno'] !== 'latest' ? '/'+versions['deno'] : ''}/deno-x86_64-unknown-linux-gnu.zip`,
|
url: `https://github.com/denoland/deno/releases${versions['deno'] === 'latest' ? '/latest' : ''}/download${versions['deno'] !== 'latest' ? '/v'+versions['deno'] : ''}/deno-x86_64-unknown-linux-gnu.zip`,
|
||||||
src: path.join(downloadDir, 'deno-x86_64-unknown-linux-gnu.zip'),
|
src: path.join(downloadDir, 'deno-x86_64-unknown-linux-gnu.zip'),
|
||||||
dest: null,
|
dest: null,
|
||||||
archive: {
|
archive: {
|
||||||
@@ -279,7 +279,7 @@ const binaries = {
|
|||||||
{
|
{
|
||||||
name: 'deno-aarch64-unknown-linux-gnu',
|
name: 'deno-aarch64-unknown-linux-gnu',
|
||||||
platform: 'linux',
|
platform: 'linux',
|
||||||
url: `https://github.com/denoland/deno/releases${versions['deno'] === 'latest' ? '/latest' : ''}/download${versions['deno'] !== 'latest' ? '/'+versions['deno'] : ''}/deno-aarch64-unknown-linux-gnu.zip`,
|
url: `https://github.com/denoland/deno/releases${versions['deno'] === 'latest' ? '/latest' : ''}/download${versions['deno'] !== 'latest' ? '/v'+versions['deno'] : ''}/deno-aarch64-unknown-linux-gnu.zip`,
|
||||||
src: path.join(downloadDir, 'deno-aarch64-unknown-linux-gnu.zip'),
|
src: path.join(downloadDir, 'deno-aarch64-unknown-linux-gnu.zip'),
|
||||||
dest: null,
|
dest: null,
|
||||||
archive: {
|
archive: {
|
||||||
@@ -299,7 +299,7 @@ const binaries = {
|
|||||||
{
|
{
|
||||||
name: 'deno-x86_64-apple-darwin',
|
name: 'deno-x86_64-apple-darwin',
|
||||||
platform: 'darwin',
|
platform: 'darwin',
|
||||||
url: `https://github.com/denoland/deno/releases${versions['deno'] === 'latest' ? '/latest' : ''}/download${versions['deno'] !== 'latest' ? '/'+versions['deno'] : ''}/deno-x86_64-apple-darwin.zip`,
|
url: `https://github.com/denoland/deno/releases${versions['deno'] === 'latest' ? '/latest' : ''}/download${versions['deno'] !== 'latest' ? '/v'+versions['deno'] : ''}/deno-x86_64-apple-darwin.zip`,
|
||||||
src: path.join(downloadDir, 'deno-x86_64-apple-darwin.zip'),
|
src: path.join(downloadDir, 'deno-x86_64-apple-darwin.zip'),
|
||||||
dest: null,
|
dest: null,
|
||||||
archive: {
|
archive: {
|
||||||
@@ -319,7 +319,7 @@ const binaries = {
|
|||||||
{
|
{
|
||||||
name: 'deno-aarch64-apple-darwin',
|
name: 'deno-aarch64-apple-darwin',
|
||||||
platform: 'darwin',
|
platform: 'darwin',
|
||||||
url: `https://github.com/denoland/deno/releases${versions['deno'] === 'latest' ? '/latest' : ''}/download${versions['deno'] !== 'latest' ? '/'+versions['deno'] : ''}/deno-aarch64-apple-darwin.zip`,
|
url: `https://github.com/denoland/deno/releases${versions['deno'] === 'latest' ? '/latest' : ''}/download${versions['deno'] !== 'latest' ? '/v'+versions['deno'] : ''}/deno-aarch64-apple-darwin.zip`,
|
||||||
src: path.join(downloadDir, 'deno-aarch64-apple-darwin.zip'),
|
src: path.join(downloadDir, 'deno-aarch64-apple-darwin.zip'),
|
||||||
dest: null,
|
dest: null,
|
||||||
archive: {
|
archive: {
|
||||||
|
|||||||
626
src-tauri/Cargo.lock
generated
626
src-tauri/Cargo.lock
generated
File diff suppressed because it is too large
Load Diff
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "neodlp"
|
name = "neodlp"
|
||||||
version = "0.4.2"
|
version = "0.4.3"
|
||||||
description = "Cross-platform Video/Audio Downloader Desktop App based on YT-DLP with Modern UI and Browser Integration"
|
description = "Cross-platform Video/Audio Downloader Desktop App based on YT-DLP with Modern UI and Browser Integration"
|
||||||
authors = ["neosubhamoy <hey@neosubhamoy.com>"]
|
authors = ["neosubhamoy <hey@neosubhamoy.com>"]
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
__version__ = '1.3.0'
|
__version__ = '0.8.1'
|
||||||
|
|
||||||
import abc
|
import abc
|
||||||
import json
|
import json
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
"$schema": "https://schema.tauri.app/config/2",
|
"$schema": "https://schema.tauri.app/config/2",
|
||||||
"productName": "NeoDLP",
|
"productName": "NeoDLP",
|
||||||
"mainBinaryName": "neodlp",
|
"mainBinaryName": "neodlp",
|
||||||
"version": "0.4.2",
|
"version": "0.4.3",
|
||||||
"identifier": "com.neosubhamoy.neodlp",
|
"identifier": "com.neosubhamoy.neodlp",
|
||||||
"build": {
|
"build": {
|
||||||
"beforeDevCommand": "npm run dev",
|
"beforeDevCommand": "npm run dev",
|
||||||
|
|||||||
@@ -37,7 +37,8 @@
|
|||||||
"icons/icon.ico"
|
"icons/icon.ico"
|
||||||
],
|
],
|
||||||
"externalBin": [
|
"externalBin": [
|
||||||
"binaries/deno"
|
"binaries/deno",
|
||||||
|
"binaries/neodlp-pot"
|
||||||
],
|
],
|
||||||
"resources": {
|
"resources": {
|
||||||
"resources/plugins/yt-dlp-plugins/": "yt-dlp-plugins/"
|
"resources/plugins/yt-dlp-plugins/": "yt-dlp-plugins/"
|
||||||
|
|||||||
@@ -259,7 +259,7 @@ export default function App({ children }: { children: React.ReactNode }) {
|
|||||||
try {
|
try {
|
||||||
const isFlatpak = await invoke<boolean>('is_flatpak');
|
const isFlatpak = await invoke<boolean>('is_flatpak');
|
||||||
const command = isFlatpak
|
const command = isFlatpak
|
||||||
? Command.create('yt-dlp', [' --version'])
|
? Command.create('sh', ['-c', `yt-dlp --version`])
|
||||||
: Command.sidecar('binaries/yt-dlp', ['--version']);
|
: Command.sidecar('binaries/yt-dlp', ['--version']);
|
||||||
const output = await command.execute();
|
const output = await command.execute();
|
||||||
if (output.code === 0) {
|
if (output.code === 0) {
|
||||||
|
|||||||
@@ -282,7 +282,7 @@ function AppAppearanceSettings() {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
function AppFolderSettings() {
|
function AppFilesystemSettings() {
|
||||||
const { saveSettingsKey } = useSettings();
|
const { saveSettingsKey } = useSettings();
|
||||||
|
|
||||||
const isFlatpak = useEnvironmentStore(state => state.isFlatpak);
|
const isFlatpak = useEnvironmentStore(state => state.isFlatpak);
|
||||||
@@ -295,6 +295,8 @@ function AppFolderSettings() {
|
|||||||
const setPath = useBasePathsStore((state) => state.setPath);
|
const setPath = useBasePathsStore((state) => state.setPath);
|
||||||
|
|
||||||
const filenameTemplate = useSettingsPageStatesStore(state => state.settings.filename_template);
|
const filenameTemplate = useSettingsPageStatesStore(state => state.settings.filename_template);
|
||||||
|
const windowsFilenames = useSettingsPageStatesStore(state => state.settings.windows_filenames);
|
||||||
|
const restrictFilenames = useSettingsPageStatesStore(state => state.settings.restrict_filenames);
|
||||||
|
|
||||||
const downloadStates = useDownloadStatesStore(state => state.downloadStates);
|
const downloadStates = useDownloadStatesStore(state => state.downloadStates);
|
||||||
const ongoingDownloads = downloadStates.filter(state =>
|
const ongoingDownloads = downloadStates.filter(state =>
|
||||||
@@ -448,6 +450,26 @@ function AppFolderSettings() {
|
|||||||
</form>
|
</form>
|
||||||
</Form>
|
</Form>
|
||||||
</div>
|
</div>
|
||||||
|
<div className="sanitize-filenames">
|
||||||
|
<h3 className="font-semibold">Sanitize Filenames</h3>
|
||||||
|
<p className="text-xs text-muted-foreground mb-3">Make filenames windows-compatible, allow only ASCII characters and replace spaces with underscore (recommended, disabling it may cause issue with some downloads, also it may cause paused downloads to re-start from begining)</p>
|
||||||
|
<div className="flex items-center space-x-2 mb-3">
|
||||||
|
<Switch
|
||||||
|
id="windows-filenames"
|
||||||
|
checked={windowsFilenames}
|
||||||
|
onCheckedChange={(checked) => saveSettingsKey('windows_filenames', checked)}
|
||||||
|
/>
|
||||||
|
<Label htmlFor="windows-filenames">Windows Compatibility</Label>
|
||||||
|
</div>
|
||||||
|
<div className="flex items-center space-x-2">
|
||||||
|
<Switch
|
||||||
|
id="restrict-filenames"
|
||||||
|
checked={restrictFilenames}
|
||||||
|
onCheckedChange={(checked) => saveSettingsKey('restrict_filenames', checked)}
|
||||||
|
/>
|
||||||
|
<Label htmlFor="restrict-filenames">Force ASCII Only</Label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@@ -785,6 +807,8 @@ function AppNetworkSettings() {
|
|||||||
function AppCookiesSettings() {
|
function AppCookiesSettings() {
|
||||||
const { saveSettingsKey } = useSettings();
|
const { saveSettingsKey } = useSettings();
|
||||||
|
|
||||||
|
const isFlatpak = useEnvironmentStore(state => state.isFlatpak);
|
||||||
|
|
||||||
const useCookies = useSettingsPageStatesStore(state => state.settings.use_cookies);
|
const useCookies = useSettingsPageStatesStore(state => state.settings.use_cookies);
|
||||||
const importCookiesFrom = useSettingsPageStatesStore(state => state.settings.import_cookies_from);
|
const importCookiesFrom = useSettingsPageStatesStore(state => state.settings.import_cookies_from);
|
||||||
const cookiesBrowser = useSettingsPageStatesStore(state => state.settings.cookies_browser);
|
const cookiesBrowser = useSettingsPageStatesStore(state => state.settings.cookies_browser);
|
||||||
@@ -801,7 +825,7 @@ function AppCookiesSettings() {
|
|||||||
id="use-cookies"
|
id="use-cookies"
|
||||||
checked={useCookies}
|
checked={useCookies}
|
||||||
onCheckedChange={(checked) => saveSettingsKey('use_cookies', checked)}
|
onCheckedChange={(checked) => saveSettingsKey('use_cookies', checked)}
|
||||||
disabled={useCustomCommands}
|
disabled={useCustomCommands || isFlatpak}
|
||||||
/>
|
/>
|
||||||
<Label htmlFor="use-cookies">Use Cookies</Label>
|
<Label htmlFor="use-cookies">Use Cookies</Label>
|
||||||
</div>
|
</div>
|
||||||
@@ -810,7 +834,7 @@ function AppCookiesSettings() {
|
|||||||
className="flex items-center gap-4"
|
className="flex items-center gap-4"
|
||||||
value={importCookiesFrom}
|
value={importCookiesFrom}
|
||||||
onValueChange={(value) => saveSettingsKey('import_cookies_from', value)}
|
onValueChange={(value) => saveSettingsKey('import_cookies_from', value)}
|
||||||
disabled={!useCookies || useCustomCommands}
|
disabled={!useCookies || useCustomCommands || isFlatpak}
|
||||||
>
|
>
|
||||||
<div className="flex items-center gap-3">
|
<div className="flex items-center gap-3">
|
||||||
<RadioGroupItem value="browser" id="cookies-browser" />
|
<RadioGroupItem value="browser" id="cookies-browser" />
|
||||||
@@ -826,7 +850,7 @@ function AppCookiesSettings() {
|
|||||||
<Select
|
<Select
|
||||||
value={cookiesBrowser}
|
value={cookiesBrowser}
|
||||||
onValueChange={(value) => saveSettingsKey('cookies_browser', value)}
|
onValueChange={(value) => saveSettingsKey('cookies_browser', value)}
|
||||||
disabled={importCookiesFrom !== "browser" || !useCookies || useCustomCommands}
|
disabled={importCookiesFrom !== "browser" || !useCookies || useCustomCommands || isFlatpak}
|
||||||
>
|
>
|
||||||
<SelectTrigger className="w-57.5 ring-0 focus:ring-0">
|
<SelectTrigger className="w-57.5 ring-0 focus:ring-0">
|
||||||
<SelectValue placeholder="Select browser to import cookies" />
|
<SelectValue placeholder="Select browser to import cookies" />
|
||||||
@@ -853,7 +877,7 @@ function AppCookiesSettings() {
|
|||||||
<Input className="focus-visible:ring-0" type="text" placeholder="Select cookies text file" value={cookiesFile ?? ''} disabled={importCookiesFrom !== "file" || !useCookies} readOnly/>
|
<Input className="focus-visible:ring-0" type="text" placeholder="Select cookies text file" value={cookiesFile ?? ''} disabled={importCookiesFrom !== "file" || !useCookies} readOnly/>
|
||||||
<Button
|
<Button
|
||||||
variant="outline"
|
variant="outline"
|
||||||
disabled={importCookiesFrom !== "file" || !useCookies || useCustomCommands}
|
disabled={importCookiesFrom !== "file" || !useCookies || useCustomCommands || isFlatpak}
|
||||||
onClick={async () => {
|
onClick={async () => {
|
||||||
try {
|
try {
|
||||||
const file = await open({
|
const file = await open({
|
||||||
@@ -1252,6 +1276,8 @@ function AppDelaySettings() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function AppPoTokenSettings() {
|
function AppPoTokenSettings() {
|
||||||
|
// const isFlatpak = useEnvironmentStore(state => state.isFlatpak);
|
||||||
|
|
||||||
const formResetTrigger = useSettingsPageStatesStore(state => state.formResetTrigger);
|
const formResetTrigger = useSettingsPageStatesStore(state => state.formResetTrigger);
|
||||||
const acknowledgeFormReset = useSettingsPageStatesStore(state => state.acknowledgeFormReset);
|
const acknowledgeFormReset = useSettingsPageStatesStore(state => state.acknowledgeFormReset);
|
||||||
|
|
||||||
@@ -1323,7 +1349,7 @@ function AppPoTokenSettings() {
|
|||||||
await stopPotServer();
|
await stopPotServer();
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
disabled={useCustomCommands || isStartingPotServer || isChangingPotServerPort}
|
disabled={useCustomCommands || isStartingPotServer || isChangingPotServerPort /*|| isFlatpak*/}
|
||||||
/>
|
/>
|
||||||
<Label htmlFor="use-potoken">Use PO Token</Label>
|
<Label htmlFor="use-potoken">Use PO Token</Label>
|
||||||
</div>
|
</div>
|
||||||
@@ -1349,7 +1375,7 @@ function AppPoTokenSettings() {
|
|||||||
id="disable-innertube"
|
id="disable-innertube"
|
||||||
checked={disableInnertube}
|
checked={disableInnertube}
|
||||||
onCheckedChange={(checked) => saveSettingsKey('disable_innertube', checked)}
|
onCheckedChange={(checked) => saveSettingsKey('disable_innertube', checked)}
|
||||||
disabled={useCustomCommands || !usePotoken}
|
disabled={useCustomCommands || !usePotoken /*|| isFlatpak*/}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -1362,7 +1388,7 @@ function AppPoTokenSettings() {
|
|||||||
<FormField
|
<FormField
|
||||||
control={potServerPortForm.control}
|
control={potServerPortForm.control}
|
||||||
name="port"
|
name="port"
|
||||||
disabled={!usePotoken || useCustomCommands || isChangingPotServerPort || isStartingPotServer}
|
disabled={!usePotoken || isChangingPotServerPort || isStartingPotServer /*|| isFlatpak*/}
|
||||||
render={({ field }) => (
|
render={({ field }) => (
|
||||||
<FormItem className="w-full">
|
<FormItem className="w-full">
|
||||||
<FormControl>
|
<FormControl>
|
||||||
@@ -1381,7 +1407,7 @@ function AppPoTokenSettings() {
|
|||||||
/>
|
/>
|
||||||
<Button
|
<Button
|
||||||
type="submit"
|
type="submit"
|
||||||
disabled={!watchedPotServerPort || Number(watchedPotServerPort) === potServerPort || Object.keys(potServerPortFormErrors).length > 0 || !usePotoken || useCustomCommands || isChangingPotServerPort || isStartingPotServer}
|
disabled={!watchedPotServerPort || Number(watchedPotServerPort) === potServerPort || Object.keys(potServerPortFormErrors).length > 0 || !usePotoken || useCustomCommands || isChangingPotServerPort || isStartingPotServer /*|| isFlatpak*/}
|
||||||
>
|
>
|
||||||
{isChangingPotServerPort ? (
|
{isChangingPotServerPort ? (
|
||||||
<>
|
<>
|
||||||
@@ -1816,7 +1842,7 @@ function AppInfoSettings() {
|
|||||||
<TriangleAlert className="size-4 stroke-primary" />
|
<TriangleAlert className="size-4 stroke-primary" />
|
||||||
<AlertTitle className="text-sm">Flatpak Sandbox Detected!</AlertTitle>
|
<AlertTitle className="text-sm">Flatpak Sandbox Detected!</AlertTitle>
|
||||||
<AlertDescription className="text-xs">
|
<AlertDescription className="text-xs">
|
||||||
It looks like you are running NeoDLP in a Flatpak sandbox. Some features like browser integration, desktop notifications, changing download folder, revealing completed downloads in explorer, automatic yt-dlp updates and auto-launch on startup are not available in Flatpak due to sandbox restrictions. To use these features, please install the native linux build (DEB, RPM or AUR) of NeoDLP.
|
It looks like you are running NeoDLP in a Flatpak sandbox. Some features like browser integration, desktop notifications, cookies, po tokens, changing download folder, revealing completed downloads in explorer, automatic yt-dlp updates and auto-launch on startup are not available in Flatpak due to sandbox restrictions. To use these features, please install the native linux build (DEB, RPM or AUR) of NeoDLP.
|
||||||
</AlertDescription>
|
</AlertDescription>
|
||||||
</Alert>
|
</Alert>
|
||||||
) : isAppimage ? (
|
) : isAppimage ? (
|
||||||
@@ -1929,7 +1955,7 @@ export function ApplicationSettings() {
|
|||||||
const tabsList = [
|
const tabsList = [
|
||||||
{ key: 'general', label: 'General', icon: Wrench, component: <AppGeneralSettings /> },
|
{ key: 'general', label: 'General', icon: Wrench, component: <AppGeneralSettings /> },
|
||||||
{ key: 'appearance', label: 'Appearance', icon: WandSparkles, component: <AppAppearanceSettings /> },
|
{ key: 'appearance', label: 'Appearance', icon: WandSparkles, component: <AppAppearanceSettings /> },
|
||||||
{ key: 'folders', label: 'Folders', icon: Folder, component: <AppFolderSettings /> },
|
{ key: 'filesystem', label: 'Filesystem', icon: Folder, component: <AppFilesystemSettings /> },
|
||||||
{ key: 'formats', label: 'Formats', icon: FileVideo, component: <AppFormatSettings /> },
|
{ key: 'formats', label: 'Formats', icon: FileVideo, component: <AppFormatSettings /> },
|
||||||
{ key: 'embedding', label: 'Embedding', icon: FilePen, component: <AppEmbeddingSettings /> },
|
{ key: 'embedding', label: 'Embedding', icon: FilePen, component: <AppEmbeddingSettings /> },
|
||||||
{ key: 'network', label: 'Network', icon: Wifi, component: <AppNetworkSettings /> },
|
{ key: 'network', label: 'Network', icon: Wifi, component: <AppNetworkSettings /> },
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ import { relaunch as relaunchApp } from "@tauri-apps/plugin-process";
|
|||||||
import { useSettingsPageStatesStore } from "@/services/store";
|
import { useSettingsPageStatesStore } from "@/services/store";
|
||||||
import { useLogger } from "@/helpers/use-logger";
|
import { useLogger } from "@/helpers/use-logger";
|
||||||
import { sendNotification } from '@tauri-apps/plugin-notification';
|
import { sendNotification } from '@tauri-apps/plugin-notification';
|
||||||
|
import usePotServer from "@/helpers/use-pot-server";
|
||||||
|
|
||||||
export default function useAppUpdater() {
|
export default function useAppUpdater() {
|
||||||
const setIsCheckingAppUpdate = useSettingsPageStatesStore(state => state.setIsCheckingAppUpdate);
|
const setIsCheckingAppUpdate = useSettingsPageStatesStore(state => state.setIsCheckingAppUpdate);
|
||||||
@@ -12,6 +13,9 @@ export default function useAppUpdater() {
|
|||||||
const setDownloadProgress = useSettingsPageStatesStore(state => state.setAppUpdateDownloadProgress);
|
const setDownloadProgress = useSettingsPageStatesStore(state => state.setAppUpdateDownloadProgress);
|
||||||
const enableNotifications = useSettingsPageStatesStore(state => state.settings.enable_notifications);
|
const enableNotifications = useSettingsPageStatesStore(state => state.settings.enable_notifications);
|
||||||
const updateNotification = useSettingsPageStatesStore(state => state.settings.update_notification);
|
const updateNotification = useSettingsPageStatesStore(state => state.settings.update_notification);
|
||||||
|
const isRunningPotServer = useSettingsPageStatesStore(state => state.isRunningPotServer);
|
||||||
|
|
||||||
|
const { stopPotServer } = usePotServer();
|
||||||
const LOG = useLogger();
|
const LOG = useLogger();
|
||||||
|
|
||||||
const checkForAppUpdate = async () => {
|
const checkForAppUpdate = async () => {
|
||||||
@@ -38,6 +42,10 @@ export default function useAppUpdater() {
|
|||||||
|
|
||||||
const downloadAndInstallAppUpdate = async (update: Update) => {
|
const downloadAndInstallAppUpdate = async (update: Update) => {
|
||||||
setIsUpdating(true);
|
setIsUpdating(true);
|
||||||
|
if (isRunningPotServer) {
|
||||||
|
LOG.info('NEODLP', 'Stopping POT Server before starting app update');
|
||||||
|
await stopPotServer();
|
||||||
|
}
|
||||||
LOG.info('NEODLP', `Downloading and installing app update v${update.version}`);
|
LOG.info('NEODLP', `Downloading and installing app update v${update.version}`);
|
||||||
let downloaded = 0;
|
let downloaded = 0;
|
||||||
let contentLength: number | undefined = 0;
|
let contentLength: number | undefined = 0;
|
||||||
|
|||||||
@@ -72,6 +72,8 @@ export default function useDownloader() {
|
|||||||
use_potoken: USE_POTOKEN,
|
use_potoken: USE_POTOKEN,
|
||||||
disable_innertube: DISABLE_INNERTUBE,
|
disable_innertube: DISABLE_INNERTUBE,
|
||||||
pot_server_port: POT_SERVER_PORT,
|
pot_server_port: POT_SERVER_PORT,
|
||||||
|
windows_filenames: WINDOWS_FILENAMES,
|
||||||
|
restrict_filenames: RESTRICT_FILENAMES
|
||||||
} = useSettingsPageStatesStore(state => state.settings);
|
} = useSettingsPageStatesStore(state => state.settings);
|
||||||
const isRunningPotServer = useSettingsPageStatesStore(state => state.isRunningPotServer);
|
const isRunningPotServer = useSettingsPageStatesStore(state => state.isRunningPotServer);
|
||||||
|
|
||||||
@@ -198,7 +200,7 @@ export default function useDownloader() {
|
|||||||
|
|
||||||
const isFlatpak = await invoke<boolean>('is_flatpak');
|
const isFlatpak = await invoke<boolean>('is_flatpak');
|
||||||
const command = isFlatpak
|
const command = isFlatpak
|
||||||
? Command.create('yt-dlp', args)
|
? Command.create('sh', ['-c', `yt-dlp ${args.map(arg => `'${arg.replace(/'/g, "'\\''")}'`).join(' ')}`])
|
||||||
: Command.sidecar('binaries/yt-dlp', args);
|
: Command.sidecar('binaries/yt-dlp', args);
|
||||||
|
|
||||||
let jsonOutput = '';
|
let jsonOutput = '';
|
||||||
@@ -332,8 +334,6 @@ export default function useDownloader() {
|
|||||||
`temp:${tempDownloadDirPath}`,
|
`temp:${tempDownloadDirPath}`,
|
||||||
'--paths',
|
'--paths',
|
||||||
`home:${downloadDirPath}`,
|
`home:${downloadDirPath}`,
|
||||||
'--windows-filenames',
|
|
||||||
'--restrict-filenames',
|
|
||||||
'--exec',
|
'--exec',
|
||||||
'after_move:echo Finalpath: {}',
|
'after_move:echo Finalpath: {}',
|
||||||
'--no-mtime',
|
'--no-mtime',
|
||||||
@@ -351,6 +351,14 @@ export default function useDownloader() {
|
|||||||
args.push('--output', `${FILENAME_TEMPLATE}[${downloadId}].%(ext)s`);
|
args.push('--output', `${FILENAME_TEMPLATE}[${downloadId}].%(ext)s`);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (WINDOWS_FILENAMES) {
|
||||||
|
args.push('--windows-filenames');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (RESTRICT_FILENAMES) {
|
||||||
|
args.push('--restrict-filenames');
|
||||||
|
}
|
||||||
|
|
||||||
if ((!USE_CUSTOM_COMMANDS && !resumeState?.custom_command) && USE_DELAY) {
|
if ((!USE_CUSTOM_COMMANDS && !resumeState?.custom_command) && USE_DELAY) {
|
||||||
if (!DELAY_PLAYLIST_ONLY) {
|
if (!DELAY_PLAYLIST_ONLY) {
|
||||||
if (DELAY_MODE === 'auto') {
|
if (DELAY_MODE === 'auto') {
|
||||||
@@ -562,7 +570,7 @@ export default function useDownloader() {
|
|||||||
console.log('Starting download with args:', args);
|
console.log('Starting download with args:', args);
|
||||||
const isFlatpak = await invoke<boolean>('is_flatpak');
|
const isFlatpak = await invoke<boolean>('is_flatpak');
|
||||||
const command = isFlatpak
|
const command = isFlatpak
|
||||||
? Command.create('yt-dlp', args)
|
? Command.create('sh', ['-c', `yt-dlp ${args.map(arg => `'${arg.replace(/'/g, "'\\''")}'`).join(' ')}`])
|
||||||
: Command.sidecar('binaries/yt-dlp', args);
|
: Command.sidecar('binaries/yt-dlp', args);
|
||||||
|
|
||||||
command.on('close', async (data) => {
|
command.on('close', async (data) => {
|
||||||
|
|||||||
@@ -47,12 +47,16 @@ export function useLinuxRegisterer() {
|
|||||||
// { source: 'chrome.json', destination: '.config/chromium/NativeMessagingHosts/com.neosubhamoy.neodlp.json', dir: '.config/chromium/NativeMessagingHosts/', content: JSON.stringify(flatpakChromeManifestContent) },
|
// { source: 'chrome.json', destination: '.config/chromium/NativeMessagingHosts/com.neosubhamoy.neodlp.json', dir: '.config/chromium/NativeMessagingHosts/', content: JSON.stringify(flatpakChromeManifestContent) },
|
||||||
// { source: 'firefox.json', destination: '.mozilla/native-messaging-hosts/com.neosubhamoy.neodlp.json', dir: '.mozilla/native-messaging-hosts/', content: JSON.stringify(flatpakFirefoxManifestContent) },
|
// { source: 'firefox.json', destination: '.mozilla/native-messaging-hosts/com.neosubhamoy.neodlp.json', dir: '.mozilla/native-messaging-hosts/', content: JSON.stringify(flatpakFirefoxManifestContent) },
|
||||||
// { source: 'neodlp-msghost', destination: '.local/bin/neodlp-msghost', dir: '.local/bin/' },
|
// { source: 'neodlp-msghost', destination: '.local/bin/neodlp-msghost', dir: '.local/bin/' },
|
||||||
|
|
||||||
{ source: 'yt-dlp-plugins/bgutil-ytdlp-pot-provider/yt_dlp_plugins/extractor/getpot_bgutil.py', destination: '.var/app/com.neosubhamoy.neodlp/config/yt-dlp-plugins/bgutil-ytdlp-pot-provider/yt_dlp_plugins/extractor/getpot_bgutil.py', dir: '.var/app/com.neosubhamoy.neodlp/config/yt-dlp-plugins/bgutil-ytdlp-pot-provider/yt_dlp_plugins/extractor/' },
|
{ source: 'yt-dlp-plugins/bgutil-ytdlp-pot-provider/yt_dlp_plugins/extractor/getpot_bgutil.py', destination: '.var/app/com.neosubhamoy.neodlp/config/yt-dlp-plugins/bgutil-ytdlp-pot-provider/yt_dlp_plugins/extractor/getpot_bgutil.py', dir: '.var/app/com.neosubhamoy.neodlp/config/yt-dlp-plugins/bgutil-ytdlp-pot-provider/yt_dlp_plugins/extractor/' },
|
||||||
{ source: 'yt-dlp-plugins/bgutil-ytdlp-pot-provider/yt_dlp_plugins/extractor/getpot_bgutil_cli.py', destination: '.var/app/com.neosubhamoy.neodlp/config/yt-dlp-plugins/bgutil-ytdlp-pot-provider/yt_dlp_plugins/extractor/getpot_bgutil_cli.py', dir: '.var/app/com.neosubhamoy.neodlp/config/yt-dlp-plugins/bgutil-ytdlp-pot-provider/yt_dlp_plugins/extractor/' },
|
{ source: 'yt-dlp-plugins/bgutil-ytdlp-pot-provider/yt_dlp_plugins/extractor/getpot_bgutil_cli.py', destination: '.var/app/com.neosubhamoy.neodlp/config/yt-dlp-plugins/bgutil-ytdlp-pot-provider/yt_dlp_plugins/extractor/getpot_bgutil_cli.py', dir: '.var/app/com.neosubhamoy.neodlp/config/yt-dlp-plugins/bgutil-ytdlp-pot-provider/yt_dlp_plugins/extractor/' },
|
||||||
{ source: 'yt-dlp-plugins/bgutil-ytdlp-pot-provider/yt_dlp_plugins/extractor/getpot_bgutil_http.py', destination: '.var/app/com.neosubhamoy.neodlp/config/yt-dlp-plugins/bgutil-ytdlp-pot-provider/yt_dlp_plugins/extractor/getpot_bgutil_http.py', dir: '.var/app/com.neosubhamoy.neodlp/config/yt-dlp-plugins/bgutil-ytdlp-pot-provider/yt_dlp_plugins/extractor/' },
|
{ source: 'yt-dlp-plugins/bgutil-ytdlp-pot-provider/yt_dlp_plugins/extractor/getpot_bgutil_http.py', destination: '.var/app/com.neosubhamoy.neodlp/config/yt-dlp-plugins/bgutil-ytdlp-pot-provider/yt_dlp_plugins/extractor/getpot_bgutil_http.py', dir: '.var/app/com.neosubhamoy.neodlp/config/yt-dlp-plugins/bgutil-ytdlp-pot-provider/yt_dlp_plugins/extractor/' },
|
||||||
];
|
];
|
||||||
|
|
||||||
if (isFlatpak) {
|
if (isFlatpak) {
|
||||||
|
// Skip linux registration for Flatpak
|
||||||
|
// console.log('Flatpak sandbox detected! Skipping Linux registration...');
|
||||||
|
|
||||||
for (const file of filesToCopyFlatpak) {
|
for (const file of filesToCopyFlatpak) {
|
||||||
const sourcePath = await join(resourceDirPath, file.source);
|
const sourcePath = await join(resourceDirPath, file.source);
|
||||||
const destinationDir = await join(homeDirPath, file.dir);
|
const destinationDir = await join(homeDirPath, file.dir);
|
||||||
|
|||||||
@@ -20,7 +20,8 @@ export default function usePotServer() {
|
|||||||
const isFlatpak = await invoke<boolean>('is_flatpak');
|
const isFlatpak = await invoke<boolean>('is_flatpak');
|
||||||
const runCommand = isFlatpak
|
const runCommand = isFlatpak
|
||||||
? Command.create('sh', [
|
? Command.create('sh', [
|
||||||
'-c', `/app/bin/neodlp-pot server --port ${port ? port.toString() : potServerPort.toString()}`
|
'-c',
|
||||||
|
`neodlp-pot server --port ${port ? port.toString() : potServerPort.toString()}`
|
||||||
])
|
])
|
||||||
: Command.sidecar('binaries/neodlp-pot', [
|
: Command.sidecar('binaries/neodlp-pot', [
|
||||||
'server',
|
'server',
|
||||||
|
|||||||
@@ -221,6 +221,8 @@ export const useSettingsPageStatesStore = create<SettingsPageStatesStore>((set)
|
|||||||
use_potoken: false,
|
use_potoken: false,
|
||||||
disable_innertube: false,
|
disable_innertube: false,
|
||||||
pot_server_port: 4416,
|
pot_server_port: 4416,
|
||||||
|
windows_filenames: true,
|
||||||
|
restrict_filenames: true,
|
||||||
// extension settings
|
// extension settings
|
||||||
websocket_port: 53511
|
websocket_port: 53511
|
||||||
},
|
},
|
||||||
@@ -306,6 +308,8 @@ export const useSettingsPageStatesStore = create<SettingsPageStatesStore>((set)
|
|||||||
use_potoken: false,
|
use_potoken: false,
|
||||||
disable_innertube: false,
|
disable_innertube: false,
|
||||||
pot_server_port: 4416,
|
pot_server_port: 4416,
|
||||||
|
windows_filenames: true,
|
||||||
|
restrict_filenames: true,
|
||||||
// extension settings
|
// extension settings
|
||||||
websocket_port: 53511
|
websocket_port: 53511
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -64,6 +64,8 @@ export interface Settings {
|
|||||||
use_potoken: boolean;
|
use_potoken: boolean;
|
||||||
disable_innertube: boolean;
|
disable_innertube: boolean;
|
||||||
pot_server_port: number;
|
pot_server_port: number;
|
||||||
|
windows_filenames: boolean;
|
||||||
|
restrict_filenames: boolean;
|
||||||
// extension settings
|
// extension settings
|
||||||
websocket_port: number;
|
websocket_port: number;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user