Compare commits

...
Sign in to create a new pull request.

128 commits

Author SHA1 Message Date
266d98f12e Update dependencies
All checks were successful
Check / mypy (push) Successful in 34s
Check / ruff (push) Successful in 6s
2025-06-24 17:20:10 +02:00
fbc37ba198 Better connection and quitting behavior 2025-06-24 17:19:31 +02:00
8b8f2ed43b Added "Clear cache" button 2025-06-24 17:18:58 +02:00
5128b90e95 Moved update config to admin panel and disabled options if not connected 2025-06-24 17:18:00 +02:00
2bab9c0a11 Initial work on config update 2025-06-24 12:16:53 +02:00
7ce4586dd2 Updated syng-web
All checks were successful
Check / mypy (push) Successful in 56s
Check / ruff (push) Successful in 3s
2025-06-24 00:00:49 +02:00
c41f7913b8 Removed QRPosition import
All checks were successful
Check / mypy (push) Successful in 55s
Check / ruff (push) Successful in 6s
2025-06-23 23:57:13 +02:00
7ae894cdfd Added configuration options for "Next Up Box" (Issue #13)
Some checks failed
Check / mypy (push) Successful in 29s
Check / ruff (push) Failing after 6s
2025-06-23 23:55:14 +02:00
4c93964123 First draft implementation for "next up" popup (See Issue #13)
All checks were successful
Check / mypy (push) Successful in 54s
Check / ruff (push) Successful in 6s
2025-06-23 22:21:53 +02:00
e6929025ab Changed window name for rebrand 2025-06-23 22:20:20 +02:00
b48c0ca345 Removed queue tab for now
All checks were successful
Check / mypy (push) Successful in 29s
Check / ruff (push) Successful in 6s
2025-06-23 18:40:40 +02:00
a180d12f7e Removed quotations in docker volume
All checks were successful
Check / mypy (push) Successful in 2m48s
Check / ruff (push) Successful in 33s
2025-06-23 11:40:12 +02:00
3146bd2909 It's the tiny things :/
All checks were successful
Check / mypy (push) Successful in 2m58s
Check / ruff (push) Successful in 5s
2025-06-23 11:37:09 +02:00
99a73243d6 more workflow fixes
Some checks failed
Check / ruff (push) Waiting to run
Check / mypy (push) Has been cancelled
2025-06-23 11:35:44 +02:00
bb28879c36 I hate, that I cannot test these workflow files locally (even with
All checks were successful
Check / mypy (push) Successful in 3m15s
Check / ruff (push) Successful in 38s
`act`)
2025-06-23 11:25:14 +02:00
357b6d72e0 The search for paths continues
Some checks failed
Check / ruff (push) Waiting to run
Check / mypy (push) Has been cancelled
2025-06-23 11:23:17 +02:00
4e65307f16 fixed paths in workflows
Some checks failed
Check / ruff (push) Waiting to run
Check / mypy (push) Has been cancelled
2025-06-23 11:20:23 +02:00
f6893608fb Back to testing workflow
All checks were successful
Check / mypy (push) Successful in 2m35s
Check / ruff (push) Successful in 7s
2025-06-23 11:16:34 +02:00
ea53fd309d Add workflow to build the appimage
All checks were successful
Check / mypy (push) Successful in 52s
Check / ruff (push) Successful in 34s
2025-06-23 01:41:00 +02:00
fb1588a019 added startup scripts for appimage
All checks were successful
Check / mypy (push) Successful in 40s
Check / ruff (push) Successful in 6s
2025-06-23 01:14:46 +02:00
dcbd0c29c0 Add qt plugin to appimage build process
All checks were successful
Check / mypy (push) Successful in 37s
Check / ruff (push) Successful in 29s
2025-06-23 00:49:38 +02:00
cff08da1d9 Do not build appimage in build-script
All checks were successful
Check / mypy (push) Successful in 55s
Check / ruff (push) Successful in 6s
2025-06-23 00:31:26 +02:00
6ac00403b1 Build docker image for appimage building
All checks were successful
Check / mypy (push) Successful in 51s
Check / ruff (push) Successful in 19s
2025-06-22 22:41:46 +02:00
e5406ae4c4 buildscripts for appimage
All checks were successful
Check / mypy (push) Successful in 1m41s
Check / ruff (push) Successful in 6s
2025-06-22 22:33:59 +02:00
2dbaec726c Appimage build scripts
All checks were successful
Check / mypy (push) Successful in 1m3s
Check / ruff (push) Successful in 7s
2025-06-17 10:23:41 +02:00
76655390d9 removed duplicate import of jsonencoder
All checks were successful
Check / mypy (push) Successful in 30s
Check / ruff (push) Successful in 6s
2025-06-17 00:15:38 +02:00
29bc72cc43 Add admin panel to remove room and import/export
Some checks failed
Check / mypy (push) Successful in 55s
Check / ruff (push) Failing after 8s
2025-06-17 00:13:52 +02:00
d2bca61ebd Allow client and server to import and export the
queue/waitingroom/recent
2025-06-17 00:13:25 +02:00
831985e597 Hide queue tab (for now) 2025-06-17 00:12:33 +02:00
6ef05a9a8f Mark debug logs as debug 2025-06-17 00:11:46 +02:00
81c6d2468c More infos in debug/admin mode in server
All checks were successful
Check / mypy (push) Successful in 1m6s
Check / ruff (push) Successful in 7s
2025-06-16 23:13:55 +02:00
72c70c03ec Backwards compatibilty with 2.1.0 2025-06-16 23:13:23 +02:00
4760076963 Remove room and show background task button in debug mode 2025-06-16 23:12:12 +02:00
ef4424ab51 More logging 2025-06-16 23:11:44 +02:00
8cc6674723 Correct handling of failed playback (do not skip two songs) 2025-06-16 23:10:13 +02:00
59bf086885 Update syng-web
All checks were successful
Check / mypy (push) Successful in 53s
Check / ruff (push) Successful in 6s
2025-06-12 23:19:23 +02:00
292f45ccba Reworked registering the clients into the connection
All checks were successful
Check / mypy (push) Successful in 34s
Check / ruff (push) Successful in 5s
2025-06-12 23:16:31 +02:00
988992bc74 Ruff got confused
All checks were successful
Check / mypy (push) Successful in 53s
Check / ruff (push) Successful in 7s
2025-06-12 02:30:41 +02:00
c9ffa4c954 Apply ruff fixes
Some checks failed
Check / mypy (push) Failing after 54s
Check / ruff (push) Failing after 21s
2025-06-12 02:27:21 +02:00
ec682950e5 Admin connections can add to the playlist, even when full; closes #4
Some checks failed
Check / mypy (push) Successful in 53s
Check / ruff (push) Failing after 10s
2025-06-12 02:23:53 +02:00
c455dc818f Loglevel select for server
All checks were successful
Check / mypy (push) Successful in 43s
Check / ruff (push) Successful in 7s
2025-06-12 01:03:27 +02:00
8e6c9554d6 Allow for rooms to be removed from an admin connection
All checks were successful
Check / mypy (push) Successful in 31s
Check / ruff (push) Successful in 3s
2025-06-11 15:44:52 +02:00
43ef5ddb81 Implemented simple admin info in server
All checks were successful
Check / mypy (push) Successful in 2m35s
Check / ruff (push) Successful in 17s
2025-06-11 01:15:50 +02:00
10bf362665 Update syng-web 2025-06-11 01:09:05 +02:00
29d6821db0 Added handler for queue to waiting room message in server 2025-05-25 10:39:18 +02:00
b2a58a5537 Updated installation section in README
All checks were successful
Check / mypy (push) Successful in 32s
Check / ruff (push) Successful in 24s
2025-05-24 11:07:35 +02:00
1d1e94da85 Add "queue to waitingroom" feature
All checks were successful
Check / mypy (push) Successful in 52s
Check / ruff (push) Successful in 5s
2025-05-24 09:42:55 +02:00
648d3afc21 limit the autoconnect retries if the server is not available. 2025-05-23 21:15:14 +02:00
285deadf09 Update syng-web
All checks were successful
Check / mypy (push) Successful in 50s
Check / ruff (push) Successful in 3s
2025-05-23 15:52:44 +02:00
45b6880c9e Removed extra "show advanced" box
All checks were successful
Check / mypy (push) Successful in 55s
Check / ruff (push) Successful in 5s
2025-05-19 22:53:14 +02:00
806d26767b Improved handling of disconnection for mpv
All checks were successful
Check / mypy (push) Successful in 2m49s
Check / ruff (push) Successful in 6s
2025-05-18 23:00:13 +02:00
e2acc4f41e Added Arch Linux installation to readme
All checks were successful
Check / mypy (push) Successful in 2m56s
Check / ruff (push) Successful in 9s
2025-05-14 14:09:11 +02:00
8df5acb567 Updated GitLab badge to Forgejo Badge
All checks were successful
Check / mypy (push) Successful in 37s
Check / ruff (push) Successful in 5s
2025-04-02 10:42:42 +02:00
7492aa34fb Added CI/CD file for Forgejo
All checks were successful
Check / mypy (push) Successful in 41s
Check / ruff (push) Successful in 5s
2025-04-02 10:21:26 +02:00
cd84e90583 Also add infos if client reconnects 2025-02-20 16:39:17 +01:00
0a16feb5d5 Push queue info directly at registration to playback client 2025-02-20 15:52:36 +01:00
3eda77012d Broadcast state even when playback client is disconnected 2025-02-19 22:26:32 +01:00
7fd54527c8 Added simple queue view in player 2025-02-18 09:53:40 +01:00
8eb484abc2 Better error handling on startup when NameError occurs 2025-02-18 09:48:22 +01:00
15206453ab Include Exception in typings 2025-02-17 18:34:36 +01:00
b3faae7b10 Handle disconnect more gracefully 2025-02-17 18:33:48 +01:00
a761126eb5 Added a section for the web client in the README 2025-02-17 16:25:10 +01:00
5ae1b2d7d9 Rebranding Windows install to "Syng.Rocks! Karaoke Player" 2025-02-17 16:13:45 +01:00
1d4ae2de84 Make desktop shortcut optional 2025-02-16 15:33:10 +01:00
6db66b1488 Install wix extension globally 2025-02-16 12:51:09 +01:00
0165ecd6f0 Typo in workflow file 2025-02-16 12:45:04 +01:00
33d12db622 Explicitly set wix version 2025-02-16 12:35:18 +01:00
ebc8dd18f5 Add agpl to installer and install extension in GH actions 2025-02-16 12:28:04 +01:00
dc7b2052ba Added AGPL License in rtf for installer 2025-02-16 11:05:12 +01:00
56da2ffb1b Install the extensions in container 2025-02-16 00:25:19 +01:00
66b4f5de95 Added UI extension to wix call 2025-02-16 00:14:20 +01:00
3fab9c0402 add gui to installer 2025-02-16 00:09:18 +01:00
a5be76b752 Update position of generated msi file 2025-02-15 21:37:08 +01:00
6672b3d7cd Getting closer 2025-02-15 21:30:42 +01:00
b954a37a04 I wish I could do this in a branch ... 2025-02-15 21:23:59 +01:00
837339df6c I don't think this will work, but hey 2025-02-15 21:20:00 +01:00
ff5b20bf0d I think I slowly understand how this is meant to be done 2025-02-15 21:00:23 +01:00
3623af341f Why is there no good documentation/tutorial for this? 2025-02-15 20:51:42 +01:00
bea36bcd14 Maybe this works? 2025-02-15 20:43:52 +01:00
d7021a934a Move wxs file to dist folder 2025-02-15 20:38:28 +01:00
0f675a22ad Add correct source directory for data\** 2025-02-15 20:29:18 +01:00
9ca8df948c More testing how wix works 2025-02-15 20:11:40 +01:00
8fc4b2c30c I know how XML works, I am a professional 😅 2025-02-15 20:05:00 +01:00
3acb64e6aa Since this is only run on GH Actions, this will take a bit of trial and
error
2025-02-15 19:59:06 +01:00
3c78ff5ad4 Testing building msi with wix 2025-02-15 19:48:16 +01:00
9e0b41505c fixed building installer dir 2025-02-15 18:06:22 +01:00
bb4607e198 Better naming for GH artifacts 2025-02-15 17:56:37 +01:00
d247707c11 Show advanced now ignores itself.
Honestly, how did this ever work?
2025-02-15 17:53:49 +01:00
5688fef47d First steps towards install on windows 2025-02-15 17:32:09 +01:00
48c02426e0
Merge pull request #10 from christofsteel/installer
Seperate docker and windows workflows
2025-02-15 17:13:29 +01:00
e3f7f4d471 Changed requirements-client to requirements in windows action 2025-02-15 16:52:45 +01:00
53d6e6efda Seperate docker and windows workflows 2025-02-15 16:48:05 +01:00
284eb8c6b7 Improved logging
* added logging level critical
 * critical messages will be displayed in a popup
2025-02-15 16:35:07 +01:00
0265ddda71 Improved disconnect messaging 2025-02-15 13:47:31 +01:00
607e117325 Update README 2025-02-15 12:11:10 +01:00
c3c0176697 Update dependencies 2025-02-15 12:06:44 +01:00
c2f2682cce Dependency alt-profanity-check is now optional due.
If it is present, it is used otherwise no profanity check is performed.
This is due to the complexity of installing alt-profanity-check and only
affects the server.
2025-02-15 11:34:31 +01:00
2ae5c7ac06 some automated reformatting 2025-02-15 11:29:03 +01:00
421392e1a8 Removed dedicated save button for config. Renamed the "Save and Start" button to "Connect" 2025-02-15 02:03:34 +01:00
bf48104acb Removed old code, that was commented out. 2025-02-15 01:44:23 +01:00
6d56fd7def Added max_duration option to youtube source 2025-02-15 01:44:23 +01:00
19c2db9a23 Buffering log message should now only appear once for each entry 2025-02-15 01:44:23 +01:00
bd7928a8ca Better handling of error message 2025-02-15 01:44:23 +01:00
eb479df689 Treat playback session as admin session on the server 2025-02-15 01:44:23 +01:00
8828733271 Removed option to build index. Filebased sources should always have an index 2025-02-15 01:44:23 +01:00
c381133252 Added is_valid check to sources. Filebased entries are valid, iff they appear in index. 2025-02-15 01:44:23 +01:00
9232f3870f Added function on the server side, to send logs directly to the playbackclient 2025-02-15 01:44:23 +01:00
8550387881 Added dedicated log tab 2025-02-15 01:44:23 +01:00
6975aefb23 Removed unused failed flag in DLEntry 2025-02-15 01:44:23 +01:00
57fab12f4e Check if entry is valid before returning 2025-02-15 01:44:23 +01:00
91dec5bcd9 Explicitly set QT_API to pyqt6 for qasync. Fixes #8 2025-02-13 12:48:45 +01:00
25cf546843 Initialize empty config when run via CLI, fixes #7 2025-02-13 11:01:06 +01:00
dcab27bf96 Changed logging label to logging textedit 2025-02-06 20:03:53 +01:00
391562fd3a Allow the suffix for youtube searches to be configurable. Fixes #3 2025-02-02 23:48:45 +01:00
0df93ac758 Add method apply_config to sources 2025-02-02 23:47:04 +01:00
de74d9ecd7 Specify if config options should be send to the server 2025-02-02 23:45:47 +01:00
dfbecc1517 Configure indexing of source 2025-02-02 23:44:30 +01:00
7488b260e1 MPV changed something, so audio_file does not work anymore :/
Audio is now loaded via a callback
2025-02-02 14:10:52 +01:00
1dcdb8d405 Put version checking a custom function 2025-02-02 12:28:35 +01:00
bdc057026f Update dependencies 2025-02-02 12:11:28 +01:00
7b30100cb7 return -> return None
to satisfy mypy
2025-02-01 00:50:49 +01:00
56c200fa3a Explicitly annotate loglines 2025-02-01 00:50:34 +01:00
cc873fc4ff check compatible versions on connect (playback client) 2025-01-31 22:17:29 +01:00
979e1d385e Multiline logs in gui 2025-01-31 22:16:24 +01:00
02ec988f90 Searching and adding to the queue now emits an ID to the client 2025-01-31 16:42:10 +01:00
55a3685c76 Added typing for AsyncServer.instrument() 2025-01-01 13:05:13 +01:00
935add9144 Add option for socketio admin ui 2025-01-01 13:03:06 +01:00
fdcae7edab removed a line of debug code 2024-12-29 00:14:09 +01:00
40 changed files with 5751 additions and 2914 deletions

View file

@ -0,0 +1,36 @@
name: Check
on:
push:
workflow_dispatch:
jobs:
mypy:
runs-on: ubuntu-latest
steps:
- name: Set up Git repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.13'
- name: Install and poetry and all dependencies
run: |
pip install poetry --quiet
poetry install --all-extras
- name: Run mypy
run: poetry run mypy syng --strict
ruff:
runs-on: ubuntu-latest
steps:
- name: Set up Git repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.13'
- name: Install ruff
run: pip install ruff --quiet
- name: Run ruff
run: ruff check syng

View file

@ -2,12 +2,6 @@ name: Build for windows and docker and create a release
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "main" branch
push:
tags: [ 'v*.*.*' ]
pull_request:
branches: [ "main" ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

47
.github/workflows/build-appimage.yaml vendored Normal file
View file

@ -0,0 +1,47 @@
name: Build appimage
# Controls when the workflow will run
on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# container:
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- name: Check out repository
uses: actions/checkout@v4
with:
repository: christofsteel/syng
- name: Install poetry
run: pip install poetry
- name: Extract version from Poetry
id: get_version
run: echo "VERSION=$(poetry version -s)" >> $GITHUB_ENV
shell: bash
- name: Preparing Build dir
run: |
mkdir -p app/bin
cp "${{ github.workspace }}/resources/appimage/build.sh" app/build.sh
cp "${{ github.workspace }}/resources/appimage/bin/syng" app/bin/
cp "${{ github.workspace }}/resources/appimage/bin/yt-dlp" app/bin/
- name: Building AppDir
uses: addnab/docker-run-action@v3
with:
image: ghcr.io/christofsteel/syng-appimage-builder:main
options: -v ${{ github.workspace }}/app:/app
run: |
/app/build.sh
export APPIMAGE_EXTRACT_AND_RUN=1
/app/linuxdeploy-x86_64.AppImage --plugin qt --appdir /app/AppDir --output appimage
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: Syng Version ${{ env.VERSION }} AppImage
path: "${{ github.workspace }}/app/Syng-x86_64.AppImage"

View file

@ -0,0 +1,59 @@
name: Build docker container for appimage building
# Controls when the workflow will run
on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}-appimage-builder
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
docker:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
attestations: write
id-token: write
steps:
- name: Check out repository
uses: actions/checkout@v4
with:
repository: christofsteel/syng
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
- name: Build and push Docker image
id: push
uses: docker/build-push-action@v6
with:
context: .
file: ./resources/appimage/Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
- name: Generate artifact attestation
uses: actions/attest-build-provenance@v1
with:
subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME}}
subject-digest: ${{ steps.push.outputs.digest }}
push-to-registry: true

65
.github/workflows/docker.yaml vendored Normal file
View file

@ -0,0 +1,65 @@
name: Build docker container
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "main" branch
push:
tags: [ 'v*.*.*' ]
pull_request:
branches: [ "main" ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
docker:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
attestations: write
id-token: write
steps:
- name: Check out repository
uses: actions/checkout@v4
with:
repository: christofsteel/syng
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
- name: Build and push Docker image
id: push
uses: docker/build-push-action@v6
with:
context: .
file: ./resources/docker/Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
- name: Generate artifact attestation
uses: actions/attest-build-provenance@v1
with:
subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME}}
subject-digest: ${{ steps.push.outputs.digest }}
push-to-registry: true

117
.github/workflows/windows.yaml vendored Normal file
View file

@ -0,0 +1,117 @@
name: Build for windows
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "main" branch
push:
tags: [ 'v*.*.*' ]
pull_request:
branches: [ "main" ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build-windows:
# The type of runner that the job will run on
runs-on: windows-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- name: Check out repository
uses: actions/checkout@v4
with:
repository: christofsteel/syng
- name: Install 7-Zip
run: choco install -y 7zip
- name: Download and extract latest MPV nightly
run: |
Invoke-WebRequest -Uri https://github.com/shinchiro/mpv-winbuild-cmake/releases/download/20250215/mpv-dev-x86_64-20250215-git-834f99e.7z -OutFile mpv.7z
7z x mpv.7z
- name: Download and extract FFMPEG 7.1
run: |
Invoke-WebRequest -Uri https://www.gyan.dev/ffmpeg/builds/ffmpeg-release-full.7z -OutFile ffmpeg-release-full.7z
7z x ffmpeg-release-full.7z
- name: Populate workdir
run: |
mkdir work
mkdir work/portable
Copy-Item -Verbose requirements-client.txt work/requirements.txt
Copy-Item -Recurse -Verbose syng work/portable/syng
Copy-Item -Verbose resources/icons/syng.ico work/portable/
Copy-Item -Verbose syng/static/background.png work/portable/
Copy-Item -Verbose syng/static/background20perc.png work/portable/
Copy-Item -Verbose libmpv-2.dll work/portable/
Copy-Item -Verbose ffmpeg-7.1-full_build/bin/ffmpeg.exe work/portable/
mkdir work/install
Copy-Item -Recurse -Verbose syng work/install/syng
Copy-Item -Verbose requirements-client.txt work/install/requirements.txt
Copy-Item -Verbose resources/icons/syng.ico work/install/
Copy-Item -Verbose syng/static/background.png work/install/
Copy-Item -Verbose syng/static/background20perc.png work/install/
Copy-Item -Verbose libmpv-2.dll work/install/
Copy-Item -Verbose ffmpeg-7.1-full_build/bin/ffmpeg.exe work/install/
- uses: actions/setup-python@v5
name: Install Python
with:
python-version: 3.13
- name: Install poetry
run: pip install poetry
- name: Extract version from Poetry
id: get_version
run: echo "VERSION=$(poetry version -s)" >> $GITHUB_ENV
shell: bash
- name: Install PyInstaller
run: pip install pyinstaller
- name: Installing requirements
run: pip install -r requirements.txt
working-directory: ./work
# - name: Bundle Syng (portable)
# run:
# pyinstaller -n "syng-${{ env.VERSION }}" -F -w -i'.\syng.ico' --add-data='.\syng.ico;.' --add-data='.\background.png;.' --add-data='.\background20perc.png;.' --add-binary '.\libmpv-2.dll;.' --add-binary '.\ffmpeg.exe;.' syng/main.py
# working-directory: ./work/portable
- name: Bundle Syng (install)
run:
pyinstaller -D --contents-directory data -w -i'.\syng.ico' --add-data='.\syng.ico;.' --add-data='.\background.png;.' --add-data='.\background20perc.png;.' --add-binary '.\libmpv-2.dll;.' --add-binary '.\ffmpeg.exe;.' -n syng syng/main.py
working-directory: ./work/install
# build msi
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v2
- name: Install WiX
run: |
dotnet tool install --global wix --version 5.0.2
wix extension add -g WixToolset.UI.wixext/5.0.2
- name: Copy wix file to dist
run: |
Copy-Item -Verbose resources/windows/syng.wxs work/install/dist/syng.wxs
Copy-Item -Verbose resources/windows/agpl-3.0.rtf work/install/dist/agpl-3.0.rtf
- name: Build WiX on Windows
run: wix build -ext WixToolset.UI.wixext .\syng.wxs
working-directory: ./work/install/dist
# - name: Upload artifact (portable)
# uses: actions/upload-artifact@v4
# with:
# name: Syng Version ${{ env.VERSION }} portable
# path: work/portable/dist/syng-${{ env.VERSION }}.exe
- name: Upload artifact (install)
uses: actions/upload-artifact@v4
with:
name: Syng Version ${{ env.VERSION }} Installer
path: work/install/dist/syng.msi

1
.gitignore vendored
View file

@ -1,5 +1,6 @@
docs/build
dist
build
__pycache__
.venv
.idea

View file

@ -11,7 +11,7 @@ _Easily host karaoke events_
[![Flathub Version](https://img.shields.io/flathub/v/rocks.syng.Syng?logo=flathub)](https://flathub.org/apps/rocks.syng.Syng)
[![PyPI - License](https://img.shields.io/pypi/l/syng)](https://www.gnu.org/licenses/agpl-3.0.en.html)
[![Website](https://img.shields.io/website?url=https%3A%2F%2Fsyng.rocks%2F&label=syng.rocks)](https://syng.rocks)
[![Gitlab Pipeline Status](https://img.shields.io/gitlab/pipeline-status/christofsteel%2Fsyng2?gitlab_url=https%3A%2F%2Fgit.k-fortytwo.de%2F&branch=main&logo=python&label=mypy%2Bruff)](https://git.k-fortytwo.de/christofsteel/syng2)
[![Forgejo Pipeline Status](https://git.k-fortytwo.de/christofsteel/syng/badges/workflows/check.yaml/badge.svg?logo=python&label=mypy%2Bruff)](https://git.k-fortytwo.de/christofsteel/syng)
**Syng** is an all-in-one karaoke software, consisting of a *backend server*, a *web frontend* and a *playback client*.
@ -49,7 +49,9 @@ Alternatively Syng can be installed via the _Python Package Index_ (PyPI). When
This installs both the playback client (`syng client`) and a configuration GUI (`syng gui`).
**Note:** When installing via PyPI, you need to have [mpv](https://mpv.io/) installed on the playback client, and the `mpv` binary must be in your `PATH`.
**Note:** When installing via PyPI, you need to have [libmpv](https://mpv.io/) installed on machine of the playback client.
The Syng client is also packaged for Arch Linux in the [Arch Linux user repository](https://aur.archlinux.org/packages/syng-client)
### Windows
@ -83,6 +85,8 @@ Configuration is done under `sources` → `youtube` with the following settings:
* `tmp_dir`: YouTube videos will be downloaded before playback. This sets the directory, where YouTube videos are stored.
* `max_res`: Maximum resolution of a video.
* `start_streaming`: `true` or `false`. If `true`, videos will be streamed directly using `mpv`, if the video is not cached beforehand. Otherwise, Syng waits for the video to be downloaded.
* `seach_suffix`: A string that is appended to each search query. Default is "karaoke".
* `max_duration`: Maximum length of accepted videos in seconds. Default is 1800 (30 minutes)
### S3
@ -145,8 +149,22 @@ sources:
start_streaming: false
max_res: 720
tmp_dir: ${XDG_CACHE_DIR}/syng
search_suffix: karaoke
max_duration: 1800
```
# Web client
The web client consists of three columns on desktop and three tabs on mobile:
- **Search:** Users can search for karaoke songs and get the results here. You can also directly add a YouTube video by using its link. Search results for YouTube videos have a second button to preview the song.
- **Queue:** Shows the current queue. The current song is highlighted at the top and each item is equipped with an ETA. If you are on an admin connection, you can drag and drop to change the order of the queue and delete items from the queue.
- **Recent:** This shows all previously played songs.
When connecting to the web client, you can give yourself a name with which your songs are queued. You can change your name by changing it in the footer. If no name is selected, a name is queried each time a song is added.
In the advanced options, you can add the admin password, that corresponds with the admin password on the playback client, to elevate this connection to an admin connection.
# Server
If you want to host your own Syng server, you can do that, but you can also use the publicly available Syng instance at https://syng.rocks.
@ -155,18 +173,26 @@ If you want to host your own Syng server, you can do that, but you can also use
You can install the server via pip:
pip install 'syng[server]'
pip install syng
and then run via:
syng server
The server is also automatically available if you install the client.
There exists one optional dependency for the server: `alt-profanity-check`. If this package is installed, each username is checked for profanity, otherwise no such check happens.
## Docker
Alternatively you can run the server using docker. It listens on port 8080 and reads a key file at `/app/keys.txt` when configured as private or restricted.
docker run --rm -v /path/to/your/keys.txt:/app/keys.txt -p 8080:8080 ghcr.io/christofsteel/syng -H 0.0.0.0
## Arch Linux
The Syng server is also packaged for Arch Linux in the [Arch Linux user repository](https://aur.archlinux.org/packages/syng-server)
## Configuration
Configuration is done via command line arguments, see `syng server --help` for an overview.

1967
poetry.lock generated

File diff suppressed because it is too large Load diff

View file

@ -32,7 +32,7 @@ syng = "syng.main:main"
python = "^3.9"
python-socketio = "^5.10.0"
aiohttp = "^3.9.1"
yarl = "<1.14.0"
# yarl = "<1.14.0"
platformdirs = "^4.0.0"
yt-dlp = { version = ">=2024.11.18", extras = ["default"] }
minio = { version = "^7.2.0", optional = true }
@ -41,7 +41,7 @@ qrcode = { version = "^7.4.2", optional = true }
pymediainfo = { version = "^6.1.0", optional = true }
pyyaml = { version = "^6.0.1", optional = true }
alt-profanity-check = {version = "^1.4.1", optional = true}
pyqt6 = {version="^6.7.1", optional = true}
pyqt6 = {version=">=6.7.1", optional = true}
mpv = {version = "^1.0.7", optional = true}
qasync = {version = "^0.27.1", optional = true}
@ -55,7 +55,6 @@ requirements-parser = "^0.11.0"
[tool.poetry.extras]
client = ["minio", "pillow", "qrcode", "pymediainfo", "pyyaml", "pyqt6", "mpv", "qasync"]
server = ["alt-profanity-check"]
[build-system]
requires = ["poetry-core"]

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -1,6 +1,6 @@
aiohappyeyeballs==2.4.3 ; python_version >= "3.9" and python_version < "4.0" \
--hash=sha256:75cf88a15106a5002a8eb1dab212525c00d1f4c0fa96e551c9fbe6f09a621586 \
--hash=sha256:8a7a83727b2756f394ab2895ea0765a0a8c475e3c71e98d43d76f22b4b435572
aiohappyeyeballs==2.4.4 ; python_version >= "3.9" and python_version < "4.0" \
--hash=sha256:5fdd7d87889c63183afc18ce9271f9b0a7d32c2303e394468dd45d514a757745 \
--hash=sha256:a980909d50efcd44795c4afeca523296716d50cd756ddca6af8c65b996e27de8
aiohttp==3.10.11 ; python_version >= "3.9" and python_version < "4.0" \
--hash=sha256:0316e624b754dbbf8c872b62fe6dcb395ef20c70e59890dfa0de9eafccd2849d \
--hash=sha256:099fd126bf960f96d34a760e747a629c27fb3634da5d05c7ef4d35ef4ea519fc \
@ -93,11 +93,12 @@ aiohttp==3.10.11 ; python_version >= "3.9" and python_version < "4.0" \
--hash=sha256:fc31820cfc3b2863c6e95e14fcf815dc7afe52480b4dc03393c4873bb5599f71 \
--hash=sha256:fdf6429f0caabfd8a30c4e2eaecb547b3c340e4730ebfe25139779b9815ba138 \
--hash=sha256:ffbfde2443696345e23a3c597049b1dd43049bb65337837574205e7368472177
aiosignal==1.3.1 ; python_version >= "3.9" and python_version < "4.0" \
--hash=sha256:54cd96e15e1649b75d6c87526a6ff0b6c1b0dd3459f43d9ca11d48c339b68cfc \
--hash=sha256:f8376fb07dd1e86a584e4fcdec80b36b7f81aac666ebc724e2c090300dd83b17
alt-profanity-check==1.5.2 ; python_version >= "3.9" and python_version < "4.0" \
--hash=sha256:84e480b330f904062b22dce2806cdf2db978a0e6ad921d33595379dbbcaa16d5
aiosignal==1.3.2 ; python_version >= "3.9" and python_version < "4.0" \
--hash=sha256:45cde58e409a301715980c2b01d0c28bdde3770d8290b5eb2173759d9acb31a5 \
--hash=sha256:a8c255c66fafb1e499c9351d0bf32ff2d8a0321595ebac3b93713656d2436f54
alt-profanity-check==1.6.1 ; python_version >= "3.9" and python_version < "4.0" \
--hash=sha256:35850f409abaac08db7db52bb3408b9a076b5e96940e12e2196e91f545b13d9b \
--hash=sha256:3da55fac9d674442c8d1a5aece1d96e77290c71da8fe54f99ff34fe490181cca
argon2-cffi-bindings==21.2.0 ; python_version >= "3.9" and python_version < "4.0" \
--hash=sha256:20ef543a89dee4db46a1a6e206cd015360e5a75822f76df533845c3cbaf72670 \
--hash=sha256:2c3e3cc67fdb7d82c4718f19b4e7a87123caf8a93fde7e23cf66ac0337d3cb3f \
@ -126,9 +127,9 @@ argon2-cffi==23.1.0 ; python_version >= "3.9" and python_version < "4.0" \
async-timeout==5.0.1 ; python_version >= "3.9" and python_version < "3.11" \
--hash=sha256:39e3809566ff85354557ec2398b55e096c8364bacac9405a7a1fa429e77fe76c \
--hash=sha256:d9321a7a3d5a6a5e187e824d2fa0793ce379a202935782d555d6e9d2735677d3
attrs==24.2.0 ; python_version >= "3.9" and python_version < "4.0" \
--hash=sha256:5cfb1b9148b5b086569baec03f20d7b6bf3bcacc9a42bebf87ffaaca362f6346 \
--hash=sha256:81921eb96de3191c8258c199618104dd27ac608d9366f5e35d011eae1867ede2
attrs==25.1.0 ; python_version >= "3.9" and python_version < "4.0" \
--hash=sha256:1c97078a80c814273a76b2a298a932eb681c87415c11dee0a6921de7f1b02c3e \
--hash=sha256:c75a69e28a550a7e93789579c22aa26b0f5b83b75dc4e08fe092980051e1090a
bidict==0.23.1 ; python_version >= "3.9" and python_version < "4.0" \
--hash=sha256:03069d763bc387bbd20e7d49914e75fc4132a41937fa3405417e1a5a2d006d71 \
--hash=sha256:5dae8d4d79b552a71cbabc7deb25dfe8ce710b17ff41711e13010ead2abfc3e5
@ -244,9 +245,9 @@ brotlicffi==1.1.0.0 ; implementation_name != "cpython" and python_version >= "3.
--hash=sha256:ce01c7316aebc7fce59da734286148b1d1b9455f89cf2c8a4dfce7d41db55c2d \
--hash=sha256:d9eb71bb1085d996244439154387266fd23d6ad37161f6f52f1cd41dd95a3808 \
--hash=sha256:fa8ca0623b26c94fccc3a1fdd895be1743b838f3917300506d04aa3346fd2a14
certifi==2024.8.30 ; python_version >= "3.9" and python_version < "4.0" \
--hash=sha256:922820b53db7a7257ffbda3f597266d435245903d80737e34f8a45ff3e3230d8 \
--hash=sha256:bec941d2aa8195e248a60b31ff9f0558284cf01a52591ceda73ea9afffd69fd9
certifi==2025.1.31 ; python_version >= "3.9" and python_version < "4.0" \
--hash=sha256:3d5da6925056f6f18f119200434a4780a94263f10d1c21d032a6f6b2baa20651 \
--hash=sha256:ca78db4565a652026a4db2bcdf68f2fb589ea80d0be70e03929ed730746b84fe
cffi==1.17.1 ; python_version >= "3.9" and python_version < "4.0" \
--hash=sha256:045d61c734659cc045141be4bae381a41d89b741f795af1dd018bfb532fd0df8 \
--hash=sha256:0984a4925a435b1da406122d4d7968dd861c1385afe3b45ba82b750f229811e2 \
@ -315,112 +316,99 @@ cffi==1.17.1 ; python_version >= "3.9" and python_version < "4.0" \
--hash=sha256:f79fc4fc25f1c8698ff97788206bb3c2598949bfe0fef03d299eb1b5356ada99 \
--hash=sha256:f7f5baafcc48261359e14bcd6d9bff6d4b28d9103847c9e136694cb0501aef87 \
--hash=sha256:fc48c783f9c87e60831201f2cce7f3b2e4846bf4d8728eabe54d60700b318a0b
charset-normalizer==3.4.0 ; python_version >= "3.9" and python_version < "4.0" \
--hash=sha256:0099d79bdfcf5c1f0c2c72f91516702ebf8b0b8ddd8905f97a8aecf49712c621 \
--hash=sha256:0713f3adb9d03d49d365b70b84775d0a0d18e4ab08d12bc46baa6132ba78aaf6 \
--hash=sha256:07afec21bbbbf8a5cc3651aa96b980afe2526e7f048fdfb7f1014d84acc8b6d8 \
--hash=sha256:0b309d1747110feb25d7ed6b01afdec269c647d382c857ef4663bbe6ad95a912 \
--hash=sha256:0d99dd8ff461990f12d6e42c7347fd9ab2532fb70e9621ba520f9e8637161d7c \
--hash=sha256:0de7b687289d3c1b3e8660d0741874abe7888100efe14bd0f9fd7141bcbda92b \
--hash=sha256:1110e22af8ca26b90bd6364fe4c763329b0ebf1ee213ba32b68c73de5752323d \
--hash=sha256:130272c698667a982a5d0e626851ceff662565379baf0ff2cc58067b81d4f11d \
--hash=sha256:136815f06a3ae311fae551c3df1f998a1ebd01ddd424aa5603a4336997629e95 \
--hash=sha256:14215b71a762336254351b00ec720a8e85cada43b987da5a042e4ce3e82bd68e \
--hash=sha256:1db4e7fefefd0f548d73e2e2e041f9df5c59e178b4c72fbac4cc6f535cfb1565 \
--hash=sha256:1ffd9493de4c922f2a38c2bf62b831dcec90ac673ed1ca182fe11b4d8e9f2a64 \
--hash=sha256:2006769bd1640bdf4d5641c69a3d63b71b81445473cac5ded39740a226fa88ab \
--hash=sha256:20587d20f557fe189b7947d8e7ec5afa110ccf72a3128d61a2a387c3313f46be \
--hash=sha256:223217c3d4f82c3ac5e29032b3f1c2eb0fb591b72161f86d93f5719079dae93e \
--hash=sha256:27623ba66c183eca01bf9ff833875b459cad267aeeb044477fedac35e19ba907 \
--hash=sha256:285e96d9d53422efc0d7a17c60e59f37fbf3dfa942073f666db4ac71e8d726d0 \
--hash=sha256:2de62e8801ddfff069cd5c504ce3bc9672b23266597d4e4f50eda28846c322f2 \
--hash=sha256:2f6c34da58ea9c1a9515621f4d9ac379871a8f21168ba1b5e09d74250de5ad62 \
--hash=sha256:309a7de0a0ff3040acaebb35ec45d18db4b28232f21998851cfa709eeff49d62 \
--hash=sha256:35c404d74c2926d0287fbd63ed5d27eb911eb9e4a3bb2c6d294f3cfd4a9e0c23 \
--hash=sha256:3710a9751938947e6327ea9f3ea6332a09bf0ba0c09cae9cb1f250bd1f1549bc \
--hash=sha256:3d59d125ffbd6d552765510e3f31ed75ebac2c7470c7274195b9161a32350284 \
--hash=sha256:40d3ff7fc90b98c637bda91c89d51264a3dcf210cade3a2c6f838c7268d7a4ca \
--hash=sha256:425c5f215d0eecee9a56cdb703203dda90423247421bf0d67125add85d0c4455 \
--hash=sha256:43193c5cda5d612f247172016c4bb71251c784d7a4d9314677186a838ad34858 \
--hash=sha256:44aeb140295a2f0659e113b31cfe92c9061622cadbc9e2a2f7b8ef6b1e29ef4b \
--hash=sha256:47334db71978b23ebcf3c0f9f5ee98b8d65992b65c9c4f2d34c2eaf5bcaf0594 \
--hash=sha256:4796efc4faf6b53a18e3d46343535caed491776a22af773f366534056c4e1fbc \
--hash=sha256:4a51b48f42d9358460b78725283f04bddaf44a9358197b889657deba38f329db \
--hash=sha256:4b67fdab07fdd3c10bb21edab3cbfe8cf5696f453afce75d815d9d7223fbe88b \
--hash=sha256:4ec9dd88a5b71abfc74e9df5ebe7921c35cbb3b641181a531ca65cdb5e8e4dea \
--hash=sha256:4f9fc98dad6c2eaa32fc3af1417d95b5e3d08aff968df0cd320066def971f9a6 \
--hash=sha256:54b6a92d009cbe2fb11054ba694bc9e284dad30a26757b1e372a1fdddaf21920 \
--hash=sha256:55f56e2ebd4e3bc50442fbc0888c9d8c94e4e06a933804e2af3e89e2f9c1c749 \
--hash=sha256:5726cf76c982532c1863fb64d8c6dd0e4c90b6ece9feb06c9f202417a31f7dd7 \
--hash=sha256:5d447056e2ca60382d460a604b6302d8db69476fd2015c81e7c35417cfabe4cd \
--hash=sha256:5ed2e36c3e9b4f21dd9422f6893dec0abf2cca553af509b10cd630f878d3eb99 \
--hash=sha256:5ff2ed8194587faf56555927b3aa10e6fb69d931e33953943bc4f837dfee2242 \
--hash=sha256:62f60aebecfc7f4b82e3f639a7d1433a20ec32824db2199a11ad4f5e146ef5ee \
--hash=sha256:63bc5c4ae26e4bc6be6469943b8253c0fd4e4186c43ad46e713ea61a0ba49129 \
--hash=sha256:6b40e8d38afe634559e398cc32b1472f376a4099c75fe6299ae607e404c033b2 \
--hash=sha256:6b493a043635eb376e50eedf7818f2f322eabbaa974e948bd8bdd29eb7ef2a51 \
--hash=sha256:6dba5d19c4dfab08e58d5b36304b3f92f3bd5d42c1a3fa37b5ba5cdf6dfcbcee \
--hash=sha256:6fd30dc99682dc2c603c2b315bded2799019cea829f8bf57dc6b61efde6611c8 \
--hash=sha256:707b82d19e65c9bd28b81dde95249b07bf9f5b90ebe1ef17d9b57473f8a64b7b \
--hash=sha256:7706f5850360ac01d80c89bcef1640683cc12ed87f42579dab6c5d3ed6888613 \
--hash=sha256:7782afc9b6b42200f7362858f9e73b1f8316afb276d316336c0ec3bd73312742 \
--hash=sha256:79983512b108e4a164b9c8d34de3992f76d48cadc9554c9e60b43f308988aabe \
--hash=sha256:7f683ddc7eedd742e2889d2bfb96d69573fde1d92fcb811979cdb7165bb9c7d3 \
--hash=sha256:82357d85de703176b5587dbe6ade8ff67f9f69a41c0733cf2425378b49954de5 \
--hash=sha256:84450ba661fb96e9fd67629b93d2941c871ca86fc38d835d19d4225ff946a631 \
--hash=sha256:86f4e8cca779080f66ff4f191a685ced73d2f72d50216f7112185dc02b90b9b7 \
--hash=sha256:8cda06946eac330cbe6598f77bb54e690b4ca93f593dee1568ad22b04f347c15 \
--hash=sha256:8ce7fd6767a1cc5a92a639b391891bf1c268b03ec7e021c7d6d902285259685c \
--hash=sha256:8ff4e7cdfdb1ab5698e675ca622e72d58a6fa2a8aa58195de0c0061288e6e3ea \
--hash=sha256:9289fd5dddcf57bab41d044f1756550f9e7cf0c8e373b8cdf0ce8773dc4bd417 \
--hash=sha256:92a7e36b000bf022ef3dbb9c46bfe2d52c047d5e3f3343f43204263c5addc250 \
--hash=sha256:92db3c28b5b2a273346bebb24857fda45601aef6ae1c011c0a997106581e8a88 \
--hash=sha256:95c3c157765b031331dd4db3c775e58deaee050a3042fcad72cbc4189d7c8dca \
--hash=sha256:980b4f289d1d90ca5efcf07958d3eb38ed9c0b7676bf2831a54d4f66f9c27dfa \
--hash=sha256:9ae4ef0b3f6b41bad6366fb0ea4fc1d7ed051528e113a60fa2a65a9abb5b1d99 \
--hash=sha256:9c98230f5042f4945f957d006edccc2af1e03ed5e37ce7c373f00a5a4daa6149 \
--hash=sha256:9fa2566ca27d67c86569e8c85297aaf413ffab85a8960500f12ea34ff98e4c41 \
--hash=sha256:a14969b8691f7998e74663b77b4c36c0337cb1df552da83d5c9004a93afdb574 \
--hash=sha256:a8aacce6e2e1edcb6ac625fb0f8c3a9570ccc7bfba1f63419b3769ccf6a00ed0 \
--hash=sha256:a8e538f46104c815be19c975572d74afb53f29650ea2025bbfaef359d2de2f7f \
--hash=sha256:aa41e526a5d4a9dfcfbab0716c7e8a1b215abd3f3df5a45cf18a12721d31cb5d \
--hash=sha256:aa693779a8b50cd97570e5a0f343538a8dbd3e496fa5dcb87e29406ad0299654 \
--hash=sha256:ab22fbd9765e6954bc0bcff24c25ff71dcbfdb185fcdaca49e81bac68fe724d3 \
--hash=sha256:ab2e5bef076f5a235c3774b4f4028a680432cded7cad37bba0fd90d64b187d19 \
--hash=sha256:ab973df98fc99ab39080bfb0eb3a925181454d7c3ac8a1e695fddfae696d9e90 \
--hash=sha256:af73657b7a68211996527dbfeffbb0864e043d270580c5aef06dc4b659a4b578 \
--hash=sha256:b197e7094f232959f8f20541ead1d9862ac5ebea1d58e9849c1bf979255dfac9 \
--hash=sha256:b295729485b06c1a0683af02a9e42d2caa9db04a373dc38a6a58cdd1e8abddf1 \
--hash=sha256:b8831399554b92b72af5932cdbbd4ddc55c55f631bb13ff8fe4e6536a06c5c51 \
--hash=sha256:b8dcd239c743aa2f9c22ce674a145e0a25cb1566c495928440a181ca1ccf6719 \
--hash=sha256:bcb4f8ea87d03bc51ad04add8ceaf9b0f085ac045ab4d74e73bbc2dc033f0236 \
--hash=sha256:bd7af3717683bea4c87acd8c0d3d5b44d56120b26fd3f8a692bdd2d5260c620a \
--hash=sha256:bf4475b82be41b07cc5e5ff94810e6a01f276e37c2d55571e3fe175e467a1a1c \
--hash=sha256:c3e446d253bd88f6377260d07c895816ebf33ffffd56c1c792b13bff9c3e1ade \
--hash=sha256:c57516e58fd17d03ebe67e181a4e4e2ccab1168f8c2976c6a334d4f819fe5944 \
--hash=sha256:c94057af19bc953643a33581844649a7fdab902624d2eb739738a30e2b3e60fc \
--hash=sha256:cab5d0b79d987c67f3b9e9c53f54a61360422a5a0bc075f43cab5621d530c3b6 \
--hash=sha256:ce031db0408e487fd2775d745ce30a7cd2923667cf3b69d48d219f1d8f5ddeb6 \
--hash=sha256:cee4373f4d3ad28f1ab6290684d8e2ebdb9e7a1b74fdc39e4c211995f77bec27 \
--hash=sha256:d5b054862739d276e09928de37c79ddeec42a6e1bfc55863be96a36ba22926f6 \
--hash=sha256:dbe03226baf438ac4fda9e2d0715022fd579cb641c4cf639fa40d53b2fe6f3e2 \
--hash=sha256:dc15e99b2d8a656f8e666854404f1ba54765871104e50c8e9813af8a7db07f12 \
--hash=sha256:dcaf7c1524c0542ee2fc82cc8ec337f7a9f7edee2532421ab200d2b920fc97cf \
--hash=sha256:dd4eda173a9fcccb5f2e2bd2a9f423d180194b1bf17cf59e3269899235b2a114 \
--hash=sha256:dd9a8bd8900e65504a305bf8ae6fa9fbc66de94178c420791d0293702fce2df7 \
--hash=sha256:de7376c29d95d6719048c194a9cf1a1b0393fbe8488a22008610b0361d834ecf \
--hash=sha256:e7fdd52961feb4c96507aa649550ec2a0d527c086d284749b2f582f2d40a2e0d \
--hash=sha256:e91f541a85298cf35433bf66f3fab2a4a2cff05c127eeca4af174f6d497f0d4b \
--hash=sha256:e9e3c4c9e1ed40ea53acf11e2a386383c3304212c965773704e4603d589343ed \
--hash=sha256:ee803480535c44e7f5ad00788526da7d85525cfefaf8acf8ab9a310000be4b03 \
--hash=sha256:f09cb5a7bbe1ecae6e87901a2eb23e0256bb524a79ccc53eb0b7629fbe7677c4 \
--hash=sha256:f19c1585933c82098c2a520f8ec1227f20e339e33aca8fa6f956f6691b784e67 \
--hash=sha256:f1a2f519ae173b5b6a2c9d5fa3116ce16e48b3462c8b96dfdded11055e3d6365 \
--hash=sha256:f28f891ccd15c514a0981f3b9db9aa23d62fe1a99997512b0491d2ed323d229a \
--hash=sha256:f3e73a4255342d4eb26ef6df01e3962e73aa29baa3124a8e824c5d3364a65748 \
--hash=sha256:f606a1881d2663630ea5b8ce2efe2111740df4b687bd78b34a8131baa007f79b \
--hash=sha256:fe9f97feb71aa9896b81973a7bbada8c49501dc73e58a10fcef6663af95e5079 \
--hash=sha256:ffc519621dce0c767e96b9c53f09c5d215578e10b02c285809f76509a3931482
charset-normalizer==3.4.1 ; python_version >= "3.9" and python_version < "4.0" \
--hash=sha256:0167ddc8ab6508fe81860a57dd472b2ef4060e8d378f0cc555707126830f2537 \
--hash=sha256:01732659ba9b5b873fc117534143e4feefecf3b2078b0a6a2e925271bb6f4cfa \
--hash=sha256:01ad647cdd609225c5350561d084b42ddf732f4eeefe6e678765636791e78b9a \
--hash=sha256:04432ad9479fa40ec0f387795ddad4437a2b50417c69fa275e212933519ff294 \
--hash=sha256:0907f11d019260cdc3f94fbdb23ff9125f6b5d1039b76003b5b0ac9d6a6c9d5b \
--hash=sha256:0924e81d3d5e70f8126529951dac65c1010cdf117bb75eb02dd12339b57749dd \
--hash=sha256:09b26ae6b1abf0d27570633b2b078a2a20419c99d66fb2823173d73f188ce601 \
--hash=sha256:09b5e6733cbd160dcc09589227187e242a30a49ca5cefa5a7edd3f9d19ed53fd \
--hash=sha256:0af291f4fe114be0280cdd29d533696a77b5b49cfde5467176ecab32353395c4 \
--hash=sha256:0f55e69f030f7163dffe9fd0752b32f070566451afe180f99dbeeb81f511ad8d \
--hash=sha256:1a2bc9f351a75ef49d664206d51f8e5ede9da246602dc2d2726837620ea034b2 \
--hash=sha256:22e14b5d70560b8dd51ec22863f370d1e595ac3d024cb8ad7d308b4cd95f8313 \
--hash=sha256:234ac59ea147c59ee4da87a0c0f098e9c8d169f4dc2a159ef720f1a61bbe27cd \
--hash=sha256:2369eea1ee4a7610a860d88f268eb39b95cb588acd7235e02fd5a5601773d4fa \
--hash=sha256:237bdbe6159cff53b4f24f397d43c6336c6b0b42affbe857970cefbb620911c8 \
--hash=sha256:28bf57629c75e810b6ae989f03c0828d64d6b26a5e205535585f96093e405ed1 \
--hash=sha256:2967f74ad52c3b98de4c3b32e1a44e32975e008a9cd2a8cc8966d6a5218c5cb2 \
--hash=sha256:2a75d49014d118e4198bcee5ee0a6f25856b29b12dbf7cd012791f8a6cc5c496 \
--hash=sha256:2bdfe3ac2e1bbe5b59a1a63721eb3b95fc9b6817ae4a46debbb4e11f6232428d \
--hash=sha256:2d074908e1aecee37a7635990b2c6d504cd4766c7bc9fc86d63f9c09af3fa11b \
--hash=sha256:2fb9bd477fdea8684f78791a6de97a953c51831ee2981f8e4f583ff3b9d9687e \
--hash=sha256:311f30128d7d333eebd7896965bfcfbd0065f1716ec92bd5638d7748eb6f936a \
--hash=sha256:329ce159e82018d646c7ac45b01a430369d526569ec08516081727a20e9e4af4 \
--hash=sha256:345b0426edd4e18138d6528aed636de7a9ed169b4aaf9d61a8c19e39d26838ca \
--hash=sha256:363e2f92b0f0174b2f8238240a1a30142e3db7b957a5dd5689b0e75fb717cc78 \
--hash=sha256:3a3bd0dcd373514dcec91c411ddb9632c0d7d92aed7093b8c3bbb6d69ca74408 \
--hash=sha256:3bed14e9c89dcb10e8f3a29f9ccac4955aebe93c71ae803af79265c9ca5644c5 \
--hash=sha256:44251f18cd68a75b56585dd00dae26183e102cd5e0f9f1466e6df5da2ed64ea3 \
--hash=sha256:44ecbf16649486d4aebafeaa7ec4c9fed8b88101f4dd612dcaf65d5e815f837f \
--hash=sha256:4532bff1b8421fd0a320463030c7520f56a79c9024a4e88f01c537316019005a \
--hash=sha256:49402233c892a461407c512a19435d1ce275543138294f7ef013f0b63d5d3765 \
--hash=sha256:4c0907b1928a36d5a998d72d64d8eaa7244989f7aaaf947500d3a800c83a3fd6 \
--hash=sha256:4d86f7aff21ee58f26dcf5ae81a9addbd914115cdebcbb2217e4f0ed8982e146 \
--hash=sha256:5777ee0881f9499ed0f71cc82cf873d9a0ca8af166dfa0af8ec4e675b7df48e6 \
--hash=sha256:5df196eb874dae23dcfb968c83d4f8fdccb333330fe1fc278ac5ceeb101003a9 \
--hash=sha256:619a609aa74ae43d90ed2e89bdd784765de0a25ca761b93e196d938b8fd1dbbd \
--hash=sha256:6e27f48bcd0957c6d4cb9d6fa6b61d192d0b13d5ef563e5f2ae35feafc0d179c \
--hash=sha256:6ff8a4a60c227ad87030d76e99cd1698345d4491638dfa6673027c48b3cd395f \
--hash=sha256:73d94b58ec7fecbc7366247d3b0b10a21681004153238750bb67bd9012414545 \
--hash=sha256:7461baadb4dc00fd9e0acbe254e3d7d2112e7f92ced2adc96e54ef6501c5f176 \
--hash=sha256:75832c08354f595c760a804588b9357d34ec00ba1c940c15e31e96d902093770 \
--hash=sha256:7709f51f5f7c853f0fb938bcd3bc59cdfdc5203635ffd18bf354f6967ea0f824 \
--hash=sha256:78baa6d91634dfb69ec52a463534bc0df05dbd546209b79a3880a34487f4b84f \
--hash=sha256:7974a0b5ecd505609e3b19742b60cee7aa2aa2fb3151bc917e6e2646d7667dcf \
--hash=sha256:7a4f97a081603d2050bfaffdefa5b02a9ec823f8348a572e39032caa8404a487 \
--hash=sha256:7b1bef6280950ee6c177b326508f86cad7ad4dff12454483b51d8b7d673a2c5d \
--hash=sha256:7d053096f67cd1241601111b698f5cad775f97ab25d81567d3f59219b5f1adbd \
--hash=sha256:804a4d582ba6e5b747c625bf1255e6b1507465494a40a2130978bda7b932c90b \
--hash=sha256:807f52c1f798eef6cf26beb819eeb8819b1622ddfeef9d0977a8502d4db6d534 \
--hash=sha256:80ed5e856eb7f30115aaf94e4a08114ccc8813e6ed1b5efa74f9f82e8509858f \
--hash=sha256:8417cb1f36cc0bc7eaba8ccb0e04d55f0ee52df06df3ad55259b9a323555fc8b \
--hash=sha256:8436c508b408b82d87dc5f62496973a1805cd46727c34440b0d29d8a2f50a6c9 \
--hash=sha256:89149166622f4db9b4b6a449256291dc87a99ee53151c74cbd82a53c8c2f6ccd \
--hash=sha256:8bfa33f4f2672964266e940dd22a195989ba31669bd84629f05fab3ef4e2d125 \
--hash=sha256:8c60ca7339acd497a55b0ea5d506b2a2612afb2826560416f6894e8b5770d4a9 \
--hash=sha256:91b36a978b5ae0ee86c394f5a54d6ef44db1de0815eb43de826d41d21e4af3de \
--hash=sha256:955f8851919303c92343d2f66165294848d57e9bba6cf6e3625485a70a038d11 \
--hash=sha256:97f68b8d6831127e4787ad15e6757232e14e12060bec17091b85eb1486b91d8d \
--hash=sha256:9b23ca7ef998bc739bf6ffc077c2116917eabcc901f88da1b9856b210ef63f35 \
--hash=sha256:9f0b8b1c6d84c8034a44893aba5e767bf9c7a211e313a9605d9c617d7083829f \
--hash=sha256:aabfa34badd18f1da5ec1bc2715cadc8dca465868a4e73a0173466b688f29dda \
--hash=sha256:ab36c8eb7e454e34e60eb55ca5d241a5d18b2c6244f6827a30e451c42410b5f7 \
--hash=sha256:b010a7a4fd316c3c484d482922d13044979e78d1861f0e0650423144c616a46a \
--hash=sha256:b1ac5992a838106edb89654e0aebfc24f5848ae2547d22c2c3f66454daa11971 \
--hash=sha256:b7b2d86dd06bfc2ade3312a83a5c364c7ec2e3498f8734282c6c3d4b07b346b8 \
--hash=sha256:b97e690a2118911e39b4042088092771b4ae3fc3aa86518f84b8cf6888dbdb41 \
--hash=sha256:bc2722592d8998c870fa4e290c2eec2c1569b87fe58618e67d38b4665dfa680d \
--hash=sha256:c0429126cf75e16c4f0ad00ee0eae4242dc652290f940152ca8c75c3a4b6ee8f \
--hash=sha256:c30197aa96e8eed02200a83fba2657b4c3acd0f0aa4bdc9f6c1af8e8962e0757 \
--hash=sha256:c4c3e6da02df6fa1410a7680bd3f63d4f710232d3139089536310d027950696a \
--hash=sha256:c75cb2a3e389853835e84a2d8fb2b81a10645b503eca9bcb98df6b5a43eb8886 \
--hash=sha256:c96836c97b1238e9c9e3fe90844c947d5afbf4f4c92762679acfe19927d81d77 \
--hash=sha256:d7f50a1f8c450f3925cb367d011448c39239bb3eb4117c36a6d354794de4ce76 \
--hash=sha256:d973f03c0cb71c5ed99037b870f2be986c3c05e63622c017ea9816881d2dd247 \
--hash=sha256:d98b1668f06378c6dbefec3b92299716b931cd4e6061f3c875a71ced1780ab85 \
--hash=sha256:d9c3cdf5390dcd29aa8056d13e8e99526cda0305acc038b96b30352aff5ff2bb \
--hash=sha256:dad3e487649f498dd991eeb901125411559b22e8d7ab25d3aeb1af367df5efd7 \
--hash=sha256:dccbe65bd2f7f7ec22c4ff99ed56faa1e9f785482b9bbd7c717e26fd723a1d1e \
--hash=sha256:dd78cfcda14a1ef52584dbb008f7ac81c1328c0f58184bf9a84c49c605002da6 \
--hash=sha256:e218488cd232553829be0664c2292d3af2eeeb94b32bea483cf79ac6a694e037 \
--hash=sha256:e358e64305fe12299a08e08978f51fc21fac060dcfcddd95453eabe5b93ed0e1 \
--hash=sha256:ea0d8d539afa5eb2728aa1932a988a9a7af94f18582ffae4bc10b3fbdad0626e \
--hash=sha256:eab677309cdb30d047996b36d34caeda1dc91149e4fdca0b1a039b3f79d9a807 \
--hash=sha256:eb8178fe3dba6450a3e024e95ac49ed3400e506fd4e9e5c32d30adda88cbd407 \
--hash=sha256:ecddf25bee22fe4fe3737a399d0d177d72bc22be6913acfab364b40bce1ba83c \
--hash=sha256:eea6ee1db730b3483adf394ea72f808b6e18cf3cb6454b4d86e04fa8c4327a12 \
--hash=sha256:f08ff5e948271dc7e18a35641d2f11a4cd8dfd5634f55228b691e62b37125eb3 \
--hash=sha256:f30bf9fd9be89ecb2360c7d94a711f00c09b976258846efe40db3d05828e8089 \
--hash=sha256:fa88b843d6e211393a37219e6a1c1df99d35e8fd90446f1118f4216e307e48cd \
--hash=sha256:fc54db6c8593ef7d4b2a331b58653356cf04f67c960f584edb7c3d8c97e8f39e \
--hash=sha256:fd4ec41f914fa74ad1b8304bbc634b3de73d2a0889bd32076342a573e0779e00 \
--hash=sha256:ffc9202a29ab3920fa812879e95a9e78b2465fd10be7fcbd042899695d75e616
colorama==0.4.6 ; python_version >= "3.9" and python_version < "4.0" and platform_system == "Windows" \
--hash=sha256:08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44 \
--hash=sha256:4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6
@ -526,9 +514,9 @@ idna==3.10 ; python_version >= "3.9" and python_version < "4.0" \
joblib==1.4.2 ; python_version >= "3.9" and python_version < "4.0" \
--hash=sha256:06d478d5674cbc267e7496a410ee875abd68e4340feff4490bcb7afb88060ae6 \
--hash=sha256:2382c5816b2636fbd20a09e0f4e9dad4736765fdfb7dca582943b9c1366b3f0e
minio==7.2.10 ; python_version >= "3.9" and python_version < "4.0" \
--hash=sha256:418c31ac79346a580df04a0e14db1becbc548a6e7cca61f9bc4ef3bcd336c449 \
--hash=sha256:5961c58192b1d70d3a2a362064b8e027b8232688998a6d1251dadbb02ab57a7d
minio==7.2.15 ; python_version >= "3.9" and python_version < "4.0" \
--hash=sha256:5247df5d4dca7bfa4c9b20093acd5ad43e82d8710ceb059d79c6eea970f49f79 \
--hash=sha256:c06ef7a43e5d67107067f77b6c07ebdd68733e5aa7eed03076472410ca19d876
mpv==1.0.7 ; python_version >= "3.9" and python_version < "4.0" \
--hash=sha256:520fb134c18185b69c7fce4aa3514f14371028022d92eb193818e9fefb1e9fe8 \
--hash=sha256:ae17d56176e05e4d046aa28a0732a478c0d58603e878e8da6d82b6c145ae1d82
@ -835,48 +823,53 @@ pymediainfo==6.1.0 ; python_version >= "3.9" and python_version < "4.0" \
pypng==0.20220715.0 ; python_version >= "3.9" and python_version < "4.0" \
--hash=sha256:4a43e969b8f5aaafb2a415536c1a8ec7e341cd6a3f957fd5b5f32a4cfeed902c \
--hash=sha256:739c433ba96f078315de54c0db975aee537cbc3e1d0ae4ed9aab0ca1e427e2c1
pyqt6-qt6==6.7.3 ; python_version >= "3.9" and python_version < "4.0" \
--hash=sha256:36ea0892b8caeb983af3f285f45fb8dfbb93cfd972439f4e01b7efb2868f6230 \
--hash=sha256:50c7482bcdcf2bb78af257fb10ed8b582f8daf91d829782393bc50ac5a0a900c \
--hash=sha256:8551732984fb36a5f4f3db51eafc4e8e6caf18617365830285306f2db17a94c2 \
--hash=sha256:cb525fdd393332de60887953029276a44de480fce1d785251ae639580f5e7246 \
--hash=sha256:f517a93b6b1a814d4aa6587adc312e812ebaf4d70415bb15cfb44268c5ad3f5f
pyqt6-sip==13.8.0 ; python_version >= "3.9" and python_version < "4.0" \
--hash=sha256:056af69d1d8d28d5968066ec5da908afd82fc0be07b67cf2b84b9f02228416ce \
--hash=sha256:08dd81037a2864982ece2bf9891f3bf4558e247034e112993ea1a3fe239458cb \
--hash=sha256:2559afa68825d08de09d71c42f3b6ad839dcc30f91e7c6d0785e07830d5541a5 \
--hash=sha256:2f74cf3d6d9cab5152bd9f49d570b2dfb87553ebb5c4919abfde27f5b9fd69d4 \
--hash=sha256:33d9b399fc9c9dc99496266842b0fb2735d924604774e97cf9b555667cc0fc59 \
--hash=sha256:6bce6bc5870d9e87efe5338b1ee4a7b9d7d26cdd16a79a5757d80b6f25e71edc \
--hash=sha256:755beb5d271d081e56618fb30342cdd901464f721450495cb7cb0212764da89e \
--hash=sha256:7a0bbc0918eab5b6351735d40cf22cbfa5aa2476b55e0d5fe881aeed7d871c29 \
--hash=sha256:7f84c472afdc7d316ff683f63129350d645ef82d9b3fd75a609b08472d1f7291 \
--hash=sha256:835ed22eab977f75fd77e60d4ff308a1fa794b1d0c04849311f36d2a080cdf3b \
--hash=sha256:9ea9223c94906efd68148f12ae45b51a21d67e86704225ddc92bce9c54e4d93c \
--hash=sha256:a5c086b7c9c7996ea9b7522646cc24eebbf3591ec9dd38f65c0a3fdb0dbeaac7 \
--hash=sha256:b1bf29e95f10a8a00819dac804ca7e5eba5fc1769adcd74c837c11477bf81954 \
--hash=sha256:b203b6fbae4a8f2d27f35b7df46200057033d9ecd9134bcf30e3eab66d43572c \
--hash=sha256:beaddc1ec96b342f4e239702f91802706a80cb403166c2da318cec4ad8b790cb \
--hash=sha256:cd81144b0770084e8005d3a121c9382e6f9bc8d0bb320dd618718ffe5090e0e6 \
--hash=sha256:cedd554c643e54c4c2e12b5874781a87441a1b405acf3650a4a2e1df42aae231 \
--hash=sha256:d8b22a6850917c68ce83fc152a8b606ecb2efaaeed35be53110468885d6cdd9d \
--hash=sha256:dd168667addf01f8a4b0fa7755323e43e4cd12ca4bade558c61f713a5d48ba1a \
--hash=sha256:f57275b5af774529f9838adcfb58869ba3ebdaf805daea113bb0697a96a3f3cb \
--hash=sha256:fbb249b82c53180f1420571ece5dc24fea1188ba435923edd055599dffe7abfb
pyqt6==6.7.1 ; python_version >= "3.9" and python_version < "4.0" \
--hash=sha256:0adb7914c732ad1dee46d9cec838a98cb2b11bc38cc3b7b36fbd8701ae64bf47 \
--hash=sha256:2d771fa0981514cb1ee937633dfa64f14caa902707d9afffab66677f3a73e3da \
--hash=sha256:3672a82ccd3a62e99ab200a13903421e2928e399fda25ced98d140313ad59cb9 \
--hash=sha256:7f397f4b38b23b5588eb2c0933510deb953d96b1f0323a916c4839c2a66ccccc \
--hash=sha256:c2f202b7941aa74e5c7e1463a6f27d9131dbc1e6cabe85571d7364f5b3de7397 \
--hash=sha256:f053378e3aef6248fa612c8afddda17f942fb63f9fe8a9aeb2a6b6b4cbb0eba9 \
--hash=sha256:fa3954698233fe286a8afc477b84d8517f0788eb46b74da69d3ccc0170d3714c
python-engineio==4.10.1 ; python_version >= "3.9" and python_version < "4.0" \
--hash=sha256:166cea8dd7429638c5c4e3a4895beae95196e860bc6f29ed0b9fe753d1ef2072 \
--hash=sha256:445a94004ec8034960ab99e7ce4209ec619c6e6b6a12aedcb05abeab924025c0
python-socketio==5.11.4 ; python_version >= "3.9" and python_version < "4.0" \
--hash=sha256:42efaa3e3e0b166fc72a527488a13caaac2cefc76174252486503bd496284945 \
--hash=sha256:8b0b8ff2964b2957c865835e936310190639c00310a47d77321a594d1665355e
pyqt6-qt6==6.8.1 ; python_version >= "3.9" and python_version < "4.0" \
--hash=sha256:006d786693d0511fbcf184a862edbd339c6ed1bb3bd9de363d73a19ed4b23dff \
--hash=sha256:08065d595f1e6fc2dde9f4450eeff89082f4bad26f600a8e9b9cc5966716bfcf \
--hash=sha256:1eb8460a1fdb38d0b2458c2974c01d471c1e59e4eb19ea63fc447aaba3ad530e \
--hash=sha256:20843cb86bd94942d1cd99e39bf1aeabb875b241a35a8ab273e4bbbfa63776db \
--hash=sha256:9f3790c4ce4dc576e48b8718d55fb8743057e6cbd53a6ca1dd253ffbac9b7287 \
--hash=sha256:a8bc2ed4ee5e7c6ff4dd1c7db0b27705d151fee5dc232bbd1bf17618f937f515 \
--hash=sha256:d6ca5d2b9d2ec0ee4a814b2175f641a5c4299cb80b45e0f5f8356632663f89b3
pyqt6-sip==13.9.1 ; python_version >= "3.9" and python_version < "4.0" \
--hash=sha256:14f95c6352e3b85dc26bf59cfbf77a470ecbd5fcdcf00af4b648f0e1b9eefb9e \
--hash=sha256:15be741d1ae8c82bb7afe9a61f3cf8c50457f7d61229a1c39c24cd6e8f4d86dc \
--hash=sha256:1d322ded1d1fea339cc6ac65b768e72c69c486eebb7db6ccde061b5786d74cc5 \
--hash=sha256:1ec52e962f54137a19208b6e95b6bd9f7a403eb25d7237768a99306cd9db26d1 \
--hash=sha256:1fb405615970e85b622b13b4cad140ff1e4182eb8334a0b27a4698e6217b89b0 \
--hash=sha256:22d66256b800f552ade51a463510bf905f3cb318aae00ff4288fae4de5d0e600 \
--hash=sha256:2ab85aaf155828331399c59ebdd4d3b0358e42c08250e86b43d56d9873df148a \
--hash=sha256:3c269052c770c09b61fce2f2f9ea934a67dfc65f443d59629b4ccc8f89751890 \
--hash=sha256:5004514b08b045ad76425cf3618187091a668d972b017677b1b4b193379ef553 \
--hash=sha256:552ff8fdc41f5769d3eccc661f022ed496f55f6e0a214c20aaf56e56385d61b6 \
--hash=sha256:5643c92424fe62cb0b33378fef3d28c1525f91ada79e8a15bd9a05414a09503d \
--hash=sha256:56ce0afb19cd8a8c63ff93ae506dffb74f844b88adaa6673ebc0dec43af48a76 \
--hash=sha256:57b5312ef13c1766bdf69b317041140b184eb24a51e1e23ce8fc5386ba8dffb2 \
--hash=sha256:5d7726556d1ca7a7ed78e19ba53285b64a2a8f6ad7ff4cb18a1832efca1a3102 \
--hash=sha256:69a879cfc94f4984d180321b76f52923861cd5bf4969aa885eef7591ee932517 \
--hash=sha256:6e6c1e2592187934f4e790c0c099d0033e986dcef7bdd3c06e3895ffa995e9fc \
--hash=sha256:8b2ac36d6e04db6099614b9c1178a2f87788c7ffc3826571fb63d36ddb4c401d \
--hash=sha256:8c207528992d59b0801458aa6fcff118e5c099608ef0fc6ff8bccbdc23f29c04 \
--hash=sha256:976c7758f668806d4df7a8853f390ac123d5d1f73591ed368bdb8963574ff589 \
--hash=sha256:accab6974b2758296400120fdcc9d1f37785b2ea2591f00656e1776f058ded6c \
--hash=sha256:c1942e107b0243ced9e510d507e0f27aeea9d6b13e0a1b7c06fd52a62e0d41f7 \
--hash=sha256:c800db3464481e87b1d2b84523b075df1e8fc7856c6f9623dc243f89be1cb604 \
--hash=sha256:e996d320744ca8342cad6f9454345330d4f06bce129812d032bda3bad6967c5c \
--hash=sha256:fa27b51ae4c7013b3700cf0ecf46907d1333ae396fc6511311920485cbce094b
pyqt6==6.8.0 ; python_version >= "3.9" and python_version < "4.0" \
--hash=sha256:3a4354816f11e812b727206a9ea6e79ff3774f1bb7228ad4b9318442d2c64ff9 \
--hash=sha256:452bae5840077bf0f146c798d7777f70d7bdd0c7dcfa9ee7a415c1daf2d10038 \
--hash=sha256:48bace7b87676bba5e6114482f3a20ca20be90c7f261b5d340464313f5f2bf5e \
--hash=sha256:6d8628de4c2a050f0b74462e4c9cb97f839bf6ffabbca91711722ffb281570d9 \
--hash=sha256:8c5c05f5fdff31a5887dbc29b27615b09df467631238d7b449283809ffca6228 \
--hash=sha256:a9913d479f1ffee804bf7f232079baea4fb4b221a8f4890117588917a54ea30d \
--hash=sha256:cf7123caea14e7ecf10bd12cae48e8d9970ef7caf627bc7d7988b0baa209adb3
python-engineio==4.11.2 ; python_version >= "3.9" and python_version < "4.0" \
--hash=sha256:145bb0daceb904b4bb2d3eb2d93f7dbb7bb87a6a0c4f20a94cc8654dec977129 \
--hash=sha256:f0971ac4c65accc489154fe12efd88f53ca8caf04754c46a66e85f5102ef22ad
python-socketio==5.12.1 ; python_version >= "3.9" and python_version < "4.0" \
--hash=sha256:0299ff1f470b676c09c1bfab1dead25405077d227b2c13cf217a34dadc68ba9c \
--hash=sha256:24a0ea7cfff0e021eb28c68edbf7914ee4111bdf030b95e4d250c4dc9af7a386
pyyaml==6.0.2 ; python_version >= "3.9" and python_version < "4.0" \
--hash=sha256:01179a4a8559ab5de078078f37e5c1a30d76bb88519906844fd7bdea1b7729ff \
--hash=sha256:0833f8694549e586547b576dcfaba4a6b55b9e96098b36cdc7ebefe667dfed48 \
@ -940,28 +933,37 @@ qrcode==7.4.2 ; python_version >= "3.9" and python_version < "4.0" \
requests==2.32.3 ; python_version >= "3.9" and python_version < "4.0" \
--hash=sha256:55365417734eb18255590a9ff9eb97e9e1da868d4ccd6402399eaf68af20a760 \
--hash=sha256:70761cfe03c773ceb22aa2f671b4757976145175cdfca038c02654d061d6dcc6
scikit-learn==1.5.2 ; python_version >= "3.9" and python_version < "4.0" \
--hash=sha256:03b6158efa3faaf1feea3faa884c840ebd61b6484167c711548fce208ea09445 \
--hash=sha256:1ff45e26928d3b4eb767a8f14a9a6efbf1cbff7c05d1fb0f95f211a89fd4f5de \
--hash=sha256:299406827fb9a4f862626d0fe6c122f5f87f8910b86fe5daa4c32dcd742139b6 \
--hash=sha256:2d4cad1119c77930b235579ad0dc25e65c917e756fe80cab96aa3b9428bd3fb0 \
--hash=sha256:394397841449853c2290a32050382edaec3da89e35b3e03d6cc966aebc6a8ae6 \
--hash=sha256:3a686885a4b3818d9e62904d91b57fa757fc2bed3e465c8b177be652f4dd37c8 \
--hash=sha256:3b923d119d65b7bd555c73be5423bf06c0105678ce7e1f558cb4b40b0a5502b1 \
--hash=sha256:3bed4909ba187aca80580fe2ef370d9180dcf18e621a27c4cf2ef10d279a7efe \
--hash=sha256:52788f48b5d8bca5c0736c175fa6bdaab2ef00a8f536cda698db61bd89c551c1 \
--hash=sha256:57cc1786cfd6bd118220a92ede80270132aa353647684efa385a74244a41e3b1 \
--hash=sha256:643964678f4b5fbdc95cbf8aec638acc7aa70f5f79ee2cdad1eec3df4ba6ead8 \
--hash=sha256:6c16d84a0d45e4894832b3c4d0bf73050939e21b99b01b6fd59cbb0cf39163b6 \
--hash=sha256:757c7d514ddb00ae249832fe87100d9c73c6ea91423802872d9e74970a0e40b9 \
--hash=sha256:8c412ccc2ad9bf3755915e3908e677b367ebc8d010acbb3f182814524f2e5540 \
--hash=sha256:b4237ed7b3fdd0a4882792e68ef2545d5baa50aca3bb45aa7df468138ad8f94d \
--hash=sha256:c15b1ca23d7c5f33cc2cb0a0d6aaacf893792271cddff0edbd6a40e8319bc113 \
--hash=sha256:ca64b3089a6d9b9363cd3546f8978229dcbb737aceb2c12144ee3f70f95684b7 \
--hash=sha256:f60021ec1574e56632be2a36b946f8143bf4e5e6af4a06d85281adc22938e0dd \
--hash=sha256:f763897fe92d0e903aa4847b0aec0e68cadfff77e8a0687cabd946c89d17e675 \
--hash=sha256:f8b0ccd4a902836493e026c03256e8b206656f91fbcc4fde28c57a5b752561f1 \
--hash=sha256:f932a02c3f4956dfb981391ab24bda1dbd90fe3d628e4b42caef3e041c67707a
scikit-learn==1.6.1 ; python_version >= "3.9" and python_version < "4.0" \
--hash=sha256:0650e730afb87402baa88afbf31c07b84c98272622aaba002559b614600ca691 \
--hash=sha256:0c8d036eb937dbb568c6242fa598d551d88fb4399c0344d95c001980ec1c7d36 \
--hash=sha256:1061b7c028a8663fb9a1a1baf9317b64a257fcb036dae5c8752b2abef31d136f \
--hash=sha256:25fc636bdaf1cc2f4a124a116312d837148b5e10872147bdaf4887926b8c03d8 \
--hash=sha256:2c2cae262064e6a9b77eee1c8e768fc46aa0b8338c6a8297b9b6759720ec0ff2 \
--hash=sha256:2e69fab4ebfc9c9b580a7a80111b43d214ab06250f8a7ef590a4edf72464dd86 \
--hash=sha256:2ffa1e9e25b3d93990e74a4be2c2fc61ee5af85811562f1288d5d055880c4322 \
--hash=sha256:3f59fe08dc03ea158605170eb52b22a105f238a5d512c4470ddeca71feae8e5f \
--hash=sha256:44a17798172df1d3c1065e8fcf9019183f06c87609b49a124ebdf57ae6cb0107 \
--hash=sha256:6849dd3234e87f55dce1db34c89a810b489ead832aaf4d4550b7ea85628be6c1 \
--hash=sha256:6a7aa5f9908f0f28f4edaa6963c0a6183f1911e63a69aa03782f0d924c830a35 \
--hash=sha256:70b1d7e85b1c96383f872a519b3375f92f14731e279a7b4c6cfd650cf5dffc52 \
--hash=sha256:72abc587c75234935e97d09aa4913a82f7b03ee0b74111dcc2881cba3c5a7b33 \
--hash=sha256:775da975a471c4f6f467725dff0ced5c7ac7bda5e9316b260225b48475279a1b \
--hash=sha256:7a1c43c8ec9fde528d664d947dc4c0789be4077a3647f232869f41d9bf50e0fb \
--hash=sha256:7a73d457070e3318e32bdb3aa79a8d990474f19035464dfd8bede2883ab5dc3b \
--hash=sha256:8634c4bd21a2a813e0a7e3900464e6d593162a29dd35d25bdf0103b3fce60ed5 \
--hash=sha256:8a600c31592bd7dab31e1c61b9bbd6dea1b3433e67d264d17ce1017dbdce8002 \
--hash=sha256:926f207c804104677af4857b2c609940b743d04c4c35ce0ddc8ff4f053cddc1b \
--hash=sha256:a17c1dea1d56dcda2fac315712f3651a1fea86565b64b48fa1bc090249cbf236 \
--hash=sha256:b3b00cdc8f1317b5f33191df1386c0befd16625f49d979fe77a8d44cae82410d \
--hash=sha256:b4fc2525eca2c69a59260f583c56a7557c6ccdf8deafdba6e060f94c1c59738e \
--hash=sha256:b8b7a3b86e411e4bce21186e1c180d792f3d99223dcfa3b4f597ecc92fa1a422 \
--hash=sha256:c06beb2e839ecc641366000ca84f3cf6fa9faa1777e29cf0c04be6e4d096a348 \
--hash=sha256:d056391530ccd1e501056160e3c9673b4da4805eb67eb2bdf4e983e1f9c9204e \
--hash=sha256:dc4765af3386811c3ca21638f63b9cf5ecf66261cc4815c1db3f1e7dc7b79db2 \
--hash=sha256:dc5cf3d68c5a20ad6d571584c0750ec641cc46aeef1c1507be51300e6003a7e1 \
--hash=sha256:e7be3fa5d2eb9be7d77c3734ff1d599151bb523674be9b834e8da6abe132f44e \
--hash=sha256:e8ca8cb270fee8f1f76fa9bfd5c3507d60c6438bbee5687f81042e2bb98e5a97 \
--hash=sha256:fa909b1a36e000a03c382aade0bd2063fd5680ff8b8e501660c0f59f021a6415
scipy==1.13.1 ; python_version >= "3.9" and python_version < "4.0" \
--hash=sha256:017367484ce5498445aade74b1d5ab377acdc65e27095155e448c88497755a5d \
--hash=sha256:095a87a0312b08dfd6a6155cbbd310a8c51800fc931b8c0b84003014b874ed3c \
@ -997,96 +999,79 @@ threadpoolctl==3.5.0 ; python_version >= "3.9" and python_version < "4.0" \
typing-extensions==4.12.2 ; python_version >= "3.9" and python_version < "4.0" \
--hash=sha256:04e5ca0351e0f3f85c6853954072df659d0d13fac324d0072316b67d7794700d \
--hash=sha256:1a7ead55c7e559dd4dee8856e3a88b41225abfe1ce8df57b7c13915fe121ffb8
urllib3==2.2.3 ; python_version >= "3.9" and python_version < "4.0" \
--hash=sha256:ca899ca043dcb1bafa3e262d73aa25c465bfb49e0bd9dd5d59f1d0acba2f8fac \
--hash=sha256:e7d814a81dad81e6caf2ec9fdedb284ecc9c73076b62654547cc64ccdcae26e9
websockets==13.1 ; python_version >= "3.9" and python_version < "4.0" \
--hash=sha256:004280a140f220c812e65f36944a9ca92d766b6cc4560be652a0a3883a79ed8a \
--hash=sha256:035233b7531fb92a76beefcbf479504db8c72eb3bff41da55aecce3a0f729e54 \
--hash=sha256:149e622dc48c10ccc3d2760e5f36753db9cacf3ad7bc7bbbfd7d9c819e286f23 \
--hash=sha256:163e7277e1a0bd9fb3c8842a71661ad19c6aa7bb3d6678dc7f89b17fbcc4aeb7 \
--hash=sha256:18503d2c5f3943e93819238bf20df71982d193f73dcecd26c94514f417f6b135 \
--hash=sha256:1971e62d2caa443e57588e1d82d15f663b29ff9dfe7446d9964a4b6f12c1e700 \
--hash=sha256:204e5107f43095012b00f1451374693267adbb832d29966a01ecc4ce1db26faf \
--hash=sha256:2510c09d8e8df777177ee3d40cd35450dc169a81e747455cc4197e63f7e7bfe5 \
--hash=sha256:25c35bf84bf7c7369d247f0b8cfa157f989862c49104c5cf85cb5436a641d93e \
--hash=sha256:2f85cf4f2a1ba8f602298a853cec8526c2ca42a9a4b947ec236eaedb8f2dc80c \
--hash=sha256:308e20f22c2c77f3f39caca508e765f8725020b84aa963474e18c59accbf4c02 \
--hash=sha256:325b1ccdbf5e5725fdcb1b0e9ad4d2545056479d0eee392c291c1bf76206435a \
--hash=sha256:327b74e915cf13c5931334c61e1a41040e365d380f812513a255aa804b183418 \
--hash=sha256:346bee67a65f189e0e33f520f253d5147ab76ae42493804319b5716e46dddf0f \
--hash=sha256:38377f8b0cdeee97c552d20cf1865695fcd56aba155ad1b4ca8779a5b6ef4ac3 \
--hash=sha256:3c78383585f47ccb0fcf186dcb8a43f5438bd7d8f47d69e0b56f71bf431a0a68 \
--hash=sha256:4059f790b6ae8768471cddb65d3c4fe4792b0ab48e154c9f0a04cefaabcd5978 \
--hash=sha256:459bf774c754c35dbb487360b12c5727adab887f1622b8aed5755880a21c4a20 \
--hash=sha256:463e1c6ec853202dd3657f156123d6b4dad0c546ea2e2e38be2b3f7c5b8e7295 \
--hash=sha256:4676df3fe46956fbb0437d8800cd5f2b6d41143b6e7e842e60554398432cf29b \
--hash=sha256:485307243237328c022bc908b90e4457d0daa8b5cf4b3723fd3c4a8012fce4c6 \
--hash=sha256:48a2ef1381632a2f0cb4efeff34efa97901c9fbc118e01951ad7cfc10601a9bb \
--hash=sha256:4b889dbd1342820cc210ba44307cf75ae5f2f96226c0038094455a96e64fb07a \
--hash=sha256:586a356928692c1fed0eca68b4d1c2cbbd1ca2acf2ac7e7ebd3b9052582deefa \
--hash=sha256:58cf7e75dbf7e566088b07e36ea2e3e2bd5676e22216e4cad108d4df4a7402a0 \
--hash=sha256:5993260f483d05a9737073be197371940c01b257cc45ae3f1d5d7adb371b266a \
--hash=sha256:5dd6da9bec02735931fccec99d97c29f47cc61f644264eb995ad6c0c27667238 \
--hash=sha256:5f2e75431f8dc4a47f31565a6e1355fb4f2ecaa99d6b89737527ea917066e26c \
--hash=sha256:5f9fee94ebafbc3117c30be1844ed01a3b177bb6e39088bc6b2fa1dc15572084 \
--hash=sha256:61fc0dfcda609cda0fc9fe7977694c0c59cf9d749fbb17f4e9483929e3c48a19 \
--hash=sha256:624459daabeb310d3815b276c1adef475b3e6804abaf2d9d2c061c319f7f187d \
--hash=sha256:62d516c325e6540e8a57b94abefc3459d7dab8ce52ac75c96cad5549e187e3a7 \
--hash=sha256:6548f29b0e401eea2b967b2fdc1c7c7b5ebb3eeb470ed23a54cd45ef078a0db9 \
--hash=sha256:6d2aad13a200e5934f5a6767492fb07151e1de1d6079c003ab31e1823733ae79 \
--hash=sha256:6d6855bbe70119872c05107e38fbc7f96b1d8cb047d95c2c50869a46c65a8e96 \
--hash=sha256:70c5be9f416aa72aab7a2a76c90ae0a4fe2755c1816c153c1a2bcc3333ce4ce6 \
--hash=sha256:730f42125ccb14602f455155084f978bd9e8e57e89b569b4d7f0f0c17a448ffe \
--hash=sha256:7a43cfdcddd07f4ca2b1afb459824dd3c6d53a51410636a2c7fc97b9a8cf4842 \
--hash=sha256:7bd6abf1e070a6b72bfeb71049d6ad286852e285f146682bf30d0296f5fbadfa \
--hash=sha256:7c1e90228c2f5cdde263253fa5db63e6653f1c00e7ec64108065a0b9713fa1b3 \
--hash=sha256:7c65ffa900e7cc958cd088b9a9157a8141c991f8c53d11087e6fb7277a03f81d \
--hash=sha256:80c421e07973a89fbdd93e6f2003c17d20b69010458d3a8e37fb47874bd67d51 \
--hash=sha256:82d0ba76371769d6a4e56f7e83bb8e81846d17a6190971e38b5de108bde9b0d7 \
--hash=sha256:83f91d8a9bb404b8c2c41a707ac7f7f75b9442a0a876df295de27251a856ad09 \
--hash=sha256:87c6e35319b46b99e168eb98472d6c7d8634ee37750d7693656dc766395df096 \
--hash=sha256:8d23b88b9388ed85c6faf0e74d8dec4f4d3baf3ecf20a65a47b836d56260d4b9 \
--hash=sha256:9156c45750b37337f7b0b00e6248991a047be4aa44554c9886fe6bdd605aab3b \
--hash=sha256:91a0fa841646320ec0d3accdff5b757b06e2e5c86ba32af2e0815c96c7a603c5 \
--hash=sha256:95858ca14a9f6fa8413d29e0a585b31b278388aa775b8a81fa24830123874678 \
--hash=sha256:95df24ca1e1bd93bbca51d94dd049a984609687cb2fb08a7f2c56ac84e9816ea \
--hash=sha256:9b37c184f8b976f0c0a231a5f3d6efe10807d41ccbe4488df8c74174805eea7d \
--hash=sha256:9b6f347deb3dcfbfde1c20baa21c2ac0751afaa73e64e5b693bb2b848efeaa49 \
--hash=sha256:9d75baf00138f80b48f1eac72ad1535aac0b6461265a0bcad391fc5aba875cfc \
--hash=sha256:9ef8aa8bdbac47f4968a5d66462a2a0935d044bf35c0e5a8af152d58516dbeb5 \
--hash=sha256:a11e38ad8922c7961447f35c7b17bffa15de4d17c70abd07bfbe12d6faa3e027 \
--hash=sha256:a1b54689e38d1279a51d11e3467dd2f3a50f5f2e879012ce8f2d6943f00e83f0 \
--hash=sha256:a3b3366087c1bc0a2795111edcadddb8b3b59509d5db5d7ea3fdd69f954a8878 \
--hash=sha256:a569eb1b05d72f9bce2ebd28a1ce2054311b66677fcd46cf36204ad23acead8c \
--hash=sha256:a7affedeb43a70351bb811dadf49493c9cfd1ed94c9c70095fd177e9cc1541fa \
--hash=sha256:a9a396a6ad26130cdae92ae10c36af09d9bfe6cafe69670fd3b6da9b07b4044f \
--hash=sha256:a9ab1e71d3d2e54a0aa646ab6d4eebfaa5f416fe78dfe4da2839525dc5d765c6 \
--hash=sha256:a9cd1af7e18e5221d2878378fbc287a14cd527fdd5939ed56a18df8a31136bb2 \
--hash=sha256:a9dcaf8b0cc72a392760bb8755922c03e17a5a54e08cca58e8b74f6902b433cf \
--hash=sha256:b9d7439d7fab4dce00570bb906875734df13d9faa4b48e261c440a5fec6d9708 \
--hash=sha256:bcc03c8b72267e97b49149e4863d57c2d77f13fae12066622dc78fe322490fe6 \
--hash=sha256:c11d4d16e133f6df8916cc5b7e3e96ee4c44c936717d684a94f48f82edb7c92f \
--hash=sha256:c1dca61c6db1166c48b95198c0b7d9c990b30c756fc2923cc66f68d17dc558fd \
--hash=sha256:c518e84bb59c2baae725accd355c8dc517b4a3ed8db88b4bc93c78dae2974bf2 \
--hash=sha256:c7934fd0e920e70468e676fe7f1b7261c1efa0d6c037c6722278ca0228ad9d0d \
--hash=sha256:c7e72ce6bda6fb9409cc1e8164dd41d7c91466fb599eb047cfda72fe758a34a7 \
--hash=sha256:c90d6dec6be2c7d03378a574de87af9b1efea77d0c52a8301dd831ece938452f \
--hash=sha256:ceec59f59d092c5007e815def4ebb80c2de330e9588e101cf8bd94c143ec78a5 \
--hash=sha256:cf1781ef73c073e6b0f90af841aaf98501f975d306bbf6221683dd594ccc52b6 \
--hash=sha256:d04f13a1d75cb2b8382bdc16ae6fa58c97337253826dfe136195b7f89f661557 \
--hash=sha256:d6d300f8ec35c24025ceb9b9019ae9040c1ab2f01cddc2bcc0b518af31c75c14 \
--hash=sha256:d8dbb1bf0c0a4ae8b40bdc9be7f644e2f3fb4e8a9aca7145bfa510d4a374eeb7 \
--hash=sha256:de58647e3f9c42f13f90ac7e5f58900c80a39019848c5547bc691693098ae1bd \
--hash=sha256:deeb929efe52bed518f6eb2ddc00cc496366a14c726005726ad62c2dd9017a3c \
--hash=sha256:df01aea34b6e9e33572c35cd16bae5a47785e7d5c8cb2b54b2acdb9678315a17 \
--hash=sha256:e2620453c075abeb0daa949a292e19f56de518988e079c36478bacf9546ced23 \
--hash=sha256:e4450fc83a3df53dec45922b576e91e94f5578d06436871dce3a6be38e40f5db \
--hash=sha256:e54affdeb21026329fb0744ad187cf812f7d3c2aa702a5edb562b325191fcab6 \
--hash=sha256:e9875a0143f07d74dc5e1ded1c4581f0d9f7ab86c78994e2ed9e95050073c94d \
--hash=sha256:f1c3cf67185543730888b20682fb186fc8d0fa6f07ccc3ef4390831ab4b388d9 \
--hash=sha256:f48c749857f8fb598fb890a75f540e3221d0976ed0bf879cf3c7eef34151acee \
--hash=sha256:f779498eeec470295a2b1a5d97aa1bc9814ecd25e1eb637bd9d1c73a327387f6
urllib3==2.3.0 ; python_version >= "3.9" and python_version < "4.0" \
--hash=sha256:1cee9ad369867bfdbbb48b7dd50374c0967a0bb7710050facf0dd6911440e3df \
--hash=sha256:f8c5449b3cf0861679ce7e0503c7b44b5ec981bec0d1d3795a07f1ba96f0204d
websockets==14.2 ; python_version >= "3.9" and python_version < "4.0" \
--hash=sha256:02687db35dbc7d25fd541a602b5f8e451a238ffa033030b172ff86a93cb5dc2a \
--hash=sha256:065ce275e7c4ffb42cb738dd6b20726ac26ac9ad0a2a48e33ca632351a737267 \
--hash=sha256:091ab63dfc8cea748cc22c1db2814eadb77ccbf82829bac6b2fbe3401d548eda \
--hash=sha256:0a52a6d7cf6938e04e9dceb949d35fbdf58ac14deea26e685ab6368e73744e4c \
--hash=sha256:0a6f3efd47ffd0d12080594f434faf1cd2549b31e54870b8470b28cc1d3817d9 \
--hash=sha256:0d8c3e2cdb38f31d8bd7d9d28908005f6fa9def3324edb9bf336d7e4266fd397 \
--hash=sha256:1979bee04af6a78608024bad6dfcc0cc930ce819f9e10342a29a05b5320355d0 \
--hash=sha256:1a5a20d5843886d34ff8c57424cc65a1deda4375729cbca4cb6b3353f3ce4142 \
--hash=sha256:1c9b6535c0e2cf8a6bf938064fb754aaceb1e6a4a51a80d884cd5db569886910 \
--hash=sha256:1f20522e624d7ffbdbe259c6b6a65d73c895045f76a93719aa10cd93b3de100c \
--hash=sha256:2066dc4cbcc19f32c12a5a0e8cc1b7ac734e5b64ac0a325ff8353451c4b15ef2 \
--hash=sha256:20e6dd0984d7ca3037afcb4494e48c74ffb51e8013cac71cf607fffe11df7205 \
--hash=sha256:22441c81a6748a53bfcb98951d58d1af0661ab47a536af08920d129b4d1c3473 \
--hash=sha256:2c6c0097a41968b2e2b54ed3424739aab0b762ca92af2379f152c1aef0187e1c \
--hash=sha256:2dddacad58e2614a24938a50b85969d56f88e620e3f897b7d80ac0d8a5800258 \
--hash=sha256:2e20c5f517e2163d76e2729104abc42639c41cf91f7b1839295be43302713661 \
--hash=sha256:34277a29f5303d54ec6468fb525d99c99938607bc96b8d72d675dee2b9f5bf1d \
--hash=sha256:3bdc8c692c866ce5fefcaf07d2b55c91d6922ac397e031ef9b774e5b9ea42166 \
--hash=sha256:3c1426c021c38cf92b453cdf371228d3430acd775edee6bac5a4d577efc72365 \
--hash=sha256:44bba1a956c2c9d268bdcdf234d5e5ff4c9b6dc3e300545cbe99af59dda9dcce \
--hash=sha256:4b27ece32f63150c268593d5fdb82819584831a83a3f5809b7521df0685cd5d8 \
--hash=sha256:4da98b72009836179bb596a92297b1a61bb5a830c0e483a7d0766d45070a08ad \
--hash=sha256:4daa0faea5424d8713142b33825fff03c736f781690d90652d2c8b053345b0e7 \
--hash=sha256:5059ed9c54945efb321f097084b4c7e52c246f2c869815876a69d1efc4ad6eb5 \
--hash=sha256:577a4cebf1ceaf0b65ffc42c54856214165fb8ceeba3935852fc33f6b0c55e7f \
--hash=sha256:647b573f7d3ada919fd60e64d533409a79dcf1ea21daeb4542d1d996519ca967 \
--hash=sha256:669c3e101c246aa85bc8534e495952e2ca208bd87994650b90a23d745902db9a \
--hash=sha256:6af6a4b26eea4fc06c6818a6b962a952441e0e39548b44773502761ded8cc1d4 \
--hash=sha256:6af99a38e49f66be5a64b1e890208ad026cda49355661549c507152113049990 \
--hash=sha256:6d7ff794c8b36bc402f2e07c0b2ceb4a2424147ed4785ff03e2a7af03711d60a \
--hash=sha256:6f1372e511c7409a542291bce92d6c83320e02c9cf392223272287ce55bc224e \
--hash=sha256:714a9b682deb4339d39ffa674f7b674230227d981a37d5d174a4a83e3978a610 \
--hash=sha256:75862126b3d2d505e895893e3deac0a9339ce750bd27b4ba515f008b5acf832d \
--hash=sha256:7a570862c325af2111343cc9b0257b7119b904823c675b22d4ac547163088d0d \
--hash=sha256:7a6ceec4ea84469f15cf15807a747e9efe57e369c384fa86e022b3bea679b79b \
--hash=sha256:7cd5706caec1686c5d233bc76243ff64b1c0dc445339bd538f30547e787c11fe \
--hash=sha256:80c8efa38957f20bba0117b48737993643204645e9ec45512579132508477cfc \
--hash=sha256:862e9967b46c07d4dcd2532e9e8e3c2825e004ffbf91a5ef9dde519ee2effb0b \
--hash=sha256:86cf1aaeca909bf6815ea714d5c5736c8d6dd3a13770e885aafe062ecbd04f1f \
--hash=sha256:89a71173caaf75fa71a09a5f614f450ba3ec84ad9fca47cb2422a860676716f0 \
--hash=sha256:9f05702e93203a6ff5226e21d9b40c037761b2cfb637187c9802c10f58e40473 \
--hash=sha256:a39d7eceeea35db85b85e1169011bb4321c32e673920ae9c1b6e0978590012a3 \
--hash=sha256:a3c4aa3428b904d5404a0ed85f3644d37e2cb25996b7f096d77caeb0e96a3b42 \
--hash=sha256:a9b0f6c3ba3b1240f602ebb3971d45b02cc12bd1845466dd783496b3b05783a5 \
--hash=sha256:a9e72fb63e5f3feacdcf5b4ff53199ec8c18d66e325c34ee4c551ca748623bbc \
--hash=sha256:ab95d357cd471df61873dadf66dd05dd4709cae001dd6342edafc8dc6382f307 \
--hash=sha256:ad1c1d02357b7665e700eca43a31d52814ad9ad9b89b58118bdabc365454b574 \
--hash=sha256:b374e8953ad477d17e4851cdc66d83fdc2db88d9e73abf755c94510ebddceb95 \
--hash=sha256:b439ea828c4ba99bb3176dc8d9b933392a2413c0f6b149fdcba48393f573377f \
--hash=sha256:b4c8cef610e8d7c70dea92e62b6814a8cd24fbd01d7103cc89308d2bfe1659ef \
--hash=sha256:bbe03eb853e17fd5b15448328b4ec7fb2407d45fb0245036d06a3af251f8e48f \
--hash=sha256:bc63cee8596a6ec84d9753fd0fcfa0452ee12f317afe4beae6b157f0070c6c7f \
--hash=sha256:c3ecadc7ce90accf39903815697917643f5b7cfb73c96702318a096c00aa71f5 \
--hash=sha256:c76193c1c044bd1e9b3316dcc34b174bbf9664598791e6fb606d8d29000e070c \
--hash=sha256:c93215fac5dadc63e51bcc6dceca72e72267c11def401d6668622b47675b097f \
--hash=sha256:cc45afb9c9b2dc0852d5c8b5321759cf825f82a31bfaf506b65bf4668c96f8b2 \
--hash=sha256:d7d9cafbccba46e768be8a8ad4635fa3eae1ffac4c6e7cb4eb276ba41297ed29 \
--hash=sha256:da85651270c6bfb630136423037dd4975199e5d4114cae6d3066641adcc9d1c7 \
--hash=sha256:dec254fcabc7bd488dab64846f588fc5b6fe0d78f641180030f8ea27b76d72c3 \
--hash=sha256:e3fbd68850c837e57373d95c8fe352203a512b6e49eaae4c2f4088ef8cf21980 \
--hash=sha256:e8179f95323b9ab1c11723e5d91a89403903f7b001828161b480a7810b334885 \
--hash=sha256:e9d0e53530ba7b8b5e389c02282f9d2aa47581514bd6049d3a7cffe1385cf5fe \
--hash=sha256:eabdb28b972f3729348e632ab08f2a7b616c7e53d5414c12108c29972e655b20 \
--hash=sha256:ec607328ce95a2f12b595f7ae4c5d71bf502212bddcea528290b35c286932b12 \
--hash=sha256:efd9b868d78b194790e6236d9cbc46d68aba4b75b22497eb4ab64fa640c3af56 \
--hash=sha256:f2e53c72052f2596fb792a7acd9704cbc549bf70fcde8a99e899311455974ca3 \
--hash=sha256:f390024a47d904613577df83ba700bd189eedc09c57af0a904e5c39624621270 \
--hash=sha256:f8a86a269759026d2bde227652b87be79f8a734e582debf64c9d302faa1e9f03 \
--hash=sha256:fd475a974d5352390baf865309fe37dec6831aafc3014ffac1eea99e84e83fc2
wsproto==1.2.0 ; python_version >= "3.9" and python_version < "4.0" \
--hash=sha256:ad565f26ecb92588a3e43bc3d96164de84cd9902482b130d0ddbaa9664a85065 \
--hash=sha256:b9acddd652b585d75b20477888c56642fdade28bdfd3579aa24a4d2c037dd736
@ -1183,6 +1168,6 @@ yarl==1.13.1 ; python_version >= "3.9" and python_version < "4.0" \
--hash=sha256:fb382fd7b4377363cc9f13ba7c819c3c78ed97c36a82f16f3f92f108c787cbbf \
--hash=sha256:fb9f59f3848edf186a76446eb8bcf4c900fe147cb756fbbd730ef43b2e67c6a7 \
--hash=sha256:fc2931ac9ce9c61c9968989ec831d3a5e6fcaaff9474e7cfa8de80b7aff5a093
yt-dlp[default]==2024.11.18 ; python_version >= "3.9" and python_version < "4.0" \
--hash=sha256:b8a4c23d3c9afd7e476bcdb87f38b6c0e8e12e3a239d7988f13acb434200f54d \
--hash=sha256:b9741695911dc566498b5f115cdd6b1abbc5be61cb01fd98abe649990a41656c
yt-dlp[default]==2025.1.26 ; python_version >= "3.9" and python_version < "4.0" \
--hash=sha256:1c9738266921ad43c568ad01ac3362fb7c7af549276fbec92bd72f140da16240 \
--hash=sha256:3e76bd896b9f96601021ca192ca0fbdd195e3c3dcc28302a3a34c9bc4979da7b

View file

@ -0,0 +1,118 @@
FROM ubuntu:20.04
ENV DEBIAN_FRONTEND=noninteractive
RUN sed -i 's/htt[p|ps]:\/\/archive.ubuntu.com\/ubuntu\//mirror:\/\/mirrors.ubuntu.com\/mirrors.txt/g' /etc/apt/sources.list
RUN apt update && apt install -y git \
build-essential \
pkg-config \
ninja-build \
libgl1-mesa-dev \
autotools-dev \
autoconf \
libtool \
libfribidi-dev \
libharfbuzz-dev \
libfontconfig1-dev \
libx11-dev \
nasm \
libxv-dev \
libva-dev \
liblcms2-dev \
libdrm-dev \
libasound2-dev \
libgnutls28-dev \
libmp3lame-dev \
libvorbis-dev \
libopus-dev \
libtheora-dev \
libvpx-dev \
libx264-dev \
libx265-dev \
libpulse-dev \
libxext-dev \
libxpresent-dev \
libxrandr-dev \
libxss-dev \
libwebp-dev \
libxkbcommon-dev \
libpulse-dev \
libxkbcommon-x11-dev \
binutils \
python3-pip \
fuse3 \
libpipewire-0.2-dev \
libfreetype-dev \
glslang-dev \
wget \
libxcb-cursor0 libxcb-ewmh2 libxcb-icccm4 luajit libluajit-5.1-dev libpcsclite1 libxcb-keysyms1 libxcb-shape0 libjpeg-dev \
libfontconfig1-dev \
libfreetype-dev \
libgtk-3-dev \
libx11-dev \
libx11-xcb-dev \
libxcb-cursor-dev \
libxcb-glx0-dev \
libxcb-icccm4-dev \
libxcb-image0-dev \
libxcb-keysyms1-dev \
libxcb-randr0-dev \
libxcb-render-util0-dev \
libxcb-shape0-dev \
libxcb-shm0-dev \
libxcb-sync-dev \
libxcb-util-dev \
libxcb-xfixes0-dev \
libxcb-xkb-dev \
libxcb1-dev \
libxext-dev \
libxfixes-dev \
libxi-dev \
libxkbcommon-dev \
libxkbcommon-x11-dev \
libxrender-dev \
libmediainfo0v5
RUN pip3 install meson
RUN useradd -m builder
RUN wget https://github.com/Kitware/CMake/releases/download/v4.0.3/cmake-4.0.3-linux-x86_64.sh -O /tmp/cmake.sh
RUN chmod +x /tmp/cmake.sh && /tmp/cmake.sh --skip-license --prefix=/usr
RUN git clone https://github.com/google/shaderc.git /deps/shaderc && cd /deps/shaderc && /deps/shaderc/utils/git-sync-deps && mkdir -p /deps/shaderc/build && cd /deps/shaderc/build && \
cmake -GNinja -DCMAKE_BUILD_TYPE=Release -DSHADERC_SKIP_TESTS=ON -DSHADERC_SKIP_EXAMPLES=ON \
/deps/shaderc && \
ninja && ninja install && rm -rf /deps/shaderc
RUN git clone https://github.com/Cyan4973/xxHash.git /deps/xxHash && cd /deps/xxHash && make && make install && rm -rf /deps/xxHash
RUN git clone https://code.videolan.org/videolan/dav1d.git /deps/dav1d && cd /deps/dav1d && git checkout 1.5.1 && \
mkdir -p /deps/dav1d/build && cd /deps/dav1d/build && \
meson setup .. --default-library=static --buildtype=release --prefix=/usr && \
ninja && ninja install && rm -rf /deps/dav1d
#RUN git clone https://gitlab.freedesktop.org/wayland/wayland.git /deps/wayland
#RUN cd /deps/wayland && git checkout 1.24 && \
# meson setup build --prefix=/usr -Ddocumentation=false -Ddtd_validation=false && \
# ninja -C build install
#RUN git clone https://gitlab.freedesktop.org/wayland/wayland-protocols.git /deps/wayland-protocols
#RUN cd /deps/wayland-protocols && git checkout 1.45 && \
# meson setup build --prefix=/usr -Dtests=false && \
# ninja -C build install
RUN wget https://download.qt.io/official_releases/qt/6.9/6.9.1/single/qt-everywhere-src-6.9.1.tar.xz -O /tmp/qt.tar.xz && tar -xf /tmp/qt.tar.xz -C /deps && rm /tmp/qt.tar.xz && mkdir /deps/qt-build && cd /deps/qt-build && \
/deps/qt-everywhere-src-6.9.1/configure -opensource -confirm-license -nomake examples -nomake tests -release -prefix /usr -skip qtwayland -skip qtwebengine -skip qtwebview -skip qt3d -skip qtdeclarative -skip qtscript -skip qtserialport -skip qttools -skip qtquick3d -skip qtxmlpatterns -skip qtcanvas3d -skip qtgraphs -skip qtlocation -skip qtdoc -skip qtlottie -skip qt5compat -skip qtmqtt -skip qtopcua -skip qtquick3dphysics -skip qtquickeffectmaker -skip qtquicktimeline -skip qttranslations -skip qtvirtualkeyboard -skip qtactiveqt -skip qtshadertools -skip qtmultimedia -skip qtspeech -skip qtcoap -skip qtconnectivity -skip qtdatavis3d -skip qtcharts -skip qtgrpc -skip qtwebsockets -skip qthttpserver -skip qtlanguageserver -skip qtpositioning -skip qtnetworkauth -skip qtremoteobjects -skip qtscmxml -skip qtsensors -skip qtserialbus -skip qtwebchannel -skip qtscxml && \
cd /deps/qt-build && cmake --build . --parallel && cmake --install . && rm -rf /deps/qt-everywhere-src-6.9.1 /deps/qt-build
RUN git clone https://github.com/mpv-player/mpv-build.git /deps/mpv-build/ && cd /deps/mpv-build && echo "-Djavascript=disabled" > mpv_options \
&& echo "--disable-debug" > ffmpeg_options \
&& echo "--disable-doc" >> ffmpeg_options \
&& echo "--enable-encoder=png" >> ffmpeg_options \
&& echo "--enable-gnutls" >> ffmpeg_options \
&& echo "--enable-gpl" >> ffmpeg_options \
&& echo "--enable-version3" >> ffmpeg_options \
&& echo "--enable-libass" >> ffmpeg_options \
&& echo "--enable-libdav1d" >> ffmpeg_options \
&& echo "--enable-libfreetype" >> ffmpeg_options \
&& echo "--enable-libmp3lame" >> ffmpeg_options \
&& echo "--enable-libopus" >> ffmpeg_options \
&& echo "--enable-libtheora" >> ffmpeg_options \
&& echo "--enable-libvorbis" >> ffmpeg_options \
&& echo "--enable-libvpx" >> ffmpeg_options \
&& echo "--enable-libx264" >> ffmpeg_options \
&& echo "--enable-libx265" >> ffmpeg_options \
&& echo "--enable-libwebp" >> ffmpeg_options \
&& /deps/mpv-build/rebuild -j32 \
&& cp /deps/mpv-build/build_libs/bin/ffmpeg /usr/bin/ffmpeg \
&& cp /deps/mpv-build/mpv/build/libmpv.so.2.5.0 /usr/lib/libmpv.so.2.5.0 \
&& rm -rf /deps/mpv-build

28
resources/appimage/bin/syng Executable file
View file

@ -0,0 +1,28 @@
#! /bin/bash
# If running from an extracted image, then export ARGV0 and APPDIR
if [ -z "${APPIMAGE}" ]; then
export ARGV0="$0"
self=$(readlink -f -- "$0") # Protect spaces (issue 55)
here="${self%/*}"
tmp="${here%/*}"
export APPDIR="${tmp%/*}"
fi
# Resolve the calling command (preserving symbolic links).
export APPIMAGE_COMMAND=$(command -v -- "$ARGV0")
# Export TCl/Tk
export TCL_LIBRARY="${APPDIR}/usr/share/tcltk/tcl8.6"
export TK_LIBRARY="${APPDIR}/usr/share/tcltk/tk8.6"
export TKPATH="${TK_LIBRARY}"
# Export SSL certificate
export SSL_CERT_FILE="${APPDIR}/opt/_internal/certs.pem"
# Call Python
export PATH="$APPDIR/usr/bin:$PATH"
export LD_LIBRARY_PATH="$APPDIR/usr/lib:$LD_LIBRARY_PATH"
export PYTHONPATH="$APPDIR/usr/lib/python3.13/site-packages"
"$APPDIR/opt/python3.13/bin/python3.13" -m syng "$@"

28
resources/appimage/bin/yt-dlp Executable file
View file

@ -0,0 +1,28 @@
#! /bin/bash
# If running from an extracted image, then export ARGV0 and APPDIR
if [ -z "${APPIMAGE}" ]; then
export ARGV0="$0"
self=$(readlink -f -- "$0") # Protect spaces (issue 55)
here="${self%/*}"
tmp="${here%/*}"
export APPDIR="${tmp%/*}"
fi
# Resolve the calling command (preserving symbolic links).
export APPIMAGE_COMMAND=$(command -v -- "$ARGV0")
# Export TCl/Tk
export TCL_LIBRARY="${APPDIR}/usr/share/tcltk/tcl8.6"
export TK_LIBRARY="${APPDIR}/usr/share/tcltk/tk8.6"
export TKPATH="${TK_LIBRARY}"
# Export SSL certificate
export SSL_CERT_FILE="${APPDIR}/opt/_internal/certs.pem"
# Call Python
export PATH="$APPDIR/usr/bin:$PATH"
export LD_LIBRARY_PATH="$APPDIR/usr/lib:$LD_LIBRARY_PATH"
export PYTHONPATH="$APPDIR/usr/lib/python3.13/site-packages"
"$APPDIR/opt/python3.13/bin/python3.13" -m yt_dlp "$@"

169
resources/appimage/build.sh Executable file
View file

@ -0,0 +1,169 @@
#!/usr/bin/env bash
PKGDIR=usr/lib/python3.13/site-packages
cd /app
if [ ! -x /app/python3.13.5-cp313-cp313-manylinux2014_x86_64.AppImage ]; then
echo "Downloading Python 3.13 AppImage..."
wget https://github.com/niess/python-appimage/releases/download/python3.13/python3.13.5-cp313-cp313-manylinux2014_x86_64.AppImage
chmod +x python3.13.5-cp313-cp313-manylinux2014_x86_64.AppImage
else
echo "Python 3.13 AppImage already exists."
fi
if [ ! -x /app/linuxdeploy-x86_64.AppImage ]; then
echo "Downloading linuxdeploy AppImage..."
wget https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage
chmod +x linuxdeploy-x86_64.AppImage
else
echo "linuxdeploy AppImage already exists."
fi
if [ ! -x /app/linuxdeploy-plugin-qt-x86_64.AppImage ]; then
echo "Downloading linuxdeploy-plugin-qt AppImage..."
wget https://github.com/linuxdeploy/linuxdeploy-plugin-qt/releases/download/1-alpha-20250213-1/linuxdeploy-plugin-qt-x86_64.AppImage
chmod +x linuxdeploy-plugin-qt-x86_64.AppImage
else
echo "linuxdeploy-plugin-qt AppImage already exists."
fi
if [ ! -d /app/syng ]; then
echo "Cloning Syng repository..."
git clone https://github.com/christofsteel/syng.git /app/syng
else
echo "Syng repository already exists."
fi
# if [ ! -x /app/mpv/mpv-build/mpv/build/libmpv.so.2.5.0 ]; then
# echo "Building MPV..."
# mkdir -p /app/mpv
# cd /app/mpv
# git clone https://github.com/mpv-player/mpv-build.git
# cd mpv-build
# echo "-Dlibmpv=true" > mpv_options
# echo "-Djavascript=disabled" >> mpv_options
# echo "--disable-debug" > ffmpeg_options
# echo "--disable-doc" >> ffmpeg_options
# echo "--enable-encoder=png" >> ffmpeg_options
# echo "--enable-gnutls" >> ffmpeg_options
# echo "--enable-gpl" >> ffmpeg_options
# echo "--enable-version3" >> ffmpeg_options
# echo "--enable-libass" >> ffmpeg_options
# echo "--enable-libdav1d" >> ffmpeg_options
# echo "--enable-libfreetype" >> ffmpeg_options
# echo "--enable-libmp3lame" >> ffmpeg_options
# echo "--enable-libopus" >> ffmpeg_options
# echo "--enable-libtheora" >> ffmpeg_options
# echo "--enable-libvorbis" >> ffmpeg_options
# echo "--enable-libvpx" >> ffmpeg_options
# echo "--enable-libx264" >> ffmpeg_options
# echo "--enable-libx265" >> ffmpeg_options
# echo "--enable-libwebp" >> ffmpeg_options
# # echo "--enable-vulkan" >> ffmpeg_options
# ./rebuild -j32
#
# cd /app
# else
# echo "MPV build already exists."
# fi
if [ ! -d /app/AppDir ]; then
echo "Extracting Python AppImage..."
/app/python3.13.5-cp313-cp313-manylinux2014_x86_64.AppImage --appimage-extract
mv /app/squashfs-root /app/AppDir
echo "Copy FFmpeg and MPV libraries..."
cp /usr/bin/ffmpeg /app/AppDir/usr/bin/ffmpeg
cp /usr/lib/libmpv.so.2.5.0 /app/AppDir/usr/lib/libmpv.so.2.5.0
cp /usr/bin/ld /app/AppDir/usr/bin/ld
ln -s libmpv.so.2.5.0 /app/AppDir/usr/lib/libmpv.so.2
ln -s libmpv.so.2 /app/AppDir/usr/lib/libmpv.so
echo "Copy xcb libraries..."
# qt6 needs them
cp /usr/lib/x86_64-linux-gnu/libxcb-ewmh* /app/AppDir/usr/lib/
cp /usr/lib/x86_64-linux-gnu/libxcb-icccm* /app/AppDir/usr/lib/
cp /usr/lib/x86_64-linux-gnu/libxcb-keysyms* /app/AppDir/usr/lib/
cp /usr/lib/x86_64-linux-gnu/libxcb* /app/AppDir/usr/lib/
/app/AppDir/opt/python3.13/bin/python3.13 -m pip install syng[client] --no-binary pillow --target=/app/AppDir/$PKGDIR
echo "Modifying AppDir structure..."
rm /app/AppDir/python3.13.5.desktop /app/AppDir/python.png /app/AppDir/usr/share/applications/python3.13.5.desktop
cat <<EOF > /app/AppDir/usr/share/applications/rocks.syng.Syng.desktop
[Desktop Entry]
Version=1.0
Type=Application
Name=Syng
Comment=An all-in-one karaoke player
Exec=syng
Icon=rocks.syng.Syng
Categories=AudioVideo
EOF
cp /app/syng/resources/icons/hicolor/256x256/apps/rocks.syng.Syng.png /app/AppDir/usr/share/icons/hicolor/256x256/apps/
cp /app/bin/syng /app/AppDir/usr/bin/syng
cp /app/bin/yt-dlp /app/AppDir/usr/bin/yt-dlp
cp /usr/bin/ld /app/AppDir/usr/bin/ld
chmod +x /app/AppDir/usr/bin/syng
rm /app/AppDir/AppRun
cp /app/syng/resources/flatpak/rocks.syng.Syng.yaml /app/AppDir/usr/share/metainfo/rocks.syng.Syng.appdata.xml
else
echo "Python AppImage already extracted."
fi
echo "Patching mpv.py..."
patch -p0 < libmpv.patch
echo "Removing unnecessary files..."
for plugin in assetimporters generic help "imageformats/libqpdf.so" networkinformation position qmllint renderers sceneparsers sensors tls wayland-graphics-integration-client sqldrivers webview egldeviceintegrations geometryloaders multimedia platforminputcontexts printsupport qmlls renderplugins scxmldatamodel texttospeech wayland-decoration-client wayland-shell-integration; do
rm -rf /app/AppDir/usr/lib/python3.13/site-packages/PyQt6/Qt6/plugins/$plugin
done
for lib in libavcodec.so.61 libQt6PdfQuick.so.6 libQt6Quick3DIblBaker.so.6 libQt6QuickControls2Material.so.6 libQt6QuickTimeline.so.6 libQt6Test.so.6 \
libavformat.so.61 libQt6Help.so.6 libQt6Pdf.so.6 libQt6Quick3DParticles.so.6 libQt6QuickControls2MaterialStyleImpl.so.6 libQt6QuickVectorImageGenerator.so.6 libQt6TextToSpeech.so.6 \
libavutil.so.59 libQt6LabsAnimation.so.6 libQt6PdfWidgets.so.6 libQt6Quick3DPhysicsHelpers.so.6 libQt6QuickControls2.so.6 libQt6QuickVectorImage.so.6 \
libQt6LabsFolderListModel.so.6 libQt6PositioningQuick.so.6 libQt6Quick3DPhysics.so.6 libQt6QuickControls2Universal.so.6 libQt6QuickWidgets.so.6 libQt6WaylandEglClientHwIntegration.so.6 \
libQt6LabsPlatform.so.6 libQt6Positioning.so.6 libQt6Quick3DRuntimeRender.so.6 libQt6QuickControls2UniversalStyleImpl.so.6 libQt6RemoteObjectsQml.so.6 libQt6WebChannelQuick.so.6 \
libQt6LabsQmlModels.so.6 libQt6PrintSupport.so.6 libQt6Quick3D.so.6 libQt6QuickDialogs2QuickImpl.so.6 libQt6RemoteObjects.so.6 libQt6WebChannel.so.6 \
libQt6Bluetooth.so.6 libQt6LabsSettings.so.6 libQt6QmlMeta.so.6 libQt6Quick3DSpatialAudio.so.6 libQt6QuickDialogs2.so.6 libQt6SensorsQuick.so.6 libQt6WebSockets.so.6 \
libQt6Concurrent.so.6 libQt6LabsSharedImage.so.6 libQt6QmlModels.so.6 libQt6Quick3DUtils.so.6 libQt6QuickDialogs2Utils.so.6 libQt6Sensors.so.6 \
libQt6LabsWavefrontMesh.so.6 libQt6Qml.so.6 libQt6Quick3DXr.so.6 libQt6QuickEffects.so.6 libQt6SerialPort.so.6 libQt6WlShellIntegration.so.6 \
libQt6MultimediaQuick.so.6 libQt6QmlWorkerScript.so.6 libQt6QuickControls2Basic.so.6 libQt6QuickLayouts.so.6 libQt6ShaderTools.so.6 \
libQt6Designer.so.6 libQt6Multimedia.so.6 libQt6Quick3DAssetImport.so.6 libQt6QuickControls2BasicStyleImpl.so.6 libQt6QuickParticles.so.6 libQt6SpatialAudio.so.6 \
libQt6FFmpegStub-crypto.so.3 libQt6MultimediaWidgets.so.6 libQt6Quick3DAssetUtils.so.6 libQt6QuickControls2Fusion.so.6 libQt6QuickShapes.so.6 libQt6Sql.so.6 libswresample.so.5 \
libQt6FFmpegStub-ssl.so.3 libQt6Network.so.6 libQt6Quick3DEffects.so.6 libQt6QuickControls2FusionStyleImpl.so.6 libQt6Quick.so.6 libQt6StateMachineQml.so.6 libswscale.so.8 \
libQt6FFmpegStub-va-drm.so.2 libQt6Nfc.so.6 libQt6Quick3DGlslParser.so.6 libQt6QuickControls2Imagine.so.6 libQt6QuickTemplates2.so.6 libQt6StateMachine.so.6 \
libQt6FFmpegStub-va.so.2 libQt6Quick3DHelpersImpl.so.6 libQt6QuickControls2ImagineStyleImpl.so.6 libQt6QuickTest.so.6 \
libQt6FFmpegStub-va-x11.so.2 libQt6OpenGLWidgets.so.6 libQt6Quick3DHelpers.so.6 libQt6QuickControls2Impl.so.6 libQt6QuickTimelineBlendTrees.so.6 libQt6WaylandClient.so.6; do
echo "Removing Qt library: $lib"
rm /app/AppDir/usr/lib/python3.13/site-packages/PyQt6/Qt6/lib/$lib
done
for platform in libqeglfs.so libqlinuxfb.so libqminimalegl.so libqminimal.so libqoffscreen.so libqvkkhrdisplay.so libqvnc.so libqwayland-egl.so libqwayland-generic.so; do
echo "Removing Qt platform plugin: $platform"
rm /app/AppDir/usr/lib/python3.13/site-packages/PyQt6/Qt6/plugins/platforms/$platform
done
for lib in QtHelp.abi3.so QtNfc.abi3.so QtPdfWidgets.abi3.so QtQuick3D.abi3.so QtSensors.abi3.so QtStateMachine.abi3.so QtTextToSpeech.abi3.so \
QtMultimedia.abi3.so QtPositioning.abi3.so QtQuick.abi3.so QtSerialPort.abi3.so QtWebChannel.abi3.so \
QtDesigner.abi3.so QtMultimediaWidgets.abi3.so QtOpenGLWidgets.abi3.so QtPrintSupport.abi3.so QtQuickWidgets.abi3.so QtSpatialAudio.abi3.so QtWebSockets.abi3.so \
QtBluetooth.abi3.so QtNetwork.abi3.so QtPdf.abi3.so QtQml.abi3.so QtRemoteObjects.abi3.so QtSql.abi3.so QtTest.abi3.so; do
echo "Removing PyQt6 library: $lib"
rm /app/AppDir/usr/lib/python3.13/site-packages/PyQt6/$lib
done
# rm /app/AppDir/usr/lib/python3.13/site-packages/PyQt6/Qt6/translations/*
echo "Removing unnecessary QML files..."
rm -rf /app/AppDir/usr/lib/python3.13/site-packages/PyQt6/Qt6/qml/
# ln -s python3.13/site-packages/PyQt6/Qt6/ /app/AppDir/usr/lib/qt6
# for file in /app/AppDir/usr/lib/python3.13/site-packages/PyQt6/Qt6/lib/*; do
# echo "Linking $file to /app/AppDir/usr/lib/$(basename $file)"
# relative_path=$(realpath --relative-to=/app/AppDir/usr/lib/ $file)
# ln -s "$relative_path" /app/AppDir/usr/lib/$(basename $file)
# done
# echo "Creating AppImage..."
# /app/linuxdeploy-x86_64.AppImage --plugin qt --appdir /app/AppDir --output appimage

View file

@ -0,0 +1,411 @@
{\rtf1\ansi\deff3\adeflang1025
{\fonttbl{\f0\froman\fprq2\fcharset0 Times New Roman;}{\f1\froman\fprq2\fcharset2 Symbol;}{\f2\fswiss\fprq2\fcharset0 Arial;}{\f3\froman\fprq2\fcharset0 Liberation Serif{\*\falt Times New Roman};}{\f4\froman\fprq2\fcharset0 Times New Roman;}{\f5\fswiss\fprq2\fcharset0 Arial;}{\f6\froman\fprq2\fcharset0 StarSymbol{\*\falt Arial Unicode MS};}{\f7\froman\fprq2\fcharset0 Courier New;}{\f8\froman\fprq2\fcharset0 Arial;}{\f9\froman\fprq2\fcharset0 Liberation Sans{\*\falt Arial};}{\f10\froman\fprq2\fcharset0 Liberation Mono{\*\falt Courier New};}{\f11\fmodern\fprq1\fcharset128 Liberation Mono{\*\falt Courier New};}{\f12\fnil\fprq2\fcharset0 Times New Roman;}{\f13\fnil\fprq2\fcharset0 StarSymbol{\*\falt Arial Unicode MS};}{\f14\fnil\fprq2\fcharset0 Courier New;}{\f15\fnil\fprq2\fcharset0 Liberation Serif{\*\falt Times New Roman};}{\f16\fnil\fprq2\fcharset0 Liberation Mono{\*\falt Courier New};}{\f17\fnil\fprq2\fcharset0 Liberation Sans{\*\falt Arial};}}
{\colortbl;\red0\green0\blue0;\red0\green0\blue255;\red0\green255\blue255;\red0\green255\blue0;\red255\green0\blue255;\red255\green0\blue0;\red255\green255\blue0;\red255\green255\blue255;\red0\green0\blue128;\red0\green128\blue128;\red0\green128\blue0;\red128\green0\blue128;\red128\green0\blue0;\red128\green128\blue0;\red128\green128\blue128;\red192\green192\blue192;}
{\stylesheet{\s0\snext0\dbch\af12\langfe1081\dbch\af15\afs24\alang1081\ql\nowidctlpar\hyphpar0\ltrpar\cf0\loch\f4\fs24\lang1033\kerning1 Normal;}
{\s1\sbasedon56\snext1\dbch\af12\langfe255\dbch\af15\afs32\ab\ql\nowidctlpar\hyphpar0\sb240\sa120\keepn\ltrpar\cf0\loch\f5\fs32\lang1033\b\kerning1 Titre 1;}
{\s2\sbasedon56\snext2\dbch\af12\langfe255\dbch\af15\afs28\ai\ab\ql\nowidctlpar\hyphpar0\sb240\sa120\keepn\ltrpar\cf0\loch\f5\fs28\lang1033\i\b\kerning1 Titre 2;}
{\s3\sbasedon56\snext3\dbch\af12\langfe255\dbch\af15\afs28\ab\ql\nowidctlpar\hyphpar0\sb240\sa120\keepn\ltrpar\cf0\loch\f5\fs28\lang1033\b\kerning1 Titre 3;}
{\s4\sbasedon56\snext4\dbch\af12\langfe255\dbch\af15\afs23\ai\ab\ql\nowidctlpar\hyphpar0\sb240\sa120\keepn\ltrpar\cf0\loch\f5\fs23\lang1033\i\b\kerning1 Titre 4;}
{\s5\sbasedon56\snext5\dbch\af12\langfe255\dbch\af15\afs23\ab\ql\nowidctlpar\hyphpar0\sb240\sa120\keepn\ltrpar\cf0\loch\f5\fs23\lang1033\b\kerning1 Titre 5;}
{\s6\sbasedon56\snext6\dbch\af12\langfe255\dbch\af15\afs21\ab\ql\nowidctlpar\hyphpar0\sb240\sa120\keepn\ltrpar\cf0\loch\f5\fs21\lang1033\b\kerning1 Titre 6;}
{\*\cs15\snext15 Caract\u232\'e8res de num\u233\'e9rotation;}
{\*\cs16\snext16\dbch\af13\afs18\loch\f6\fs18 Puces;}
{\*\cs17\snext17\i Accentuation;}
{\*\cs18\snext18\b Accentuation forte;}
{\*\cs19\snext19\strike Strikeout;}
{\*\cs20\snext20\super Superscript;}
{\*\cs21\snext21\sub Subscript;}
{\*\cs22\snext22\i Citation;}
{\*\cs23\snext23\dbch\af14\loch\f7 Texte non proportionnel;}
{\*\cs24\snext24\cf9\ul\ulc0 Lien Internet;}
{\*\cs25\snext25 Caract\u232\'e8res de note de bas de page;}
{\*\cs26\snext26\super Ancre de note de bas de page;}
{\*\cs27\snext27 D\u233\'e9finition;}
{\*\cs28\snext28\langfe255\cf13\lang255\ul\ulc0 Lien Internet visit\u233\'e9;}
{\*\cs29\snext29\dbch\af13\loch\f3 ListLabel 1;}
{\*\cs30\snext30\dbch\af13 ListLabel 2;}
{\*\cs31\snext31\dbch\af13 ListLabel 3;}
{\*\cs32\snext32\dbch\af13 ListLabel 4;}
{\*\cs33\snext33\dbch\af13 ListLabel 5;}
{\*\cs34\snext34\dbch\af13 ListLabel 6;}
{\*\cs35\snext35\dbch\af13 ListLabel 7;}
{\*\cs36\snext36\dbch\af13 ListLabel 8;}
{\*\cs37\snext37\dbch\af13 ListLabel 9;}
{\*\cs38\snext38\dbch\af13\loch\f3 ListLabel 10;}
{\*\cs39\snext39\dbch\af13 ListLabel 11;}
{\*\cs40\snext40\dbch\af13 ListLabel 12;}
{\*\cs41\snext41\dbch\af13 ListLabel 13;}
{\*\cs42\snext42\dbch\af13 ListLabel 14;}
{\*\cs43\snext43\dbch\af13 ListLabel 15;}
{\*\cs44\snext44\dbch\af13 ListLabel 16;}
{\*\cs45\snext45\dbch\af13 ListLabel 17;}
{\*\cs46\snext46\dbch\af13 ListLabel 18;}
{\*\cs47\snext47\dbch\af13\loch\f3 ListLabel 19;}
{\*\cs48\snext48\dbch\af13 ListLabel 20;}
{\*\cs49\snext49\dbch\af13 ListLabel 21;}
{\*\cs50\snext50\dbch\af13 ListLabel 22;}
{\*\cs51\snext51\dbch\af13 ListLabel 23;}
{\*\cs52\snext52\dbch\af13 ListLabel 24;}
{\*\cs53\snext53\dbch\af13 ListLabel 25;}
{\*\cs54\snext54\dbch\af13 ListLabel 26;}
{\*\cs55\snext55\dbch\af13 ListLabel 27;}
{\s56\sbasedon0\snext57\dbch\af12\langfe255\dbch\af15\afs28\ql\nowidctlpar\hyphpar0\sb240\sa120\keepn\ltrpar\cf0\loch\f8\fs28\lang1033\kerning1 Titre;}
{\s57\sbasedon0\snext57\dbch\af12\langfe255\dbch\af15\afs24\ql\nowidctlpar\hyphpar0\sb86\sa86\ltrpar\cf0\loch\f4\fs24\lang1033\kerning1 Corps de texte;}
{\s58\sbasedon57\snext58\dbch\af12\langfe255\dbch\af15\afs24\ql\nowidctlpar\hyphpar0\sb86\sa86\ltrpar\cf0\loch\f4\fs24\lang1033\kerning1 Liste;}
{\s59\sbasedon0\snext59\dbch\af12\langfe255\dbch\af15\afs24\ai\ql\nowidctlpar\hyphpar0\sb120\sa120\ltrpar\cf0\loch\f4\fs24\lang1033\kerning1 L\u233\'e9gende;}
{\s60\sbasedon0\snext60\dbch\af12\langfe255\dbch\af15\afs24\ql\nowidctlpar\hyphpar0\ltrpar\cf0\loch\f4\fs24\lang1033\kerning1 Index;}
{\s61\sbasedon59\snext61\dbch\af12\langfe255\dbch\af15\afs24\ai\ql\nowidctlpar\hyphpar0\sb120\sa120\ltrpar\cf0\loch\f4\fs24\lang1033\kerning1 TableCaption;}
{\s62\sbasedon59\snext62\dbch\af12\langfe255\dbch\af15\afs24\ai\ql\nowidctlpar\hyphpar0\sb120\sa120\ltrpar\cf0\loch\f4\fs24\lang1033\kerning1 FigureCaption;}
{\s63\sbasedon0\snext63\dbch\af12\langfe255\dbch\af15\afs24\ql\nowidctlpar\hyphpar0\ltrpar\cf0\loch\f4\fs24\lang1033\kerning1 Figure;}
{\s64\sbasedon63\snext64\dbch\af12\langfe255\dbch\af15\afs24\ql\nowidctlpar\hyphpar0\keepn\ltrpar\cf0\loch\f4\fs24\lang1033\kerning1 FigureWithCaption;}
{\s65\sbasedon0\snext65\dbch\af12\langfe255\dbch\af15\afs24\ql\nowidctlpar\hyphpar0\li567\ri567\lin567\rin567\fi0\sb144\sa144\ltrpar\cf0\loch\f4\fs24\lang1033\kerning1 Citations;}
{\s66\sbasedon0\snext66\dbch\af12\langfe255\dbch\af15\afs20\ql\nowidctlpar\hyphpar0\sb0\sa0\ltrpar\cf0\loch\f7\fs20\lang1033\kerning1 Texte pr\u233\'e9format\u233\'e9;}
{\s67\sbasedon0\snext67\dbch\af12\langfe255\dbch\af15\afs24\ql\nowidctlpar\hyphpar0\sb86\sa86\ltrpar\cf0\loch\f4\fs24\lang1033\kerning1 Definition Term;}
{\s68\sbasedon0\snext68\dbch\af12\langfe255\dbch\af15\afs24\ql\nowidctlpar\hyphpar0\li720\ri0\lin720\rin0\fi0\ltrpar\cf0\loch\f4\fs24\lang1033\kerning1 Definition Definition;}
{\s69\sbasedon0\snext69\dbch\af12\langfe255\dbch\af15\afs24\ql\nowidctlpar\hyphpar0\li43\ri43\lin43\rin43\fi0\ltrpar\cf0\loch\f4\fs24\lang1033\kerning1 Contenu de tableau;}
{\s70\sbasedon69\snext70\dbch\af12\langfe255\dbch\af15\afs24\ql\nowidctlpar\hyphpar0\li43\ri43\lin43\rin43\fi0\ltrpar\cf0\loch\f4\fs24\lang1033\b\kerning1 Titre de tableau;}
{\s71\sbasedon0\snext71\dbch\af12\langfe255\dbch\af15\afs24\ql\nowidctlpar\hyphpar0\li283\ri0\lin283\rin0\fi-283\ltrpar\cf0\loch\f4\fs20\lang1033\kerning1 Note de bas de page;}
{\s72\sbasedon0\snext72\dbch\af12\langfe255\dbch\af15\afs24\ql\nowidctlpar\tqc\tx4819\tqr\tx9638\hyphpar0\ltrpar\cf0\loch\f4\fs24\lang1033\kerning1 En-t\u234\'eate et pied de page;}
{\s73\sbasedon0\snext73\dbch\af12\langfe255\dbch\af15\afs24\ql\nowidctlpar\tqc\tx4680\tqr\tx9360\hyphpar0\ltrpar\cf0\loch\f4\fs24\lang1033\kerning1 Pied de page;}
{\s74\sbasedon0\snext74\dbch\af12\langfe255\dbch\af15\afs24\ql\nowidctlpar\hyphpar0\sb115\sa115\ltrpar\cf0\loch\f4\fs24\lang1033\kerning1 Definition Term Tight;}
{\s75\sbasedon0\snext75\dbch\af12\langfe255\dbch\af15\afs24\ql\nowidctlpar\hyphpar0\li720\ri0\lin720\rin0\fi0\sb0\sa0\ltrpar\cf0\loch\f4\fs24\lang1033\kerning1 Definition Definition Tight;}
{\s76\sbasedon0\snext76\dbch\af12\langfe255\dbch\af15\afs24\ql\nowidctlpar\hyphpar0\ltrpar\cf0\loch\f4\fs24\lang1033\i\kerning1 Date;}
{\s77\sbasedon0\snext77\dbch\af12\langfe255\dbch\af15\afs24\ql\nowidctlpar\hyphpar0\ltrpar\cf0\loch\f4\fs24\lang1033\i\kerning1 Author;}
{\s78\sbasedon0\snext78\dbch\af12\langfe255\dbch\af15\afs24\ql\nowidctlpar\hyphpar0\sb0\sa283\brdrb\brdrdb\brdrw5\brdrcf15\brsp0\ltrpar\cf0\loch\f4\fs12\lang1033\kerning1 Ligne horizontale;}
{\s79\sbasedon0\snext79\dbch\af12\langfe255\dbch\af15\afs24\ql\nowidctlpar\hyphpar0\ltrpar\cf0\loch\f4\fs24\lang1033\kerning1 First paragraph;}
{\s80\sbasedon56\snext80\dbch\af12\langfe255\dbch\af15\afs56\ab\qc\nowidctlpar\hyphpar0\sb240\sa120\keepn\ltrpar\cf0\loch\f8\fs56\lang1033\b\kerning1 Titre principal;}
}{\*\listtable{\list\listtemplateid1
{\listlevel\levelnfc23\leveljc0\levelstartat1\levelfollow0{\leveltext \'01\u8226 ?;}{\levelnumbers;}\f18\fi-360\li720}
{\listlevel\levelnfc23\leveljc0\levelstartat1\levelfollow0{\leveltext \'01\u8227 ?;}{\levelnumbers;}\f18\fi-360\li1080}
{\listlevel\levelnfc23\leveljc0\levelstartat1\levelfollow0{\leveltext \'01\u8259 ?;}{\levelnumbers;}\f18\fi-360\li1440}
{\listlevel\levelnfc23\leveljc0\levelstartat1\levelfollow0{\leveltext \'01\u8226 ?;}{\levelnumbers;}\f18\fi-360\li1800}
{\listlevel\levelnfc23\leveljc0\levelstartat1\levelfollow0{\leveltext \'01\u8227 ?;}{\levelnumbers;}\f18\fi-360\li2160}
{\listlevel\levelnfc23\leveljc0\levelstartat1\levelfollow0{\leveltext \'01\u8259 ?;}{\levelnumbers;}\f18\fi-360\li2520}
{\listlevel\levelnfc23\leveljc0\levelstartat1\levelfollow0{\leveltext \'01\u8226 ?;}{\levelnumbers;}\f18\fi-360\li2880}
{\listlevel\levelnfc23\leveljc0\levelstartat1\levelfollow0{\leveltext \'01\u8227 ?;}{\levelnumbers;}\f18\fi-360\li3240}
{\listlevel\levelnfc23\leveljc0\levelstartat1\levelfollow0{\leveltext \'01\u8259 ?;}{\levelnumbers;}\f18\fi-360\li3600}\listid1}
{\list\listtemplateid2
{\listlevel\levelnfc23\leveljc0\levelstartat1\levelfollow0{\leveltext \'01\u8226 ?;}{\levelnumbers;}\f18\fi-360\li720}
{\listlevel\levelnfc23\leveljc0\levelstartat1\levelfollow0{\leveltext \'01\u8227 ?;}{\levelnumbers;}\f18\fi-360\li1080}
{\listlevel\levelnfc23\leveljc0\levelstartat1\levelfollow0{\leveltext \'01\u8259 ?;}{\levelnumbers;}\f18\fi-360\li1440}
{\listlevel\levelnfc23\leveljc0\levelstartat1\levelfollow0{\leveltext \'01\u8226 ?;}{\levelnumbers;}\f18\fi-360\li1800}
{\listlevel\levelnfc23\leveljc0\levelstartat1\levelfollow0{\leveltext \'01\u8227 ?;}{\levelnumbers;}\f18\fi-360\li2160}
{\listlevel\levelnfc23\leveljc0\levelstartat1\levelfollow0{\leveltext \'01\u8259 ?;}{\levelnumbers;}\f18\fi-360\li2520}
{\listlevel\levelnfc23\leveljc0\levelstartat1\levelfollow0{\leveltext \'01\u8226 ?;}{\levelnumbers;}\f18\fi-360\li2880}
{\listlevel\levelnfc23\leveljc0\levelstartat1\levelfollow0{\leveltext \'01\u8227 ?;}{\levelnumbers;}\f18\fi-360\li3240}
{\listlevel\levelnfc23\leveljc0\levelstartat1\levelfollow0{\leveltext \'01\u8259 ?;}{\levelnumbers;}\f18\fi-360\li3600}\listid2}
{\list\listtemplateid3
{\listlevel\levelnfc23\leveljc0\levelstartat1\levelfollow0{\leveltext \'01\u8226 ?;}{\levelnumbers;}\f18\fi-360\li720}
{\listlevel\levelnfc23\leveljc0\levelstartat1\levelfollow0{\leveltext \'01\u8227 ?;}{\levelnumbers;}\f18\fi-360\li1080}
{\listlevel\levelnfc23\leveljc0\levelstartat1\levelfollow0{\leveltext \'01\u8259 ?;}{\levelnumbers;}\f18\fi-360\li1440}
{\listlevel\levelnfc23\leveljc0\levelstartat1\levelfollow0{\leveltext \'01\u8226 ?;}{\levelnumbers;}\f18\fi-360\li1800}
{\listlevel\levelnfc23\leveljc0\levelstartat1\levelfollow0{\leveltext \'01\u8227 ?;}{\levelnumbers;}\f18\fi-360\li2160}
{\listlevel\levelnfc23\leveljc0\levelstartat1\levelfollow0{\leveltext \'01\u8259 ?;}{\levelnumbers;}\f18\fi-360\li2520}
{\listlevel\levelnfc23\leveljc0\levelstartat1\levelfollow0{\leveltext \'01\u8226 ?;}{\levelnumbers;}\f18\fi-360\li2880}
{\listlevel\levelnfc23\leveljc0\levelstartat1\levelfollow0{\leveltext \'01\u8227 ?;}{\levelnumbers;}\f18\fi-360\li3240}
{\listlevel\levelnfc23\leveljc0\levelstartat1\levelfollow0{\leveltext \'01\u8259 ?;}{\levelnumbers;}\f18\fi-360\li3600}\listid3}
{\list\listtemplateid4
{\listlevel\levelnfc255\leveljc0\levelstartat1\levelfollow2{\leveltext \'00;}{\levelnumbers;}\fi0\li0}
{\listlevel\levelnfc255\leveljc0\levelstartat1\levelfollow2{\leveltext \'00;}{\levelnumbers;}\fi0\li0}
{\listlevel\levelnfc255\leveljc0\levelstartat1\levelfollow2{\leveltext \'00;}{\levelnumbers;}\fi0\li0}
{\listlevel\levelnfc255\leveljc0\levelstartat1\levelfollow2{\leveltext \'00;}{\levelnumbers;}\fi0\li0}
{\listlevel\levelnfc255\leveljc0\levelstartat1\levelfollow2{\leveltext \'00;}{\levelnumbers;}\fi0\li0}
{\listlevel\levelnfc255\leveljc0\levelstartat1\levelfollow2{\leveltext \'00;}{\levelnumbers;}\fi0\li0}
{\listlevel\levelnfc255\leveljc0\levelstartat1\levelfollow2{\leveltext \'00;}{\levelnumbers;}\fi0\li0}
{\listlevel\levelnfc255\leveljc0\levelstartat1\levelfollow2{\leveltext \'00;}{\levelnumbers;}\fi0\li0}
{\listlevel\levelnfc255\leveljc0\levelstartat1\levelfollow2{\leveltext \'00;}{\levelnumbers;}\fi0\li0}\listid4}
}{\listoverridetable{\listoverride\listid1\listoverridecount0\ls1}{\listoverride\listid2\listoverridecount0\ls2}{\listoverride\listid3\listoverridecount0\ls3}{\listoverride\listid4\listoverridecount0\ls4}}{\*\generator LibreOffice/7.0.4.2$Linux_X86_64 LibreOffice_project/00$Build-2}{\info{\creatim\yr0\mo0\dy0\hr0\min0}{\revtim\yr2024\mo3\dy19\hr18\min2}{\printim\yr0\mo0\dy0\hr0\min0}}{\*\userprops}\deftab709
\hyphauto1\viewscale100
{\*\pgdsctbl
{\pgdsc0\pgdscuse451\pgwsxn12240\pghsxn15840\marglsxn1440\margrsxn1440\margtsxn1440\margbsxn2016\footery1440{\footer\pard\plain \s73\dbch\af12\langfe255\dbch\af15\afs24\ql\nowidctlpar\tqc\tx4680\tqr\tx9360\hyphpar0\ltrpar\cf0\loch\f4\fs24\lang1033\kerning1\qc\nowidctlpar\tqc\tx4680\tqr\tx9360\hyphpar0\ltrpar{\rtlch\dbch\af12\langfe255\afs24 \ltrch\cf0\fs24\lang1033\kerning1
{\field{\*\fldinst PAGE }{\fldrslt 12}}}{\rtlch\dbch\af12\langfe255\afs24 \ltrch\cf0\fs24\lang1033\kerning1
}
\par }\pgdscnxt0 Style de page par d\u233\'e9faut;}}
\formshade{\*\pgdscno0}\paperh15840\paperw12240\margl1440\margr1440\margt1440\margb1440\sectd\sbknone\pgndec\sftnnar\saftnnrlc\sectunlocked1\pgwsxn12240\pghsxn15840\marglsxn1440\margrsxn1440\margtsxn1440\margbsxn2016\footery1440{\footer\pard\plain \s73\dbch\af12\langfe255\dbch\af15\afs24\ql\nowidctlpar\tqc\tx4680\tqr\tx9360\hyphpar0\ltrpar\cf0\loch\f4\fs24\lang1033\kerning1\qc\nowidctlpar\tqc\tx4680\tqr\tx9360\hyphpar0\ltrpar{\rtlch\dbch\af12\langfe255\afs24 \ltrch\cf0\fs24\lang1033\kerning1
{\field{\*\fldinst PAGE }{\fldrslt 12}}}{\rtlch\dbch\af12\langfe255\afs24 \ltrch\cf0\fs24\lang1033\kerning1
}
\par }\ftnbj\ftnstart1\ftnrstcont\ftnnar\aenddoc\aftnrstcont\aftnstart1\aftnnrlc
{\*\ftnsep\chftnsep}\pgndec\pard\plain \s80\dbch\af12\langfe255\dbch\af15\afs56\ab\qc\nowidctlpar\hyphpar0\sb240\sa120\keepn\ltrpar\cf0\loch\f8\fs56\lang1033\b\kerning1\ql\sb240\sa120{\rtlch\dbch\af17\afs36\hich\af9 \ltrch\fs36\loch\f9\loch
GNU AFFERO GENERAL PUBLIC LICENSE}
\par \pard\plain \s57\dbch\af12\langfe255\dbch\af15\afs24\ql\nowidctlpar\hyphpar0\sb86\sa86\ltrpar\cf0\loch\f4\fs24\lang1033\kerning1\ql{\rtlch\dbch\af15\hich\af3 \ltrch\loch\f3\loch
Version 3, 19 November 2007}
\par \pard\plain \s57\dbch\af12\langfe255\dbch\af15\afs24\ql\nowidctlpar\hyphpar0\sb86\sa86\ltrpar\cf0\loch\f4\fs24\lang1033\kerning1\rtlch\dbch\af15\hich\af3 \ltrch\loch\f3\loch
\par \pard\plain \s57\dbch\af12\langfe255\dbch\af15\afs24\ql\nowidctlpar\hyphpar0\sb86\sa86\ltrpar\cf0\loch\f4\fs24\lang1033\kerning1{\rtlch\dbch\af15\dbch\af15\hich\af11 \ltrch\loch\f11\loch
Copyright (C) 2007 Free Software Foundation, Inc. }{{\field{\*\fldinst HYPERLINK "https://fsf.org/" }{\fldrslt {\rtlch\dbch\af15\dbch\af15\hich\af11 \ltrch\cf9\ul\ulc0\loch\f11\loch
https://fsf.org/}}}}
\par \pard\plain \s57\dbch\af12\langfe255\dbch\af15\afs24\ql\nowidctlpar\hyphpar0\sb86\sa86\ltrpar\cf0\loch\f4\fs24\lang1033\kerning1{\rtlch\dbch\af15\dbch\af15\hich\af11 \ltrch\loch\f11\loch
Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.}
\par \pard\plain \s1\dbch\af12\langfe255\dbch\af15\afs32\ab\ql\nowidctlpar\hyphpar0\sb240\sa120\keepn\ltrpar\cf0\loch\f5\fs32\lang1033\b\kerning1{\rtlch\dbch\af17\hich\af9 \ltrch\loch\f9\loch
Preamble}
\par \pard\plain \s57\dbch\af12\langfe255\dbch\af15\afs24\ql\nowidctlpar\hyphpar0\sb86\sa86\ltrpar\cf0\loch\f4\fs24\lang1033\kerning1{\rtlch\dbch\af15\hich\af3 \ltrch\loch\f3\loch
The GNU Affero General Public License is a free, copyleft license for software and other kinds of works, specifically designed to ensure cooperation with the community in the case of network server software.}
\par \pard\plain \s57\dbch\af12\langfe255\dbch\af15\afs24\ql\nowidctlpar\hyphpar0\sb86\sa86\ltrpar\cf0\loch\f4\fs24\lang1033\kerning1{\rtlch\dbch\af15\dbch\af15\hich\af3 \ltrch\loch\f3\loch
The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, our General Public Licenses are intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users.}
\par \pard\plain \s57\dbch\af12\langfe255\dbch\af15\afs24\ql\nowidctlpar\hyphpar0\sb86\sa86\ltrpar\cf0\loch\f4\fs24\lang1033\kerning1{\rtlch\dbch\af15\dbch\af15\hich\af3 \ltrch\loch\f3\loch
When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things.}
\par \pard\plain \s57\dbch\af12\langfe255\dbch\af15\afs24\ql\nowidctlpar\hyphpar0\sb86\sa86\ltrpar\cf0\loch\f4\fs24\lang1033\kerning1{\rtlch\dbch\af15\dbch\af15\hich\af3 \ltrch\loch\f3\loch
Developers that use our General Public Licenses protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License which gives you legal permission to copy, distribute and/or modify the software.}
\par \pard\plain \s57\dbch\af12\langfe255\dbch\af15\afs24\ql\nowidctlpar\hyphpar0\sb86\sa86\ltrpar\cf0\loch\f4\fs24\lang1033\kerning1{\rtlch\dbch\af15\dbch\af15\hich\af3 \ltrch\loch\f3\loch
A secondary benefit of defending all users' freedom is that improvements made in alternate versions of the program, if they receive widespread use, become available for other developers to incorporate. Many developers of free software are heartened and encouraged by the resulting cooperation. However, in the case of software used on network servers, this result may fail to come about. The GNU General Public License permits making a modified version and letting the public access it on a server without ever releasing its source code to the public.}
\par \pard\plain \s57\dbch\af12\langfe255\dbch\af15\afs24\ql\nowidctlpar\hyphpar0\sb86\sa86\ltrpar\cf0\loch\f4\fs24\lang1033\kerning1{\rtlch\dbch\af15\dbch\af15\hich\af3 \ltrch\loch\f3\loch
The GNU Affero General Public License is designed specifically to ensure that, in such cases, the modified source code becomes available to the community. It requires the operator of a network server to provide the source code of the modified version running there to the users of that server. Therefore, public use of a modified version, on a publicly accessible server, gives the public access to the source code of the modified version.}
\par \pard\plain \s57\dbch\af12\langfe255\dbch\af15\afs24\ql\nowidctlpar\hyphpar0\sb86\sa86\ltrpar\cf0\loch\f4\fs24\lang1033\kerning1{\rtlch\dbch\af15\dbch\af15\hich\af3 \ltrch\loch\f3\loch
An older license, called the Affero General Public License and published by Affero, was designed to accomplish similar goals. This is a different license, not a version of the Affero GPL, but Affero has released a new version of the Affero GPL which permits relicensing under this license.}
\par \pard\plain \s57\dbch\af12\langfe255\dbch\af15\afs24\ql\nowidctlpar\hyphpar0\sb86\sa86\ltrpar\cf0\loch\f4\fs24\lang1033\kerning1{\rtlch\dbch\af15\dbch\af15\hich\af3 \ltrch\loch\f3\loch
The precise terms and conditions for copying, distribution and modification follow.}
\par \pard\plain \s1\dbch\af12\langfe255\dbch\af15\afs32\ab\ql\nowidctlpar\hyphpar0\sb240\sa120\keepn\ltrpar\cf0\loch\f5\fs32\lang1033\b\kerning1{\rtlch\dbch\af17\hich\af9 \ltrch\loch\f9\loch
TERMS AND CONDITIONS}
\par \pard\plain \s2\dbch\af12\langfe255\dbch\af15\afs28\ai\ab\ql\nowidctlpar\hyphpar0\sb240\sa120\keepn\ltrpar\cf0\loch\f5\fs28\lang1033\i\b\kerning1{\rtlch\dbch\af17\hich\af9 \ltrch\loch\f9\loch
0. Definitions.}
\par \pard\plain \s57\dbch\af12\langfe255\dbch\af15\afs24\ql\nowidctlpar\hyphpar0\sb86\sa86\ltrpar\cf0\loch\f4\fs24\lang1033\kerning1{\rtlch\dbch\af15\hich\af3 \ltrch\loch\f3\loch
"This License" refers to version 3 of the GNU Affero General Public License.}
\par \pard\plain \s57\dbch\af12\langfe255\dbch\af15\afs24\ql\nowidctlpar\hyphpar0\sb86\sa86\ltrpar\cf0\loch\f4\fs24\lang1033\kerning1{\rtlch\dbch\af15\dbch\af15\hich\af3 \ltrch\loch\f3\loch
"Copyright" also means copyright-like laws that apply to other kinds of works, such as semiconductor masks.}
\par \pard\plain \s57\dbch\af12\langfe255\dbch\af15\afs24\ql\nowidctlpar\hyphpar0\sb86\sa86\ltrpar\cf0\loch\f4\fs24\lang1033\kerning1{\rtlch\dbch\af15\dbch\af15\hich\af3 \ltrch\loch\f3\loch
"The Program" refers to any copyrightable work licensed under this License. Each licensee is addressed as "you". "Licensees" and "recipients" may be individuals or organizations.}
\par \pard\plain \s57\dbch\af12\langfe255\dbch\af15\afs24\ql\nowidctlpar\hyphpar0\sb86\sa86\ltrpar\cf0\loch\f4\fs24\lang1033\kerning1{\rtlch\dbch\af15\dbch\af15\hich\af3 \ltrch\loch\f3\loch
To "modify" a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a "modified version" of the earlier work or a work "based on" the earlier work.}
\par \pard\plain \s57\dbch\af12\langfe255\dbch\af15\afs24\ql\nowidctlpar\hyphpar0\sb86\sa86\ltrpar\cf0\loch\f4\fs24\lang1033\kerning1{\rtlch\dbch\af15\dbch\af15\hich\af3 \ltrch\loch\f3\loch
A "covered work" means either the unmodified Program or a work based on the Program.}
\par \pard\plain \s57\dbch\af12\langfe255\dbch\af15\afs24\ql\nowidctlpar\hyphpar0\sb86\sa86\ltrpar\cf0\loch\f4\fs24\lang1033\kerning1{\rtlch\dbch\af15\dbch\af15\hich\af3 \ltrch\loch\f3\loch
To "propagate" a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well.}
\par \pard\plain \s57\dbch\af12\langfe255\dbch\af15\afs24\ql\nowidctlpar\hyphpar0\sb86\sa86\ltrpar\cf0\loch\f4\fs24\lang1033\kerning1{\rtlch\dbch\af15\dbch\af15\hich\af3 \ltrch\loch\f3\loch
To "convey" a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying.}
\par \pard\plain \s57\dbch\af12\langfe255\dbch\af15\afs24\ql\nowidctlpar\hyphpar0\sb86\sa86\ltrpar\cf0\loch\f4\fs24\lang1033\kerning1{\rtlch\dbch\af15\dbch\af15\hich\af3 \ltrch\loch\f3\loch
An interactive user interface displays "Appropriate Legal Notices" to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion.}
\par \pard\plain \s2\dbch\af12\langfe255\dbch\af15\afs28\ai\ab\ql\nowidctlpar\hyphpar0\sb240\sa120\keepn\ltrpar\cf0\loch\f5\fs28\lang1033\i\b\kerning1{\rtlch\dbch\af17\hich\af9 \ltrch\loch\f9\loch
1. Source Code.}
\par \pard\plain \s57\dbch\af12\langfe255\dbch\af15\afs24\ql\nowidctlpar\hyphpar0\sb86\sa86\ltrpar\cf0\loch\f4\fs24\lang1033\kerning1{\rtlch\dbch\af15\hich\af3 \ltrch\loch\f3\loch
The "source code" for a work means the preferred form of the work for making modifications to it. "Object code" means any non-source form of a work.}
\par \pard\plain \s57\dbch\af12\langfe255\dbch\af15\afs24\ql\nowidctlpar\hyphpar0\sb86\sa86\ltrpar\cf0\loch\f4\fs24\lang1033\kerning1{\rtlch\dbch\af15\dbch\af15\hich\af3 \ltrch\loch\f3\loch
A "Standard Interface" means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language.}
\par \pard\plain \s57\dbch\af12\langfe255\dbch\af15\afs24\ql\nowidctlpar\hyphpar0\sb86\sa86\ltrpar\cf0\loch\f4\fs24\lang1033\kerning1{\rtlch\dbch\af15\dbch\af15\hich\af3 \ltrch\loch\f3\loch
The "System Libraries" of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A "Major Component", in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it.}
\par \pard\plain \s57\dbch\af12\langfe255\dbch\af15\afs24\ql\nowidctlpar\hyphpar0\sb86\sa86\ltrpar\cf0\loch\f4\fs24\lang1033\kerning1{\rtlch\dbch\af15\dbch\af15\hich\af3 \ltrch\loch\f3\loch
The "Corresponding Source" for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work.}
\par \pard\plain \s57\dbch\af12\langfe255\dbch\af15\afs24\ql\nowidctlpar\hyphpar0\sb86\sa86\ltrpar\cf0\loch\f4\fs24\lang1033\kerning1{\rtlch\dbch\af15\dbch\af15\hich\af3 \ltrch\loch\f3\loch
The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source.}
\par \pard\plain \s57\dbch\af12\langfe255\dbch\af15\afs24\ql\nowidctlpar\hyphpar0\sb86\sa86\ltrpar\cf0\loch\f4\fs24\lang1033\kerning1{\rtlch\dbch\af15\dbch\af15\hich\af3 \ltrch\loch\f3\loch
The Corresponding Source for a work in source code form is that same work.}
\par \pard\plain \s2\dbch\af12\langfe255\dbch\af15\afs28\ai\ab\ql\nowidctlpar\hyphpar0\sb240\sa120\keepn\ltrpar\cf0\loch\f5\fs28\lang1033\i\b\kerning1{\rtlch\dbch\af17\hich\af9 \ltrch\loch\f9\loch
2. Basic Permissions.}
\par \pard\plain \s57\dbch\af12\langfe255\dbch\af15\afs24\ql\nowidctlpar\hyphpar0\sb86\sa86\ltrpar\cf0\loch\f4\fs24\lang1033\kerning1{\rtlch\dbch\af15\hich\af3 \ltrch\loch\f3\loch
All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law.}
\par \pard\plain \s57\dbch\af12\langfe255\dbch\af15\afs24\ql\nowidctlpar\hyphpar0\sb86\sa86\ltrpar\cf0\loch\f4\fs24\lang1033\kerning1{\rtlch\dbch\af15\dbch\af15\hich\af3 \ltrch\loch\f3\loch
You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you.}
\par \pard\plain \s57\dbch\af12\langfe255\dbch\af15\afs24\ql\nowidctlpar\hyphpar0\sb86\sa86\ltrpar\cf0\loch\f4\fs24\lang1033\kerning1{\rtlch\dbch\af15\dbch\af15\hich\af3 \ltrch\loch\f3\loch
Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary.}
\par \pard\plain \s2\dbch\af12\langfe255\dbch\af15\afs28\ai\ab\ql\nowidctlpar\hyphpar0\sb240\sa120\keepn\ltrpar\cf0\loch\f5\fs28\lang1033\i\b\kerning1{\rtlch\dbch\af17\hich\af9 \ltrch\loch\f9\loch
3. Protecting Users' Legal Rights From Anti-Circumvention Law.}
\par \pard\plain \s57\dbch\af12\langfe255\dbch\af15\afs24\ql\nowidctlpar\hyphpar0\sb86\sa86\ltrpar\cf0\loch\f4\fs24\lang1033\kerning1{\rtlch\dbch\af15\hich\af3 \ltrch\loch\f3\loch
No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures.}
\par \pard\plain \s57\dbch\af12\langfe255\dbch\af15\afs24\ql\nowidctlpar\hyphpar0\sb86\sa86\ltrpar\cf0\loch\f4\fs24\lang1033\kerning1{\rtlch\dbch\af15\dbch\af15\hich\af3 \ltrch\loch\f3\loch
When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures.}
\par \pard\plain \s2\dbch\af12\langfe255\dbch\af15\afs28\ai\ab\ql\nowidctlpar\hyphpar0\sb240\sa120\keepn\ltrpar\cf0\loch\f5\fs28\lang1033\i\b\kerning1{\rtlch\dbch\af17\hich\af9 \ltrch\loch\f9\loch
4. Conveying Verbatim Copies.}
\par \pard\plain \s57\dbch\af12\langfe255\dbch\af15\afs24\ql\nowidctlpar\hyphpar0\sb86\sa86\ltrpar\cf0\loch\f4\fs24\lang1033\kerning1{\rtlch\dbch\af15\hich\af3 \ltrch\loch\f3\loch
You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program.}
\par \pard\plain \s57\dbch\af12\langfe255\dbch\af15\afs24\ql\nowidctlpar\hyphpar0\sb86\sa86\ltrpar\cf0\loch\f4\fs24\lang1033\kerning1{\rtlch\dbch\af15\dbch\af15\hich\af3 \ltrch\loch\f3\loch
You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee.}
\par \pard\plain \s2\dbch\af12\langfe255\dbch\af15\afs28\ai\ab\ql\nowidctlpar\hyphpar0\sb240\sa120\keepn\ltrpar\cf0\loch\f5\fs28\lang1033\i\b\kerning1{\rtlch\dbch\af17\hich\af9 \ltrch\loch\f9\loch
5. Conveying Modified Source Versions.}
\par \pard\plain \s57\dbch\af12\langfe255\dbch\af15\afs24\ql\nowidctlpar\hyphpar0\sb86\sa86\ltrpar\cf0\loch\f4\fs24\lang1033\kerning1{\rtlch\dbch\af15\hich\af3 \ltrch\loch\f3\loch
You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions:}
\par \pard\plain \s57\dbch\af12\langfe255\dbch\af15\afs24\ql\nowidctlpar\hyphpar0\sb86\sa86\ltrpar\cf0\loch\f4\fs24\lang1033\kerning1{\listtext\pard\plain \u8226\'95\tab}\ilvl0\ls1 \li1440\ri0\lin1440\rin0\fi-360\tx720\li720\ri0\lin720\rin0\fi-360\sb85\sa85{\rtlch\dbch\af15\dbch\af15\hich\af3 \ltrch\loch\f3\loch
a) The work must carry prominent notices stating that you modified it, and giving a relevant date.}
\par \pard\plain \s57\dbch\af12\langfe255\dbch\af15\afs24\ql\nowidctlpar\hyphpar0\sb86\sa86\ltrpar\cf0\loch\f4\fs24\lang1033\kerning1{\listtext\pard\plain \u8226\'95\tab}\ilvl0\ls1 \li1440\ri0\lin1440\rin0\fi-360\tx720\li720\ri0\lin720\rin0\fi-360\sb85\sa85{\rtlch\dbch\af15\dbch\af15\hich\af3 \ltrch\loch\f3\loch
b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to "keep intact all notices".}
\par \pard\plain \s57\dbch\af12\langfe255\dbch\af15\afs24\ql\nowidctlpar\hyphpar0\sb86\sa86\ltrpar\cf0\loch\f4\fs24\lang1033\kerning1{\listtext\pard\plain \u8226\'95\tab}\ilvl0\ls1 \li1440\ri0\lin1440\rin0\fi-360\tx720\li720\ri0\lin720\rin0\fi-360\sb85\sa85{\rtlch\dbch\af15\dbch\af15\hich\af3 \ltrch\loch\f3\loch
c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it.}
\par \pard\plain \s57\dbch\af12\langfe255\dbch\af15\afs24\ql\nowidctlpar\hyphpar0\sb86\sa86\ltrpar\cf0\loch\f4\fs24\lang1033\kerning1{\listtext\pard\plain \u8226\'95\tab}\ilvl0\ls1 \li1440\ri0\lin1440\rin0\fi-360\tx720\li720\ri0\lin720\rin0\fi-360\sb85\sa85{\rtlch\dbch\af15\dbch\af15\hich\af3 \ltrch\loch\f3\loch
d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so.}
\par \pard\plain \s79\dbch\af12\langfe255\dbch\af15\afs24\ql\nowidctlpar\hyphpar0\ltrpar\cf0\loch\f4\fs24\lang1033\kerning1\sb85\sa85{\rtlch\dbch\af15\dbch\af15\hich\af3 \ltrch\loch\f3\loch
A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an "aggregate" if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate.}
\par \pard\plain \s2\dbch\af12\langfe255\dbch\af15\afs28\ai\ab\ql\nowidctlpar\hyphpar0\sb240\sa120\keepn\ltrpar\cf0\loch\f5\fs28\lang1033\i\b\kerning1{\rtlch\dbch\af17\hich\af9 \ltrch\loch\f9\loch
6. Conveying Non-Source Forms.}
\par \pard\plain \s57\dbch\af12\langfe255\dbch\af15\afs24\ql\nowidctlpar\hyphpar0\sb86\sa86\ltrpar\cf0\loch\f4\fs24\lang1033\kerning1{\rtlch\dbch\af15\hich\af3 \ltrch\loch\f3\loch
You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways:}
\par \pard\plain \s57\dbch\af12\langfe255\dbch\af15\afs24\ql\nowidctlpar\hyphpar0\sb86\sa86\ltrpar\cf0\loch\f4\fs24\lang1033\kerning1{\listtext\pard\plain \u8226\'95\tab}\ilvl0\ls2 \li1440\ri0\lin1440\rin0\fi-360\tx720\li720\ri0\lin720\rin0\fi-360\sb85\sa85{\rtlch\dbch\af15\dbch\af15\hich\af3 \ltrch\loch\f3\loch
a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange.}
\par \pard\plain \s57\dbch\af12\langfe255\dbch\af15\afs24\ql\nowidctlpar\hyphpar0\sb86\sa86\ltrpar\cf0\loch\f4\fs24\lang1033\kerning1{\listtext\pard\plain \u8226\'95\tab}\ilvl0\ls2 \li1440\ri0\lin1440\rin0\fi-360\tx720\li720\ri0\lin720\rin0\fi-360\sb85\sa85{\rtlch\dbch\af15\dbch\af15\hich\af3 \ltrch\loch\f3\loch
b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge.}
\par \pard\plain \s57\dbch\af12\langfe255\dbch\af15\afs24\ql\nowidctlpar\hyphpar0\sb86\sa86\ltrpar\cf0\loch\f4\fs24\lang1033\kerning1{\listtext\pard\plain \u8226\'95\tab}\ilvl0\ls2 \li1440\ri0\lin1440\rin0\fi-360\tx720\li720\ri0\lin720\rin0\fi-360\sb85\sa85{\rtlch\dbch\af15\dbch\af15\hich\af3 \ltrch\loch\f3\loch
c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b.}
\par \pard\plain \s57\dbch\af12\langfe255\dbch\af15\afs24\ql\nowidctlpar\hyphpar0\sb86\sa86\ltrpar\cf0\loch\f4\fs24\lang1033\kerning1{\listtext\pard\plain \u8226\'95\tab}\ilvl0\ls2 \li1440\ri0\lin1440\rin0\fi-360\tx720\li720\ri0\lin720\rin0\fi-360\sb85\sa85{\rtlch\dbch\af15\dbch\af15\hich\af3 \ltrch\loch\f3\loch
d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements.}
\par \pard\plain \s57\dbch\af12\langfe255\dbch\af15\afs24\ql\nowidctlpar\hyphpar0\sb86\sa86\ltrpar\cf0\loch\f4\fs24\lang1033\kerning1{\listtext\pard\plain \u8226\'95\tab}\ilvl0\ls2 \li1440\ri0\lin1440\rin0\fi-360\tx720\li720\ri0\lin720\rin0\fi-360\sb85\sa85{\rtlch\dbch\af15\dbch\af15\hich\af3 \ltrch\loch\f3\loch
e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d.}
\par \pard\plain \s79\dbch\af12\langfe255\dbch\af15\afs24\ql\nowidctlpar\hyphpar0\ltrpar\cf0\loch\f4\fs24\lang1033\kerning1\sb85\sa85{\rtlch\dbch\af15\dbch\af15\hich\af3 \ltrch\loch\f3\loch
A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work.}
\par \pard\plain \s57\dbch\af12\langfe255\dbch\af15\afs24\ql\nowidctlpar\hyphpar0\sb86\sa86\ltrpar\cf0\loch\f4\fs24\lang1033\kerning1{\rtlch\dbch\af15\dbch\af15\hich\af3 \ltrch\loch\f3\loch
A "User Product" is either (1) a "consumer product", which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, "normally used" refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product.}
\par \pard\plain \s57\dbch\af12\langfe255\dbch\af15\afs24\ql\nowidctlpar\hyphpar0\sb86\sa86\ltrpar\cf0\loch\f4\fs24\lang1033\kerning1{\rtlch\dbch\af15\dbch\af15\hich\af3 \ltrch\loch\f3\loch
"Installation Information" for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made.}
\par \pard\plain \s57\dbch\af12\langfe255\dbch\af15\afs24\ql\nowidctlpar\hyphpar0\sb86\sa86\ltrpar\cf0\loch\f4\fs24\lang1033\kerning1{\rtlch\dbch\af15\dbch\af15\hich\af3 \ltrch\loch\f3\loch
If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM).}
\par \pard\plain \s57\dbch\af12\langfe255\dbch\af15\afs24\ql\nowidctlpar\hyphpar0\sb86\sa86\ltrpar\cf0\loch\f4\fs24\lang1033\kerning1{\rtlch\dbch\af15\dbch\af15\hich\af3 \ltrch\loch\f3\loch
The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network.}
\par \pard\plain \s57\dbch\af12\langfe255\dbch\af15\afs24\ql\nowidctlpar\hyphpar0\sb86\sa86\ltrpar\cf0\loch\f4\fs24\lang1033\kerning1{\rtlch\dbch\af15\dbch\af15\hich\af3 \ltrch\loch\f3\loch
Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying.}
\par \pard\plain \s2\dbch\af12\langfe255\dbch\af15\afs28\ai\ab\ql\nowidctlpar\hyphpar0\sb240\sa120\keepn\ltrpar\cf0\loch\f5\fs28\lang1033\i\b\kerning1{\rtlch\dbch\af17\hich\af9 \ltrch\loch\f9\loch
7. Additional Terms.}
\par \pard\plain \s57\dbch\af12\langfe255\dbch\af15\afs24\ql\nowidctlpar\hyphpar0\sb86\sa86\ltrpar\cf0\loch\f4\fs24\lang1033\kerning1{\rtlch\dbch\af15\hich\af3 \ltrch\loch\f3\loch
"Additional permissions" are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions.}
\par \pard\plain \s57\dbch\af12\langfe255\dbch\af15\afs24\ql\nowidctlpar\hyphpar0\sb86\sa86\ltrpar\cf0\loch\f4\fs24\lang1033\kerning1{\rtlch\dbch\af15\dbch\af15\hich\af3 \ltrch\loch\f3\loch
When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission.}
\par \pard\plain \s57\dbch\af12\langfe255\dbch\af15\afs24\ql\nowidctlpar\hyphpar0\sb86\sa86\ltrpar\cf0\loch\f4\fs24\lang1033\kerning1{\rtlch\dbch\af15\dbch\af15\hich\af3 \ltrch\loch\f3\loch
Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms:}
\par \pard\plain \s57\dbch\af12\langfe255\dbch\af15\afs24\ql\nowidctlpar\hyphpar0\sb86\sa86\ltrpar\cf0\loch\f4\fs24\lang1033\kerning1{\listtext\pard\plain \u8226\'95\tab}\ilvl0\ls3 \li1440\ri0\lin1440\rin0\fi-360\tx720\li720\ri0\lin720\rin0\fi-360\sb85\sa85{\rtlch\dbch\af15\dbch\af15\hich\af3 \ltrch\loch\f3\loch
a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or}
\par \pard\plain \s57\dbch\af12\langfe255\dbch\af15\afs24\ql\nowidctlpar\hyphpar0\sb86\sa86\ltrpar\cf0\loch\f4\fs24\lang1033\kerning1{\listtext\pard\plain \u8226\'95\tab}\ilvl0\ls3 \li1440\ri0\lin1440\rin0\fi-360\tx720\li720\ri0\lin720\rin0\fi-360\sb85\sa85{\rtlch\dbch\af15\dbch\af15\hich\af3 \ltrch\loch\f3\loch
b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or}
\par \pard\plain \s57\dbch\af12\langfe255\dbch\af15\afs24\ql\nowidctlpar\hyphpar0\sb86\sa86\ltrpar\cf0\loch\f4\fs24\lang1033\kerning1{\listtext\pard\plain \u8226\'95\tab}\ilvl0\ls3 \li1440\ri0\lin1440\rin0\fi-360\tx720\li720\ri0\lin720\rin0\fi-360\sb85\sa85{\rtlch\dbch\af15\dbch\af15\hich\af3 \ltrch\loch\f3\loch
c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or}
\par \pard\plain \s57\dbch\af12\langfe255\dbch\af15\afs24\ql\nowidctlpar\hyphpar0\sb86\sa86\ltrpar\cf0\loch\f4\fs24\lang1033\kerning1{\listtext\pard\plain \u8226\'95\tab}\ilvl0\ls3 \li1440\ri0\lin1440\rin0\fi-360\tx720\li720\ri0\lin720\rin0\fi-360\sb85\sa85{\rtlch\dbch\af15\dbch\af15\hich\af3 \ltrch\loch\f3\loch
d) Limiting the use for publicity purposes of names of licensors or authors of the material; or}
\par \pard\plain \s57\dbch\af12\langfe255\dbch\af15\afs24\ql\nowidctlpar\hyphpar0\sb86\sa86\ltrpar\cf0\loch\f4\fs24\lang1033\kerning1{\listtext\pard\plain \u8226\'95\tab}\ilvl0\ls3 \li1440\ri0\lin1440\rin0\fi-360\tx720\li720\ri0\lin720\rin0\fi-360\sb85\sa85{\rtlch\dbch\af15\dbch\af15\hich\af3 \ltrch\loch\f3\loch
e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or}
\par \pard\plain \s57\dbch\af12\langfe255\dbch\af15\afs24\ql\nowidctlpar\hyphpar0\sb86\sa86\ltrpar\cf0\loch\f4\fs24\lang1033\kerning1{\listtext\pard\plain \u8226\'95\tab}\ilvl0\ls3 \li1440\ri0\lin1440\rin0\fi-360\tx720\li720\ri0\lin720\rin0\fi-360\sb85\sa85{\rtlch\dbch\af15\dbch\af15\hich\af3 \ltrch\loch\f3\loch
f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors.}
\par \pard\plain \s79\dbch\af12\langfe255\dbch\af15\afs24\ql\nowidctlpar\hyphpar0\ltrpar\cf0\loch\f4\fs24\lang1033\kerning1\sb85\sa85{\rtlch\dbch\af15\dbch\af15\hich\af3 \ltrch\loch\f3\loch
All other non-permissive additional terms are considered "further restrictions" within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying.}
\par \pard\plain \s57\dbch\af12\langfe255\dbch\af15\afs24\ql\nowidctlpar\hyphpar0\sb86\sa86\ltrpar\cf0\loch\f4\fs24\lang1033\kerning1{\rtlch\dbch\af15\dbch\af15\hich\af3 \ltrch\loch\f3\loch
If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms.}
\par \pard\plain \s57\dbch\af12\langfe255\dbch\af15\afs24\ql\nowidctlpar\hyphpar0\sb86\sa86\ltrpar\cf0\loch\f4\fs24\lang1033\kerning1{\rtlch\dbch\af15\dbch\af15\hich\af3 \ltrch\loch\f3\loch
Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way.}
\par \pard\plain \s2\dbch\af12\langfe255\dbch\af15\afs28\ai\ab\ql\nowidctlpar\hyphpar0\sb240\sa120\keepn\ltrpar\cf0\loch\f5\fs28\lang1033\i\b\kerning1{\rtlch\dbch\af17\hich\af9 \ltrch\loch\f9\loch
8. Termination.}
\par \pard\plain \s57\dbch\af12\langfe255\dbch\af15\afs24\ql\nowidctlpar\hyphpar0\sb86\sa86\ltrpar\cf0\loch\f4\fs24\lang1033\kerning1{\rtlch\dbch\af15\hich\af3 \ltrch\loch\f3\loch
You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11).}
\par \pard\plain \s57\dbch\af12\langfe255\dbch\af15\afs24\ql\nowidctlpar\hyphpar0\sb86\sa86\ltrpar\cf0\loch\f4\fs24\lang1033\kerning1{\rtlch\dbch\af15\dbch\af15\hich\af3 \ltrch\loch\f3\loch
However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation.}
\par \pard\plain \s57\dbch\af12\langfe255\dbch\af15\afs24\ql\nowidctlpar\hyphpar0\sb86\sa86\ltrpar\cf0\loch\f4\fs24\lang1033\kerning1{\rtlch\dbch\af15\dbch\af15\hich\af3 \ltrch\loch\f3\loch
Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice.}
\par \pard\plain \s57\dbch\af12\langfe255\dbch\af15\afs24\ql\nowidctlpar\hyphpar0\sb86\sa86\ltrpar\cf0\loch\f4\fs24\lang1033\kerning1{\rtlch\dbch\af15\dbch\af15\hich\af3 \ltrch\loch\f3\loch
Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10.}
\par \pard\plain \s2\dbch\af12\langfe255\dbch\af15\afs28\ai\ab\ql\nowidctlpar\hyphpar0\sb240\sa120\keepn\ltrpar\cf0\loch\f5\fs28\lang1033\i\b\kerning1{\rtlch\dbch\af17\hich\af9 \ltrch\loch\f9\loch
9. Acceptance Not Required for Having Copies.}
\par \pard\plain \s57\dbch\af12\langfe255\dbch\af15\afs24\ql\nowidctlpar\hyphpar0\sb86\sa86\ltrpar\cf0\loch\f4\fs24\lang1033\kerning1{\rtlch\dbch\af15\hich\af3 \ltrch\loch\f3\loch
You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so.}
\par \pard\plain \s2\dbch\af12\langfe255\dbch\af15\afs28\ai\ab\ql\nowidctlpar\hyphpar0\sb240\sa120\keepn\ltrpar\cf0\loch\f5\fs28\lang1033\i\b\kerning1{\rtlch\dbch\af17\hich\af9 \ltrch\loch\f9\loch
10. Automatic Licensing of Downstream Recipients.}
\par \pard\plain \s57\dbch\af12\langfe255\dbch\af15\afs24\ql\nowidctlpar\hyphpar0\sb86\sa86\ltrpar\cf0\loch\f4\fs24\lang1033\kerning1{\rtlch\dbch\af15\hich\af3 \ltrch\loch\f3\loch
Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License.}
\par \pard\plain \s57\dbch\af12\langfe255\dbch\af15\afs24\ql\nowidctlpar\hyphpar0\sb86\sa86\ltrpar\cf0\loch\f4\fs24\lang1033\kerning1{\rtlch\dbch\af15\dbch\af15\hich\af3 \ltrch\loch\f3\loch
An "entity transaction" is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts.}
\par \pard\plain \s57\dbch\af12\langfe255\dbch\af15\afs24\ql\nowidctlpar\hyphpar0\sb86\sa86\ltrpar\cf0\loch\f4\fs24\lang1033\kerning1{\rtlch\dbch\af15\dbch\af15\hich\af3 \ltrch\loch\f3\loch
You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it.}
\par \pard\plain \s2\dbch\af12\langfe255\dbch\af15\afs28\ai\ab\ql\nowidctlpar\hyphpar0\sb240\sa120\keepn\ltrpar\cf0\loch\f5\fs28\lang1033\i\b\kerning1{\rtlch\dbch\af17\hich\af9 \ltrch\loch\f9\loch
11. Patents.}
\par \pard\plain \s57\dbch\af12\langfe255\dbch\af15\afs24\ql\nowidctlpar\hyphpar0\sb86\sa86\ltrpar\cf0\loch\f4\fs24\lang1033\kerning1{\rtlch\dbch\af15\hich\af3 \ltrch\loch\f3\loch
A "contributor" is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's "contributor version".}
\par \pard\plain \s57\dbch\af12\langfe255\dbch\af15\afs24\ql\nowidctlpar\hyphpar0\sb86\sa86\ltrpar\cf0\loch\f4\fs24\lang1033\kerning1{\rtlch\dbch\af15\dbch\af15\hich\af3 \ltrch\loch\f3\loch
A contributor's "essential patent claims" are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, "control" includes the right to grant patent sublicenses in a manner consistent with the requirements of this License.}
\par \pard\plain \s57\dbch\af12\langfe255\dbch\af15\afs24\ql\nowidctlpar\hyphpar0\sb86\sa86\ltrpar\cf0\loch\f4\fs24\lang1033\kerning1{\rtlch\dbch\af15\dbch\af15\hich\af3 \ltrch\loch\f3\loch
Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version.}
\par \pard\plain \s57\dbch\af12\langfe255\dbch\af15\afs24\ql\nowidctlpar\hyphpar0\sb86\sa86\ltrpar\cf0\loch\f4\fs24\lang1033\kerning1{\rtlch\dbch\af15\dbch\af15\hich\af3 \ltrch\loch\f3\loch
In the following three paragraphs, a "patent license" is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To "grant" such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party.}
\par \pard\plain \s57\dbch\af12\langfe255\dbch\af15\afs24\ql\nowidctlpar\hyphpar0\sb86\sa86\ltrpar\cf0\loch\f4\fs24\lang1033\kerning1{\rtlch\dbch\af15\dbch\af15\hich\af3 \ltrch\loch\f3\loch
If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. "Knowingly relying" means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid.}
\par \pard\plain \s57\dbch\af12\langfe255\dbch\af15\afs24\ql\nowidctlpar\hyphpar0\sb86\sa86\ltrpar\cf0\loch\f4\fs24\lang1033\kerning1{\rtlch\dbch\af15\dbch\af15\hich\af3 \ltrch\loch\f3\loch
If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it.}
\par \pard\plain \s57\dbch\af12\langfe255\dbch\af15\afs24\ql\nowidctlpar\hyphpar0\sb86\sa86\ltrpar\cf0\loch\f4\fs24\lang1033\kerning1{\rtlch\dbch\af15\dbch\af15\hich\af3 \ltrch\loch\f3\loch
A patent license is "discriminatory" if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007.}
\par \pard\plain \s57\dbch\af12\langfe255\dbch\af15\afs24\ql\nowidctlpar\hyphpar0\sb86\sa86\ltrpar\cf0\loch\f4\fs24\lang1033\kerning1{\rtlch\dbch\af15\dbch\af15\hich\af3 \ltrch\loch\f3\loch
Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law.}
\par \pard\plain \s2\dbch\af12\langfe255\dbch\af15\afs28\ai\ab\ql\nowidctlpar\hyphpar0\sb240\sa120\keepn\ltrpar\cf0\loch\f5\fs28\lang1033\i\b\kerning1{\rtlch\dbch\af17\hich\af9 \ltrch\loch\f9\loch
12. No Surrender of Others' Freedom.}
\par \pard\plain \s57\dbch\af12\langfe255\dbch\af15\afs24\ql\nowidctlpar\hyphpar0\sb86\sa86\ltrpar\cf0\loch\f4\fs24\lang1033\kerning1{\rtlch\dbch\af15\hich\af3 \ltrch\loch\f3\loch
If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program.}
\par \pard\plain \s2\dbch\af12\langfe255\dbch\af15\afs28\ai\ab\ql\nowidctlpar\hyphpar0\sb240\sa120\keepn\ltrpar\cf0\loch\f5\fs28\lang1033\i\b\kerning1{\rtlch\dbch\af17\hich\af9 \ltrch\loch\f9\loch
13. Remote Network Interaction; Use with the GNU General Public License.}
\par \pard\plain \s57\dbch\af12\langfe255\dbch\af15\afs24\ql\nowidctlpar\hyphpar0\sb86\sa86\ltrpar\cf0\loch\f4\fs24\lang1033\kerning1{\rtlch\dbch\af15\hich\af3 \ltrch\loch\f3\loch
Notwithstanding any other provision of this License, if you modify the Program, your modified version must prominently offer all users interacting with it remotely through a computer network (if your version supports such interaction) an opportunity to receive the Corresponding Source of your version by providing access to the Corresponding Source from a network server at no charge, through some standard or customary means of facilitating copying of software. This Corresponding Source shall include the Corresponding Source for any work covered by version 3 of the GNU General Public License that is incorporated pursuant to the following paragraph.}
\par \pard\plain \s57\dbch\af12\langfe255\dbch\af15\afs24\ql\nowidctlpar\hyphpar0\sb86\sa86\ltrpar\cf0\loch\f4\fs24\lang1033\kerning1{\rtlch\dbch\af15\dbch\af15\hich\af3 \ltrch\loch\f3\loch
Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the work with which it is combined will remain governed by version 3 of the GNU General Public License.}
\par \pard\plain \s2\dbch\af12\langfe255\dbch\af15\afs28\ai\ab\ql\nowidctlpar\hyphpar0\sb240\sa120\keepn\ltrpar\cf0\loch\f5\fs28\lang1033\i\b\kerning1{\rtlch\dbch\af17\hich\af9 \ltrch\loch\f9\loch
14. Revised Versions of this License.}
\par \pard\plain \s57\dbch\af12\langfe255\dbch\af15\afs24\ql\nowidctlpar\hyphpar0\sb86\sa86\ltrpar\cf0\loch\f4\fs24\lang1033\kerning1{\rtlch\dbch\af15\hich\af3 \ltrch\loch\f3\loch
The Free Software Foundation may publish revised and/or new versions of the GNU Affero General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.}
\par \pard\plain \s57\dbch\af12\langfe255\dbch\af15\afs24\ql\nowidctlpar\hyphpar0\sb86\sa86\ltrpar\cf0\loch\f4\fs24\lang1033\kerning1{\rtlch\dbch\af15\hich\af3 \ltrch\loch\f3\loch
Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU Affero General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU Affero General Public License, you may choose any version ever published by the Free Software Foundation.}
\par \pard\plain \s57\dbch\af12\langfe255\dbch\af15\afs24\ql\nowidctlpar\hyphpar0\sb86\sa86\ltrpar\cf0\loch\f4\fs24\lang1033\kerning1{\rtlch\dbch\af15\hich\af3 \ltrch\loch\f3\loch
If the Program specifies that a proxy can decide which future versions of the GNU Affero General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program.}
\par \pard\plain \s57\dbch\af12\langfe255\dbch\af15\afs24\ql\nowidctlpar\hyphpar0\sb86\sa86\ltrpar\cf0\loch\f4\fs24\lang1033\kerning1{\rtlch\dbch\af15\hich\af3 \ltrch\loch\f3\loch
Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version.}
\par \pard\plain \s2\dbch\af12\langfe255\dbch\af15\afs28\ai\ab\ql\nowidctlpar\hyphpar0\sb240\sa120\keepn\ltrpar\cf0\loch\f5\fs28\lang1033\i\b\kerning1{\rtlch\dbch\af17\hich\af9 \ltrch\loch\f9\loch
15. Disclaimer of Warranty.}
\par \pard\plain \s57\dbch\af12\langfe255\dbch\af15\afs24\ql\nowidctlpar\hyphpar0\sb86\sa86\ltrpar\cf0\loch\f4\fs24\lang1033\kerning1{\rtlch\dbch\af15\hich\af3 \ltrch\loch\f3\loch
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.}
\par \pard\plain \s2\dbch\af12\langfe255\dbch\af15\afs28\ai\ab\ql\nowidctlpar\hyphpar0\sb240\sa120\keepn\ltrpar\cf0\loch\f5\fs28\lang1033\i\b\kerning1{\rtlch\dbch\af17\hich\af9 \ltrch\loch\f9\loch
16. Limitation of Liability.}
\par \pard\plain \s57\dbch\af12\langfe255\dbch\af15\afs24\ql\nowidctlpar\hyphpar0\sb86\sa86\ltrpar\cf0\loch\f4\fs24\lang1033\kerning1{\rtlch\dbch\af15\hich\af3 \ltrch\loch\f3\loch
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.}
\par \pard\plain \s2\dbch\af12\langfe255\dbch\af15\afs28\ai\ab\ql\nowidctlpar\hyphpar0\sb240\sa120\keepn\ltrpar\cf0\loch\f5\fs28\lang1033\i\b\kerning1{\rtlch\dbch\af17\hich\af9 \ltrch\loch\f9\loch
17. Interpretation of Sections 15 and 16.}
\par \pard\plain \s57\dbch\af12\langfe255\dbch\af15\afs24\ql\nowidctlpar\hyphpar0\sb86\sa86\ltrpar\cf0\loch\f4\fs24\lang1033\kerning1{\rtlch\dbch\af15\hich\af3 \ltrch\loch\f3\loch
If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee.}
\par \pard\plain \s57\dbch\af12\langfe255\dbch\af15\afs24\ql\nowidctlpar\hyphpar0\sb86\sa86\ltrpar\cf0\loch\f4\fs24\lang1033\kerning1\rtlch\dbch\af15\hich\af3 \ltrch\loch\f3\loch
\par \pard\plain \s57\dbch\af12\langfe255\dbch\af15\afs24\ql\nowidctlpar\hyphpar0\sb86\sa86\ltrpar\cf0\loch\f4\fs24\lang1033\kerning1\ql{\rtlch\dbch\af15\ab\hich\af3 \ltrch\b\loch\f3\loch
END OF TERMS AND CONDITIONS}
\par \pard\plain \s1\dbch\af12\langfe255\dbch\af15\afs32\ab\ql\nowidctlpar\hyphpar0\sb240\sa120\keepn\ltrpar\cf0\loch\f5\fs32\lang1033\b\kerning1{\rtlch\dbch\af17\hich\af9 \ltrch\loch\f9\loch
How to Apply These Terms to Your New Programs}
\par \pard\plain \s57\dbch\af12\langfe255\dbch\af15\afs24\ql\nowidctlpar\hyphpar0\sb86\sa86\ltrpar\cf0\loch\f4\fs24\lang1033\kerning1{\rtlch\dbch\af15\hich\af3 \ltrch\loch\f3\loch
If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms.}
\par \pard\plain \s57\dbch\af12\langfe255\dbch\af15\afs24\ql\nowidctlpar\hyphpar0\sb86\sa86\ltrpar\cf0\loch\f4\fs24\lang1033\kerning1{\rtlch\dbch\af15\hich\af3 \ltrch\loch\f3\loch
To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found.}
\par \pard\plain \s57\dbch\af12\langfe255\dbch\af15\afs24\ql\nowidctlpar\hyphpar0\sb86\sa86\ltrpar\cf0\loch\f4\fs24\lang1033\kerning1\sb85\sa0{\rtlch\dbch\af16\afs20\hich\af10 \ltrch\fs20\loch\f10
}{\rtlch\dbch\af16\afs20\hich\af10 \ltrch\fs20\loch\f10\loch
<one line to give the program's name and a brief idea of what it does.>}
\par \pard\plain \s66\dbch\af12\langfe255\dbch\af15\afs20\ql\nowidctlpar\hyphpar0\sb0\sa0\ltrpar\cf0\loch\f7\fs20\lang1033\kerning1{\rtlch\dbch\af16\dbch\af16\hich\af10 \ltrch\loch\f10
}{\rtlch\dbch\af16\dbch\af16\hich\af10 \ltrch\loch\f10\loch
Copyright (C) <year> <name of author>}
\par \pard\plain \s66\dbch\af12\langfe255\dbch\af15\afs20\ql\nowidctlpar\hyphpar0\sb0\sa0\ltrpar\cf0\loch\f7\fs20\lang1033\kerning1\rtlch\dbch\af16\dbch\af16\hich\af10 \ltrch\loch\f10\loch
\par \pard\plain \s66\dbch\af12\langfe255\dbch\af15\afs20\ql\nowidctlpar\hyphpar0\sb0\sa0\ltrpar\cf0\loch\f7\fs20\lang1033\kerning1{\rtlch\dbch\af16\dbch\af16\hich\af10 \ltrch\loch\f10
}{\rtlch\dbch\af16\dbch\af16\hich\af10 \ltrch\loch\f10\loch
This program is free software: you can redistribute it and/or modify}
\par \pard\plain \s66\dbch\af12\langfe255\dbch\af15\afs20\ql\nowidctlpar\hyphpar0\sb0\sa0\ltrpar\cf0\loch\f7\fs20\lang1033\kerning1{\rtlch\dbch\af16\dbch\af16\hich\af10 \ltrch\loch\f10
}{\rtlch\dbch\af16\dbch\af16\hich\af10 \ltrch\loch\f10\loch
it under the terms of the GNU Affero General Public License as}
\par \pard\plain \s66\dbch\af12\langfe255\dbch\af15\afs20\ql\nowidctlpar\hyphpar0\sb0\sa0\ltrpar\cf0\loch\f7\fs20\lang1033\kerning1{\rtlch\dbch\af16\dbch\af16\hich\af10 \ltrch\loch\f10
}{\rtlch\dbch\af16\dbch\af16\hich\af10 \ltrch\loch\f10\loch
published by the Free Software Foundation, either version 3 of the}
\par \pard\plain \s66\dbch\af12\langfe255\dbch\af15\afs20\ql\nowidctlpar\hyphpar0\sb0\sa0\ltrpar\cf0\loch\f7\fs20\lang1033\kerning1{\rtlch\dbch\af16\dbch\af16\hich\af10 \ltrch\loch\f10
}{\rtlch\dbch\af16\dbch\af16\hich\af10 \ltrch\loch\f10\loch
License, or (at your option) any later version.}
\par \pard\plain \s66\dbch\af12\langfe255\dbch\af15\afs20\ql\nowidctlpar\hyphpar0\sb0\sa0\ltrpar\cf0\loch\f7\fs20\lang1033\kerning1\rtlch\dbch\af16\dbch\af16\hich\af10 \ltrch\loch\f10\loch
\par \pard\plain \s66\dbch\af12\langfe255\dbch\af15\afs20\ql\nowidctlpar\hyphpar0\sb0\sa0\ltrpar\cf0\loch\f7\fs20\lang1033\kerning1{\rtlch\dbch\af16\dbch\af16\hich\af10 \ltrch\loch\f10
}{\rtlch\dbch\af16\dbch\af16\hich\af10 \ltrch\loch\f10\loch
This program is distributed in the hope that it will be useful,}
\par \pard\plain \s66\dbch\af12\langfe255\dbch\af15\afs20\ql\nowidctlpar\hyphpar0\sb0\sa0\ltrpar\cf0\loch\f7\fs20\lang1033\kerning1{\rtlch\dbch\af16\dbch\af16\hich\af10 \ltrch\loch\f10
}{\rtlch\dbch\af16\dbch\af16\hich\af10 \ltrch\loch\f10\loch
but WITHOUT ANY WARRANTY; without even the implied warranty of}
\par \pard\plain \s66\dbch\af12\langfe255\dbch\af15\afs20\ql\nowidctlpar\hyphpar0\sb0\sa0\ltrpar\cf0\loch\f7\fs20\lang1033\kerning1{\rtlch\dbch\af16\dbch\af16\hich\af10 \ltrch\loch\f10
}{\rtlch\dbch\af16\dbch\af16\hich\af10 \ltrch\loch\f10\loch
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the}
\par \pard\plain \s66\dbch\af12\langfe255\dbch\af15\afs20\ql\nowidctlpar\hyphpar0\sb0\sa0\ltrpar\cf0\loch\f7\fs20\lang1033\kerning1{\rtlch\dbch\af16\dbch\af16\hich\af10 \ltrch\loch\f10
}{\rtlch\dbch\af16\dbch\af16\hich\af10 \ltrch\loch\f10\loch
GNU Affero General Public License for more details.}
\par \pard\plain \s66\dbch\af12\langfe255\dbch\af15\afs20\ql\nowidctlpar\hyphpar0\sb0\sa0\ltrpar\cf0\loch\f7\fs20\lang1033\kerning1\rtlch\dbch\af16\dbch\af16\hich\af10 \ltrch\loch\f10\loch
\par \pard\plain \s66\dbch\af12\langfe255\dbch\af15\afs20\ql\nowidctlpar\hyphpar0\sb0\sa0\ltrpar\cf0\loch\f7\fs20\lang1033\kerning1{\rtlch\dbch\af16\dbch\af16\hich\af10 \ltrch\loch\f10
}{\rtlch\dbch\af16\dbch\af16\hich\af10 \ltrch\loch\f10\loch
You should have received a copy of the GNU Affero General Public License}
\par \pard\plain \s66\dbch\af12\langfe255\dbch\af15\afs20\ql\nowidctlpar\hyphpar0\sb0\sa0\ltrpar\cf0\loch\f7\fs20\lang1033\kerning1\sb0\sa85{\rtlch\dbch\af16\dbch\af16\hich\af10 \ltrch\loch\f10
}{\rtlch\dbch\af16\dbch\af16\hich\af10 \ltrch\loch\f10\loch
along with this program. If not, see <https://www.gnu.org/licenses/>.}
\par \pard\plain \s57\dbch\af12\langfe255\dbch\af15\afs24\ql\nowidctlpar\hyphpar0\sb86\sa86\ltrpar\cf0\loch\f4\fs24\lang1033\kerning1\sb85\sa85{\rtlch\dbch\af15\hich\af3 \ltrch\loch\f3\loch
Also add information on how to contact you by electronic and paper mail.}
\par \pard\plain \s57\dbch\af12\langfe255\dbch\af15\afs24\ql\nowidctlpar\hyphpar0\sb86\sa86\ltrpar\cf0\loch\f4\fs24\lang1033\kerning1{\rtlch\dbch\af15\hich\af3 \ltrch\loch\f3\loch
If your software can interact with users remotely through a computer network, you should also make sure that it provides a way for users to get its source. For example, if your program is a web application, its interface could display a "Source" link that leads users to an archive of the code. There are many ways you could offer source, and different solutions will be better for different programs; see section 13 for the specific requirements.}
\par \pard\plain \s57\dbch\af12\langfe255\dbch\af15\afs24\ql\nowidctlpar\hyphpar0\sb86\sa86\ltrpar\cf0\loch\f4\fs24\lang1033\kerning1\sb86\sa86{\rtlch\dbch\af15\dbch\af15\hich\af3 \ltrch\loch\f3\loch
You should also get your employer (if you work as a programmer) or school, if any, to sign a "copyright disclaimer" for the program, if necessary. For more information on this, and how to apply and follow the GNU AGPL, see }{{\field{\*\fldinst HYPERLINK "https://www.gnu.org/licenses/" }{\fldrslt {\rtlch\dbch\af15\dbch\af15\hich\af3 \ltrch\cf9\ul\ulc0\loch\f3\loch
http}{}}}{\field{\*\fldinst HYPERLINK "https://www.gnu.org/licenses/" }{\fldrslt {\rtlch\dbch\af15\dbch\af15\hich\af3 \ltrch\cf9\ul\ulc0\loch\f3\loch
s}{}}}{\field{\*\fldinst HYPERLINK "https://www.gnu.org/licenses/" }{\fldrslt {\rtlch\dbch\af15\dbch\af15\hich\af3 \ltrch\cf9\ul\ulc0\loch\f3\loch
://www.gnu.org/licenses/}{}}}\rtlch\dbch\af15\dbch\af15\hich\af3 \ltrch\loch\f3\loch
.}
\par }

View file

@ -0,0 +1,57 @@
<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs" xmlns:ui="http://wixtoolset.org/schemas/v4/wxs/ui">
<Package Language="1033"
Manufacturer="Syng.Rocks!"
Name="Syng.Rocks! Karaoke Player"
Scope="perUserOrMachine"
UpgradeCode="092e7e0b-5042-47a1-9673-544d9722f8df"
ProductCode="*"
Version="2.1.0">
<MediaTemplate EmbedCab="yes" />
<MajorUpgrade DowngradeErrorMessage="A later version of [ProductName] is already installed. Setup will now exit." />
<ui:WixUI Id="WixUI_InstallDir" InstallDirectory="INSTALLFOLDER" />
<WixVariable Id="WixUILicenseRtf" Value="agpl-3.0.rtf" />
<Icon Id="syng.ico" SourceFile="..\syng.ico"/>
<Property Id="ARPPRODUCTICON" Value="syng.ico" />
<StandardDirectory Id="ProgramFilesFolder">
<Directory Id="INSTALLFOLDER" Name="syng">
<Component Id="ProductComponent">
<File KeyPath="yes" Source="syng\syng.exe" Name="syng.exe"></File>
<Shortcut Id="startmenuShortcut"
Directory="ProgramMenuDir"
Name="Syng.Rocks! Karaoke Player"
WorkingDirectory='INSTALLFOLDER'
Icon="syng.ico"
IconIndex="0"
Advertise="yes" />
<Shortcut Id="UninstallProduct"
Name="Uninstall Syng.Rocks! Karaoke Player"
Target="[SystemFolder]msiexec.exe"
Arguments="/x [ProductCode]"
Description="Uninstalls Syng" />
<Shortcut Id="desktopShortcut"
Directory="DesktopFolder"
Name="Syng.Rocks! Karaoke Player"
WorkingDirectory='INSTALLFOLDER'
Icon="syng.ico"
IconIndex="0"
Advertise="yes" />
</Component>
<Directory Id="DataDir" Name="data">
</Directory>
</Directory>
</StandardDirectory>
<ComponentGroup Id="DataFiles" Directory="DataDir">
<Files Include="syng\data\**">
<Exclude Files="syng\syng.exe" />
</Files>
</ComponentGroup>
<StandardDirectory Id="ProgramMenuFolder">
<Directory Id="ProgramMenuDir" Name="syng"/>
</StandardDirectory>
<StandardDirectory Id="DesktopFolder"/>
<Feature Id="syng">
<ComponentRef Id="ProductComponent" />
<ComponentGroupRef Id="DataFiles" />
</Feature></Package>
</Wix>

View file

@ -0,0 +1,2 @@
SYNG_VERSION = (2, 1, 1)
SYNG_PROTOCOL_VERSION = (2, 1, 1)

View file

@ -13,6 +13,9 @@ be one of:
"""
from __future__ import annotations
from collections.abc import Callable
from functools import partial
import logging
import os
import asyncio
import datetime
@ -32,18 +35,41 @@ from uuid import UUID
from qrcode.main import QRCode
import socketio
from socketio.exceptions import ConnectionError
from socketio.exceptions import ConnectionError, BadNamespaceError
import engineio
from yaml import load, Loader
from syng.player_libmpv import Player, QRPosition
from syng.player_libmpv import Player
from . import jsonencoder
from . import SYNG_VERSION, jsonencoder
from .entry import Entry
from .sources import configure_sources, Source
from .log import logger
class ConnectionState:
__is_connected__ = False
__mpv_running__ = False
def is_connected(self) -> bool:
return self.__is_connected__
def is_mpv_running(self) -> bool:
return self.__mpv_running__
def set_disconnected(self) -> None:
self.__is_connected__ = False
def set_connected(self) -> None:
self.__is_connected__ = True
def set_mpv_running(self) -> None:
self.__mpv_running__ = True
def set_mpv_terminated(self) -> None:
self.__mpv_running__ = False
def default_config() -> dict[str, Optional[int | str]]:
"""
Return a default configuration for the client.
@ -55,14 +81,16 @@ def default_config() -> dict[str, Optional[int | str]]:
"server": "https://syng.rocks",
"room": "",
"preview_duration": 3,
"next_up_position": "top",
"secret": None,
"last_song": None,
"waiting_room_policy": None,
"key": None,
"buffer_in_advance": 2,
"qr_box_size": 5,
"qr_position": "bottom-right",
"qr_box_size": 7,
"qr_position": "top-right",
"show_advanced": False,
"log_level": "info",
}
@ -94,6 +122,8 @@ class State:
* `preview_duration` (`Optional[int]`): The duration in seconds the
playback client shows a preview for the next song. This is accounted for
in the calculation of the ETA for songs later in the queue.
* `next_up_position` (`str`): The position of the "next up" box on the screen.
Possible values are: top or bottom.
* `last_song` (`Optional[datetime.datetime]`): A timestamp, defining the end of
the queue.
* `waiting_room_policy` (Optional[str]): One of:
@ -112,6 +142,8 @@ class State:
- `bottom-right`
* `show_advanced` (`bool`): If the advanced options should be shown in the
gui.
* `log_level` (`str`): The log level of the client. One of: `debug`, `info`, `warning`,
`error`, `critical`. Default is `info`.
:type config: dict[str, Any]:
"""
@ -123,15 +155,17 @@ class State:
waiting_room: list[Entry] = field(default_factory=list)
recent: list[Entry] = field(default_factory=list)
config: dict[str, Any] = field(default_factory=default_config)
# state: State = State()
old_config: dict[str, Any] = field(default_factory=default_config)
class Client:
def __init__(self, config: dict[str, Any]):
self.is_running = False
self.sio = socketio.AsyncClient(json=jsonencoder)
config["config"] = default_config() | config["config"]
self.connection_event = asyncio.Event()
self.connection_state = ConnectionState()
self.set_log_level(config["config"]["log_level"])
self.sio = socketio.AsyncClient(json=jsonencoder, reconnection_attempts=-1)
self.loop: Optional[asyncio.AbstractEventLoop] = None
self.skipped: list[UUID] = []
self.sources = configure_sources(config["sources"])
@ -139,12 +173,30 @@ class Client:
self.currentLock = asyncio.Semaphore(0)
self.buffer_in_advance = config["config"]["buffer_in_advance"]
self.player = Player(
f"{config['config']['server']}/{config['config']['room']}",
1 if config["config"]["qr_box_size"] < 1 else config["config"]["qr_box_size"],
QRPosition.from_string(config["config"]["qr_position"]),
config["config"],
self.quit_callback,
self.state.queue,
)
self.connection_state.set_mpv_running()
logger.debug(f"MPV running: {self.connection_state.is_mpv_running()} ")
self.register_handlers()
self.queue_callbacks: list[Callable[[list[Entry]], None]] = []
def add_queue_callback(self, callback: Callable[[list[Entry]], None]) -> None:
self.queue_callbacks.append(callback)
def set_log_level(self, level: str) -> None:
match level:
case "debug":
logger.setLevel(logging.DEBUG)
case "info":
logger.setLevel(logging.INFO)
case "warning":
logger.setLevel(logging.WARNING)
case "error":
logger.setLevel(logging.ERROR)
case "critical":
logger.setLevel(logging.CRITICAL)
def register_handlers(self) -> None:
self.sio.on("update_config", self.handle_update_config)
@ -154,8 +206,83 @@ class Client:
self.sio.on("get-meta-info", self.handle_get_meta_info)
self.sio.on("play", self.handle_play)
self.sio.on("search", self.handle_search)
self.sio.on("client-registered", self.handle_client_registered)
self.sio.on("request-config", self.handle_request_config)
self.sio.on("msg", self.handle_msg)
self.sio.on("disconnect", self.handle_disconnect)
self.sio.on("room-removed", self.handle_room_removed)
self.sio.on("*", self.handle_unknown_message)
self.sio.on("connect_error", self.handle_connect_error)
async def handle_connect_error(self, data: dict[str, Any]) -> None:
"""
Handle the "connect_error" message.
This function is called when the client fails to connect to the server.
It will log the error and disconnect from the server.
:param data: A dictionary with the error message.
:type data: dict[str, Any]
:rtype: None
"""
logger.critical("Connection error: %s", data["message"])
await self.ensure_disconnect()
async def handle_unknown_message(self, event: str, data: dict[str, Any]) -> None:
"""
Handle unknown messages.
This function is called when the client receives a message, that is not
handled by any of the other handlers. It will log the event and data.
:param event: The name of the event
:type event: str
:param data: The data of the event
:type data: dict[str, Any]
:rtype: None
"""
logger.warning(f"Unknown message: {event} with data: {data}")
async def handle_disconnect(self) -> None:
self.connection_state.set_disconnected()
await self.ensure_disconnect()
async def ensure_disconnect(self) -> None:
"""
Ensure that the client is disconnected from the server and the player is
terminated.
"""
logger.info("Disconnecting from server")
logger.debug(f"Connection: {self.connection_state.is_connected()}")
logger.debug(f"MPV running: {self.connection_state.is_mpv_running()}")
if self.connection_state.is_connected():
await self.sio.disconnect()
if self.connection_state.is_mpv_running():
if self.player.mpv is not None:
self.player.mpv.terminate()
async def handle_msg(self, data: dict[str, Any]) -> None:
"""
Handle the "msg" message.
This function is used to print messages from the server to the console.
:param data: A dictionary with the `msg` entry.
:type data: dict[str, Any]
:rtype: None
"""
msg_type = data.get("type", "info")
match msg_type:
case "debug":
logger.debug(data["msg"])
case "info":
logger.info(data["msg"])
case "warning":
logger.warning(data["msg"])
case "error":
logger.error(data["msg"])
case "critical":
logger.critical(data["msg"])
async def handle_update_config(self, data: dict[str, Any]) -> None:
"""
@ -169,6 +296,23 @@ class Client:
"""
self.state.config = default_config() | data
async def send_update_config(self) -> None:
"""
Send the current configuration to the server.
This is used to update the server with the current configuration of the
client. This is done by sending a "update_config" message to the server.
:rtype: None
"""
changes = dict()
for key, value in self.state.config.items():
if key in default_config() and default_config()[key] != value:
changes[key] = value
await self.sio.emit("update_config", self.state.config)
async def handle_skip_current(self, data: dict[str, Any]) -> None:
"""
Handle the "skip-current" message.
@ -187,13 +331,11 @@ class Client:
self.skipped.append(data["uuid"])
entry = Entry(**data)
print("Skipping: ", entry.title)
logger.info("Skipping: %s", entry.title)
source = self.sources[entry.source]
await source.skip_current(Entry(**data))
self.player.skip_current()
# if self.state.current_source is not None:
# await self.state.current_source.skip_current(Entry(**data))
async def handle_state(self, data: dict[str, Any]) -> None:
"""
@ -210,40 +352,76 @@ class Client:
:type data: dict[str, Any]
:rtype: None
"""
self.state.queue = [Entry(**entry) for entry in data["queue"]]
await self.connection_event.wait()
self.state.queue.clear()
self.state.queue.extend([Entry(**entry) for entry in data["queue"]])
self.state.waiting_room = [Entry(**entry) for entry in data["waiting_room"]]
self.state.recent = [Entry(**entry) for entry in data["recent"]]
for pos, entry in enumerate(self.state.queue[0 : self.buffer_in_advance]):
logger.info("Buffering: %s", entry.title)
await self.sources[entry.source].buffer(entry, pos)
source = self.sources[entry.source]
if entry.incomplete_data:
meta_info = await source.get_missing_metadata(entry)
await self.sio.emit("meta-info", {"uuid": entry.uuid, "meta": meta_info})
entry.update(**meta_info)
if entry.ident in source.downloaded_files:
continue
logger.info("Buffering: %s (%d s)", entry.title, entry.duration)
started = datetime.datetime.now()
try:
await self.sources[entry.source].buffer(entry, pos)
logger.info(
"Buffered %s in %d seconds",
entry.title,
(datetime.datetime.now() - started).seconds,
)
except ValueError as e:
logger.error("Error buffering: %s", e)
await self.sio.emit("skip", {"uuid": entry.uuid})
for callback in self.queue_callbacks:
callback(self.state.queue)
async def handle_connect(self) -> None:
"""
Handle the "connect" message.
Called when the client successfully connects or reconnects to the server.
Sends a `register-client` message to the server with the initial state and
configuration of the client, consiting of the currently saved
:py:attr:`State.queue` and :py:attr:`State.recent` field of the global
:py:class:`State`, as well a room code the client wants to connect to, a
secret to secure the access to the room and a config dictionary.
This is called when the client successfully connects to the server
and starts the player.
If the room code is `None`, the server will issue a room code.
Start listing all configured :py:class:`syng.sources.source.Source` to the
server via a "sources" message. This message will be handled by the
:py:func:`syng.server.handle_sources` function and may request additional
configuration for each source.
This message will be handled by the
:py:func:`syng.server.handle_register_client` function of the server.
If there is no song playing, start requesting the first song of the queue
with a "get-first" message. This will be handled on the server by the
:py:func:`syng.server.handle_get_first` function.
:rtype: None
"""
logger.info("Connected to server")
data = {
"queue": self.state.queue,
"waiting_room": self.state.waiting_room,
"recent": self.state.recent,
"config": self.state.config,
}
await self.sio.emit("register-client", data)
logger.info("Connected to server: %s", self.state.config["server"])
self.player.start()
room = self.state.config["room"]
server = self.state.config["server"]
logger.info("Connected to room: %s", room)
qr_string = f"{server}/{room}"
self.player.update_qr(qr_string)
# this is borked on windows
if os.name != "nt":
print(f"Join here: {server}/{room}")
qr = QRCode(box_size=20, border=2)
qr.add_data(qr_string)
qr.make()
qr.print_ascii()
await self.sio.emit("sources", {"sources": list(self.sources.keys())})
if self.state.current_source is None: # A possible race condition can occur here
await self.sio.emit("get-first")
self.connection_event.set()
self.connection_state.set_connected()
async def handle_get_meta_info(self, data: dict[str, Any]) -> None:
"""
@ -302,6 +480,14 @@ class Client:
f"Playing: {entry.artist} - {entry.title} [{entry.album}] "
f"({entry.source}) for {entry.performer}"
)
logger.info(
"Playing: %s - %s [%s] (%s) for %s",
entry.artist,
entry.title,
entry.album,
entry.source,
entry.performer,
)
if entry.uuid not in self.skipped:
try:
if self.state.config["preview_duration"] > 0:
@ -310,13 +496,19 @@ class Client:
if entry.uuid not in self.skipped:
self.skipped = []
await self.player.play(video, audio, source.extra_mpv_options)
except ValueError as e:
logger.error("Error playing: %s", e)
self.skipped.append(entry.uuid)
except Exception: # pylint: disable=broad-except
print_exc()
if self.skipped:
self.skipped.remove(entry.uuid)
await self.sio.emit("get-first")
else:
await self.sio.emit("pop-then-get-next")
try:
await self.sio.emit("pop-then-get-next")
except BadNamespaceError:
pass
async def handle_search(self, data: dict[str, Any]) -> None:
"""
@ -332,8 +524,10 @@ class Client:
:type data: dict[str, Any]
:rtype: None
"""
logger.debug("Handling search: %s (%s)", data["query"], data["search_id"])
query = data["query"]
sid = data["sid"]
search_id = data["search_id"]
results_list = await asyncio.gather(
*[source.search(query) for source in self.sources.values()]
)
@ -343,51 +537,11 @@ class Client:
for source_result in results_list
for search_result in source_result
]
logger.debug("Search results: %d results", len(results))
await self.sio.emit("search-results", {"results": results, "sid": sid})
async def handle_client_registered(self, data: dict[str, Any]) -> None:
"""
Handle the "client-registered" message.
If the registration was successfull (`data["success"]` == `True`), store
the room code in the global :py:class:`State` and print out a link to join
the webclient.
Start listing all configured :py:class:`syng.sources.source.Source` to the
server via a "sources" message. This message will be handled by the
:py:func:`syng.server.handle_sources` function and may request additional
configuration for each source.
If there is no song playing, start requesting the first song of the queue
with a "get-first" message. This will be handled on the server by the
:py:func:`syng.server.handle_get_first` function.
:param data: A dictionary containing a `success` and a `room` entry.
:type data: dict[str, Any]
:rtype: None
"""
if data["success"]:
self.player.start()
logger.info("Registered")
qr_string = f"{self.state.config['server']}/{data['room']}"
self.player.update_qr(qr_string)
# this is borked on windows
if os.name != "nt":
print(f"Join here: {self.state.config['server']}/{data['room']}")
qr = QRCode(box_size=20, border=2)
qr.add_data(qr_string)
qr.make()
qr.print_ascii()
self.state.config["room"] = data["room"]
await self.sio.emit("sources", {"sources": list(self.sources.keys())})
if self.state.current_source is None: # A possible race condition can occur here
await self.sio.emit("get-first")
else:
logger.warning("Registration failed")
await self.sio.disconnect()
await self.sio.emit(
"search-results", {"results": results, "sid": sid, "search_id": search_id}
)
async def handle_request_config(self, data: dict[str, Any]) -> None:
"""
@ -408,6 +562,7 @@ class Client:
:type data: dict[str, Any]
:rtype: None
"""
await self.connection_event.wait()
if data["source"] in self.sources:
config: dict[str, Any] | list[dict[str, Any]] = await self.sources[
data["source"]
@ -424,6 +579,7 @@ class Client:
"total": num_chunks,
},
)
await asyncio.sleep(0.1) # Avoiding qasync errors
else:
await self.sio.emit("config", {"source": data["source"], "config": config})
@ -443,22 +599,99 @@ class Client:
elif updated_config is not None:
await self.sio.emit("config", {"source": data["source"], "config": updated_config})
def signal_handler(self) -> None:
def signal_handler(self, loop: asyncio.AbstractEventLoop) -> None:
"""
Signal handler for the client.
This function is called when the client receives a signal to terminate. It
will disconnect from the server and kill the current player.
:param loop: The asyncio event loop
:type loop: asyncio.AbstractEventLoop
:rtype: None
"""
engineio.async_client.async_signal_handler()
asyncio.ensure_future(self.ensure_disconnect(), loop=loop)
def quit_callback(self) -> None:
"""
Callback function for the player, terminating the player and disconnecting
:rtype: None
"""
self.connection_state.set_mpv_terminated()
if self.loop is not None:
asyncio.run_coroutine_threadsafe(self.ensure_disconnect(), self.loop)
asyncio.run_coroutine_threadsafe(self.kill_mpv(), self.loop)
async def kill_mpv(self) -> None:
"""
Kill the mpv process. Needs to be called in a seperate thread, because of mpv...
See https://github.com/jaseg/python-mpv/issues/114#issuecomment-1214305952
:rtype: None
"""
if self.player.mpv is not None:
self.player.mpv.terminate()
def quit_callback(self) -> None:
if self.loop is not None:
asyncio.run_coroutine_threadsafe(self.sio.disconnect(), self.loop)
async def remove_room(self) -> None:
"""
Remove the room from the server.
"""
if self.state.config["room"] is not None:
logger.info("Removing room %s from server", self.state.config["room"])
await self.sio.emit("remove-room", {"room": self.state.config["room"]})
def export_queue(self, filename: str) -> None:
"""
Export the current queue to a file.
:param filename: The name of the file to export the queue to.
:type filename: str
:rtype: None
"""
with open(filename, "w", encoding="utf8") as file:
jsonencoder.dump(
{
"queue": self.state.queue,
"waiting_room": self.state.waiting_room,
"recent": self.state.recent,
},
file,
indent=2,
ensure_ascii=False,
)
async def import_queue(self, filename: str) -> None:
"""
Import a queue from a file.
:param filename: The name of the file to import the queue from.
:type filename: str
:rtype: None
"""
with open(filename, "r", encoding="utf8") as file:
data = jsonencoder.load(file)
queue = [Entry(**entry) for entry in data["queue"]]
waiting_room = [Entry(**entry) for entry in data["waiting_room"]]
recent = [Entry(**entry) for entry in data["recent"]]
await self.sio.emit(
"import-queue", {"queue": queue, "waiting_room": waiting_room, "recent": recent}
)
async def handle_room_removed(self, data: dict[str, Any]) -> None:
"""
Handle the "room-removed" message.
This is called when the server removes the room, that this client is
connected to. We simply log this event.
:param data: A dictionary with the `room` entry.
:type data: dict[str, Any]
:rtype: None
"""
logger.info("Room removed: %s", data["room"])
async def start_client(self, config: dict[str, Any]) -> None:
"""
@ -491,22 +724,28 @@ class Client:
self.state.config["key"] = ""
try:
await self.sio.connect(self.state.config["server"])
data = {
"type": "playback",
"queue": self.state.queue,
"waiting_room": self.state.waiting_room,
"recent": self.state.recent,
"config": self.state.config,
"version": SYNG_VERSION,
}
await self.sio.connect(self.state.config["server"], auth=data)
# this is not supported under windows
if os.name != "nt":
asyncio.get_event_loop().add_signal_handler(signal.SIGINT, self.signal_handler)
loop = asyncio.get_event_loop()
loop.add_signal_handler(signal.SIGINT, partial(self.signal_handler, loop))
self.is_running = True
await self.sio.wait()
except asyncio.CancelledError:
pass
except ConnectionError:
logger.error("Could not connect to server")
except ConnectionError as e:
logger.warning("Could not connect to server: %s", e.args[0])
finally:
self.is_running = False
if self.player.mpv is not None:
self.player.mpv.terminate()
await self.ensure_disconnect()
def create_async_and_start_client(
@ -559,6 +798,9 @@ def run_client(args: Namespace) -> None:
if "config" not in config:
config["config"] = {}
if "sources" not in config:
config["sources"] = {"youtube": {"enabled": True}}
if args.room:
config["config"] |= {"room": args.room}
if args.secret:

View file

@ -13,6 +13,7 @@ class ConfigOption(Generic[T]):
type: Option[T]
description: str
default: T
send_to_server: bool = False
class BoolOption(Option[bool]):

View file

@ -26,8 +26,17 @@ try:
except ImportError:
pass
os.environ["QT_API"] = "pyqt6"
from qasync import QEventLoop, QApplication
from PyQt6.QtCore import QTimer, Qt
from PyQt6.QtCore import (
QAbstractListModel,
QModelIndex,
QObject,
QTimer,
Qt,
pyqtSignal,
pyqtSlot,
)
from PyQt6.QtGui import QCloseEvent, QIcon, QPixmap
from PyQt6.QtWidgets import (
QCheckBox,
@ -39,6 +48,7 @@ from PyQt6.QtWidgets import (
QLabel,
QLayout,
QLineEdit,
QListView,
QMainWindow,
QMessageBox,
QPushButton,
@ -47,6 +57,7 @@ from PyQt6.QtWidgets import (
QSpinBox,
QTabBar,
QTabWidget,
QTextEdit,
QVBoxLayout,
QWidget,
)
@ -57,6 +68,7 @@ import platformdirs
from . import resources # noqa
from .client import Client, default_config
from .log import logger
from .entry import Entry
from .sources import available_sources
from .config import (
@ -71,7 +83,28 @@ from .config import (
)
# TODO: ScrollableFrame
class QueueModel(QAbstractListModel):
def __init__(self, queue: list[Entry]) -> None:
super().__init__()
self.queue = queue
def update(self, queue: list[Entry]) -> None:
self.queue = queue
self.dataChanged.emit(self.index(0, 0), self.index(self.rowCount() - 1, 0))
def data(self, index: QModelIndex, role: int = Qt.ItemDataRole.DisplayRole) -> Any:
if role == Qt.ItemDataRole.DisplayRole:
entry = self.queue[index.row()]
return f"{entry.title} - {entry.artist} [{entry.album}]\n{entry.performer}"
def rowCount(self, parent: QModelIndex = QModelIndex()) -> int:
return len(self.queue)
class QueueView(QListView):
pass
class OptionFrame(QWidget):
def add_bool_option(self, name: str, description: str, value: bool = False) -> None:
label = QLabel(description, self)
@ -207,6 +240,7 @@ class OptionFrame(QWidget):
label = QLabel(description, self)
self.int_options[name] = QSpinBox(self)
self.int_options[name].setMaximum(9999)
self.int_options[name].setValue(value)
self.form_layout.addRow(label, self.int_options[name])
self.rows[name] = (label, self.int_options[name])
@ -449,6 +483,11 @@ class GeneralConfig(OptionFrame):
self.add_int_option(
"preview_duration", "Preview duration in seconds", int(config["preview_duration"])
)
self.add_int_option(
"next_up_time",
"Time remaining before Next Up Box is shown",
int(config["next_up_time"]),
)
self.add_string_option(
"key", "Key for server (if necessary)", config["key"], is_password=True
)
@ -464,6 +503,12 @@ class GeneralConfig(OptionFrame):
["top-left", "top-right", "bottom-left", "bottom-right"],
config["qr_position"],
)
self.add_choose_option(
"log_level",
"Log Level",
["debug", "info", "warning", "error", "critical"],
config["log_level"],
)
self.simple_options = ["server", "room", "secret"]
@ -488,9 +533,14 @@ class GeneralConfig(OptionFrame):
class SyngGui(QMainWindow):
def closeEvent(self, a0: Optional[QCloseEvent]) -> None:
if self.client is not None:
if self.client.player is not None and self.client.player.mpv is not None:
self.client.player.mpv.terminate()
self.client.quit_callback()
self.log_label_handler.cleanup()
self.destroy()
sys.exit(0)
def add_buttons(self, show_advanced: bool) -> None:
self.buttons_layout = QHBoxLayout()
@ -518,15 +568,84 @@ class SyngGui(QMainWindow):
spacer_item = QSpacerItem(40, 20, QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Minimum)
self.buttons_layout.addItem(spacer_item)
self.savebutton = QPushButton("Save")
self.savebutton.clicked.connect(self.save_config)
self.buttons_layout.addWidget(self.savebutton)
if os.getenv("SYNG_DEBUG", "0") == "1":
self.print_background_tasks_button = QPushButton("Print Background Tasks")
self.print_background_tasks_button.clicked.connect(
lambda: print(asyncio.all_tasks(self.loop))
)
self.buttons_layout.addWidget(self.print_background_tasks_button)
self.startbutton = QPushButton("Save and Start")
self.startbutton = QPushButton("Connect")
self.startbutton.clicked.connect(self.start_syng_client)
self.buttons_layout.addWidget(self.startbutton)
def export_queue(self) -> None:
if self.client is not None:
filename = QFileDialog.getSaveFileName(self, "Export Queue", "", "JSON Files (*.json)")[
0
]
if filename:
self.client.export_queue(filename)
else:
QMessageBox.warning(
self,
"No Client Running",
"You need to start the client before you can export the queue.",
)
def import_queue(self) -> None:
if self.client is not None:
filename = QFileDialog.getOpenFileName(self, "Import Queue", "", "JSON Files (*.json)")[
0
]
if filename:
asyncio.create_task(self.client.import_queue(filename))
else:
QMessageBox.warning(
self,
"No Client Running",
"You need to start the client before you can import a queue.",
)
def clear_cache(self) -> None:
"""
Clear the cache directory of the client.
"""
cache_dir = platformdirs.user_cache_dir("syng")
if os.path.exists(cache_dir):
answer = QMessageBox.question(
self,
"Clear Cache",
f"Are you sure you want to clear the cache directory at {cache_dir}?",
QMessageBox.StandardButton.Yes | QMessageBox.StandardButton.No,
)
if answer == QMessageBox.StandardButton.Yes:
for root, dirs, files in os.walk(cache_dir, topdown=False):
for name in files:
os.remove(os.path.join(root, name))
for name in dirs:
os.rmdir(os.path.join(root, name))
QMessageBox.information(self, "Cache Cleared", "The cache has been cleared.")
def remove_room(self) -> None:
if self.client is not None:
answer = QMessageBox.question(
self,
"Remove Room",
"Are you sure you want to remove the room on the server? This will disconnect all clients and clear the queue.",
QMessageBox.StandardButton.Yes | QMessageBox.StandardButton.No,
)
if answer == QMessageBox.StandardButton.Yes:
asyncio.create_task(self.client.remove_room())
else:
QMessageBox.warning(
self,
"No Client Running",
"You need to start the client before you can remove a room.",
)
def toggle_advanced(self, state: bool) -> None:
self.resetbutton.setVisible(state)
self.exportbutton.setVisible(state)
@ -588,13 +707,10 @@ class SyngGui(QMainWindow):
self.qr_label = QLabel(self.qr_widget)
self.linklabel = QLabel(self.qr_widget)
self.notification_label = QLabel("", self.qr_widget)
self.qr_layout.addWidget(self.qr_label)
self.qr_layout.addWidget(self.linklabel)
self.qr_layout.addWidget(self.notification_label)
self.qr_layout.setAlignment(self.linklabel, Qt.AlignmentFlag.AlignCenter)
self.qr_layout.setAlignment(self.notification_label, Qt.AlignmentFlag.AlignCenter)
self.qr_layout.setAlignment(self.qr_label, Qt.AlignmentFlag.AlignCenter)
self.linklabel.setOpenExternalLinks(True)
@ -611,9 +727,62 @@ class SyngGui(QMainWindow):
self.tabs[source_name] = SourceTab(self, source_name, source_config)
self.tabview.addTab(self.tabs[source_name], source_name)
def add_log_tab(self) -> None:
self.log_tab = QWidget(parent=self.central_widget)
self.log_layout = QVBoxLayout(self.log_tab)
self.log_tab.setLayout(self.log_layout)
self.log_text = QTextEdit(self.log_tab)
self.log_text.setReadOnly(True)
self.log_layout.addWidget(self.log_text)
self.tabview.addTab(self.log_tab, "Logs")
def add_queue_tab(self) -> None:
self.queue_tab = QWidget(parent=self.central_widget)
self.queue_layout = QVBoxLayout(self.queue_tab)
self.queue_tab.setLayout(self.queue_layout)
self.queue_list_view: QueueView = QueueView(self.queue_tab)
self.queue_layout.addWidget(self.queue_list_view)
self.tabview.addTab(self.queue_tab, "Queue")
def add_admin_tab(self) -> None:
self.admin_tab = QWidget(parent=self.central_widget)
self.admin_layout = QVBoxLayout(self.admin_tab)
self.admin_layout.setAlignment(Qt.AlignmentFlag.AlignVCenter)
self.admin_tab.setLayout(self.admin_layout)
self.remove_room_button = QPushButton("Remove Room", self.admin_tab)
self.remove_room_button.clicked.connect(self.remove_room)
self.admin_layout.addWidget(self.remove_room_button)
self.remove_room_button.setDisabled(True)
self.export_queue_button = QPushButton("Export Queue", self.admin_tab)
self.export_queue_button.clicked.connect(self.export_queue)
self.admin_layout.addWidget(self.export_queue_button)
self.export_queue_button.setDisabled(True)
self.import_queue_button = QPushButton("Import Queue", self.admin_tab)
self.import_queue_button.clicked.connect(self.import_queue)
self.admin_layout.addWidget(self.import_queue_button)
self.import_queue_button.setDisabled(True)
self.update_config_button = QPushButton("Update Config")
self.update_config_button.clicked.connect(self.update_config)
self.admin_layout.addWidget(self.update_config_button)
self.update_config_button.setDisabled(True)
self.clear_cache_button = QPushButton("Clear Cache", self.admin_tab)
self.clear_cache_button.clicked.connect(self.clear_cache)
self.admin_layout.addWidget(self.clear_cache_button)
self.tabview.addTab(self.admin_tab, "Admin")
def __init__(self) -> None:
super().__init__()
self.setWindowTitle("Syng")
self.setWindowTitle("Syng.Rocks!")
if os.name != "nt":
self.setWindowIcon(QIcon(":/icons/syng.ico"))
@ -639,8 +808,20 @@ class SyngGui(QMainWindow):
for source_name in available_sources:
self.add_source_config(source_name, config["sources"][source_name])
# self.add_queue_tab()
self.add_admin_tab()
self.add_log_tab()
self.update_qr()
self.logqueue: Queue[logging.LogRecord] = Queue()
logger.addHandler(QueueHandler(self.logqueue))
self.log_label_handler = LoggingLabelHandler(self)
self.log_label_handler.log_signal_emiter.log_signal.connect(self.print_log)
self.syng_client_logging_listener = QueueListener(self.logqueue, self.log_label_handler)
self.syng_client_logging_listener.start()
self.setCentralWidget(self.central_widget)
self.timer = QTimer()
@ -742,39 +923,59 @@ class SyngGui(QMainWindow):
self.timer.stop()
return
if not self.client.is_running:
if not self.client.connection_state.is_connected():
self.client = None
self.set_client_button_start()
else:
self.set_client_button_stop()
def set_client_button_stop(self) -> None:
self.startbutton.setText("Stop")
self.general_config.string_options["server"].setEnabled(False)
self.general_config.string_options["room"].setEnabled(False)
self.update_config_button.setDisabled(False)
self.remove_room_button.setDisabled(False)
self.export_queue_button.setDisabled(False)
self.import_queue_button.setDisabled(False)
self.startbutton.setText("Disconnect")
def set_client_button_start(self) -> None:
self.startbutton.setText("Save and Start")
self.general_config.string_options["server"].setEnabled(True)
self.general_config.string_options["room"].setEnabled(True)
self.update_config_button.setDisabled(True)
self.remove_room_button.setDisabled(True)
self.export_queue_button.setDisabled(True)
self.import_queue_button.setDisabled(True)
self.startbutton.setText("Connect")
def start_syng_client(self) -> None:
if self.client is None or not self.client.is_running:
if self.client is None or not self.client.connection_state.is_connected():
logger.debug("Starting client")
self.save_config()
config = self.gather_config()
queue: Queue[logging.LogRecord] = Queue()
self.syng_client_logging_listener = QueueListener(
queue, LoggingLabelHandler(self.notification_label)
)
self.syng_client_logging_listener.start()
logger.addHandler(QueueHandler(queue))
self.client = Client(config)
asyncio.run_coroutine_threadsafe(self.client.start_client(config), self.loop)
self.notification_label.setText("")
# model = QueueModel(self.client.state.queue)
# self.queue_list_view.setModel(model)
# self.client.add_queue_callback(model.update)
self.timer.start(500)
self.set_client_button_stop()
else:
logger.debug("Stopping client")
self.client.quit_callback()
self.set_client_button_start()
@pyqtSlot(str, int)
def print_log(self, log: str, level: int) -> None:
if level == logging.CRITICAL:
log_msg_box = QMessageBox(self)
log_msg_box.setIcon(QMessageBox.Icon.Critical)
log_msg_box.setWindowTitle("Critical Error")
log_msg_box.setText(log)
log_msg_box.exec()
self.log_text.append(f"[{datetime.now().strftime('%H:%M:%S')}] {log}")
def change_qr(self, data: str) -> None:
qr = QRCode(box_size=10, border=2)
qr.add_data(data)
@ -799,16 +1000,28 @@ class SyngGui(QMainWindow):
class LoggingLabelHandler(logging.Handler):
def __init__(self, label: QLabel):
class LogSignalEmiter(QObject):
log_signal = pyqtSignal(str, int)
def __init__(self, parent: Optional[QObject] = None):
super().__init__(parent)
def __init__(self, parent: Optional[QObject] = None):
super().__init__()
self.label = label
self.log_signal_emiter = self.LogSignalEmiter(parent)
self._cleanup = False
def emit(self, record: logging.LogRecord) -> None:
self.label.setText(self.format(record))
if not self._cleanup: # This could race condition, but it's not a big
# deal since it only causes a race condition,
# when the program ends
self.log_signal_emiter.log_signal.emit(self.format(record), record.levelno)
def cleanup(self) -> None:
self._cleanup = True
def run_gui() -> None:
# initialize cache dir
os.makedirs(platformdirs.user_cache_dir("syng"), exist_ok=True)
base_dir = os.path.dirname(__file__)
if getattr(sys, "frozen", False) and hasattr(sys, "_MEIPASS"):
@ -824,7 +1037,7 @@ def run_gui() -> None:
app.setWindowIcon(QIcon(os.path.join(base_dir, "syng.ico")))
else:
app.setWindowIcon(QIcon(":/icons/syng.ico"))
app.setApplicationName("Syng")
app.setApplicationName("Syng.Rocks!")
app.setDesktopFileName("rocks.syng.Syng")
window = SyngGui()
window.show()

View file

@ -34,10 +34,20 @@ class SyngEncoder(json.JSONEncoder):
def dumps(obj: Any, **kw: Any) -> str:
"""Wrap around ``json.dump`` with the :py:class:`SyngEncoder`."""
"""Wrap around ``json.dumps`` with the :py:class:`SyngEncoder`."""
return json.dumps(obj, cls=SyngEncoder, **kw)
def dump(obj: Any, fp: Any, **kw: Any) -> None:
"""Forward everything to ``json.dump``."""
json.dump(obj, fp, cls=SyngEncoder, **kw)
def loads(string: str, **kw: Any) -> Any:
"""Forward everything to ``json.loads``."""
return json.loads(string, **kw)
def load(fp: Any, **kw: Any) -> Any:
"""Forward everything to ``json.load``."""
return json.load(fp, **kw)

View file

@ -11,7 +11,8 @@ run the client or server functions.
Client usage: syng client [-h] [--room ROOM] [--secret SECRET] \
[--config-file CONFIG_FILE] [--server SERVER]
Server usage: syng server [-h] [--host HOST] [--port PORT] [--root-folder ROOT_FOLDER] \
[--registration-keyfile REGISTRATION_KEYFILE] [--private] [--restricted]
[--registration-keyfile REGISTRATION_KEYFILE] [--private] [--restricted] \
[--admin-password PASSWORD]
GUI usage: syng gui
The config file for the client should be a yaml file in the following style::
@ -40,6 +41,7 @@ import traceback
import platformdirs
gui_exception = ""
try:
from syng.gui import run_gui
@ -108,6 +110,14 @@ def main() -> None:
server_parser.add_argument("--registration-keyfile", "-k", default=None)
server_parser.add_argument("--private", "-P", action="store_true", default=False)
server_parser.add_argument("--restricted", "-R", action="store_true", default=False)
server_parser.add_argument("--admin-password", "-A", default=None)
server_parser.add_argument("--admin-port", "-a", type=int, default=None)
server_parser.add_argument(
"--log-level",
"-l",
default="INFO",
choices=["DEBUG", "INFO", "WARNING", "ERROR", "FATAL"],
)
args = parser.parse_args()
@ -116,12 +126,17 @@ def main() -> None:
elif args.action == "server":
run_server(args)
elif args.action == "gui":
run_gui()
else:
try:
run_gui()
except NameError:
if not GUI_AVAILABLE:
print("GUI module is not available.")
print(gui_exception)
else:
run_gui()
else:
if not GUI_AVAILABLE:
print("GUI module is not available.")
print(gui_exception)
else:
run_gui()
if __name__ == "__main__":

View file

@ -2,7 +2,7 @@ import asyncio
from enum import Enum
import locale
import sys
from typing import Callable, Iterable, Optional, cast
from typing import Any, Callable, Iterable, Optional, cast
from qrcode.main import QRCode
import mpv
import os
@ -34,21 +34,23 @@ class QRPosition(Enum):
class Player:
def __init__(
self,
qr_string: str,
qr_box_size: int,
qr_position: QRPosition,
config: dict[str, Any],
quit_callback: Callable[[], None],
queue: Optional[list[Entry]] = None,
) -> None:
locale.setlocale(locale.LC_ALL, "C")
qr_string = f"{config['server']}/{config['room']}"
self.queue = queue if queue is not None else []
self.base_dir = f"{os.path.dirname(__file__)}/static"
if getattr(sys, "frozen", False) and hasattr(sys, "_MEIPASS"):
self.base_dir = getattr(sys, "_MEIPASS")
self.closing = False
self.mpv: Optional[mpv.MPV] = None
self.qr_overlay: Optional[mpv.ImageOverlay] = None
self.qr_box_size = qr_box_size
self.qr_position = qr_position
self.qr_box_size = 1 if config["qr_box_size"] < 1 else config["qr_box_size"]
self.qr_position = QRPosition.from_string(config["qr_position"])
self.next_up_time = config.get("next_up_time", 20)
self.update_qr(
qr_string,
)
@ -57,24 +59,70 @@ class Player:
"scale": "bilinear",
}
self.quit_callback = quit_callback
self.callback_audio_load: Optional[str] = None
def start(self) -> None:
self.mpv = mpv.MPV(ytdl=True, input_default_bindings=True, input_vo_keyboard=True, osc=True)
self.mpv.title = "Syng - Player"
self.mpv = mpv.MPV(
ytdl=True,
input_default_bindings=True,
input_vo_keyboard=True,
osc=True,
osd_border_style="background-box",
osd_back_color="#30008000",
osd_color="#50FFFFFF",
osd_outline_color="#50000000",
osd_shadow_offset=10,
osd_align_x="center",
osd_align_y="top",
)
self.next_up_overlay_id = self.mpv.allocate_overlay_id()
self.next_up_y_pos = -120
self.mpv.title = "Syng.Rocks! - Player"
self.mpv.keep_open = "yes"
self.mpv.play(
f"{self.base_dir}/background.png",
)
self.mpv.observe_property("osd-width", self.osd_size_handler)
self.mpv.observe_property("osd-height", self.osd_size_handler)
self.mpv.observe_property("playtime-remaining", self.playtime_remaining_handler)
self.mpv.register_event_callback(self.event_callback)
def playtime_remaining_handler(self, attribute: str, value: float) -> None:
if self.mpv is None:
print("MPV is not initialized", file=sys.stderr)
return
hidden = value is None or value > self.next_up_time
if len(self.queue) < 2:
return
if not hidden:
if self.next_up_y_pos < 0:
self.next_up_y_pos += 5
else:
self.next_up_y_pos = -120
entry = self.queue[1]
self.mpv.command(
"osd_overlay",
id=self.next_up_overlay_id,
data=f"{{\\pos({1920 // 2},{self.next_up_y_pos})}}Next Up: {entry.artist} - {entry.title} ({entry.performer})",
res_x=1920,
res_y=1080,
z=0,
hidden=hidden,
format="ass-events",
)
def event_callback(self, event: mpv.MpvEvent) -> None:
e = event.as_dict()
if e["event"] == b"shutdown":
if not self.closing:
self.closing = True
self.quit_callback()
elif e["event"] == b"file-loaded":
if self.callback_audio_load is not None and self.mpv is not None:
self.mpv.audio_add(self.callback_audio_load)
self.callback_audio_load = None
def update_qr(self, qr_string: str) -> None:
qr = QRCode(box_size=self.qr_box_size, border=1)
@ -173,7 +221,8 @@ class Player:
loop = asyncio.get_running_loop()
self.mpv.pause = True
if audio:
self.mpv.loadfile(video, audio_file=audio)
self.callback_audio_load = audio
self.mpv.loadfile(video)
else:
self.mpv.loadfile(video)
self.mpv.pause = False
@ -193,4 +242,3 @@ class Player:
self.mpv.play(
f"{self.base_dir}/background.png",
)
# self.mpv.playlist_next()

View file

@ -31,6 +31,17 @@ class Queue:
self.num_of_entries_sem = asyncio.Semaphore(len(self._queue))
self.readlock = asyncio.Lock()
def extend(self, entries: Iterable[Entry]) -> None:
"""
Extend the queue with a list of entries and increase the semaphore.
:param entries: The entries to add
:type entries: Iterable[Entry]
:rtype: None
"""
for entry in entries:
self.append(entry)
def append(self, entry: Entry) -> None:
"""
Append an entry to the queue, increase the semaphore.
@ -108,7 +119,7 @@ class Queue:
def find_by_name(self, name: str) -> Optional[Entry]:
"""
Find an entry by its performer and return it.
Find the first entry by its performer and return it.
:param name: The name of the performer to search for.
:type name: str
@ -120,6 +131,20 @@ class Queue:
return item
return None
def find_all_by_name(self, name: str) -> Iterable[Entry]:
"""
Find all entries by their performer and return them as an iterable.
:param name: The name of the performer to search for.
:type name: str
:returns: The entries with the performer.
:rtype: Iterable[Entry]
"""
for item in self._queue:
if item.shares_performer(name):
yield item
def find_by_uuid(self, uuid: UUID | str) -> Optional[Entry]:
"""
Find an entry by its uuid and return it.

File diff suppressed because it is too large Load diff

View file

@ -4,6 +4,8 @@ import asyncio
import os
from typing import TYPE_CHECKING, Any, Optional
from syng.entry import Entry
try:
from pymediainfo import MediaInfo
@ -31,16 +33,17 @@ class FileBasedSource(Source):
ListStrOption(),
"List of filename extensions\n(mp3+cdg, mp4, ...)",
["mp3+cdg"],
)
),
}
def __init__(self, config: dict[str, Any]):
"""Initialize the file module."""
super().__init__(config)
def apply_config(self, config: dict[str, Any]) -> None:
self.build_index = True
self.extensions: list[str] = config["extensions"] if "extensions" in config else ["mp3+cdg"]
self.extra_mpv_options = {"scale": "oversample"}
def is_valid(self, entry: Entry) -> bool:
return entry.ident in self._index and entry.source == self.source_name
def has_correct_extension(self, path: Optional[str]) -> bool:
"""
Check if a `path` has a correct extension.

View file

@ -25,10 +25,8 @@ class FilesSource(FileBasedSource):
# "index_file": ("file", "Index file", os.path.join(user_cache_dir("syng"), "files-index")),
}
def __init__(self, config: dict[str, Any]):
"""Initialize the file module."""
super().__init__(config)
def apply_config(self, config: dict[str, Any]) -> None:
super().apply_config(config)
self.dir = config["dir"] if "dir" in config else "."
async def get_file_list(self) -> list[str]:

View file

@ -57,10 +57,8 @@ class S3Source(FileBasedSource):
),
}
def __init__(self, config: dict[str, Any]):
"""Create the source."""
super().__init__(config)
def apply_config(self, config: dict[str, Any]) -> None:
super().apply_config(config)
if (
MINIO_AVAILABE
and "endpoint" in config

View file

@ -22,13 +22,14 @@ from typing import Type
from abc import ABC, abstractmethod
from ..log import logger
from ..entry import Entry
from ..result import Result
from ..config import BoolOption, ConfigOption
# logger: logging.Logger = logging.getLogger(__name__)
class EntryNotValid(Exception):
"""Raised when an entry is not valid for a source."""
@dataclass
@ -49,9 +50,6 @@ class DLFilesEntry:
:param complete: True if download was completed, False otherwise (Default
is ``False``)
:type complete: bool
:param failed: True if the buffering failed, False otherwise (Default is
``False``)
:type failed: bool
:param skip: True if the next Entry for this file should be skipped
(Default is ``False``)
:param buffer_task: Reference to the task, that downloads the files.
@ -65,7 +63,6 @@ class DLFilesEntry:
audio: Optional[str] = None
buffering: bool = False
complete: bool = False
failed: bool = False
skip: bool = False
buffer_task: Optional[asyncio.Task[Tuple[str, Optional[str]]]] = None
@ -123,11 +120,27 @@ class Source(ABC):
source for documentation.
:type config: dict[str, Any]
"""
self.config: dict[str, Any] = config
self.downloaded_files: defaultdict[str, DLFilesEntry] = defaultdict(DLFilesEntry)
self._masterlock: asyncio.Lock = asyncio.Lock()
self._index: list[str] = config["index"] if "index" in config else []
self.extra_mpv_options: dict[str, str] = {}
self._skip_next = False
self.build_index = False
self.apply_config(config)
def is_valid(self, entry: Entry) -> bool:
"""
Check if the entry is valid.
Each source can implement this method to check if the entry is valid.
:param entry: The entry to check
:type entry: Entry
:returns: True if the entry is valid, False otherwise.
:rtype: bool
"""
return True
async def get_entry(
self,
@ -155,12 +168,11 @@ class Source(ABC):
:returns: New entry for the identifier, or None, if the ident is
invalid.
:rtype: Optional[Entry]
:raises EntryNotValid: If the entry is not valid for the source.
"""
if ident not in self._index:
return None
res: Result = Result.from_filename(ident, self.source_name)
return Entry(
entry = Entry(
ident=ident,
source=self.source_name,
duration=180,
@ -170,6 +182,9 @@ class Source(ABC):
performer=performer,
incomplete_data=True,
)
if not self.is_valid(entry):
raise EntryNotValid(f"Entry {entry} is not valid for source {self.source_name}")
return entry
async def search(self, query: str) -> list[Result]:
"""
@ -239,10 +254,11 @@ class Source(ABC):
self.downloaded_files[entry.ident].video = video
self.downloaded_files[entry.ident].audio = audio
self.downloaded_files[entry.ident].complete = True
except ValueError as exc:
raise exc
except Exception: # pylint: disable=broad-except
print_exc()
logger.error("Buffering failed for %s", entry)
self.downloaded_files[entry.ident].failed = True
raise ValueError("Buffering failed for %s" % entry)
self.downloaded_files[entry.ident].ready.set()
@ -361,13 +377,14 @@ class Source(ABC):
:rtype: Optional[dict[str, Any] | list[dict[str, Any]]
"""
if not self.build_index:
return None
logger.warning(f"{self.source_name}: updating index")
new_index = await self.update_file_list()
logger.warning(f"{self.source_name}: done")
if new_index is not None:
self._index = new_index
chunked = zip_longest(*[iter(new_index)] * 1000, fillvalue="")
return [{"index": list(filter(lambda x: x != "", chunk))} for chunk in chunked]
return await self.get_config()
return None
async def get_config(self) -> dict[str, Any] | list[dict[str, Any]]:
@ -388,13 +405,27 @@ class Source(ABC):
:return: The part of the config, that should be sended to the server.
:rtype: dict[str, Any] | list[dict[str, Any]]
"""
if not self._index:
self._index = []
logger.warning(f"{self.source_name}: generating index")
self._index = await self.get_file_list()
logger.warning(f"{self.source_name}: done")
chunked = zip_longest(*[iter(self._index)] * 1000, fillvalue="")
return [{"index": list(filter(lambda x: x != "", chunk))} for chunk in chunked]
packages = []
if self.build_index:
if not self._index:
self._index = []
logger.warning(f"{self.source_name}: generating index")
self._index = await self.get_file_list()
logger.warning(f"{self.source_name}: done")
chunked = zip_longest(*[iter(self._index)] * 1000, fillvalue="")
packages = [{"index": list(filter(lambda x: x != "", chunk))} for chunk in chunked]
first_package = {
key: value
for key, value in self.config.items()
if self.config_schema[key].send_to_server
}
if not packages:
packages = [first_package]
else:
packages[0] |= first_package
if len(packages) == 1:
return first_package
return packages
def add_to_config(self, config: dict[str, Any], running_number: int) -> None:
"""
@ -418,5 +449,18 @@ class Source(ABC):
self._index = []
self._index += config["index"]
@abstractmethod
def apply_config(self, config: dict[str, Any]) -> None:
"""
Apply the a config to the source.
This should be implemented by each source individually.
:param config: The part of the config to apply.
:type config: dict[str, Any]
:rtype: None
"""
pass
available_sources: dict[str, Type[Source]] = {}

View file

@ -22,7 +22,15 @@ from platformdirs import user_cache_dir
from ..entry import Entry
from ..result import Result
from .source import Source, available_sources
from ..config import BoolOption, ChoiceOption, FolderOption, ListStrOption, ConfigOption
from ..config import (
BoolOption,
ChoiceOption,
FolderOption,
ListStrOption,
ConfigOption,
StrOption,
IntOption,
)
class YouTube:
@ -170,12 +178,17 @@ class YoutubeSource(Source):
- ``start_streaming``: If set to ``True``, the client starts streaming
the video, if buffering was not completed. Needs ``youtube-dl`` or
``yt-dlp``. Default is False.
- ``search_suffix``: A string that is appended to the search query.
Default is "karaoke".
- ``max_duration``: The maximum duration of a video in seconds. A value of 0 disables this. Default is 1800.
"""
source_name = "youtube"
config_schema = Source.config_schema | {
"enabled": ConfigOption(BoolOption(), "Enable this source", True),
"channels": ConfigOption(ListStrOption(), "A list channels\nto search in", []),
"channels": ConfigOption(
ListStrOption(), "A list channels\nto search in", [], send_to_server=True
),
"tmp_dir": ConfigOption(
FolderOption(), "Folder for\ntemporary download", user_cache_dir("syng")
),
@ -189,18 +202,21 @@ class YoutubeSource(Source):
"Start streaming if\ndownload is not complete",
False,
),
"search_suffix": ConfigOption(
StrOption(),
"A string that is appended\nto each search query",
"karaoke",
send_to_server=True,
),
"max_duration": ConfigOption(
IntOption(),
"The maximum duration\nof a video in seconds\nA value of 0 disables this",
1800,
send_to_server=True,
),
}
# pylint: disable=too-many-instance-attributes
def __init__(self, config: dict[str, Any]):
"""
Create the YouTube source.
:param config: The configuration for the source.
:type config: dict[str, Any]
"""
super().__init__(config)
def apply_config(self, config: dict[str, Any]) -> None:
self.channels: list[str] = config["channels"] if "channels" in config else []
self.tmp_dir: str = config["tmp_dir"] if "tmp_dir" in config else "/tmp/syng"
try:
@ -213,6 +229,7 @@ class YoutubeSource(Source):
self.formatstring = (
f"bestvideo[height<={self.max_res}]+" f"bestaudio/best[height<={self.max_res}]"
)
self.search_suffix = config.get("search_suffix", "karaoke")
self.extra_mpv_options = {"ytdl-format": self.formatstring}
self._yt_dlp = YoutubeDL(
params={
@ -221,15 +238,7 @@ class YoutubeSource(Source):
"quiet": True,
}
)
async def get_config(self) -> dict[str, Any] | list[dict[str, Any]]:
"""
Return the list of channels in a dictionary with key ``channels``.
:return: see above
:rtype: dict[str, Any]]
"""
return {"channels": self.channels}
self.max_duration: int = config.get("max_duration", 1800)
async def ensure_playable(self, entry: Entry) -> tuple[str, Optional[str]]:
"""
@ -243,6 +252,13 @@ class YoutubeSource(Source):
:rtype: None
"""
if entry.incomplete_data:
meta_info = await self.get_missing_metadata(entry)
entry.update(**meta_info)
if self.max_duration > 0 and entry.duration > self.max_duration:
raise ValueError(f"Video {entry.ident} too long.")
if self.start_streaming and not self.downloaded_files[entry.ident].complete:
return (entry.ident, None)
@ -286,8 +302,8 @@ class YoutubeSource(Source):
Search YouTube and the configured channels for the query.
The first results are the results of the configured channels. The next
results are the results from youtube as a whole, but the term "Karaoke"
is appended to the search query.
results are the results from youtube as a whole, a configurable suffix
is appended to the search query (default is "karaoke").
All results are sorted by how good they match to the search query,
respecting their original source (channel or YouTube as a whole).
@ -340,14 +356,29 @@ class YoutubeSource(Source):
duration=str(result.length),
)
for result in results
if self.max_duration == 0 or result.length <= self.max_duration
]
def is_valid(self, entry: Entry) -> bool:
"""
Check if the entry is valid.
An entry is valid, if the video is not too long.
:param entry: The entry to check.
:type entry: Entry
:return: True if the entry is valid, False otherwise.
:rtype: bool
"""
return self.max_duration == 0 or entry.duration <= self.max_duration
def _yt_search(self, query: str) -> list[YouTube]:
"""Search youtube as a whole.
Adds "karaoke" to the query.
Adds a configurable suffix to the query. Default is "karaoke".
"""
return Search(f"{query} karaoke").results
suffix = f" {self.search_suffix}" if self.search_suffix else ""
return Search(f"{query}{suffix}").results
def _channel_search(self, query: str, channel: str) -> list[YouTube]:
"""
@ -393,6 +424,11 @@ class YoutubeSource(Source):
:rtype: Tuple[str, Optional[str]]
"""
if self.max_duration > 0 and entry.duration > self.max_duration:
raise ValueError(
f"Video {entry.ident} too long: {entry.duration} > {self.max_duration}"
)
if pos == 0 and self.start_streaming:
return entry.ident, None

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -5,8 +5,8 @@
<link rel="icon" href="/favicon.ico">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Syng Rocks!</title>
<script type="module" crossorigin src="/assets/index.520c2769.js"></script>
<link rel="stylesheet" href="/assets/index.ed7016c8.css">
<script type="module" crossorigin src="/assets/index.5e369434.js"></script>
<link rel="stylesheet" href="/assets/index.f2d50df7.css">
</head>
<body>
<div id="app"></div>

View file

@ -25,7 +25,13 @@ class MPV:
title: str
def __init__(
self, ytdl: bool, input_default_bindings: bool, input_vo_keyboard: bool, osc: bool
self,
ytdl: bool,
input_default_bindings: bool,
input_vo_keyboard: bool,
osc: bool,
*args: Any,
**kwargs: Any,
) -> None: ...
def terminate(self) -> None: ...
def play(self, file: str) -> None: ...
@ -47,3 +53,5 @@ class MPV:
def register_event_callback(self, callback: Callable[..., Any]) -> None: ...
def __setitem__(self, key: str, value: str) -> None: ...
def __getitem__(self, key: str) -> str: ...
def command(self, command: str, *args: Any, **kwargs: Any) -> None: ...
def allocate_overlay_id(self) -> int: ...

View file

@ -11,7 +11,13 @@ class _session_context_manager:
async def __aenter__(self) -> dict[str, Any]: ...
async def __aexit__(self, *args: list[Any]) -> None: ...
class Manager:
rooms: dict[str, set[str]]
def get_namespaces(self) -> list[str]: ...
def get_participants(self, namespace: str, room: str) -> list[tuple[str, str]]: ...
class AsyncServer:
manager: Manager
def __init__(
self,
cors_allowed_origins: str,
@ -33,13 +39,14 @@ class AsyncServer:
async def leave_room(self, sid: str, room: str) -> None: ...
def attach(self, app: Any) -> None: ...
async def disconnect(self, sid: str) -> None: ...
def instrument(self, auth: dict[str, str]) -> None: ...
class AsyncClient:
def __init__(self, json: Any = None): ...
def __init__(self, json: Any = None, reconnection_attempts: int = 0): ...
def on(
self, event: str, handler: Optional[Callable[..., Any]] = None
) -> Callable[[ClientHandler], ClientHandler]: ...
async def wait(self) -> None: ...
async def connect(self, server: str) -> None: ...
async def connect(self, server: str, auth: dict[str, Any]) -> None: ...
async def disconnect(self) -> None: ...
async def emit(self, message: str, data: Any = None) -> None: ...

View file

@ -1 +1,3 @@
class ConnectionError(Exception): ...
class ConnectionRefusedError(ConnectionError): ...
class BadNamespaceError(Exception): ...