Merge commit 'FETCH_HEAD'

This commit is contained in:
daniel-123 2021-03-09 18:46:50 +01:00
commit b968b19321
No known key found for this signature in database
GPG Key ID: D0FED6697F1D0AC1
65 changed files with 4985 additions and 1175 deletions

View File

@ -1,65 +0,0 @@
branches:
only:
- master
environment:
MINICONDA: "C:\\Miniconda"
PYTHON: "C:\\Python36"
PYTHON_VERSION: 3.6
PYTHON_ARCH: 32
platform: x86
configuration: Release
init:
- set PYTHONPATH=%PYTHON%
- set PYTHONHOME=%PYTHON%
- set PATH=%PYTHON%\Scripts;%PYTHON%;C:\Program Files (x86)\NSIS;%PATH%
- python --version
- python -m pip install -U pip setuptools wheel
- pip install -U pypiwin32==223
- pip install twisted[tls] certifi
- pip install zope.interface
- type nul > %PYTHON%\lib\site-packages\zope\__init__.py
- curl -L https://bintray.com/alby128/py2exe/download_file?file_path=py2exe-0.9.3.0-cp36-none-win32.whl -o py2exe-0.9.3.0-cp36-none-win32.whl
- pip install py2exe-0.9.3.0-cp36-none-win32.whl
- del py2exe-0.9.3.0-cp36-none-win32.whl
- pip install shiboken2==5.12.3 PySide2==5.12.3
- pip freeze
install:
- cd %APPVEYOR_BUILD_FOLDER%
- for /F "tokens=2 delims='" %%a in ('findstr version syncplay\__init__.py') do @set ver=%%a
- python buildPy2exe.py
- type nul > syncplay_v%ver%\syncplay.ini
# Not a project with an msbuild file, build done at install.
build: off
artifacts:
- path: 'syncplay_v$(ver)'
type: zip
name: Syncplay_$(ver)_Portable
- path: Syncplay-$(ver)-Setup.exe
name: Syncplay-$(ver)-Setup
# Push artefact to S3 bucket and list all
before_deploy:
- dir
#- python -c "from PySide2 import QtCore; print QtCore.QLibraryInfo.location(QtCore.QLibraryInfo.PluginsPath)"
# Deploy build to BinTray
deploy:
provider: BinTray
username: etoh
api_key:
secure: TfwB161OlDOcAz5nnmjtNjDmJw2KyCz/uB1KzN4r5/9AL3uczWNuY+k6qVGaRvOP
repo: Syncplay
package: Syncplay
subject: syncplay
version: v$(ver)
publish: true
override: true

193
.github/workflows/build.yml vendored Normal file
View File

@ -0,0 +1,193 @@
name: Build
on: push
jobs:
windows:
name: Build for Windows
runs-on: windows-2019
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: Check Python install
run: |
which python
python --version
python -c "import struct; print(struct.calcsize('P') * 8)"
which pip
pip --version
- name: Install Python dependencies
run: |
pip3 install -U setuptools wheel pip
pip3 install -r requirements.txt
pip3 install -r requirements_gui.txt
pip3 install py2exe
- name: Check Python dependencies
run: |
python3 -c "from PySide2 import __version__; print(__version__)"
python3 -c "from PySide2.QtCore import __version__; print(__version__)"
python3 -c "from PySide2.QtCore import QLibraryInfo; print(QLibraryInfo.location(QLibraryInfo.LibrariesPath))"
- name: Build
run: |
$ver = (findstr version .\syncplay\__init__.py).split("'")[1]
echo $ver
echo "VER=$ver" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
python buildPy2exe.py
New-Item -Path syncplay_v$ver -Name "syncplay.ini" -Value $null
- name: Prepare for deployment
run: dir
- name: Deploy portable
uses: actions/upload-artifact@v2
with:
name: Syncplay_${{ env.VER }}_Portable
path: |
syncplay_v${{ env.VER }}
- name: Deploy installer
uses: actions/upload-artifact@v2
with:
name: Syncplay-${{ env.VER }}-Setup.exe
path: |
Syncplay-${{ env.VER }}-Setup.exe
macos:
name: Build for macOS
runs-on: macos-10.15
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: '3.7'
- name: Check Python install
run: |
which python3
python3 --version
which pip3
pip3 --version
- name: Install Python dependencies
run: |
pip3 install -U setuptools wheel pip
pip3 install twisted[tls] appnope requests certifi
pip3 install shiboken2==5.13.1 pyside2==5.13.1
pip3 install py2app
- name: Check Python dependencies
run: |
python3 -c "from PySide2 import __version__; print(__version__)"
python3 -c "from PySide2.QtCore import __version__; print(__version__)"
python3 -c "from PySide2.QtCore import QLibraryInfo; print(QLibraryInfo.location(QLibraryInfo.LibrariesPath))"
python3 -c "import ssl; print(ssl)"
python3 -c "from py2app.recipes import pyside2"
echo $DYLD_LIBRARY_PATH
echo $DYLD_FRAMEWORK_PATH
python3 -c 'from distutils.sysconfig import get_config_var; print(get_config_var("LDLIBRARY"))'
- name: Build
run: |
python3 ci/pyside2_linker.py
export LIBPYTHON_FOLDER="$(python3 -c 'from distutils.sysconfig import get_config_var; print(get_config_var("LIBDIR"))')"
ln -s $LIBPYTHON_FOLDER/libpython3.7m.dylib $LIBPYTHON_FOLDER/libpython3.7.dylib
export DYLD_FRAMEWORK_PATH="$(python3 -c 'from PySide2.QtCore import QLibraryInfo; print(QLibraryInfo.location(QLibraryInfo.LibrariesPath))')"
export DYLD_LIBRARY_PATH="$(python3 -c 'import os.path, PySide2; print(os.path.dirname(PySide2.__file__))'):$(python3 -c 'import os.path, shiboken2; print(os.path.dirname(shiboken2.__file__))')"
python3 buildPy2app.py py2app
- name: Prepare for deployment
run: |
ls -al
export VER="$(cat syncplay/__init__.py | awk '/version/ {gsub("\047", "", $3); print $NF}')"
echo "VER=$VER" >> $GITHUB_ENV
mkdir dist_actions
ci/macos-deploy.sh
ls -al dist_actions
- name: Deploy
uses: actions/upload-artifact@v2
with:
name: Syncplay_${{ env.VER }}.dmg
path: |
dist_actions/Syncplay_${{ env.VER }}.dmg
appimage:
name: Build AppImage
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install dependencies
run: |
sudo apt-get install libxkbcommon-x11-0
- name: Build
run: ci/appimage-script.sh
- name: Prepare for deployment
run: |
ls -al
export VER="$(cat syncplay/__init__.py | awk '/version/ {gsub("\047", "", $3); print $NF}')"
echo "VER=$VER" >> $GITHUB_ENV
mkdir dist_actions
ci/appimage-deploy.sh
ls -al dist_actions
- name: Deploy
uses: actions/upload-artifact@v2
with:
name: Syncplay-${{ env.VER }}-x86_64.AppImage
path: |
dist_actions/Syncplay-${{ env.VER }}-x86_64.AppImage
deb:
name: Build Debian package
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Build
run: ci/deb-script.sh
- name: Build server
run: ci/deb-server-script.sh
- name: Test
run: ci/deb-installation-test.sh
- name: Prepare for deployment
run: |
ls -al
export VER="$(cat syncplay/__init__.py | awk '/version/ {gsub("\047", "", $3); print $NF}')"
echo "VER=$VER" >> $GITHUB_ENV
mkdir dist_actions
mv /tmp/syncplay.deb dist_actions/syncplay_${VER}.deb
mv /tmp/syncplay-server.deb dist_actions/syncplay-server_${VER}.deb
ls -al dist_actions
- name: Deploy full deb
uses: actions/upload-artifact@v2
with:
name: syncplay.deb
path: |
dist_actions/syncplay_*.deb
- name: Deploy server deb
uses: actions/upload-artifact@v2
with:
name: syncplay-server.deb
path: |
dist_actions/syncplay-server_*.deb

2
.gitignore vendored
View File

@ -12,6 +12,6 @@ venv
syncplay_setup.nsi
dist.7z
.*
!.travis.yml
!.appveyor.yml
!.github
__pycache__

View File

@ -1,46 +0,0 @@
# These two are defaults, which get overriden by the jobs matrix
language: minimal
os: linux
jobs:
include:
- language: objective-c
os: osx
osx_image: xcode8.3
- language: minimal
dist: xenial
os: linux
env: BUILD_DESTINATION=snapcraft
- language: python
os: linux
dist: xenial
python: 3.6
env: BUILD_DESTINATION=appimage
script:
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then python3 buildPy2app.py py2app ; fi
- if [ "$TRAVIS_OS_NAME" == "linux" ] && [ "$BUILD_DESTINATION" == "snapcraft" ]; then sudo snapcraft cleanbuild ; fi
- if [ "$TRAVIS_OS_NAME" == "linux" ] && [ "$BUILD_DESTINATION" == "appimage" ]; then travis/appimage-script.sh ; fi
install:
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then travis/macos-install.sh ; fi
- if [ "$TRAVIS_OS_NAME" == "linux" ] && [ "$BUILD_DESTINATION" == "snapcraft" ]; then travis/snapcraft-install.sh ; fi
- if [ "$TRAVIS_OS_NAME" == "linux" ] && [ "$BUILD_DESTINATION" == "appimage" ]; then sudo apt-get install libxkbcommon-x11-0 ; fi
before_deploy:
- ls -al
- export VER="$(cat syncplay/__init__.py | awk '/version/ {gsub("\047", "", $3); print $NF}')"
- python3 bintray_version.py
- mkdir dist_bintray
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then travis/macos-deploy.sh ; fi
- if [ "$TRAVIS_OS_NAME" == "linux" ] && [ "$BUILD_DESTINATION" == "snapcraft" ]; then mv syncplay_build_amd64.snap dist_bintray/syncplay_${VER}_amd64.snap ; fi
- if [ "$TRAVIS_OS_NAME" == "linux" ] && [ "$BUILD_DESTINATION" == "appimage" ]; then travis/appimage-deploy.sh ; fi
deploy:
skip_cleanup: true
on: master
provider: bintray
file: "bintray.json"
user: alby128
key:
secure: "I9J3lgHyDoLzuGkjjMuYIk3ZI7Lszn2AG1H6lxIU3SXYaBpbLK+BHXotW0IsSxK5idCK8uszeA2svVipepwtCc9xJYEAlEYLVBgO9BpgTdQid9XjvI1eLDG3+iw0ew+FwEqaYwYbFHfnnQhVzIwBq353kl9ksgDMXi1uREpUk/L3HfVOUV3rDF6mgOPwAUJHBc3d56IVX1yQunM7NwJuswFrBMESauAlzw/C1gWDAuWJ5iJfnFz/4RBDa3C1sZdFmNnkuQEI332HzoMialMGyEP5gE8l0dmXBtFHpE1acgEZ+l1hVz9OsI2/dyICkjYFRLWF2tmxAk4DDF3jTsIRRsxpQo25XGKfvd0FrbN8Zqw8Yb0a5/WPP2E2ERGGLDxqTfkybYPv35utbtHEd4IZTX0Yv/GnmSwFa39+a7RDNhgFJWDR8XUX4Srd9CBron+36KrS+zY2Nn0c36YBxyAocw8qQ/pXmS15sQxSq2pi+GASyhemN546Gz2jbc3W/Ybp85iQ9Py/7Q1wUyYQVvJqEPL0K+/ioDSr4bDWbtqBLpUPlOYOvR4MPGCpqrfjJslpPPKBN8lD0BV2LYZEW6Bip0e8CsrFhecD1atNyWClaPoC0aikH3jpFfQYJOyQ6zghqpHSC+/S3HuGV/P8WCVBpC3TTrk0/TacwZwch3yhK9A="

View File

@ -37,16 +37,22 @@ endif
common:
-mkdir -p $(LIB_PATH)/syncplay/syncplay/resources/lua/intf
-mkdir -p $(APP_SHORTCUT_PATH)
-mkdir -p $(SHARE_PATH)/pixmaps/
-mkdir -p $(SHARE_PATH)/icons/
-mkdir -p $(SHARE_PATH)/man/man1/
cp -r syncplay $(LIB_PATH)/syncplay/
chmod 755 $(LIB_PATH)/syncplay/
cp -r syncplay/resources/hicolor $(SHARE_PATH)/icons/
cp -r syncplay/resources/*.png $(LIB_PATH)/syncplay/syncplay/resources/
cp -r syncplay/resources/*.lua $(LIB_PATH)/syncplay/syncplay/resources/
cp -r syncplay/resources/lua/intf/*.lua $(LIB_PATH)/syncplay/syncplay/resources/lua/intf/
cp syncplay/resources/hicolor/128x128/apps/syncplay.png $(SHARE_PATH)/pixmaps/
u-common:
-rm -rf $(LIB_PATH)/syncplay
-rm $(SHARE_PATH)/icons/hicolor/*/apps/syncplay.png
-rm $(SHARE_PATH)/pixmaps/syncplay.png
-rm $(SHARE_PATH)/man/man1/syncplay.1.gz
client:
-mkdir -p $(BIN_PATH)
@ -55,6 +61,7 @@ client:
chmod 755 $(BIN_PATH)/syncplay
cp syncplayClient.py $(LIB_PATH)/syncplay/
cp syncplay/resources/syncplay.desktop $(APP_SHORTCUT_PATH)/
gzip docs/syncplay.1 --stdout > $(SHARE_PATH)/man/man1/syncplay.1.gz
ifeq ($(SINGLE_USER),false)
chmod 755 $(APP_SHORTCUT_PATH)/syncplay.desktop
@ -66,6 +73,7 @@ u-client:
-rm ${DESTDIR}$(VLC_LIB_PATH)/vlc/lua/intf/syncplay.lua
-rm ${DESTDIR}$(VLC_LIB_PATH64)/vlc/lua/intf/syncplay.lua
-rm $(APP_SHORTCUT_PATH)/syncplay.desktop
-rm $(SHARE_PATH)/man/man1/syncplay.1.gz
server:
-mkdir -p $(BIN_PATH)
@ -74,6 +82,7 @@ server:
chmod 755 $(BIN_PATH)/syncplay-server
cp syncplayServer.py $(LIB_PATH)/syncplay/
cp syncplay/resources/syncplay-server.desktop $(APP_SHORTCUT_PATH)/
gzip docs/syncplay-server.1 --stdout > $(SHARE_PATH)/man/man1/syncplay-server.1.gz
ifeq ($(SINGLE_USER),false)
chmod 755 $(APP_SHORTCUT_PATH)/syncplay-server.desktop
@ -83,6 +92,7 @@ u-server:
-rm $(BIN_PATH)/syncplay-server
-rm $(LIB_PATH)/syncplay/syncplayServer.py
-rm $(APP_SHORTCUT_PATH)/syncplay-server.desktop
-rm $(SHARE_PATH)/man/man1/syncplay-server.1.gz
warnings:
ifeq ($(SINGLE_USER),true)

View File

@ -22,7 +22,7 @@
-->
# Syncplay
[![Travis build Status](https://travis-ci.org/Syncplay/syncplay.svg?branch=master)](https://travis-ci.org/Syncplay/syncplay)
![GitHub Actions build status](https://github.com/Syncplay/syncplay/workflows/Build/badge.svg)
[![Appveyor build status](https://ci.appveyor.com/api/projects/status/github/Syncplay/syncplay)](https://ci.appveyor.com/project/Et0h/syncplay/branch/master)
Solution to synchronize video playback across multiple instances of mpv, VLC, MPC-HC, MPC-BE and mplayer2 over the Internet.

View File

@ -1,16 +1,18 @@
# -*- coding: utf-8 -*-
import biplist
import os.path
import plistlib
application = defines.get('app', 'dist/Syncplay.app')
appname = os.path.basename(application)
def read_plist(path):
with open(path, 'rb') as f:
return plistlib.load(f)
def icon_from_app(app_path):
plist_path = os.path.join(app_path, 'Contents', 'Info.plist')
plist = biplist.readPlist(plist_path)
plist = read_plist(plist_path)
icon_name = plist['CFBundleIconFile']
icon_root, icon_ext = os.path.splitext(icon_name)
if not icon_ext:
@ -18,7 +20,6 @@ def icon_from_app(app_path):
icon_name = icon_root + icon_ext
return os.path.join(app_path, 'Contents', 'Resources', icon_name)
# Volume format (see hdiutil create -help)
format = defines.get('format', 'UDZO')

View File

@ -1,20 +0,0 @@
{
"package": {
"name": "Syncplay",
"repo": "Syncplay",
"subject": "syncplay"
},
"version": {
"name": "v1.6.0"
},
"files": [
{
"includePattern": "dist_bintray/(.*)",
"uploadPattern": "$1",
"matrixParams": {
"override": 1
}
}
],
"publish": true
}

View File

@ -1,14 +0,0 @@
#!/usr/bin/env python3
import json
from syncplay import version
bintrayFileName = 'bintray.json'
f = open(bintrayFileName, 'r')
data = json.load(f)
data['version']['name'] = 'v' + version
g = open(bintrayFileName, 'w')
json.dump(data, g, indent=4)

View File

@ -64,6 +64,8 @@ NSIS_SCRIPT_TEMPLATE = r"""
LoadLanguageFile "$${NSISDIR}\Contrib\Language files\Italian.nlf"
LoadLanguageFile "$${NSISDIR}\Contrib\Language files\Spanish.nlf"
LoadLanguageFile "$${NSISDIR}\Contrib\Language files\PortugueseBR.nlf"
LoadLanguageFile "$${NSISDIR}\Contrib\Language files\Portuguese.nlf"
LoadLanguageFile "$${NSISDIR}\Contrib\Language files\Turkish.nlf"
Unicode true
@ -107,6 +109,16 @@ NSIS_SCRIPT_TEMPLATE = r"""
VIAddVersionKey /LANG=$${LANG_PORTUGUESEBR} "LegalCopyright" "Syncplay"
VIAddVersionKey /LANG=$${LANG_PORTUGUESEBR} "FileDescription" "Syncplay"
VIAddVersionKey /LANG=$${LANG_PORTUGUESE} "ProductName" "Syncplay"
VIAddVersionKey /LANG=$${LANG_PORTUGUESE} "FileVersion" "$version.0"
VIAddVersionKey /LANG=$${LANG_PORTUGUESE} "LegalCopyright" "Syncplay"
VIAddVersionKey /LANG=$${LANG_PORTUGUESE} "FileDescription" "Syncplay"
VIAddVersionKey /LANG=$${LANG_TURKISH} "ProductName" "Syncplay"
VIAddVersionKey /LANG=$${LANG_TURKISH} "FileVersion" "$version.0"
VIAddVersionKey /LANG=$${LANG_TURKISH} "LegalCopyright" "Syncplay"
VIAddVersionKey /LANG=$${LANG_TURKISH} "FileDescription" "Syncplay"
LangString ^SyncplayLanguage $${LANG_ENGLISH} "en"
LangString ^Associate $${LANG_ENGLISH} "Associate Syncplay with multimedia files."
LangString ^Shortcut $${LANG_ENGLISH} "Create Shortcuts in following locations:"
@ -169,6 +181,24 @@ NSIS_SCRIPT_TEMPLATE = r"""
LangString ^AutomaticUpdates $${LANG_PORTUGUESEBR} "Verificar atualizações automaticamente"
LangString ^UninstConfig $${LANG_PORTUGUESEBR} "Deletar arquivo de configuração."
LangString ^SyncplayLanguage $${LANG_PORTUGUESE} "pt_PT"
LangString ^Associate $${LANG_PORTUGUESE} "Associar Syncplay aos ficheiros multimédia."
LangString ^Shortcut $${LANG_PORTUGUESE} "Criar atalhos nos seguintes locais:"
LangString ^StartMenu $${LANG_PORTUGUESE} "Menu Iniciar"
LangString ^Desktop $${LANG_PORTUGUESE} "Área de trabalho"
LangString ^QuickLaunchBar $${LANG_PORTUGUESE} "Barra de acesso rápido"
LangString ^AutomaticUpdates $${LANG_PORTUGUESE} "Verificar atualizações automaticamente"
LangString ^UninstConfig $${LANG_PORTUGUESE} "Apagar ficheiro de configuração."
LangString ^SyncplayLanguage $${LANG_TURKISH} "tr"
LangString ^Associate $${LANG_TURKISH} "Syncplay'i ortam dosyalarıyla ilişkilendirin."
LangString ^Shortcut $${LANG_TURKISH} "Aşağıdaki konumlarda kısayollar oluşturun:"
LangString ^StartMenu $${LANG_TURKISH} "Başlangıç menüsü"
LangString ^Desktop $${LANG_TURKISH} "Masaüstü"
LangString ^QuickLaunchBar $${LANG_TURKISH} "Hızlı Başlatma Çubuğu"
LangString ^AutomaticUpdates $${LANG_TURKISH} "Güncellemeleri otomatik denetle"
LangString ^UninstConfig $${LANG_TURKISH} "Yapılandırma dosyasını silin."
; Remove text to save space
LangString ^ClickInstall $${LANG_GERMAN} " "
@ -276,6 +306,10 @@ NSIS_SCRIPT_TEMPLATE = r"""
Push Español
Push $${LANG_PORTUGUESEBR}
Push 'Português do Brasil'
Push $${LANG_PORTUGUESE}
Push 'Português de Portugal'
Push $${LANG_TURKISH}
Push 'Türkçe'
Push A ; A means auto count languages
LangDLL::LangDialog "Language Selection" "Please select the language of Syncplay and the installer"
Pop $$LANGUAGE
@ -325,7 +359,7 @@ NSIS_SCRIPT_TEMPLATE = r"""
$${NSD_CreateLabel} 8u 95u 187u 10u "$$(^Shortcut)"
Pop $$Label_Shortcut
$${NSD_CreateCheckbox} 8u 105u 60u 10u "$$(^StartMenu)"
$${NSD_CreateCheckbox} 8u 105u 70u 10u "$$(^StartMenu)"
Pop $$CheckBox_StartMenuShortcut
$${NSD_CreateCheckbox} 78u 105u 70u 10u "$$(^Desktop)"
@ -723,14 +757,14 @@ info = dict(
'dist_dir': OUT_DIR,
'packages': 'PySide2, cffi, OpenSSL, certifi',
'includes': 'twisted, sys, encodings, datetime, os, time, math, urllib, ast, unicodedata, _ssl, win32pipe, win32file',
'excludes': 'venv, doctest, pdb, unittest, win32clipboard, win32pdh, win32security, win32trace, win32ui, winxpgui, win32process, Tkinter',
'excludes': 'venv, doctest, pdb, unittest, win32clipboard, win32pdh, win32security, win32trace, win32ui, winxpgui, win32process, tcl, tkinter',
'dll_excludes': 'msvcr71.dll, MSVCP90.dll, POWRPROF.dll',
'optimize': 2,
'compressed': 1
}
},
data_files=[("resources", resources), ("resources/lua/intf", intf_resources)],
zipfile="lib/libsync",
zipfile="lib/libsync.zip",
cmdclass={"py2exe": build_installer},
)

View File

@ -3,4 +3,4 @@
wget https://github.com/TheAssassin/appimagelint/releases/download/continuous/appimagelint-x86_64.AppImage
chmod a+x appimagelint-x86_64.AppImage
./appimagelint-x86_64.AppImage Syncplay*.AppImage
mv Syncplay*.AppImage dist_bintray/
mv Syncplay*.AppImage dist_actions/

9
ci/deb-installation-test.sh Executable file
View File

@ -0,0 +1,9 @@
#!/bin/sh
set -x
set -e
sudo apt-get -qq update
sudo apt install /tmp/syncplay.deb -y
syncplay --no-gui
sudo apt remove syncplay

34
ci/deb-script.sh Executable file
View File

@ -0,0 +1,34 @@
#!/bin/sh
set -x
set -e
mkdir -p /tmp/syncplay/DEBIAN
echo "Package: syncplay
Version: "$(
sed -n -e "s/^.*version = //p" syncplay/__init__.py | sed "s/'//g"
)$(
if [ $(git describe --exact-match --tags HEAD | wc -l) = '0' ];
then
echo -git-$(date -u +%y%m%d%H%M)
fi
)"
Architecture: all
Maintainer: <dev@syncplay.pl>
Depends: python3 (>= 3.6), python3-pyside2.qtwidgets, python3-pyside2.qtcore, python3-twisted (>= 16.4.0), python3-certifi, mpv (>= 0.23) | vlc (>= 2.2.1)
Homepage: https://syncplay.pl
Section: web
Priority: optional
Description: Solution to synchronize video playback across multiple instances of mpv, VLC, MPC-HC and MPC-BE over the Internet.
Syncplay synchronises the position and play state of multiple media players so that the viewers can watch the same thing at the same time. This means that when one person pauses/unpauses playback or seeks (jumps position) within their media player then this will be replicated across all media players connected to the same server and in the same 'room' (viewing session). When a new person joins they will also be synchronised. Syncplay also includes text-based chat so you can discuss a video as you watch it (or you could use third-party Voice over IP software to talk over a video)." \
> /tmp/syncplay/DEBIAN/control
echo "#!/bin/sh
py3clean -p syncplay
"
> /tmp/syncplay/DEBIAN/prerm
chmod 555 /tmp/syncplay/DEBIAN/prerm
make install DESTDIR=/tmp/syncplay
dpkg -b /tmp/syncplay/

35
ci/deb-server-script.sh Executable file
View File

@ -0,0 +1,35 @@
#!/bin/sh
set -x
set -e
mkdir -p /tmp/syncplay-server/DEBIAN
echo "Package: syncplay-server
Version: "$(
sed -n -e "s/^.*version = //p" syncplay/__init__.py | sed "s/'//g"
)$(
if [ $(git describe --exact-match --tags HEAD | wc -l) = '0' ];
then
echo -git-$(date -u +%y%m%d%H%M)
fi
)"
Architecture: all
Maintainer: <dev@syncplay.pl>
Depends: python3 (>= 3.6), python3-twisted (>= 16.4.0), python3-certifi
Conflicts: syncplay
Homepage: https://syncplay.pl
Section: web
Priority: optional
Description: Server only package.
Solution to synchronize video playback across multiple instances of mpv, VLC, MPC-HC and MPC-BE over the Internet.
Syncplay synchronises the position and play state of multiple media players so that the viewers can watch the same thing at the same time. This means that when one person pauses/unpauses playback or seeks (jumps position) within their media player then this will be replicated across all media players connected to the same server and in the same 'room' (viewing session). When a new person joins they will also be synchronised. Syncplay also includes text-based chat so you can discuss a video as you watch it (or you could use third-party Voice over IP software to talk over a video)." \
> /tmp/syncplay-server/DEBIAN/control
echo "#!/bin/sh
py3clean -p syncplay-server
"
> /tmp/syncplay-server/DEBIAN/prerm
chmod 555 /tmp/syncplay-server/DEBIAN/prerm
make install-server DESTDIR=/tmp/syncplay-server
dpkg -b /tmp/syncplay-server/

View File

@ -2,6 +2,9 @@
set -ex
python3 ci/macos_app_cleaner.py
cp dist/Syncplay.app/Contents/Resources/qt.conf dist/Syncplay.app/Contents/MacOS/
mkdir dist/Syncplay.app/Contents/Resources/English.lproj
mkdir dist/Syncplay.app/Contents/Resources/en_AU.lproj
mkdir dist/Syncplay.app/Contents/Resources/en_GB.lproj
@ -10,6 +13,8 @@ mkdir dist/Syncplay.app/Contents/Resources/Italian.lproj
mkdir dist/Syncplay.app/Contents/Resources/ru.lproj
mkdir dist/Syncplay.app/Contents/Resources/Spanish.lproj
mkdir dist/Syncplay.app/Contents/Resources/es_419.lproj
pip3 install dmgbuild
mv syncplay/resources/macOS_readme.pdf syncplay/resources/.macOS_readme.pdf
dmgbuild -s appdmg.py "Syncplay" dist_bintray/Syncplay_${VER}.dmg
dmgbuild -s appdmg.py "Syncplay" dist_actions/Syncplay_${VER}.dmg

20
ci/macos_app_cleaner.py Normal file
View File

@ -0,0 +1,20 @@
import os
import zipfile
PATH = 'dist/Syncplay.app/Contents/Resources/lib'
zin = zipfile.ZipFile(f'{PATH}/python37.zip', 'r')
tbd = [path for path in zin.namelist() if 'PySide2/Qt/' in path]
zout = zipfile.ZipFile(f'{PATH}/python37_new.zip', 'w', zipfile.ZIP_DEFLATED)
for item in zin.namelist():
buffer = zin.read(item)
if item not in tbd:
zout.writestr(item, buffer)
zout.close()
zin.close()
os.remove(f'{PATH}/python37.zip')
os.rename(f'{PATH}/python37_new.zip', f'{PATH}/python37.zip')

24
ci/pyside2_linker.py Normal file
View File

@ -0,0 +1,24 @@
import os
from PySide2.QtCore import QLibraryInfo
def make_symlink(source, target):
if os.path.islink(target):
os.unlink(target)
os.symlink(source, target)
QT_LIB_PATH = QLibraryInfo.location(QLibraryInfo.LibrariesPath)
frameworks = [elem for elem in os.listdir(QT_LIB_PATH) if '.framework' in elem]
os.chdir(QT_LIB_PATH)
for fr in frameworks:
fr_path = os.path.join(QT_LIB_PATH, fr)
fr_name = fr.split('.framework')[0]
os.chdir(fr_path)
if 'Versions' in os.listdir('.'):
make_symlink(f'Versions/Current/{fr_name}', fr_name)
os.chdir(os.path.join(fr_path, 'Versions'))
make_symlink('5', 'Current')
os.chdir(QT_LIB_PATH)

98
docs/syncplay-server.1 Normal file
View File

@ -0,0 +1,98 @@
.\" Hey, EMACS: -*- nroff -*-
.\" (C) Copyright 2021 Bruno Kleinert <fuddl@debian.org>,
.\"
.\" First parameter, NAME, should be all caps
.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
.\" other parameters are allowed: see man(7), man(1)
.TH "Syncplay Server" 1 "February 7 2021"
.\" Please adjust this date whenever revising the manpage.
.\"
.\" Some roff macros, for reference:
.\" .nh disable hyphenation
.\" .hy enable hyphenation
.\" .ad l left justify
.\" .ad b justify to both left and right margins
.\" .nf disable filling
.\" .fi enable filling
.\" .br insert line break
.\" .sp <n> insert n+1 empty lines
.\" for manpage-specific macros, see man(7)
.SH NAME
syncplay-server \- server to host syncplay rooms
.SH SYNOPSIS
.B syncplay-server
.RI [ options ]
.RI [ file ]
.RI [ playeroptions ]
.SH DESCRIPTION
This manual page documents briefly the
.B syncplay-server
command.
.PP
.\" TeX users may be more comfortable with the \fB<whatever>\fP and
.\" \fI<whatever>\fP escape sequences to invode bold face and italics,
.\" respectively.
\fBsyncplay-server\fP is a program that syncplay clients connect to and hosts
rooms.
To host rooms for viewers via internet, make sure the server can be accessed
from the internet, i.e., its listening port is not blocked by a NAT or a
firewall.
.SH OPTIONS
This program follows the usual GNU command line syntax, with long
options starting with two dashes (`-').
A summary of options is included below.
.TP
.B \-h, \-\-help
Show summary of options.
.TP
.B \-\-port [port]
TCP port to listen for connections.
.TP
.B \-\-password [password]
Server password.
.TP
.B \-\-isolate\-rooms
Whether rooms should be isolated.
.TP
.B \-\-disable\-ready
Disable readiness feature.
.TP
.B \-\-disable\-chat
Disable the chat function.
.TP
.B \-\-salt [salt]
Random string used to generate managed room passwords.
.TP
.B \-\-motd\-file [file]
Path to a file from which motd (Message Of The Day) will be read.
.TP
.B \-\-max\-chat\-message\-length [maxChatMessageLength]
Maximum number of characters in one chat message (default is 150).
.TP
.B \-\-max\-username\-length [maxUsernameLength]
Maximum number of characters in a username (default is 150).
.TP
.B \-\-stats\-db\-file [file]
Enable server statistics using the SQLite database file.
.TP
.B \-\-tls [path]
Enable TLS connections using the certificate files in path.
.SH SEE ALSO
.BR syncplay (1).

115
docs/syncplay.1 Normal file
View File

@ -0,0 +1,115 @@
.\" Hey, EMACS: -*- nroff -*-
.\" (C) Copyright 2021 Bruno Kleinert <fuddl@debian.org>,
.\"
.\" First parameter, NAME, should be all caps
.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
.\" other parameters are allowed: see man(7), man(1)
.TH Syncplay 1 "February 7 2021"
.\" Please adjust this date whenever revising the manpage.
.\"
.\" Some roff macros, for reference:
.\" .nh disable hyphenation
.\" .hy enable hyphenation
.\" .ad l left justify
.\" .ad b justify to both left and right margins
.\" .nf disable filling
.\" .fi enable filling
.\" .br insert line break
.\" .sp <n> insert n+1 empty lines
.\" for manpage-specific macros, see man(7)
.SH NAME
syncplay \- synchronize playback of various video players via internet
.SH SYNOPSIS
.B syncplay
.RI [ options ]
.RI [ file ]
.RI [ playeroptions ]
.SH DESCRIPTION
This manual page documents briefly the
.B syncplay
command.
.PP
.\" TeX users may be more comfortable with the \fB<whatever>\fP and
.\" \fI<whatever>\fP escape sequences to invode bold face and italics,
.\" respectively.
\fBsyncplay\fP is a program that allows you to watch movies with friends or
family at different places synchronized via the internet.
When a viewer pauses/continues playback or seeks within their media player this
will be replicated across all media players connected to the same server in the
same viewing session. A chat function is included so viewers can discuss the
movie while watching it. To improve the communication experience for viewers,
the Syncplay developers and this package suggest to use additional VoIP
(package mumble) or video phone (package jami) software.
Technically, it synchronizes the position and play states of multiple mpv, VLC,
MPC-HC and MPC-BEmedia player instances so viewers' players present the same
movie at the same time.
There are known synchronization issues with VLC. If you experience such problems
use MPV instead.
.SH OPTIONS
This program follows the usual GNU command line syntax, with long
options starting with two dashes (`-').
A summary of options is included below.
.TP
.B \-h, \-\-help
Show summary of options.
.TP
.B \-\-no\-gui
Do not show the graphical user interface.
.TP
.B \-a hostname, \-\-host hostname
Address of the server to connect to.
.TP
.B \-n username, \-\-name username
User name to use.
.TP
.B \-d, \-\-debug
Enable debug mode.
.TP
.B \-g, \-\-force\-gui\-prompt
Force configuration window to appear when Syncplay starts.
.TP
.B \-\-no\-store
Do not store configuration settings in .syncplay.
.TP
.B \-r [room], \-\-room [room]
Default room to use.
.TP
.B \-p [password], \-\-password [password]
The password for the server.
.TP
.B \-\-player\-path path
Path to the player binary.
.TP
.B \-\-language language
Language of Syncplay messages. Valid values are de/en/ru/it/es/pt_BR/pt_PT/tr.
.TP
.B \-\-clear\-gui\-data
Resets path and window state GUI data stored as QSettings.
.TP
.B \-v, \-\-version
Show version of program.
.TP
.B \-\-load\-playlist\-from\-file file
Loads the playlist from file. One entry per line.
.SH SEE ALSO
.BR syncplay-server (1).

View File

@ -1,2 +1,2 @@
pyside2>=5.12.0
pyside2>=5.11.0
requests>=2.20.0; sys_platform == 'darwin'

View File

@ -9,9 +9,6 @@ def read(fname):
with open(fname, 'r') as f:
return f.read()
if os.getenv('SNAPCRAFT_PART_BUILD', None) is not None:
installRequirements = ["pyasn1"] + read('requirements.txt').splitlines()
else:
installRequirements = read('requirements.txt').splitlines() +\
read('requirements_gui.txt').splitlines()
@ -61,6 +58,7 @@ setuptools.setup(
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Topic :: Internet",
"Topic :: Multimedia :: Video"
],

View File

@ -1,35 +0,0 @@
name: syncplay
summary: Syncplay
version: build
version-script: cat syncplay/__init__.py | awk '/version/ {gsub("\047", "", $3); print $NF}'
summary: Client/server to synchronize media playback on many computers
description: |
Syncplay synchronises the position and play state of multiple media players
so that the viewers can watch the same thing at the same time. This means that
when one person pauses/unpauses playback or seeks (jumps position) within their
media player then this will be replicated across all media players connected to
the same server and in the same 'room' (viewing session). When a new person
joins they will also be synchronised. Syncplay also includes text-based chat so
you can discuss a video as you watch it (or you could use third-party Voice over
IP software to talk over a video).
confinement: classic
icon: syncplay/resources/syncplay.png
grade: stable
parts:
syncplay:
plugin: python
source: .
stage-packages:
- python3-pyside
after: [desktop-qt4]
apps:
syncplay:
command: bin/desktop-launch $SNAP/usr/bin/python3 $SNAP/bin/syncplay
desktop: lib/python3.5/site-packages/syncplay/resources/syncplay.desktop
syncplay-server:
command: bin/syncplay-server
desktop: lib/python3.5/site-packages/syncplay/resources/syncplay-server.desktop

View File

@ -1,5 +1,5 @@
version = '1.6.5'
version = '1.6.8'
revision = ' development'
milestone = 'Yoitsu'
release_number = '84'
release_number = '96'
projectURL = 'https://syncplay.pl/'

View File

@ -9,6 +9,7 @@ import re
import sys
import threading
import time
from fnmatch import fnmatch
from copy import deepcopy
from functools import wraps
@ -38,7 +39,7 @@ except:
from syncplay import utils, constants, version
from syncplay.constants import PRIVACY_SENDHASHED_MODE, PRIVACY_DONTSEND_MODE, \
PRIVACY_HIDDENFILENAME
from syncplay.messages import getMissingStrings, getMessage
from syncplay.messages import getMissingStrings, getMessage, isNoOSDMessage
from syncplay.protocols import SyncClientProtocol
from syncplay.utils import isMacOS
@ -60,6 +61,7 @@ class SyncClientFactory(ClientFactory):
class SyncplayClient(object):
def __init__(self, playerClass, ui, config):
self.delayedLoadPath = None
constants.SHOW_OSD = config['showOSD']
constants.SHOW_OSD_WARNINGS = config['showOSDWarnings']
constants.SHOW_SLOWDOWN_OSD = config['showSlowdownOSD']
@ -75,6 +77,12 @@ class SyncplayClient(object):
self.serverFeatures = {}
self.lastRewindTime = None
self.lastUpdatedFileTime = None
self.lastAdvanceTime = None
self.lastConnectTime = None
self.lastSetRoomTime = None
self.hadFirstPlaylistIndex = False
self.hadFirstStateUpdate = False
self.lastLeftTime = 0
self.lastPausedOnLeaveTime = None
self.lastLeftUser = ""
@ -186,17 +194,19 @@ class SyncplayClient(object):
return pauseChange, seeked
def rewindFile(self):
self.setPosition(-1)
self.setPosition(0)
self.establishRewindDoubleCheck()
def establishRewindDoubleCheck(self):
if constants.DOUBLE_CHECK_REWIND:
reactor.callLater(0.5, self.doubleCheckRewindFile,)
reactor.callLater(1, self.doubleCheckRewindFile,)
reactor.callLater(1.5, self.doubleCheckRewindFile,)
return
def doubleCheckRewindFile(self):
if self.getStoredPlayerPosition() > 5:
self.setPosition(-1)
self.setPosition(0)
self.ui.showDebugMessage("Rewinded after double-check")
def isPlayingMusic(self):
@ -205,6 +215,9 @@ class SyncplayClient(object):
if self.userlist.currentUser.file['name'].lower().endswith(musicFormat):
return True
def seamlessMusicOveride(self):
return self.isPlayingMusic() and self._recentlyAdvanced()
def updatePlayerStatus(self, paused, position):
position -= self.getUserOffset()
pauseChange, seeked = self._determinePlayerStateChange(paused, position)
@ -229,9 +242,7 @@ class SyncplayClient(object):
if self._lastGlobalUpdate:
self._lastPlayerUpdate = time.time()
if seeked and not pauseChange and self.isPlayingMusic() and abs(positionBeforeSeek - currentLength) < constants.PLAYLIST_LOAD_NEXT_FILE_TIME_FROM_END_THRESHOLD and self.playlist.notJustChangedPlaylist():
self.playlist.loadNextFileInPlaylist()
elif (pauseChange or seeked) and self._protocol:
if (pauseChange or seeked) and self._protocol:
if seeked:
self.playerPositionBeforeLastSeek = self.getGlobalPosition()
self._protocol.sendState(self.getPlayerPosition(), self.getPlayerPaused(), seeked, None, True)
@ -239,16 +250,31 @@ class SyncplayClient(object):
def prepareToAdvancePlaylist(self):
if self.playlist.canSwitchToNextPlaylistIndex():
self.ui.showDebugMessage("Preparing to advance playlist...")
if self.isPlayingMusic():
self._protocol.sendState(0, False, True, None, True)
else:
self.lastAdvanceTime = time.time()
self._protocol.sendState(0, True, True, None, True)
else:
self.ui.showDebugMessage("Not preparing to advance playlist because the next file cannot be switched to")
def _recentlyAdvanced(self):
lastAdvandedDiff = time.time() - self.lastAdvanceTime if self.lastAdvanceTime else None
if lastAdvandedDiff is not None and lastAdvandedDiff < constants.AUTOPLAY_DELAY + 5:
return True
def recentlyConnected(self):
connectDiff = time.time() - self.lastConnectTime if self.lastConnectTime else None
if connectDiff is None or connectDiff < constants.LAST_PAUSED_DIFF_THRESHOLD:
return True
def recentlyRewound(self, recentRewindThreshold = 5.0):
lastRewindTime = self.lastRewindTime
if lastRewindTime and self.lastUpdatedFileTime and self.lastUpdatedFileTime > lastRewindTime:
lastRewindTime = self.lastRewindTime - 4.5
return lastRewindTime is not None and abs(time.time() - lastRewindTime) < recentRewindThreshold
def _toggleReady(self, pauseChange, paused):
if not self.userlist.currentUser.canControl():
self._player.setPaused(self._globalPaused)
if not self.recentlyRewound() and not ((self._globalPaused == True) and not self._recentlyAdvanced()):
self.toggleReady(manuallyInitiated=True)
self._playerPaused = self._globalPaused
pauseChange = False
@ -256,6 +282,14 @@ class SyncplayClient(object):
self.ui.showMessage(getMessage("set-as-not-ready-notification"))
else:
self.ui.showMessage(getMessage("set-as-ready-notification"))
elif self.seamlessMusicOveride():
self.ui.showDebugMessage("Readiness toggle ignored due to seamless music override")
self._player.setPaused(paused)
self._playerPaused = paused
elif (self.recentlyRewound() and (self._globalPaused == True) and not self._recentlyAdvanced()):
self._player.setPaused(self._globalPaused)
self._playerPaused = self._globalPaused
pauseChange = False
elif not paused and not self.instaplayConditionsMet():
paused = True
self._player.setPaused(paused)
@ -467,6 +501,7 @@ class SyncplayClient(object):
return self._globalPaused
def updateFile(self, filename, duration, path):
self.lastUpdatedFileTime = time.time()
newPath = ""
if utils.isURL(path):
filename = path
@ -498,6 +533,14 @@ class SyncplayClient(object):
# TODO: Properly add message for setting trusted domains!
# TODO: Handle cases where users add www. to start of domain
def setRoomList(self, newRoomList):
newRoomList = sorted(newRoomList)
from syncplay.ui.ConfigurationGetter import ConfigurationGetter
ConfigurationGetter().setConfigOption("roomList", newRoomList)
oldRoomList = self._config['roomList']
if oldRoomList != newRoomList:
self._config['roomList'] = newRoomList
def isUntrustedTrustableURI(self, URIToTest):
if utils.isURL(URIToTest):
for trustedProtocol in constants.TRUSTABLE_WEB_PROTOCOLS:
@ -512,8 +555,8 @@ class SyncplayClient(object):
if self._config['onlySwitchToTrustedDomains']:
if self._config['trustedDomains']:
for trustedDomain in self._config['trustedDomains']:
trustableURI = ''.join([trustedProtocol, trustedDomain, "/"])
if URIToTest.startswith(trustableURI):
trustableURI = ''.join([trustedProtocol, trustedDomain, "/*"])
if fnmatch(URIToTest, trustableURI):
return True
return False
else:
@ -528,6 +571,7 @@ class SyncplayClient(object):
self.playlist.openedFile()
self._player.openFile(filePath, resetPosition)
if resetPosition:
self.rewindFile()
self.establishRewindDoubleCheck()
self.lastRewindTime = time.time()
self.autoplayCheck()
@ -645,6 +689,7 @@ class SyncplayClient(object):
return features
def setRoom(self, roomName, resetAutoplay=False):
self.lastSetRoomTime = time.time()
roomSplit = roomName.split(":")
if roomName.startswith("+") and len(roomSplit) > 2:
roomName = roomSplit[0] + ":" + roomSplit[1]
@ -681,6 +726,7 @@ class SyncplayClient(object):
return sharedPlaylistEnabled
def connected(self):
self.lastConnectTime = time.time()
readyState = self._config['readyAtStart'] if self.userlist.currentUser.isReady() is None else self.userlist.currentUser.isReady()
self._protocol.setReady(readyState, manuallyInitiated=False)
self.reIdentifyAsController()
@ -744,7 +790,11 @@ class SyncplayClient(object):
perPlayerArguments = utils.getPlayerArgumentsByPathAsArray(self._config['perPlayerArguments'], self._config['playerPath'])
if perPlayerArguments:
self._config['playerArgs'].extend(perPlayerArguments)
reactor.callLater(0.1, self._playerClass.run, self, self._config['playerPath'], self._config['file'], self._config['playerArgs'], )
filePath = self._config['file']
if self._config['sharedPlaylistEnabled'] and filePath is not None:
self.delayedLoadPath = filePath
filePath = ""
reactor.callLater(0.1, self._playerClass.run, self, self._config['playerPath'], filePath, self._config['playerArgs'], )
self._playerClass = None
self.protocolFactory = SyncClientFactory(self)
if '[' in host:
@ -753,7 +803,7 @@ class SyncplayClient(object):
self._endpoint = HostnameEndpoint(reactor, host, port)
try:
caCertFP = open(os.environ['SSL_CERT_FILE'])
caCertTwisted = Certificate.loadPEM(caCertFP.read())
caCertTwisted = Certificate.loadPEM(caCertFP.read().encode('utf-8'))
caCertFP.close()
self.protocolFactory.options = optionsForClientTLS(hostname=host)
self._clientSupportsTLS = True
@ -885,12 +935,14 @@ class SyncplayClient(object):
return False
def autoplayConditionsMet(self):
recentlyReset = (self.lastRewindTime is not None and abs(time.time() - self.lastRewindTime) < 10) and self._playerPosition < 3
if self.seamlessMusicOveride():
self.setPaused(False)
recentlyAdvanced = self._recentlyAdvanced()
return (
self._playerPaused and (self.autoPlay or recentlyReset) and
self._playerPaused and (self.autoPlay or recentlyAdvanced) and
self.userlist.currentUser.canControl() and self.userlist.isReadinessSupported()
and self.userlist.areAllUsersInRoomReady(requireSameFilenames=self._config["autoplayRequireSameFilenames"])
and ((self.autoPlayThreshold and self.userlist.usersInRoomCount() >= self.autoPlayThreshold) or recentlyReset)
and ((self.autoPlayThreshold and self.userlist.usersInRoomCount() >= self.autoPlayThreshold) or recentlyAdvanced)
)
def autoplayTimerIsRunning(self):
@ -956,7 +1008,7 @@ class SyncplayClient(object):
self._protocol.requestControlledRoom(roomName, controlPassword)
def controlledRoomCreated(self, roomName, controlPassword):
self.ui.showMessage(getMessage("created-controlled-room-notification").format(roomName, controlPassword))
self.ui.showMessage(getMessage("created-controlled-room-notification").format(roomName, controlPassword, roomName, roomName + ":" + controlPassword))
self.setRoom(roomName, resetAutoplay=True)
self.sendRoom()
self._protocol.requestControlledRoom(roomName, controlPassword)
@ -968,7 +1020,6 @@ class SyncplayClient(object):
else:
return ""
@requireServerFeature("managedRooms")
def identifyAsController(self, controlPassword):
controlPassword = self.stripControlPassword(controlPassword)
self.ui.showMessage(getMessage("identifying-as-controller-notification").format(controlPassword))
@ -991,6 +1042,11 @@ class SyncplayClient(object):
def storeControlPassword(self, room, password):
if password:
self.controlpasswords[room] = password
try:
if self._config['autosaveJoinsToList']:
self.ui.addRoomToList(room+":"+password)
except:
pass
def getControlledRoomPassword(self, room):
if room in self.controlpasswords:
@ -1403,6 +1459,8 @@ class SyncplayUserlist(object):
return True
def areYouAloneInRoom(self):
if self._client.recentlyConnected():
return False
for user in self._users.values():
if user.room == self.currentUser.room:
return False
@ -1501,6 +1559,9 @@ class UiManager(object):
self.lastAlertOSDEndTime = None
self.lastError = ""
def addFileToPlaylist(self, newPlaylistItem):
self.__ui.addFileToPlaylist(newPlaylistItem)
def setPlaylist(self, newPlaylist, newIndexFilename=None):
self.__ui.setPlaylist(newPlaylist, newIndexFilename)
@ -1540,6 +1601,9 @@ class UiManager(object):
self.__ui.showUserList(currentUser, rooms)
def showOSDMessage(self, message, duration=constants.OSD_DURATION, OSDType=constants.OSD_NOTIFICATION, mood=constants.MESSAGE_NEUTRAL):
if(isNoOSDMessage(message)):
return
autoplayConditionsMet = self._client.autoplayConditionsMet()
if OSDType == constants.OSD_ALERT and not constants.SHOW_OSD_WARNINGS and not self._client.autoplayTimerIsRunning():
return
@ -1582,6 +1646,9 @@ class UiManager(object):
def updateRoomName(self, room=""):
self.__ui.updateRoomName(room)
def addRoomToList(self, room):
self.__ui.addRoomToList(room)
def executeCommand(self, command):
self.__ui.executeCommand(command)
@ -1591,6 +1658,7 @@ class UiManager(object):
class SyncplayPlaylist():
def __init__(self, client):
self.queuedIndex = None
self._client = client
self._ui = self._client.ui
self._previousPlaylist = None
@ -1612,15 +1680,72 @@ class SyncplayPlaylist():
def openedFile(self):
self._lastPlaylistIndexChange = time.time()
def removeDirsFromPath(self, filePath):
if os.path.isfile(filePath):
return os.path.basename(filePath)
elif utils.isURL(filePath):
return filePath
self._ui.showDebugMessage("Could not find path: {}".format(filePath))
def getPlaylistIndexFromPath(self, filePath):
filePath = self.removeDirsFromPath(filePath)
try:
return self._playlist.index(filePath)
except ValueError:
return
def changeToPlaylistIndexFromFilename(self, filename):
try:
index = self._playlist.index(filename)
if index != self._playlistIndex:
self.changeToPlaylistIndex(index)
self.changeToPlaylistIndex(index, resetPosition=True)
else:
if filename == self.queuedIndexFilename:
return
self._client.rewindFile()
except ValueError:
pass
def changeToPlaylistIndex(self, index, username=None):
def loadDelayedPath(self, changeToIndex):
# Implementing the behaviour set out at https://github.com/Syncplay/syncplay/issues/315
if self._client.playerIsNotReady():
self._client.addPlayerReadyCallback(lambda x: self.loadDelayedPath(changeToIndex))
return
if self._client._protocol.hadFirstPlaylistIndex and self._client.delayedLoadPath:
delayedLoadPath = str(self._client.delayedLoadPath)
self._client.delayedLoadPath = None
if self._client.sharedPlaylistIsEnabled():
pathWithoutDirs = self.removeDirsFromPath(delayedLoadPath)
if len(self._playlist) == 0:
self._client.openFile(delayedLoadPath, resetPosition=True, fromUser=True)
self._client.ui.addFileToPlaylist(delayedLoadPath)
else:
try:
currentPlaylistFilename = self._playlist[changeToIndex]
except TypeError:
currentPlaylistFilename = None
if currentPlaylistFilename != pathWithoutDirs:
if pathWithoutDirs not in self._playlist:
if utils.isURL(delayedLoadPath) or utils.isURL(currentPlaylistFilename):
self._client.ui.addFileToPlaylist(delayedLoadPath)
else:
foundFilePath = self._client.fileSwitch.findFilepath(currentPlaylistFilename, highPriority=True)
if foundFilePath is None:
self._client.openFile(delayedLoadPath, resetPosition=False)
else:
self._client.ui.showMessage("{}: {}...".format(getMessage("addfilestoplaylist-menu-label"), pathWithoutDirs))
reactor.callLater(constants.DELAYED_LOAD_WAIT_TIME, self._client.ui.addFileToPlaylist, delayedLoadPath, ) # TODO: Avoid arbitary pause
else:
self._client.ui.showErrorMessage(getMessage("cannot-add-duplicate-error").format(pathWithoutDirs))
else:
self._client.openFile(delayedLoadPath)
def changeToPlaylistIndex(self, index, username=None, resetPosition=False):
if self.loadDelayedPath(index):
return
if self._playlist is None or len(self._playlist) == 0:
return
if index is None:
@ -1647,10 +1772,12 @@ class SyncplayPlaylist():
self._playlistIndex = index
if username is None:
if self._client.isConnectedAndInARoom() and self._client.sharedPlaylistIsEnabled():
if resetPosition:
self._client.rewindFile()
self._client.setPlaylistIndex(index)
else:
elif index is not None:
self._ui.showMessage(getMessage("playlist-selection-changed-notification").format(username))
self.switchToNewPlaylistIndex(index)
self.switchToNewPlaylistIndex(index, resetPosition=resetPosition)
def canSwitchToNextPlaylistIndex(self):
if self._thereIsNextPlaylistIndex() and self._client.sharedPlaylistIsEnabled():
@ -1670,6 +1797,11 @@ class SyncplayPlaylist():
@needsSharedPlaylistsEnabled
def switchToNewPlaylistIndex(self, index, resetPosition = False):
try:
self.queuedIndexFilename = self._playlist[index]
except:
self.queuedIndexFilename = None
self._ui.showDebugMessage("Failed to find index {} in plauylist".format(index))
self._lastPlaylistIndexChange = time.time()
if self._client.playerIsNotReady():
self._client.addPlayerReadyCallback(lambda x: self.switchToNewPlaylistIndex(index, resetPosition))
@ -1746,6 +1878,7 @@ class SyncplayPlaylist():
def changePlaylist(self, files, username=None, resetIndex=False):
self.queuedIndexFilename = None
if self._playlist == files:
if self._playlistIndex != 0 and resetIndex:
self.changeToPlaylistIndex(0)
@ -1771,6 +1904,18 @@ class SyncplayPlaylist():
self._ui.setPlaylist(self._playlist)
self._ui.showMessage(getMessage("playlist-contents-changed-notification").format(username))
def addToPlaylist(self, file):
self.changePlaylist([*self._playlist, file])
def deleteAtIndex(self, index):
new_playlist = self._playlist.copy()
if index >= 0 and index < len(new_playlist):
del new_playlist[index]
self.changePlaylist(new_playlist)
else:
raise TypeError("Invalid index")
@needsSharedPlaylistsEnabled
def undoPlaylistChange(self):
if self.canUndoPlaylist(self._playlist):
@ -1889,7 +2034,7 @@ class FileSwitchManager(object):
self.mediaFilesCache = {}
self.filenameWatchlist = []
self.currentDirectory = None
self.mediaDirectories = None
self.mediaDirectories = client.getConfig().get('mediaSearchDirectories')
self.lock = threading.Lock()
self.folderSearchEnabled = True
self.directorySearchError = None
@ -1901,7 +2046,7 @@ class FileSwitchManager(object):
self.mediaDirectoriesNotFound = []
def setClient(self, newClient):
self.client = newClient
self._client = newClient
def setCurrentDirectory(self, curDir):
self.currentDirectory = curDir
@ -1975,6 +2120,8 @@ class FileSwitchManager(object):
if self.mediaFilesCache != newMediaFilesCache:
self.mediaFilesCache = newMediaFilesCache
self.newInfo = True
except Exception as e:
self._client.ui.showDebugMessage(str(e))
finally:
self.currentlyUpdating = False

View File

@ -29,7 +29,7 @@ MPLAYER_OSD_LEVEL = 1
UI_TIME_FORMAT = "[%X] "
CONFIG_NAMES = [".syncplay", "syncplay.ini"] # Syncplay searches first to last
DEFAULT_CONFIG_NAME = "syncplay.ini"
RECENT_CLIENT_THRESHOLD = "1.6.4" # This and higher considered 'recent' clients (no warnings)
RECENT_CLIENT_THRESHOLD = "1.6.7" # This and higher considered 'recent' clients (no warnings)
MUSIC_FORMATS = [".mp3", ".m4a", ".m4p", ".wav", ".aiff", ".r", ".ogg", ".flac"] # ALL LOWER CASE!
WARN_OLD_CLIENTS = True # Use MOTD to inform old clients to upgrade
LIST_RELATIVE_CONFIGS = True # Print list of relative configs loaded
@ -58,6 +58,7 @@ SHOW_DURATION_NOTIFICATION = True
DEBUG_MODE = False
# Changing these might be ok
DELAYED_LOAD_WAIT_TIME = 2.5
AUTOMATIC_UPDATE_CHECK_FREQUENCY = 7 * 86400 # Days converted into seconds
DEFAULT_REWIND_THRESHOLD = 4
MINIMUM_REWIND_THRESHOLD = 3
@ -109,6 +110,7 @@ FOLDER_SEARCH_TIMEOUT = 20.0 # Secs - How long to wait until searches in folder
FOLDER_SEARCH_DOUBLE_CHECK_INTERVAL = 30.0 # Secs - Frequency of updating cache
# Usually there's no need to adjust these
DOUBLE_CHECK_REWIND = False
LAST_PAUSED_DIFF_THRESHOLD = 2
FILENAME_STRIP_REGEX = "[-~_\.\[\](): ]"
CONTROL_PASSWORD_STRIP_REGEX = "[^a-zA-Z0-9\-]"
@ -122,10 +124,14 @@ COMMANDS_HELP = ['help', 'h', '?', '/?', r'\?']
COMMANDS_CREATE = ['c', 'create']
COMMANDS_AUTH = ['a', 'auth']
COMMANDS_TOGGLE = ['t', 'toggle']
COMMANDS_QUEUE = ['queue', 'qa', 'add']
COMMANDS_PLAYLIST = ['playlist', 'ql', 'pl']
COMMANDS_SELECT = ['select', 'qs']
COMMANDS_DELETE = ['delete', 'd', 'qd']
MPC_MIN_VER = "1.6.4"
MPC_BE_MIN_VER = "1.5.2.3123"
VLC_MIN_VERSION = "2.2.1"
VLC_INTERFACE_VERSION = "0.3.5"
VLC_INTERFACE_VERSION = "0.3.6"
VLC_LATENCY_ERROR_THRESHOLD = 2.0
MPV_UNRESPONSIVE_THRESHOLD = 60.0
CONTROLLED_ROOMS_MIN_VERSION = "1.3.0"
@ -133,6 +139,8 @@ USER_READY_MIN_VERSION = "1.3.0"
SHARED_PLAYLIST_MIN_VERSION = "1.4.0"
CHAT_MIN_VERSION = "1.5.0"
FEATURE_LIST_MIN_VERSION = "1.5.0"
IINA_PATHS = ['/Applications/IINA.app/Contents/MacOS/IINA']
MPC_PATHS = [
r"c:\program files (x86)\mpc-hc\mpc-hc.exe",
r"c:\program files\mpc-hc\mpc-hc.exe",
@ -142,6 +150,8 @@ MPC_PATHS = [
r"c:\program files (x86)\media player classic - home cinema\mpc-hc.exe",
r"c:\program files (x86)\k-lite codec pack\media player classic\mpc-hc.exe",
r"c:\program files\k-lite codec pack\media Player classic\mpc-hc.exe",
r"C:\program files\k-lite codec pack\mpc-hc64\mpc-hc64.exe",
r"C:\program files (x86)\k-lite codec pack\mpc-hc64\mpc-hc64.exe",
r"c:\program files (x86)\combined community codec pack\mpc\mpc-hc.exe",
r"c:\program files\combined community codec pack\mpc\mpc-hc.exe",
r"c:\program files\mpc homecinema (x64)\mpc-hc64.exe",
@ -170,9 +180,10 @@ VLC_PATHS = [
]
VLC_ICONPATH = "vlc.png"
IINA_ICONPATH = "iina.png"
MPLAYER_ICONPATH = "mplayer.png"
MPV_ICONPATH = "mpv.png"
MPVNET_ICONPATH = "mpvnet.ico"
MPVNET_ICONPATH = "mpvnet.png"
MPC_ICONPATH = "mpc-hc.png"
MPC64_ICONPATH = "mpc-hc64.png"
MPC_BE_ICONPATH = "mpc-be.png"
@ -235,9 +246,23 @@ USERLIST_GUI_USERNAME_COLUMN = 0
USERLIST_GUI_FILENAME_COLUMN = 3
MPLAYER_SLAVE_ARGS = ['-slave', '--hr-seek=always', '-nomsgcolor', '-msglevel', 'all=1:global=4:cplayer=4', '-af-add', 'scaletempo']
MPV_ARGS = ['--force-window', '--idle', '--hr-seek=always', '--keep-open']
MPV_SLAVE_ARGS = ['--msg-level=all=error,cplayer=info,term-msg=info', '--input-terminal=no', '--input-file=/dev/stdin']
MPV_SLAVE_ARGS_NEW = ['--term-playing-msg=<SyncplayUpdateFile>\nANS_filename=${filename}\nANS_length=${=duration:${=length:0}}\nANS_path=${path}\n</SyncplayUpdateFile>', '--terminal=yes']
MPV_ARGS = {'force-window': 'yes',
'idle': 'yes',
'hr-seek': 'always',
'keep-open': 'always',
'input-terminal': 'no',
'term-playing-msg': '<SyncplayUpdateFile>\nANS_filename=${filename}\nANS_length=${=duration:${=length:0}}\nANS_path=${path}\n</SyncplayUpdateFile>',
'keep-open-pause': 'yes'
}
IINA_PROPERTIES = {'geometry': '25%+100+100',
'idle': 'yes',
'hr-seek': 'always',
'input-terminal': 'no',
'term-playing-msg': '<SyncplayUpdateFile>\nANS_filename=${filename}\nANS_length=${=duration:${=length:0}}\nANS_path=${path}\n</SyncplayUpdateFile>',
'keep-open-pause': 'yes',
}
MPV_NEW_VERSION = False
MPV_OSC_VISIBILITY_CHANGE_VERSION = False
MPV_INPUT_PROMPT_START_CHARACTER = ""
@ -261,7 +286,7 @@ VLC_SLAVE_ARGS = ['--extraintf=luaintf', '--lua-intf=syncplay', '--no-quiet', '-
VLC_SLAVE_EXTRA_ARGS = getValueForOS({
OS_DEFAULT: ['--no-one-instance', '--no-one-instance-when-started-from-file'],
OS_MACOS: ['--verbose=2', '--no-file-logging']})
MPV_SUPERSEDE_IF_DUPLICATE_COMMANDS = ["no-osd set time-pos ", "loadfile "]
MPV_SUPERSEDE_IF_DUPLICATE_COMMANDS = ["set_property time-pos ", "loadfile "]
MPV_REMOVE_BOTH_IF_DUPLICATE_COMMANDS = ["cycle pause"]
MPLAYER_ANSWER_REGEX = "^ANS_([a-zA-Z_-]+)=(.+)$|^(Exiting)\.\.\. \((.+)\)$"
VLC_ANSWER_REGEX = r"(?:^(?P<command>[a-zA-Z_]+)(?:\: )?(?P<argument>.*))"

View File

@ -7,17 +7,26 @@ from . import messages_de
from . import messages_it
from . import messages_es
from . import messages_pt_BR
from . import messages_pt_PT
from . import messages_tr
import re
messages = {
"en": messages_en.en,
"ru": messages_ru.ru,
"de": messages_de.de,
"it": messages_it.it,
"en": messages_en.en,
"es": messages_es.es,
"es": messages_pt_BR.pt_BR,
"it": messages_it.it,
"pt_PT": messages_pt_PT.pt_PT,
"pt_BR": messages_pt_BR.pt_BR,
"tr": messages_tr.tr,
"ru": messages_ru.ru,
"CURRENT": None
}
no_osd_message_list = [
"slowdown-notification",
"revert-notification",
]
def getLanguages():
langList = {}
@ -26,11 +35,17 @@ def getLanguages():
langList[lang] = getMessage("LANGUAGE", lang)
return langList
def isNoOSDMessage(message):
for no_osd_message in no_osd_message_list:
regex = "^" + getMessage(no_osd_message).replace("{}", ".+") + "$"
regex_test = bool(re.match(regex, message))
if regex_test:
return True
return False
def setLanguage(lang):
messages["CURRENT"] = lang
def getMissingStrings():
missingStrings = ""
for lang in messages:

View File

@ -47,7 +47,7 @@ de = {
"identifying-as-controller-notification": "Identifiziere als Raumleiter mit Passwort „{}“...", # TODO: find a better translation to "room operator"
"failed-to-identify-as-controller-notification": "{} konnte sich nicht als Raumleiter identifizieren.",
"authenticated-as-controller-notification": "{} authentifizierte sich als Raumleiter",
"created-controlled-room-notification": "Gesteuerten Raum „{}“ mit Passwort „{}“ erstellt. Bitte diese Informationen für die Zukunft aufheben!", # RoomName, operatorPassword
"created-controlled-room-notification": "Gesteuerten Raum „{}“ mit Passwort „{}“ erstellt. Bitte diese Informationen für die Zukunft aufheben! \n\nIn managed rooms everyone is kept in sync with the room operator(s) who are the only ones who can pause, unpause, seek, and change the playlist.\n\nYou should ask regular viewers to join the room '{}' but the room operators can join the room '{}' to automatically authenticate themselves.", # RoomName, operatorPassword, roomName, roomName:operatorPassword # TODO: Translate
"file-different-notification": "Deine Datei scheint sich von {}s zu unterscheiden", # User
"file-differences-notification": "Deine Datei unterscheidet sich auf folgende Art: {}",
@ -87,6 +87,10 @@ de = {
"commandlist-notification/create": "\tc [name] - erstelle zentral gesteuerten Raum mit dem aktuellen Raumnamen",
"commandlist-notification/auth": "\ta [password] - authentifiziere als Raumleiter mit Passwort",
"commandlist-notification/chat": "\tch [message] - Chatnachricht an einem Raum senden",
"commandList-notification/queue": "\tqa [file/url] - add file or url to bottom of playlist", # TO DO: Translate
"commandList-notification/playlist": "\tql - show the current playlist", # TO DO: Translate
"commandList-notification/select": "\tqs [index] - select given entry in the playlist", # TO DO: Translate
"commandList-notification/delete": "\tqd [index] - delete the given entry from the playlist", # TO DO: Translate
"syncplay-version-notification": "Syncplay Version: {}", # syncplay.version
"more-info-notification": "Weitere Informationen auf: {}", # projectURL
@ -107,8 +111,9 @@ de = {
"mpc-version-insufficient-error": "MPC-Version nicht ausreichend, bitte nutze `mpc-hc` >= `{}`",
"mpc-be-version-insufficient-error": "MPC-Version nicht ausreichend, bitte nutze `mpc-be` >= `{}`",
"mpv-version-error": "Syncplay ist nicht kompatibel mit dieser Version von mpv. Bitte benutze eine andere Version (z.B. Git HEAD).",
"mpv-failed-advice": "The reason mpv cannot start may be due to the use of unsupported command line arguments or an unsupported version of mpv.", # TODO: Translate
"player-file-open-error": "Fehler beim Öffnen der Datei durch den Player",
"player-path-error": "Ungültiger Player-Pfad. Unterstützte Player sind: mpv, mpv.net, VLC, MPC-HC, MPC-BE und mplayer2",
"player-path-error": "Ungültiger Player-Pfad. Unterstützte Player sind: mpv, mpv.net, VLC, MPC-HC, MPC-BE, mplayer2 und IINA",
"hostname-empty-error": "Hostname darf nicht leer sein",
"empty-error": "{} darf nicht leer sein", # Configuration
"media-player-error": "Player-Fehler: \"{}\"", # Error line
@ -119,7 +124,7 @@ de = {
"unable-to-start-client-error": "Client kann nicht gestartet werden",
"player-path-config-error": "Player-Pfad ist nicht ordnungsgemäß gesetzt. Unterstützte Player sind: mpv, mpv.net, VLC, MPC-HC, MPC-BE und mplayer2",
"player-path-config-error": "Player-Pfad ist nicht ordnungsgemäß gesetzt. Unterstützte Player sind: mpv, mpv.net, VLC, MPC-HC, MPC-BE, mplayer2 und IINA",
"no-file-path-config-error": "Es muss eine Datei ausgewählt werden, bevor der Player gestartet wird.",
"no-hostname-config-error": "Hostname darf nicht leer sein",
"invalid-port-config-error": "Port muss gültig sein",
@ -128,10 +133,11 @@ de = {
"not-json-error": "Kein JSON-String\n",
"hello-arguments-error": "Zu wenige Hello-Argumente\n",
"version-mismatch-error": "Verschiedene Versionen auf Client und Server\n",
"vlc-failed-connection": "Kann nicht zu VLC verbinden. Wenn du syncplay.lua nicht installiert hast, findest du auf https://syncplay.pl/LUA/ [Englisch] eine Anleitung.",
"vlc-failed-connection": "Kann nicht zu VLC verbinden. Wenn du syncplay.lua nicht installiert hast, findest du auf https://syncplay.pl/LUA/ [Englisch] eine Anleitung. Syncplay and VLC 4 are not currently compatible, so either use VLC 3 or an alternative such as mpv.", # TO DO: TRANSLATE
"vlc-failed-noscript": "Laut VLC ist das syncplay.lua Interface-Skript nicht installiert. Auf https://syncplay.pl/LUA/ [Englisch] findest du eine Anleitung.",
"vlc-failed-versioncheck": "Diese VLC-Version wird von Syncplay nicht unterstützt. Bitte nutze VLC 2.0",
"vlc-initial-warning": 'VLC does not always provide accurate position information to Syncplay, especially for .mp4 and .avi files. If you experience problems with erroneous seeking then please try an alternative media player such as <a href="https://mpv.io/">mpv</a> (or <a href="https://github.com/stax76/mpv.net/">mpv.net</a> for Windows users).', # TODO: Translate
"feature-sharedPlaylists": "Geteilte Playlists", # used for not-supported-by-server-error
"feature-chat": "Chat", # used for not-supported-by-server-error
"feature-readiness": "Bereitschaftsstatus", # used for not-supported-by-server-error
@ -168,7 +174,7 @@ de = {
"file-argument": 'Abzuspielende Datei',
"args-argument": 'Player-Einstellungen; Wenn du Einstellungen, die mit - beginnen, nutzen willst, stelle ein einzelnes \'--\'-Argument davor',
"clear-gui-data-argument": 'Setzt die Pfad- und GUI-Fenster-Daten die in den QSettings gespeichert sind zurück',
"language-argument": 'Sprache für Syncplay-Nachrichten (de/en/ru/it/es/pt_BR)',
"language-argument": 'Sprache für Syncplay-Nachrichten (de/en/ru/it/es/pt_BR/pt_PT/tr)',
"version-argument": 'gibt die aktuelle Version aus',
"version-message": "Du verwendest Syncplay v. {} ({})",
@ -183,6 +189,7 @@ de = {
"name-label": "Benutzername (optional):",
"password-label": "Server-Passwort (falls nötig):",
"room-label": "Standard-Raum:",
"roomlist-msgbox-label": "Edit room list (one per line)", # TODO: Translate
"media-setting-title": "Media-Player Einstellungen",
"executable-path-label": "Pfad zum Media-Player:",
@ -324,6 +331,7 @@ de = {
"startTLS-initiated": "Sichere Verbindung wird versucht",
"startTLS-secure-connection-ok": "Sichere Verbindung hergestellt ({})",
"startTLS-server-certificate-invalid": 'Sichere Verbindung fehlgeschlagen. Der Server benutzt ein ungültiges Sicherheitszertifikat. Der Kanal könnte von Dritten abgehört werden. Für weitere Details und Problemlösung siehe <a href="https://syncplay.pl/trouble">hier</a> [Englisch].',
"startTLS-server-certificate-invalid-DNS-ID": "Syncplay does not trust this server because it uses a certificate that is not valid for its hostname.", # TODO: Translate
"startTLS-not-supported-client": "Dieser Server unterstützt kein TLS",
"startTLS-not-supported-server": "Dieser Server unterstützt kein TLS",
@ -371,7 +379,9 @@ de = {
"password-tooltip": "Passwörter sind nur bei Verbindung zu privaten Servern nötig.",
"room-tooltip": "Der Raum, der betreten werden soll, kann ein x-beliebiger sein. Allerdings werden nur Clients im selben Raum synchronisiert.",
"executable-path-tooltip": "Pfad zum ausgewählten, unterstützten Mediaplayer (MPC-HC, MPC-BE, VLC, mplayer2 or mpv).",
"edit-rooms-tooltip": "Edit room list.", # TO DO: Translate
"executable-path-tooltip": "Pfad zum ausgewählten, unterstützten Mediaplayer (mpv, mpv.net, VLC, MPC-HC/BE, mplayer2, oder IINA).",
"media-path-tooltip": "Pfad zum wiederzugebenden Video oder Stream. Notwendig für mplayer2.",
"player-arguments-tooltip": "Zusätzliche Kommandozeilenparameter/-schalter für diesen Mediaplayer.",
"mediasearcdirectories-arguments-tooltip": "Verzeichnisse, in denen Syncplay nach Mediendateien suchen soll, z.B. wenn du die Click-to-switch-Funktion verwendest. Syncplay wird Unterverzeichnisse rekursiv durchsuchen.", # TODO: Translate Click-to-switch? (or use as name for feature)
@ -383,6 +393,8 @@ de = {
"privacy-sendhashed-tooltip": "Die Informationen gehasht übertragen, um sie für andere Clients schwerer lesbar zu machen.",
"privacy-dontsend-tooltip": "Diese Information nicht übertragen. Dies garantiert den größtmöglichen Datanschutz.",
"checkforupdatesautomatically-tooltip": "Regelmäßig auf der Syncplay-Website nach Updates suchen.",
"autosavejoinstolist-tooltip": "When you join a room in a server, automatically remember the room name in the list of rooms to join.", # TO DO: Translate
"autosavejoinstolist-label": "Add rooms you join to the room list e", # TO DO: Translate
"slowondesync-tooltip": "Reduziert die Abspielgeschwindigkeit zeitweise, um die Synchronität zu den anderen Clients wiederherzustellen.",
"rewindondesync-label": "Zurückspulen bei großer Zeitdifferenz (empfohlen)",
"fastforwardondesync-label": "Vorspulen wenn das Video laggt (empfohlen)",
@ -503,4 +515,7 @@ de = {
"playlist-instruction-item-message": "Zieh eine Datei hierher, um sie zur geteilten Playlist hinzuzufügen.",
"sharedplaylistenabled-tooltip": "Raumleiter können Dateien zu einer geteilten Playlist hinzufügen und es so erleichtern, gemeinsam das Gleiche zu gucken. Konfiguriere Medienverzeichnisse unter „Diverse“",
"playlist-empty-error": "Playlist is currently empty.", # TO DO: Translate
"playlist-invalid-index-error": "Invalid playlist index", # TO DO: Translate
}

View File

@ -47,7 +47,7 @@ en = {
"identifying-as-controller-notification": "Identifying as room operator with password '{}'...",
"failed-to-identify-as-controller-notification": "{} failed to identify as a room operator.",
"authenticated-as-controller-notification": "{} authenticated as a room operator",
"created-controlled-room-notification": "Created managed room '{}' with password '{}'. Please save this information for future reference!", # RoomName, operatorPassword
"created-controlled-room-notification": "Created managed room '{}' with password '{}'. Please save this information for future reference!\n\nIn managed rooms everyone is kept in sync with the room operator(s) who are the only ones who can pause, unpause, seek, and change the playlist.\n\nYou should ask regular viewers to join the room '{}' but the room operators can join the room '{}' to automatically authenticate themselves.", # RoomName, operatorPassword, roomName, roomName:operatorPassword
"file-different-notification": "File you are playing appears to be different from {}'s", # User
"file-differences-notification": "Your file differs in the following way(s): {}", # Differences
@ -87,6 +87,10 @@ en = {
"commandlist-notification/create": "\tc [name] - create managed room using name of current room",
"commandlist-notification/auth": "\ta [password] - authenticate as room operator with operator password",
"commandlist-notification/chat": "\tch [message] - send a chat message in a room",
"commandList-notification/queue": "\tqa [file/url] - add file or url to bottom of playlist",
"commandList-notification/playlist": "\tql - show the current playlist",
"commandList-notification/select": "\tqs [index] - select given entry in the playlist",
"commandList-notification/delete": "\tqd [index] - delete the given entry from the playlist",
"syncplay-version-notification": "Syncplay version: {}", # syncplay.version
"more-info-notification": "More info available at: {}", # projectURL
@ -107,8 +111,9 @@ en = {
"mpc-version-insufficient-error": "MPC version not sufficient, please use `mpc-hc` >= `{}`",
"mpc-be-version-insufficient-error": "MPC version not sufficient, please use `mpc-be` >= `{}`",
"mpv-version-error": "Syncplay is not compatible with this version of mpv. Please use a different version of mpv (e.g. Git HEAD).",
"mpv-failed-advice": "The reason mpv cannot start may be due to the use of unsupported command line arguments or an unsupported version of mpv.",
"player-file-open-error": "Player failed opening file",
"player-path-error": "Player path is not set properly. Supported players are: mpv, mpv.net, VLC, MPC-HC, MPC-BE and mplayer2",
"player-path-error": "Player path is not set properly. Supported players are: mpv, mpv.net, VLC, MPC-HC, MPC-BE, mplayer2, and IINA",
"hostname-empty-error": "Hostname can't be empty",
"empty-error": "{} can't be empty", # Configuration
"media-player-error": "Media player error: \"{}\"", # Error line
@ -119,7 +124,7 @@ en = {
"unable-to-start-client-error": "Unable to start client",
"player-path-config-error": "Player path is not set properly. Supported players are: mpv, mpv.net, VLC, MPC-HC, MPC-BE and mplayer2.",
"player-path-config-error": "Player path is not set properly. Supported players are: mpv, mpv.net, VLC, MPC-HC, MPC-BE, mplayer2, and IINA.",
"no-file-path-config-error": "File must be selected before starting your player",
"no-hostname-config-error": "Hostname can't be empty",
"invalid-port-config-error": "Port must be valid",
@ -128,9 +133,10 @@ en = {
"not-json-error": "Not a json encoded string\n",
"hello-arguments-error": "Not enough Hello arguments\n", # DO NOT TRANSLATE
"version-mismatch-error": "Mismatch between versions of client and server\n",
"vlc-failed-connection": "Failed to connect to VLC. If you have not installed syncplay.lua and are using the latest verion of VLC then please refer to https://syncplay.pl/LUA/ for instructions.",
"vlc-failed-connection": "Failed to connect to VLC. If you have not installed syncplay.lua and are using the latest verion of VLC then please refer to https://syncplay.pl/LUA/ for instructions. Syncplay and VLC 4 are not currently compatible, so either use VLC 3 or an alternative such as mpv.",
"vlc-failed-noscript": "VLC has reported that the syncplay.lua interface script has not been installed. Please refer to https://syncplay.pl/LUA/ for instructions.",
"vlc-failed-versioncheck": "This version of VLC is not supported by Syncplay.",
"vlc-initial-warning": 'VLC does not always provide accurate position information to Syncplay, especially for .mp4 and .avi files. If you experience problems with erroneous seeking then please try an alternative media player such as <a href="https://mpv.io/">mpv</a> (or <a href="https://github.com/stax76/mpv.net/">mpv.net</a> for Windows users).',
"feature-sharedPlaylists": "shared playlists", # used for not-supported-by-server-error
"feature-chat": "chat", # used for not-supported-by-server-error
@ -168,13 +174,14 @@ en = {
"file-argument": 'file to play',
"args-argument": 'player options, if you need to pass options starting with - prepend them with single \'--\' argument',
"clear-gui-data-argument": 'resets path and window state GUI data stored as QSettings',
"language-argument": 'language for Syncplay messages (de/en/ru/it/es/pt_BR)',
"language-argument": 'language for Syncplay messages (de/en/ru/it/es/pt_BR/pt_PT/tr)',
"version-argument": 'prints your version',
"version-message": "You're using Syncplay version {} ({})",
"load-playlist-from-file-argument": "loads playlist from text file (one entry per line)",
# Client labels
"config-window-title": "Syncplay configuration",
@ -183,6 +190,7 @@ en = {
"name-label": "Username (optional):",
"password-label": "Server password (if any):",
"room-label": "Default room: ",
"roomlist-msgbox-label": "Edit room list (one per line)",
"media-setting-title": "Media player settings",
"executable-path-label": "Path to media player:",
@ -200,6 +208,7 @@ en = {
"filename-privacy-label": "Filename information:",
"filesize-privacy-label": "File size information:",
"checkforupdatesautomatically-label": "Check for Syncplay updates automatically",
"autosavejoinstolist-label": "Add rooms you join to the room list",
"slowondesync-label": "Slow down on minor desync (not supported on MPC-HC/BE)",
"rewindondesync-label": "Rewind on major desync (recommended)",
"fastforwardondesync-label": "Fast-forward if lagging behind (recommended)",
@ -325,6 +334,7 @@ en = {
"startTLS-initiated": "Attempting secure connection",
"startTLS-secure-connection-ok": "Secure connection established ({})",
"startTLS-server-certificate-invalid": 'Secure connection failed. The server uses an invalid security certificate. This communication could be intercepted by a third party. For further details and troubleshooting see <a href="https://syncplay.pl/trouble">here</a>.',
"startTLS-server-certificate-invalid-DNS-ID": "Syncplay does not trust this server because it uses a certificate that is not valid for its hostname.",
"startTLS-not-supported-client": "This client does not support TLS",
"startTLS-not-supported-server": "This server does not support TLS",
@ -372,7 +382,9 @@ en = {
"password-tooltip": "Passwords are only needed for connecting to private servers.",
"room-tooltip": "Room to join upon connection can be almost anything, but you will only be synchronised with people in the same room.",
"executable-path-tooltip": "Location of your chosen supported media player (mpv, VLC, MPC-HC/BE or mplayer2).",
"edit-rooms-tooltip": "Edit room list.",
"executable-path-tooltip": "Location of your chosen supported media player (mpv, mpv.net, VLC, MPC-HC/BE, mplayer2 or IINA).",
"media-path-tooltip": "Location of video or stream to be opened. Necessary for mplayer2.",
"player-arguments-tooltip": "Additional command line arguments / switches to pass on to this media player.",
"mediasearcdirectories-arguments-tooltip": "Directories where Syncplay will search for media files, e.g. when you are using the click to switch feature. Syncplay will look recursively through sub-folders.",
@ -384,6 +396,7 @@ en = {
"privacy-sendhashed-tooltip": "Send a hashed version of the information, making it less visible to other clients.",
"privacy-dontsend-tooltip": "Do not send this information to the server. This provides for maximum privacy.",
"checkforupdatesautomatically-tooltip": "Regularly check with the Syncplay website to see whether a new version of Syncplay is available.",
"autosavejoinstolist-tooltip": "When you join a room in a server, automatically remember the room name in the list of rooms to join.",
"slowondesync-tooltip": "Reduce playback rate temporarily when needed to bring you back in sync with other viewers. Not supported on MPC-HC/BE.",
"dontslowdownwithme-tooltip": "Means others do not get slowed down or rewinded if your playback is lagging. Useful for room operators.",
"pauseonleave-tooltip": "Pause playback if you get disconnected or someone leaves from your room.",
@ -452,7 +465,7 @@ en = {
# Server arguments
"server-argument-description": 'Solution to synchronize playback of multiple MPlayer and MPC-HC/BE instances over the network. Server instance',
"server-argument-description": 'Solution to synchronize playback of multiple media player instances over the network. Server instance',
"server-argument-epilog": 'If no options supplied _config values will be used',
"server-port-argument": 'server TCP port',
"server-password-argument": 'server password',
@ -503,4 +516,7 @@ en = {
"playlist-instruction-item-message": "Drag file here to add it to the shared playlist.",
"sharedplaylistenabled-tooltip": "Room operators can add files to a synced playlist to make it easy for everyone to watching the same thing. Configure media directories under 'Misc'.",
"playlist-empty-error": "Playlist is currently empty.",
"playlist-invalid-index-error": "Invalid playlist index",
}

View File

@ -47,7 +47,7 @@ es = {
"identifying-as-controller-notification": "Autentificando como el operador de la sala, con contraseña '{}'...",
"failed-to-identify-as-controller-notification": "{} falló la autentificación como operador de la sala.",
"authenticated-as-controller-notification": "{} autentificado como operador de la sala",
"created-controlled-room-notification": "Sala administrada '{}' creada con contraseña '{}'. Por favor guarda esta información para referencias futuras!", # RoomName, operatorPassword
"created-controlled-room-notification": "Sala administrada '{}' creada con contraseña '{}'. Por favor guarda esta información para referencias futuras!\n\nIn managed rooms everyone is kept in sync with the room operator(s) who are the only ones who can pause, unpause, seek, and change the playlist.\n\nYou should ask regular viewers to join the room '{}' but the room operators can join the room '{}' to automatically authenticate themselves.", # RoomName, operatorPassword, roomName, roomName:operatorPassword # TODO: Translate
"file-different-notification": "El archivo que reproduces parece ser diferente al archivo de {}", # User
"file-differences-notification": "Tu archivo difiere de la(s) siguiente(s) forma(s): {}", # Differences
@ -87,6 +87,10 @@ es = {
"commandlist-notification/create": "\tc [nombre] - crear sala administrada usando el nombre de la sala actual",
"commandlist-notification/auth": "\ta [contraseña] - autentificar como operador de la sala con la contraseña de operador",
"commandlist-notification/chat": "\tch [mensaje] - enviar un mensaje en la sala",
"commandList-notification/queue": "\tqa [file/url] - add file or url to bottom of playlist", # TO DO: Translate
"commandList-notification/playlist": "\tql - show the current playlist", # TO DO: Translate
"commandList-notification/select": "\tqs [index] - select given entry in the playlist", # TO DO: Translate
"commandList-notification/delete": "\tqd [index] - delete the given entry from the playlist", # TO DO: Translate
"syncplay-version-notification": "Versión de Syncplay: {}", # syncplay.version
"more-info-notification": "Más información disponible en: {}", # projectURL
@ -107,8 +111,9 @@ es = {
"mpc-version-insufficient-error": "La versión de MPC no es suficiente, por favor utiliza `mpc-hc` >= `{}`",
"mpc-be-version-insufficient-error": "La versión de MPC no es suficiente, por favor utiliza `mpc-be` >= `{}`",
"mpv-version-error": "Syncplay no es compatible con esta versión de mpv. Por favor utiliza una versión diferente de mpv (p.ej. Git HEAD).",
"mpv-failed-advice": "The reason mpv cannot start may be due to the use of unsupported command line arguments or an unsupported version of mpv.", # TODO: Translate
"player-file-open-error": "El reproductor falló al abrir el archivo",
"player-path-error": "La ruta del reproductor no está definida correctamente. Los reproductores soportados son: mpv, mpv.net, VLC, MPC-HC, MPC-BE y mplayer2",
"player-path-error": "La ruta del reproductor no está definida correctamente. Los reproductores soportados son: mpv, mpv.net, VLC, MPC-HC, MPC-BE, mplayer2, y IINA",
"hostname-empty-error": "El nombre del host no puede ser vacío",
"empty-error": "{} no puede ser vacío", # Configuration
"media-player-error": "Error del reproductor multimedia: \"{}\"", # Error line
@ -119,7 +124,7 @@ es = {
"unable-to-start-client-error": "No se logró iniciar el cliente",
"player-path-config-error": "La ruta del reproductor no está definida correctamente. Los reproductores soportados son: mpv, mpv.net, VLC, MPC-HC, MPC-BE y mplayer2.",
"player-path-config-error": "La ruta del reproductor no está definida correctamente. Los reproductores soportados son: mpv, mpv.net, VLC, MPC-HC, MPC-BE, mplayer2 y IINA.",
"no-file-path-config-error": "El archivo debe ser seleccionado antes de iniciar el reproductor",
"no-hostname-config-error": "El nombre del host no puede ser vacío",
"invalid-port-config-error": "El puerto debe ser válido",
@ -128,9 +133,10 @@ es = {
"not-json-error": "No es una cadena de caracteres JSON válida\n",
"hello-arguments-error": "Not enough Hello arguments\n", # DO NOT TRANSLATE
"version-mismatch-error": "No coinciden las versiones del cliente y servidor\n",
"vlc-failed-connection": "Falló la conexión con VLC. Si no has instalado syncplay.lua y estás usando la última versión de VLC, por favor revisa https://syncplay.pl/LUA/ para obtener instrucciones.",
"vlc-failed-connection": "Falló la conexión con VLC. Si no has instalado syncplay.lua y estás usando la última versión de VLC, por favor revisa https://syncplay.pl/LUA/ para obtener instrucciones. Syncplay and VLC 4 are not currently compatible, so either use VLC 3 or an alternative such as mpv.", # TO DO: TRANSLATE
"vlc-failed-noscript": "VLC ha reportado que la interfaz syncplay.lua no se ha instalado. Por favor revisa https://syncplay.pl/LUA/ para obtener instrucciones.",
"vlc-failed-versioncheck": "Esta versión de VLC no está soportada por Syncplay.",
"vlc-initial-warning": 'VLC does not always provide accurate position information to Syncplay, especially for .mp4 and .avi files. If you experience problems with erroneous seeking then please try an alternative media player such as <a href="https://mpv.io/">mpv</a> (or <a href="https://github.com/stax76/mpv.net/">mpv.net</a> for Windows users).', # TODO: Translatef
"feature-sharedPlaylists": "listas de reproducción compartidas", # used for not-supported-by-server-error
"feature-chat": "chat", # used for not-supported-by-server-error
@ -168,7 +174,7 @@ es = {
"file-argument": 'archivo a reproducir',
"args-argument": 'opciones del reproductor, si necesitas pasar opciones que empiezan con -, pásalas utilizando \'--\'',
"clear-gui-data-argument": 'restablece ruta y los datos del estado de la ventana GUI almacenados como QSettings',
"language-argument": 'lenguaje para los mensajes de Syncplay (de/en/ru/it/es/pt_BR)',
"language-argument": 'lenguaje para los mensajes de Syncplay (de/en/ru/it/es/pt_BR/pt_PT/tr)',
"version-argument": 'imprime tu versión',
"version-message": "Estás usando la versión de Syncplay {} ({})",
@ -183,6 +189,7 @@ es = {
"name-label": "Nombre de usuario (opcional):",
"password-label": "Contraseña del servidor (si corresponde):",
"room-label": "Sala por defecto: ",
"roomlist-msgbox-label": "Edit room list (one per line)", # TODO: Translate
"media-setting-title": "Configuración del reproductor multimedia",
"executable-path-label": "Ruta al reproductor multimedia:",
@ -200,6 +207,7 @@ es = {
"filename-privacy-label": "Información del nombre de archivo:",
"filesize-privacy-label": "Información del tamaño de archivo:",
"checkforupdatesautomatically-label": "Buscar actualizaciones de Syncplay automáticamente",
"autosavejoinstolist-label": "Add rooms you join to the room list", # TO DO: Translate
"slowondesync-label": "Ralentizar si hay una desincronización menor (no soportado en MPC-HC/BE)",
"rewindondesync-label": "Rebobinar si hay una desincronización mayor (recomendado)",
"fastforwardondesync-label": "Avanzar rápidamente si hay un retraso (recomendado)",
@ -325,6 +333,7 @@ es = {
"startTLS-initiated": "Intentando conexión segura",
"startTLS-secure-connection-ok": "Conexión segura establecida ({})",
"startTLS-server-certificate-invalid": 'Falló la conexión segura. El servidor utiliza un certificado inválido. Esta comunicación podría ser interceptada por un tercero. Para más detalles y solución de problemas, consulta <a href="https://syncplay.pl/trouble">aquí</a>.',
"startTLS-server-certificate-invalid-DNS-ID": "Syncplay does not trust this server because it uses a certificate that is not valid for its hostname.", # TODO: Translate
"startTLS-not-supported-client": "Este cliente no soporta TLS",
"startTLS-not-supported-server": "Este servidor no soporta TLS",
@ -372,7 +381,9 @@ es = {
"password-tooltip": "Las contraseñas son sólo necesarias para conectarse a servidores privados.",
"room-tooltip": "La sala para unirse en la conexión puede ser casi cualquier cosa, pero sólo se sincronizará con las personas en la misma sala.",
"executable-path-tooltip": "Ubicación de tu reproductor multimedia compatible elegido (mpv, VLC, MPC-HC/BE o mplayer2).",
"edit-rooms-tooltip": "Edit room list.", # TO DO: Translate
"executable-path-tooltip": "Ubicación de tu reproductor multimedia compatible elegido (mpv, mpv.net, VLC, MPC-HC/BE, mplayer2 o IINA).",
"media-path-tooltip": "Ubicación del video o flujo que se abrirá. Necesario para mplayer2.",
"player-arguments-tooltip": "Arguementos de línea de comandos adicionales / parámetros para pasar a este reproductor multimedia.",
"mediasearcdirectories-arguments-tooltip": "Directorios donde Syncplay buscará archivos de medios, p.ej. cuando estás usando la función \"clic para cambiar\". Syncplay buscará recursivamente a través de las subcarpetas.",
@ -384,6 +395,7 @@ es = {
"privacy-sendhashed-tooltip": "Enviar una versión \"hasheada\" de la información, para que sea menos visible para otros clientes.",
"privacy-dontsend-tooltip": "No enviar esta información al servidor. Esto proporciona la máxima privacidad.",
"checkforupdatesautomatically-tooltip": "Regularmente verificar con el sitio Web de Syncplay para ver si hay una nueva versión de Syncplay disponible.",
"autosavejoinstolist-tooltip": "When you join a room in a server, automatically remember the room name in the list of rooms to join.", # TO DO: Translate
"slowondesync-tooltip": "Reducir la velocidad de reproducción temporalmente cuando sea necesario, para volver a sincronizar con otros espectadores. No soportado en MPC-HC/BE.",
"dontslowdownwithme-tooltip": "Significa que otros no se ralentizan ni rebobinan si la reproducción se retrasa. Útil para operadores de la sala.",
"pauseonleave-tooltip": "Pausa la reproducción si te desconectas o alguien sale de tu sala.",
@ -503,4 +515,7 @@ es = {
"playlist-instruction-item-message": "Desplazar aquí el archivo para agregarlo a la lista de reproducción compartida.",
"sharedplaylistenabled-tooltip": "Los operadores de la sala pueden agregar archivos a una lista de reproducción sincronizada, para que visualizar la misma cosa sea más sencillo para todos. Configurar directorios multimedia en 'Misc'.",
"playlist-empty-error": "Playlist is currently empty.", # TO DO: Translate
"playlist-invalid-index-error": "Invalid playlist index", # TO DO: Translate
}

View File

@ -47,7 +47,7 @@ it = {
"identifying-as-controller-notification": "Ti sei identificato come gestore della stanza con password '{}'...",
"failed-to-identify-as-controller-notification": "{} ha fallito l'identificazione come gestore della stanza.",
"authenticated-as-controller-notification": "{} autenticato come gestore della stanza",
"created-controlled-room-notification": "Stanza gestita '{}' creata con password '{}'. Per favore salva queste informazioni per una consultazione futura!", # RoomName, operatorPassword
"created-controlled-room-notification": "Stanza gestita '{}' creata con password '{}'. Per favore salva queste informazioni per una consultazione futura!\n\nIn managed rooms everyone is kept in sync with the room operator(s) who are the only ones who can pause, unpause, seek, and change the playlist.\n\nYou should ask regular viewers to join the room '{}' but the room operators can join the room '{}' to automatically authenticate themselves.", # RoomName, operatorPassword, roomName, roomName:operatorPassword # TODO: Translate
"file-different-notification": "Il file che stai riproducendo sembra essere diverso da quello di {}", # User
"file-differences-notification": "Il tuo file mostra le seguenti differenze: {}", # Differences
@ -87,6 +87,10 @@ it = {
"commandlist-notification/create": "\tc [nome] - crea una stanza gestita usando il nome della stanza attuale",
"commandlist-notification/auth": "\ta [password] - autentica come gestore della stanza, utilizzando la password del gestore",
"commandlist-notification/chat": "\tch [message] - invia un messaggio nella chat della stanza",
"commandList-notification/queue": "\tqa [file/url] - add file or url to bottom of playlist", # TO DO: Translate
"commandList-notification/playlist": "\tql - show the current playlist", # TO DO: Translate
"commandList-notification/select": "\tqs [index] - select given entry in the playlist", # TO DO: Translate
"commandList-notification/delete": "\tqd [index] - delete the given entry from the playlist", # TO DO: Translate
"syncplay-version-notification": "Versione di Syncplay: {}", # syncplay.version
"more-info-notification": "Maggiori informazioni a: {}", # projectURL
@ -107,8 +111,9 @@ it = {
"mpc-version-insufficient-error": "La tua versione di MPC è troppo vecchia, per favore usa `mpc-hc` >= `{}`",
"mpc-be-version-insufficient-error": "La tua versione di MPC è troppo vecchia, per favore usa `mpc-be` >= `{}`",
"mpv-version-error": "Syncplay non è compatibile con questa versione di mpv. Per favore usa un'altra versione di mpv (es. Git HEAD).",
"mpv-failed-advice": "The reason mpv cannot start may be due to the use of unsupported command line arguments or an unsupported version of mpv.", # TODO: Translate
"player-file-open-error": "Il player non è riuscito ad aprire il file",
"player-path-error": "Il path del player non è configurato correttamente. I player supportati sono: mpv, mpv.net, VLC, MPC-HC, MPC-BE e mplayer2",
"player-path-error": "Il path del player non è configurato correttamente. I player supportati sono: mpv, mpv.net, VLC, MPC-HC, MPC-BE, mplayer2 e IINA",
"hostname-empty-error": "Il campo hostname non può essere vuoto",
"empty-error": "Il campo {} non può esssere vuoto", # Configuration
"media-player-error": "Errore media player: \"{}\"", # Error line
@ -119,7 +124,7 @@ it = {
"unable-to-start-client-error": "Impossibile avviare il client",
"player-path-config-error": "Il percorso del player non è configurato correttamente. I player supportati sono: mpv, mpv.net, VLC, MPC-HC, MPC-BE e mplayer2.",
"player-path-config-error": "Il percorso del player non è configurato correttamente. I player supportati sono: mpv, mpv.net, VLC, MPC-HC, MPC-BE, mplayer2 e IINA.",
"no-file-path-config-error": "Deve essere selezionato un file prima di avviare il player",
"no-hostname-config-error": "Il campo hostname non può essere vuoto",
"invalid-port-config-error": "La porta deve essere valida",
@ -128,9 +133,10 @@ it = {
"not-json-error": "Non è una stringa con codifica JSON\n",
"hello-arguments-error": "Not enough Hello arguments\n", # DO NOT TRANSLATE
"version-mismatch-error": "La versione del client è diversa da quella del server\n",
"vlc-failed-connection": "Impossibile collegarsi a VLC. Se non hai installato syncplay.lua e stai usando l'ultima versione di VLC, fai riferimento a https://syncplay.pl/LUA/ per istruzioni.",
"vlc-failed-connection": "Impossibile collegarsi a VLC. Se non hai installato syncplay.lua e stai usando l'ultima versione di VLC, fai riferimento a https://syncplay.pl/LUA/ per istruzioni. Syncplay and VLC 4 are not currently compatible, so either use VLC 3 or an alternative such as mpv.", # TO DO: TRANSLATE
"vlc-failed-noscript": "VLC ha segnalato che lo script di interfaccia syncplay.lua non è stato installato. Per favore, fai riferimento a https://syncplay.pl/LUA/ per istruzioni.",
"vlc-failed-versioncheck": "Questa versione di VLC non è supportata da Syncplay.",
"vlc-initial-warning": 'VLC does not always provide accurate position information to Syncplay, especially for .mp4 and .avi files. If you experience problems with erroneous seeking then please try an alternative media player such as <a href="https://mpv.io/">mpv</a> (or <a href="https://github.com/stax76/mpv.net/">mpv.net</a> for Windows users).', # TODO: Translate
"feature-sharedPlaylists": "playlist condivise", # used for not-supported-by-server-error
"feature-chat": "chat", # used for not-supported-by-server-error
@ -168,7 +174,7 @@ it = {
"file-argument": 'file da riprodurre',
"args-argument": 'opzioni del player, se hai bisogno di utilizzare opzioni che iniziano con - anteponi un singolo \'--\'',
"clear-gui-data-argument": 'ripristina il percorso e i dati impostati tramite interfaccia grafica e salvati come QSettings',
"language-argument": 'lingua per i messaggi di Syncplay (de/en/ru/it/es/pt_BR)',
"language-argument": 'lingua per i messaggi di Syncplay (de/en/ru/it/es/pt_BR/pt_PT/tr)',
"version-argument": 'mostra la tua versione',
"version-message": "Stai usando la versione di Syncplay {} ({})",
@ -183,6 +189,7 @@ it = {
"name-label": "Username (opzionale):",
"password-label": "Password del server (se necessaria):",
"room-label": "Stanza di default: ",
"roomlist-msgbox-label": "Edit room list (one per line)", # TODO: Translate
"media-setting-title": "Impostazioni del media player",
"executable-path-label": "Percorso del media player:",
@ -200,6 +207,7 @@ it = {
"filename-privacy-label": "Nome del file:",
"filesize-privacy-label": "Dimensione del file:",
"checkforupdatesautomatically-label": "Controlla automaticamente gli aggiornamenti di Syncplay",
"autosavejoinstolist-label": "Add rooms you join to the room list", # TO DO: Translate
"slowondesync-label": "Rallenta in caso di sfasamento minimo (non supportato su MPC-HC/BE)",
"rewindondesync-label": "Riavvolgi in caso di grande sfasamento (consigliato)",
"fastforwardondesync-label": "Avanzamento rapido in caso di ritardo (consigliato)",
@ -325,6 +333,7 @@ it = {
"startTLS-initiated": "Tentativo di connessione sicura in corso",
"startTLS-secure-connection-ok": "Connessione sicura stabilita ({})",
"startTLS-server-certificate-invalid": 'Connessione sicura non riuscita. Il certificato di sicurezza di questo server non è valido. La comunicazione potrebbe essere intercettata da una terza parte. Per ulteriori dettagli e informazioni sulla risoluzione del problema, clicca <a href="https://syncplay.pl/trouble">qui</a>.',
"startTLS-server-certificate-invalid-DNS-ID": "Syncplay does not trust this server because it uses a certificate that is not valid for its hostname.", # TODO: Translate
"startTLS-not-supported-client": "Questo client non supporta TLS",
"startTLS-not-supported-server": "Questo server non supporta TLS",
@ -372,7 +381,9 @@ it = {
"password-tooltip": "La password è necessaria solo in caso di connessione a server privati.",
"room-tooltip": "La stanza in cui entrare dopo la connessione. Può assumere qualsiasi nome, ma ricorda che sarai sincronizzato solo con gli utenti nella stessa stanza.",
"executable-path-tooltip": "Percorso del media player desiderato (scegliere tra mpv, VLC, MPC-HC/BE or mplayer2).",
"edit-rooms-tooltip": "Edit room list.", # TO DO: Translate
"executable-path-tooltip": "Percorso del media player desiderato (scegliere tra mpv, mpv.net, VLC, MPC-HC/BE, mplayer2 o IINA).",
"media-path-tooltip": "Percorso del video o stream da aprire. Necessario per mplayer2.",
"player-arguments-tooltip": "Argomenti da linea di comando aggiuntivi da passare al media player scelto.",
"mediasearcdirectories-arguments-tooltip": "Cartelle dove Syncplay cercherà i file multimediali, es. quando usi la funzione click to switch. Syncplay cercherà anche nelle sottocartelle.",
@ -384,6 +395,7 @@ it = {
"privacy-sendhashed-tooltip": "Invia una versione cifrata dell'informazione, rendendola meno visibile agli altri client.",
"privacy-dontsend-tooltip": "Non inviare questa informazione al server. Questo garantisce massima privacy.",
"checkforupdatesautomatically-tooltip": "Controlla regolarmente la presenza di nuove versioni di Syncplay.",
"autosavejoinstolist-tooltip": "When you join a room in a server, automatically remember the room name in the list of rooms to join.", # TO DO: Translate
"slowondesync-tooltip": "Riduce temporaneamente la velocità di riproduzione quando c'è bisogno di sincronizzarti con gli altri utenti. Non supportato su MPC-HC/BE.",
"dontslowdownwithme-tooltip": "Gli altri utenti non vengono rallentati se non sei sincronizzato. Utile per i gestori della stanza.",
"pauseonleave-tooltip": "Mette in pausa la riproduzione se vieni disconnesso o se qualcuno lascia la stanza.",
@ -503,4 +515,7 @@ it = {
"playlist-instruction-item-message": "Trascina qui i file per aggiungerli alla playlist condivisa.",
"sharedplaylistenabled-tooltip": "Gli operatori della stanza possono aggiungere i file a una playlist sincronizzata per garantire che tutti i partecipanti stiano guardando la stessa cosa. Configura le cartelle multimediali alla voce 'Miscellanea'.",
"playlist-empty-error": "Playlist is currently empty.", # TO DO: Translate
"playlist-invalid-index-error": "Invalid playlist index", # TO DO: Translate
}

View File

@ -47,7 +47,7 @@ pt_BR = {
"identifying-as-controller-notification": "Identificando-se como operador da sala com a senha '{}'...",
"failed-to-identify-as-controller-notification": "{} falhou ao se identificar como operador da sala.",
"authenticated-as-controller-notification": "{} autenticou-se como um operador da sala",
"created-controlled-room-notification": "Criou a sala gerenciada '{}' com a senha '{}'. Por favor, salve essa informação para futura referência!", # RoomName, operatorPassword
"created-controlled-room-notification": "Criou a sala gerenciada '{}' com a senha '{}'. Por favor, salve essa informação para futura referência!\n\nIn managed rooms everyone is kept in sync with the room operator(s) who are the only ones who can pause, unpause, seek, and change the playlist.\n\nYou should ask regular viewers to join the room '{}' but the room operators can join the room '{}' to automatically authenticate themselves.", # RoomName, operatorPassword, roomName, roomName:operatorPassword # TODO: Translate
"file-different-notification": "O arquivo que você está tocando parece ser diferente do arquivo de {}", # User
"file-differences-notification": "Seus arquivos se diferem da(s) seguinte(s) forma(s): {}", # Differences
@ -87,6 +87,10 @@ pt_BR = {
"commandlist-notification/create": "\tc [nome] - cria sala gerenciado usando o nome da sala atual",
"commandlist-notification/auth": "\ta [senha] - autentica-se como operador da sala com a senha",
"commandlist-notification/chat": "\tch [mensagem] - envia uma mensagem no chat da sala",
"commandList-notification/queue": "\tqa [file/url] - add file or url to bottom of playlist", # TO DO: Translate
"commandList-notification/playlist": "\tql - show the current playlist", # TO DO: Translate
"commandList-notification/select": "\tqs [index] - select given entry in the playlist", # TO DO: Translate
"commandList-notification/delete": "\tqd [index] - delete the given entry from the playlist", # TO DO: Translate
"syncplay-version-notification": "Versão do Syncplay: {}", # syncplay.version
"more-info-notification": "Mais informações disponíveis em: {}", # projectURL
@ -106,9 +110,10 @@ pt_BR = {
"mpc-slave-error": "Não foi possível abrir o MPC no slave mode!",
"mpc-version-insufficient-error": "A versão do MPC é muito antiga, por favor use `mpc-hc` >= `{}`",
"mpc-be-version-insufficient-error": "A versão do MPC-BE é muito antiga, por favor use `mpc-be` >= `{}`",
"mpv-version-error": "O Syncplay não é compatível com esta versão do mpv. Por favor, use uma versão diferente do mpv (por exemplo, Git HEAD).",
"mpv-version-error": "O motivo pelo qual o mpv não pode ser iniciado pode ser devido ao uso de argumentos da linha de comando não suportados ou a uma versão não suportada do mpv.",
"mpv-failed-advice": "The reason mpv cannot start may be due to the use of unsupported command line arguments or an unsupported version of mpv.", # TODO: Translate
"player-file-open-error": "O reprodutor falhou ao abrir o arquivo",
"player-path-error": "O caminho até o arquivo executável do reprodutor não está configurado corretamente. Os reprodutores suportados são: mpv, mpv.net, VLC, MPC-HC, MPC-BE e mplayer2",
"player-path-error": "O caminho até o arquivo executável do reprodutor não está configurado corretamente. Os reprodutores suportados são: mpv, mpv.net, VLC, MPC-HC, MPC-BE, mplayer2 e IINA",
"hostname-empty-error": "O endereço do servidor não pode ser vazio",
"empty-error": "{} não pode ser vazio", # Configuration
"media-player-error": "Erro do reprodutor de mídia: \"{}\"", # Error line
@ -119,18 +124,19 @@ pt_BR = {
"unable-to-start-client-error": "Não foi possível iniciar o client",
"player-path-config-error": "O caminho até o arquivo executável do reprodutor não está configurado corretamente. Os reprodutores suportados são: mpv, mpv.net, VLC, MPC-HC, MPC-BE e mplayer2.",
"player-path-config-error": "O caminho até o arquivo executável do reprodutor não está configurado corretamente. Os reprodutores suportados são: mpv, mpv.net, VLC, MPC-HC, MPC-BE, mplayer2 e IINA.",
"no-file-path-config-error": "O arquivo deve ser selecionado antes de iniciar seu reprodutor",
"no-hostname-config-error": "O endereço do servidor não pode ser vazio",
"invalid-port-config-error": "A porta deve ser válida",
"empty-value-config-error": "{} não pode ser vazio", # Config option
"not-json-error": "Não é uma string codificada como json\n",
"not-json-error": "Não é uma string codificada como JSON\n",
"hello-arguments-error": "Not enough Hello arguments\n", # DO NOT TRANSLATE
"version-mismatch-error": "Discrepância entre versões do client e do servidor\n",
"vlc-failed-connection": "Falha ao conectar ao VLC. Se você não instalou o syncplay.lua e está usando a versão mais recente do VLC, por favor veja https://syncplay.pl/LUA/ para mais instruções.",
"vlc-failed-connection": "Falha ao conectar ao VLC. Se você não instalou o syncplay.lua e está usando a versão mais recente do VLC, por favor veja https://syncplay.pl/LUA/ para mais instruções.Syncplay and VLC 4 are not currently compatible, so either use VLC 3 or an alternative such as mpv.", # TO DO: TRANSLATE
"vlc-failed-noscript": "O VLC reportou que a interface de script do syncplay.lua não foi instalada. Por favor, veja https://syncplay.pl/LUA/ para mais instruções.",
"vlc-failed-versioncheck": "Esta versão do VLC não é suportada pelo Syncplay.",
"vlc-initial-warning": 'VLC does not always provide accurate position information to Syncplay, especially for .mp4 and .avi files. If you experience problems with erroneous seeking then please try an alternative media player such as <a href="https://mpv.io/">mpv</a> (or <a href="https://github.com/stax76/mpv.net/">mpv.net</a> for Windows users).', # TODO: Translate
"feature-sharedPlaylists": "playlists compartilhadas", # used for not-supported-by-server-error
"feature-chat": "chat", # used for not-supported-by-server-error
@ -168,7 +174,7 @@ pt_BR = {
"file-argument": 'arquivo a ser tocado',
"args-argument": 'opções do reprodutor; se você precisar passar opções começando com -, as preceda com um único argumento \'--\'',
"clear-gui-data-argument": 'redefine o caminho e o estado de dados da janela da GUI para as de QSettings',
"language-argument": 'idioma para mensagens do Syncplay (de/en/ru/it/es/pt_BR)',
"language-argument": 'idioma para mensagens do Syncplay (de/en/ru/it/es/pt_BR/pt_PT/tr)',
"version-argument": 'exibe sua versão',
"version-message": "Você está usando o Syncplay versão {} ({})",
@ -183,6 +189,7 @@ pt_BR = {
"name-label": "Nome de usuário (opcional): ",
"password-label": "Senha do servidor (se existir): ",
"room-label": "Sala padrão: ",
"roomlist-msgbox-label": "Edit room list (one per line)", # TODO: Translate
"media-setting-title": "Configurações do reprodutor de mídia",
"executable-path-label": "Executável do reprodutor:",
@ -200,6 +207,7 @@ pt_BR = {
"filename-privacy-label": "Informação do nome do arquivo:",
"filesize-privacy-label": "Informação do tamanho do arquivo:",
"checkforupdatesautomatically-label": "Verificar atualizações do Syncplay automaticamente",
"autosavejoinstolist-label": "Add rooms you join to the room list", # TO DO: Translate
"slowondesync-label": "Diminuir velocidade em dessincronizações menores (não suportado pelo MPC-HC/BE)",
"rewindondesync-label": "Retroceder em dessincronização maiores (recomendado)",
"fastforwardondesync-label": "Avançar se estiver ficando para trás (recomendado)",
@ -325,6 +333,7 @@ pt_BR = {
"startTLS-initiated": "Tentando estabelecer conexão segura",
"startTLS-secure-connection-ok": "Conexão segura estabelecida ({})",
"startTLS-server-certificate-invalid": 'Não foi possível estabelecer uma conexão segura. O servidor usa um certificado de segurança inválido. Essa comunicação pode ser interceptada por terceiros. Para mais detalhes de solução de problemas, consulte <a href="https://syncplay.pl/trouble">aqui</a>.',
"startTLS-server-certificate-invalid-DNS-ID": "Syncplay does not trust this server because it uses a certificate that is not valid for its hostname.", # TODO: Translate
"startTLS-not-supported-client": "Este client não possui suporte para TLS",
"startTLS-not-supported-server": "Este servidor não possui suporte para TLS",
@ -372,7 +381,9 @@ pt_BR = {
"password-tooltip": "Senhas são necessárias apenas para servidores privados.",
"room-tooltip": "O nome da sala para se conectar pode ser praticamente qualquer coisa, mas você só irá se sincronizar com pessoas na mesma sala.",
"executable-path-tooltip": "Localização do seu reprodutor de mídia preferido (mpv, VLC, MPC-HC/BE ou mplayer2).",
"edit-rooms-tooltip": "Edit room list.", # TO DO: Translate
"executable-path-tooltip": "Localização do seu reprodutor de mídia preferido (mpv, mpv.net, VLC, MPC-HC/BE, mplayer2 ou IINA).",
"media-path-tooltip": "Localização do vídeo ou transmissão a ser aberto. Necessário com o mplayer2.",
"player-arguments-tooltip": "Argumentos de comando de linha adicionais para serem repassados ao reprodutor de mídia.",
"mediasearcdirectories-arguments-tooltip": "Diretório onde o Syncplay vai procurar por arquivos de mídia, por exemplo quando você estiver usando o recurso de clicar para mudar. O Syncplay irá procurar recursivamente pelas subpastas.",
@ -384,6 +395,7 @@ pt_BR = {
"privacy-sendhashed-tooltip": "Mandar versão hasheada da informação, tornando-a menos visível aos outros clients.",
"privacy-dontsend-tooltip": "Não enviar esta informação ao servidor. Esta opção oferece a maior privacidade.",
"checkforupdatesautomatically-tooltip": "Checar o site do Syncplay regularmente para ver se alguma nova versão do Syncplay está disponível.",
"autosavejoinstolist-tooltip": "When you join a room in a server, automatically remember the room name in the list of rooms to join.", # TO DO: Translate
"slowondesync-tooltip": "Reduzir a velocidade de reprodução temporariamente quando necessário para trazer você de volta à sincronia com os outros espectadores. Não suportado pelo MPC-HC/BE.",
"dontslowdownwithme-tooltip": "Significa que outros não serão desacelerados ou retrocedidos se sua reprodução estiver ficando para trás. Útil para operadores de salas.",
"pauseonleave-tooltip": "Pausar reprodução se você for disconectado ou se alguém sair da sua sala.",
@ -503,4 +515,7 @@ pt_BR = {
"playlist-instruction-item-message": "Arraste um arquivo aqui para adicioná-lo à playlist compartilhada.",
"sharedplaylistenabled-tooltip": "Operadores da sala podem adicionar arquivos para a playlist compartilhada para tornar mais fácil para todo mundo assistir a mesma coisa. Configure os diretórios de mídia em 'Miscelânea'.",
"playlist-empty-error": "Playlist is currently empty.", # TO DO: Translate
"playlist-invalid-index-error": "Invalid playlist index", # TO DO: Translate
}

521
syncplay/messages_pt_PT.py Normal file
View File

@ -0,0 +1,521 @@
# coding:utf8
"""Portugal Portuguese dictionary"""
pt_PT = {
"LANGUAGE": "Português de Portugal",
# Client notifications
"config-cleared-notification": "Configurações removidas. As mudanças serão salvas quando você armazenar uma configuração válida.",
"relative-config-notification": "Ficheiro(s) de configuração relativa carregado(s): {}",
"connection-attempt-notification": "Tentando se conectar a {}:{}", # Port, IP
"reconnection-attempt-notification": "Conexão com o servidor perdida, tentando reconectar",
"disconnection-notification": "Desconectado do servidor",
"connection-failed-notification": "Conexão com o servidor falhou",
"connected-successful-notification": "Conectado com sucesso ao servidor",
"retrying-notification": "%s, tentando novamente em %d segundos...", # Seconds
"reachout-successful-notification": "Alcançado {} ({}) com sucesso",
"rewind-notification": "Retrocedendo devido à diferença de tempo com {}", # User
"fastforward-notification": "Avançando devido à diferença de tempo com {}", # User
"slowdown-notification": "Diminuindo a velocidade devido à diferença de tempo com {}", # User
"revert-notification": "Revertendo velocidade ao normal",
"pause-notification": "{} pausou", # User
"unpause-notification": "{} despausou", # User
"seek-notification": "{} saltou de {} para {}", # User, from time, to time
"current-offset-notification": "Deslocamento atual: {} segundos", # Offset
"media-directory-list-updated-notification": "Os pastas de mídia do Syncplay foram atualizados.",
"room-join-notification": "{} entrou na sala: '{}'", # User
"left-notification": "{} saiu da sala", # User
"left-paused-notification": "{} saiu da sala, {} pausou", # User who left, User who paused
"playing-notification": "{} está reproduzinho '{}' ({})", # User, file, duration
"playing-notification/room-addendum": " na sala: '{}'", # Room
"not-all-ready": "Não está pronto: {}", # Usernames
"all-users-ready": "Todos utilizadores estão prontos ({} users)", # Number of ready users
"ready-to-unpause-notification": "Agora você está definido como pronto - despause novamente para despausar",
"set-as-ready-notification": "Agora você está definido como pronto",
"set-as-not-ready-notification": "Agora você está definido como não pronto",
"autoplaying-notification": "Reprodução automática em {}...", # Number of seconds until playback will start
"identifying-as-controller-notification": "Identificando-se como administrador da sala com a senha '{}'...",
"failed-to-identify-as-controller-notification": "{} falhou ao se identificar como administrador da sala.",
"authenticated-as-controller-notification": "{} autenticou-se como um administrador da sala",
"created-controlled-room-notification": "Criou a sala controlada '{}' com a senha '{}'. Por favor, guarda essa informação para futura referência!\n\nIn managed rooms everyone is kept in sync with the room operator(s) who are the only ones who can pause, unpause, seek, and change the playlist.\n\nYou should ask regular viewers to join the room '{}' but the room operators can join the room '{}' to automatically authenticate themselves.", # RoomName, operatorPassword, roomName, roomName:operatorPassword # TODO: Translate
"file-different-notification": "O ficheiro que você está tocando parece ser diferente do ficheiro de {}", # User
"file-differences-notification": "Seus ficheiros se diferem da(s) seguinte(s) forma(s): {}", # Differences
"room-file-differences": "Diferenças de ficheiros: {}", # File differences (filename, size, and/or duration)
"file-difference-filename": "nome",
"file-difference-filesize": "tamanho",
"file-difference-duration": "duração",
"alone-in-the-room": "Você está sozinho na sala",
"different-filesize-notification": " (o tamanho do ficheiro deles é diferente do seu!)",
"userlist-playing-notification": "{} está tocando:", # Username
"file-played-by-notification": "Ficheiro: {} está sendo reproduzido por:", # File
"no-file-played-notification": "{} não está reproduzinho um ficheiro", # Username
"notplaying-notification": "Pessoas que não estão reproduzinho nenhum ficheiro:",
"userlist-room-notification": "Na sala '{}':", # Room
"userlist-file-notification": "Ficheiro",
"controller-userlist-userflag": "Administrador",
"ready-userlist-userflag": "Pronto",
"update-check-failed-notification": "Não foi possível verificar automaticamente se o Syncplay {} é a versão mais recente. Deseja visitar https://syncplay.pl/ para verificar manualmente por atualizações?", # Syncplay version
"syncplay-uptodate-notification": "O Syncplay está atualizado",
"syncplay-updateavailable-notification": "Uma nova versão do Syncplay está disponível. Deseja visitar a página de lançamentos?",
"mplayer-file-required-notification": "Syncplay com mplayer requer que você forneça o ficheiro ao começar",
"mplayer-file-required-notification/example": "Exemplo de uso: syncplay [opções] [url|caminho_ate_o_ficheiro/]nome_do_ficheiro",
"mplayer2-required": "O Syncplay é incompatível com o MPlayer 1.x, por favor use mplayer2 ou mpv",
"unrecognized-command-notification": "Comando não reconhecido",
"commandlist-notification": "Comandos disponíveis:",
"commandlist-notification/room": "\tr [nome] - muda de sala",
"commandlist-notification/list": "\tl - mostra lista de utilizadores",
"commandlist-notification/undo": "\tu - desfaz último salto",
"commandlist-notification/pause": "\tp - alterna pausa",
"commandlist-notification/seek": "\t[s][+-]time - salta para o valor de tempo dado, se + ou - não forem especificados, será o tempo absoluto em segundos ou minutos:segundos",
"commandlist-notification/help": "\th - esta mensagem de ajuda",
"commandlist-notification/toggle": "\tt - alterna o seu status de prontidão para assistir",
"commandlist-notification/create": "\tc [nome] - cria sala gerenciada usando o nome da sala atual",
"commandlist-notification/auth": "\ta [senha] - autentica-se como administrador da sala com a senha",
"commandlist-notification/chat": "\tch [mensagem] - envia uma mensagem no chat da sala",
"commandList-notification/queue": "\tqa [file/url] - add file or url to bottom of playlist", # TO DO: Translate
"commandList-notification/playlist": "\tql - show the current playlist", # TO DO: Translate
"commandList-notification/select": "\tqs [index] - select given entry in the playlist", # TO DO: Translate
"commandList-notification/delete": "\tqd [index] - delete the given entry from the playlist", # TO DO: Translate
"syncplay-version-notification": "Versão do Syncplay: {}", # syncplay.version
"more-info-notification": "Mais informações disponíveis em: {}", # projectURL
"gui-data-cleared-notification": "O Syncplay limpou o caminho e o estado de dados da janela usados pela GUI.",
"language-changed-msgbox-label": "O idioma será alterado quando você salvar as alterações e reabrir o Syncplay.",
"promptforupdate-label": "O Syncplay pode verificar automaticamente por atualizações de tempos em tempos?",
"media-player-latency-warning": "Aviso: O reprodutor de mídia demorou {} para responder. Se você tiver problemas de sincronização, desligue outros programas para libertar recursos do sistema e, se isso não funcionar, tente outro reprodutor de mídia.", # Seconds to respond
"mpv-unresponsive-error": "O mpv não respondeu por {} segundos, portanto parece que não está funcionando. Por favor, reinicie o Syncplay.", # Seconds to respond
# Client prompts
"enter-to-exit-prompt": "Aperte Enter para sair\n",
# Client errors
"missing-arguments-error": "Alguns argumentos necessários estão faltando, por favor reveja --help",
"server-timeout-error": "A conexão com o servidor ultrapassou o tempo limite",
"mpc-slave-error": "Não foi possível abrir o MPC no slave mode!",
"mpc-version-insufficient-error": "A versão do MPC é muito antiga, por favor use `mpc-hc` >= `{}`",
"mpc-be-version-insufficient-error": "A versão do MPC-BE é muito antiga, por favor use `mpc-be` >= `{}`",
"mpv-version-error": "O Syncplay não é compatível com esta versão do mpv. Por favor, use uma versão diferente do mpv (por exemplo, Git HEAD).",
"mpv-failed-advice": "O motivo pelo qual o mpv não pode ser iniciado pode ser devido ao uso de argumentos da linha de comando não suportados ou a uma versão não suportada do mpv.", # TODO: Translate
"player-file-open-error": "O reprodutor falhou ao abrir o ficheiro",
"player-path-error": "O caminho até o ficheiro executável do reprodutor não está configurado corretamente. Os reprodutores suportados são: mpv, mpv.net, VLC, MPC-HC, MPC-BE, mplayer2 e IINA",
"hostname-empty-error": "O endereço do servidor não pode ser vazio",
"empty-error": "{} não pode ser vazio", # Configuration
"media-player-error": "Erro do reprodutor de mídia: \"{}\"", # Error line
"unable-import-gui-error": "Não foi possível importar bibliotecas da GUI. Se você não possuir o PySide instalado, instale-o para que a GUI funcione.",
"unable-import-twisted-error": "Não foi possível importar o Twisted. Por favor, instale o Twisted v16.4.0 ou superior.",
"arguments-missing-error": "Alguns argumentos necessários estão faltando, por favor reveja --help",
"unable-to-start-client-error": "Não foi possível iniciar o client",
"player-path-config-error": "O caminho até o ficheiro executável do reprodutor não está configurado corretamente. Os reprodutores suportados são: mpv, mpv.net, VLC, MPC-HC, MPC-BE, mplayer2 e IINA.",
"no-file-path-config-error": "O ficheiro deve ser selecionado antes de iniciar seu reprodutor",
"no-hostname-config-error": "O endereço do servidor não pode ser vazio",
"invalid-port-config-error": "A porta deve ser válida",
"empty-value-config-error": "{} não pode ser vazio", # Config option
"not-json-error": "Não é uma string codificada como JSON\n",
"hello-arguments-error": "Falta de argumentos Hello\n", # DO NOT TRANSLATE
"version-mismatch-error": "Discrepância entre versões do cliente e do servidor\n",
"vlc-failed-connection": "Falha ao conectar ao VLC. Se você não instalou o syncplay.lua e está usando a versão mais recente do VLC, por favor veja https://syncplay.pl/LUA/ para mais instruções.Syncplay and VLC 4 are not currently compatible, so either use VLC 3 or an alternative such as mpv.", # TO DO: TRANSLATE
"vlc-failed-noscript": "O VLC reportou que a interface de script do syncplay.lua não foi instalada. Por favor, veja https://syncplay.pl/LUA/ para mais instruções.",
"vlc-failed-versioncheck": "Esta versão do VLC não é suportada pelo Syncplay.",
"vlc-initial-warning": 'VLC does not always provide accurate position information to Syncplay, especially for .mp4 and .avi files. If you experience problems with erroneous seeking then please try an alternative media player such as <a href="https://mpv.io/">mpv</a> (or <a href="https://github.com/stax76/mpv.net/">mpv.net</a> for Windows users).', # TODO: Translate
"feature-sharedPlaylists": "playlists compartilhadas", # used for not-supported-by-server-error
"feature-chat": "chat", # used for not-supported-by-server-error
"feature-readiness": "prontidão", # used for not-supported-by-server-error
"feature-managedRooms": "salas administradas", # used for not-supported-by-server-error
"not-supported-by-server-error": "O recurso {} não é suportado por este servidor.", # feature
"shared-playlists-not-supported-by-server-error": "O recurso de playlists compartilhadas pode não ser suportado por este servidor. Para garantir que funcione corretamente, é necessário um servidor a correr Syncplay {} ou superior, mas este está correndoo Syncplay {}.", # minVersion, serverVersion
"shared-playlists-disabled-by-server-error": "O recurso de playlists compartilhadas foi desativado nas configurações do servidor. Para usar este recurso, você precisa se conectar a um servidor diferente.",
"invalid-seek-value": "Valor de salto inválido",
"invalid-offset-value": "Valor de deslocamento inválido",
"switch-file-not-found-error": "Não foi possível mudar para o ficheiro '{0}'. O Syncplay procura nos pastas de mídia especificados.", # File not found
"folder-search-timeout-error": "A busca por mídias no pasta de mídias foi cancelada pois demorou muito tempo para procurar em '{}'. Isso ocorre quando você seleciona uma pasta com muitas subpastas em sua lista de pastas de mídias a serem pesquisadas. Para que a troca automática de ficheiros funcione novamente, selecione 'Ficheiro -> Definir pastas de mídias' na barra de menus e remova esse pasta ou substitua-o por uma subpasta apropriada. Se a pasta não tiver problemas, é possível reativá-la selecionando 'Ficheiro -> Definir pastas de mídias' e pressionando 'OK'.", # Folder
"folder-search-first-file-timeout-error": "A busca por mídias em '{}' foi interrompida, pois demorou muito para acessar o pasta. Isso pode acontecer se for uma unidade de rede ou se você configurar o seu dispositivo para hibernar depois de um período de inatividade. Para que a troca automática de ficheiros funcione novamente, vá para 'Ficheiro -> Definir pastas de mídias' e remova o pasta ou resolva o problema (por exemplo, alterando as configurações de economia de energia da unidade).", # Folder
"added-file-not-in-media-directory-error": "Você carregou um ficheiro em '{}', que não é um pasta de mídias conhecido. Você pode adicioná-lo isso como um pasta de mídia selecionando 'Ficheiro -> Definir pastas de mídias' na barra de menus.", # Folder
"no-media-directories-error": "Nenhum pasta de mídias foi definido. Para que os recursos de playlists compartilhadas e troca automática de ficheiros funcionem corretamente, selecione 'Ficheiro -> Definir pastas de mídias' e especifique onde o Syncplay deve procurar para encontrar ficheiros de mídia.",
"cannot-find-directory-error": "Não foi possível encontrar o pasta de mídia '{}'. Para atualizar sua lista de pastas de mídias, selecione 'Ficheiro -> Definir pastas de mídias' na barra de menus e especifique onde o Syncplay deve procurar para encontrar ficheiros de mídia.",
"failed-to-load-server-list-error": "Não foi possível carregar a lista de servidores públicos. Por favor, visite https://www.syncplay.pl/ em seu navegador.",
# Client arguments
"argument-description": 'Solução para sincronizar reprodução de múltiplas instâncias de reprodutores de mídia pela rede.',
"argument-epilog": 'Se nenhuma opção for fornecida, os valores de _config serão usados',
"nogui-argument": 'não mostrar GUI',
"host-argument": 'endereço do servidor',
"name-argument": 'nome de utilizador desejado',
"debug-argument": 'modo depuração',
"force-gui-prompt-argument": 'fazer o prompt de configuração aparecer',
"no-store-argument": 'não guardar valores em .syncplay',
"room-argument": 'sala padrão',
"password-argument": 'senha do servidor',
"player-path-argument": 'caminho até o executável do reprodutor de mídia',
"file-argument": 'ficheiro a ser tocado',
"args-argument": 'opções do reprodutor; se você precisar passar opções começando com -, as preceda com um único argumento \'--\'',
"clear-gui-data-argument": 'redefine o caminho e o estado de dados da janela da GUI para as de QSettings',
"language-argument": 'idioma para mensagens do Syncplay (de/en/ru/it/es/pt_BR/pt_PT/tr)',
"version-argument": 'exibe sua versão',
"version-message": "Você está usando o Syncplay versão {} ({})",
"load-playlist-from-file-argument": "carrega playlist de um ficheiro de texto (uma entrada por linha)",
# Client labels
"config-window-title": "Configuração do Syncplay",
"connection-group-title": "Configurações de conexão",
"host-label": "Endereço do servidor: ",
"name-label": "Nome de utilizador (opcional): ",
"password-label": "Senha do servidor (se existir): ",
"room-label": "Sala padrão: ",
"roomlist-msgbox-label": "Edit room list (one per line)", # TODO: Translate
"media-setting-title": "Configurações do reprodutor de mídia",
"executable-path-label": "Executável do reprodutor:",
"media-path-label": "Ficheiro de vídeo ou URL (opcional):",
"player-arguments-label": "Argumentos para o reprodutor (opcional):",
"browse-label": "Navegar",
"update-server-list-label": "Atualizar lista",
"more-title": "Mostrar mais configurações",
"never-rewind-value": "Nunca",
"seconds-suffix": " s",
"privacy-sendraw-option": "Enviar bruto",
"privacy-sendhashed-option": "Enviar hasheado",
"privacy-dontsend-option": "Não enviar",
"filename-privacy-label": "Informação do nome do ficheiro:",
"filesize-privacy-label": "Informação do tamanho do ficheiro:",
"checkforupdatesautomatically-label": "Verificar atualizações do Syncplay automaticamente",
"slowondesync-label": "Diminuir velocidade em dessincronizações menores (não suportado pelo MPC-HC/BE)",
"rewindondesync-label": "Retroceder em dessincronização maiores (recomendado)",
"fastforwardondesync-label": "Avançar se estiver ficando para trás (recomendado)",
"dontslowdownwithme-label": "Nunca desacelerar ou retroceder outros (experimental)",
"pausing-title": "Pausando",
"pauseonleave-label": "Pausar quando um utilizador sair (por exemplo, se for desconectado)",
"readiness-title": "Estado de prontidão inicial",
"readyatstart-label": "Marque-me como 'pronto para assistir' por padrão",
"forceguiprompt-label": "Não mostrar sempre a janela de configuração do Syncplay", # (Inverted)
"showosd-label": "Ativar mensagens na tela (OSD)",
"showosdwarnings-label": "Incluir avisos (por exemplo, quando os ficheiros são diferentes, os utilizador não estão prontos, etc)",
"showsameroomosd-label": "Incluir eventos da sua sala",
"shownoncontrollerosd-label": "Incluir eventos de não administradores em salas administradas",
"showdifferentroomosd-label": "Incluir eventos de outras salas",
"showslowdownosd-label": "Incluir notificações de desaceleramento ou retrocedimento",
"language-label": "Idioma:",
"automatic-language": "Padrão ({})", # Default language
"showdurationnotification-label": "Avisar sobre discrepância nas durações dos arquivos de mídia",
"basics-label": "Básicos",
"readiness-label": "Play/Pause",
"misc-label": "Miscelânea",
"core-behaviour-title": "Comportamento da sala padrão",
"syncplay-internals-title": "Syncplay internals",
"syncplay-mediasearchdirectories-title": "pastas a buscar por mídias",
"syncplay-mediasearchdirectories-label": "pastas a buscar por mídias (um caminho por linha)",
"sync-label": "Sincronizar",
"sync-otherslagging-title": "Se outros estiverem ficando pra trás...",
"sync-youlaggging-title": "Se você estiver ficando pra trás...",
"messages-label": "Mensagens",
"messages-osd-title": "Configurações das mensagens na tela (OSD)",
"messages-other-title": "Outras configurações de tela",
"chat-label": "Chat",
"privacy-label": "Privacidade", # Currently unused, but will be brought back if more space is needed in Misc tab
"privacy-title": "Configurações de privacidade",
"unpause-title": "Se você apertar play, definir-se como pronto e:",
"unpause-ifalreadyready-option": "Despausar se você já estiver definido como pronto",
"unpause-ifothersready-option": "Despausar se você já estiver pronto ou outros na sala estiverem prontos (padrão)",
"unpause-ifminusersready-option": "Despausar se você já estiver pronto ou outros na sala estiverem prontos e o número mínimo de utilizadores está pronto",
"unpause-always": "Sempre despausar",
"syncplay-trusteddomains-title": "Domínios confiáveis (para serviços de streaming e conteúdo hospedado)",
"chat-title": "Entrada de mensagem do chat",
"chatinputenabled-label": "Habilitar entrada de chat via mpv",
"chatdirectinput-label": "Permitir entrada instantânea de chat (evita ter de apertar Enter para abrir o chat)",
"chatinputfont-label": "Fonte da entrada de chat",
"chatfont-label": "Definir fonte",
"chatcolour-label": "Definir cor",
"chatinputposition-label": "Posição da área de entrada de mensagens no mpv",
"chat-top-option": "Topo",
"chat-middle-option": "Meio",
"chat-bottom-option": "Fundo",
"chatoutputheader-label": "Saída de mensagem do chat",
"chatoutputfont-label": "Fonte da saída de chat",
"chatoutputenabled-label": "Habilitar saída de chat no reprodutor de mídia (apenas mpv por enquanto)",
"chatoutputposition-label": "Modo de saída",
"chat-chatroom-option": "Estilo sala de bate-papo",
"chat-scrolling-option": "Estilo de rolagem",
"mpv-key-tab-hint": "[TAB] para alternar acesso instantâneo ao chat.",
"mpv-key-hint": "[ENTER] para enviar mensagem. [ESC] para sair do modo de chat.",
"alphakey-mode-warning-first-line": "Você pode usar os antigos atalhos do mpv com as teclas A-Z.",
"alphakey-mode-warning-second-line": "Aperte [TAB] para retornar ao modo de chat instantâneo do Syncplay.",
"help-label": "Ajuda",
"reset-label": "Restaurar padrões",
"run-label": "Começar Syncplay",
"storeandrun-label": "Salvar mudanças e começar Syncplay",
"contact-label": "Sinta-se livre para enviar um e-mail para <a href=\"mailto:dev@syncplay.pl\"><nobr>dev@syncplay.pl</nobr></a>, conversar via chat pelo <a href=\"https://webchat.freenode.net/?channels=#syncplay\"><nobr>canal do IRC #Syncplay</nobr></a> no irc.freenode.net, <a href=\"https://github.com/Uriziel/syncplay/issues\"><nobr>abrir uma issue</nobr></a> pelo GitHub, <a href=\"https://www.facebook.com/SyncplaySoftware\"><nobr>curtir nossa página no Facebook</nobr></a>, <a href=\"https://twitter.com/Syncplay/\"><nobr>nos seguir no Twitter</nobr></a> ou visitar <a href=\"https://syncplay.pl/\"><nobr>https://syncplay.pl/</nobr></a>. Não use o Syncplay para mandar informações sensíveis/confidenciais.",
"joinroom-label": "Juntar-se a uma sala",
"joinroom-menu-label": "Juntar-se à sala {}",
"seektime-menu-label": "Saltar para o tempo",
"undoseek-menu-label": "Desfazer salto",
"play-menu-label": "Play",
"pause-menu-label": "Pause",
"playbackbuttons-menu-label": "Mostrar botões de reprodução",
"autoplay-menu-label": "Mostrar botão de reprodução automática",
"autoplay-guipushbuttonlabel": "Tocar quando todos estiverem prontos",
"autoplay-minimum-label": "Mín. de utilizadores:",
"sendmessage-label": "Enviar",
"ready-guipushbuttonlabel": "Estou pronto para assistir!",
"roomuser-heading-label": "Sala / Utilizador",
"size-heading-label": "Tamanho",
"duration-heading-label": "Duração",
"filename-heading-label": "Nome do ficheiro",
"notifications-heading-label": "Notificações",
"userlist-heading-label": "Lista de quem está tocando o quê",
"browseformedia-label": "Navegar por ficheiros de mídia",
"file-menu-label": "&Ficheiro", # & precedes shortcut key
"openmedia-menu-label": "A&brir ficheiro de mídia",
"openstreamurl-menu-label": "Abrir &URL de stream de mídia",
"setmediadirectories-menu-label": "Definir &pastas de mídias",
"loadplaylistfromfile-menu-label": "&Carregar playlist de ficheiro",
"saveplaylisttofile-menu-label": "&Salvar playlist em ficheiro",
"exit-menu-label": "&Sair",
"advanced-menu-label": "A&vançado",
"window-menu-label": "&Janela",
"setoffset-menu-label": "Definir &deslocamento",
"createcontrolledroom-menu-label": "&Criar sala administrada",
"identifyascontroller-menu-label": "&Identificar-se como administrador da sala",
"settrusteddomains-menu-label": "D&efinir domínios confiáveis",
"addtrusteddomain-menu-label": "Adicionar {} como domínio confiável", # Domain
"edit-menu-label": "&Editar",
"cut-menu-label": "Cor&tar",
"copy-menu-label": "&Copiar",
"paste-menu-label": "C&olar",
"selectall-menu-label": "&Selecionar todos",
"playback-menu-label": "&Reprodução",
"help-menu-label": "&Ajuda",
"userguide-menu-label": "Abrir &guia de utilizador",
"update-menu-label": "&Verificar atualizações",
"startTLS-initiated": "Tentando estabelecer conexão segura",
"startTLS-secure-connection-ok": "Conexão segura estabelecida ({})",
"startTLS-server-certificate-invalid": 'Não foi possível estabelecer uma conexão segura. O servidor usa um certificado de segurança inválido. Essa comunicação pode ser interceptada por terceiros. Para mais detalhes de solução de problemas, consulte <a href="https://syncplay.pl/trouble">aqui</a>.',
"startTLS-server-certificate-invalid-DNS-ID": "O Syncplay não confia neste servidor porque usa um certificado que não é válido para o nome do host.", # TODO: Translate
"startTLS-not-supported-client": "Este client não possui suporte para TLS",
"startTLS-not-supported-server": "Este servidor não possui suporte para TLS",
# TLS certificate dialog
"tls-information-title": "Detalhes do certificado",
"tls-dialog-status-label": "<strong>Syncplay está a usar uma conexão criptografada para {}.</strong>",
"tls-dialog-desc-label": "A criptografia com um certificado digital mantém as informações em sigilo quando são enviadas para ou do<br/>servidor {}.",
"tls-dialog-connection-label": "Informações criptografadas usando o Transport Layer Security (TLS), versão {} com o conjunto de cifras (cipher suite)<br/>: {}.",
"tls-dialog-certificate-label": "Certificado emitido em {} e válido até {}.",
# About dialog
"about-menu-label": "&Sobre o Syncplay",
"about-dialog-title": "Sobre o Syncplay",
"about-dialog-release": "Versão {}, lançamento {}",
"about-dialog-license-text": "Licenciado sob a Licença&nbsp;Apache,&nbsp;Versão 2.0",
"about-dialog-license-button": "Licença",
"about-dialog-dependencies": "Dependências",
"setoffset-msgbox-label": "Definir deslocamento",
"offsetinfo-msgbox-label": "Deslocamento (veja https://syncplay.pl/guide/ para instruções de uso):",
"promptforstreamurl-msgbox-label": "Abrir transmissão de mídia via URL",
"promptforstreamurlinfo-msgbox-label": "Transmitir URL",
"addfolder-label": "Adicionar pasta",
"adduris-msgbox-label": "Adicionar URLs à playlist (uma por linha)",
"editplaylist-msgbox-label": "Definir playlist (uma por linha)",
"trusteddomains-msgbox-label": "Domínios para os quais é permitido trocar automaticamente (um por linha)",
"createcontrolledroom-msgbox-label": "Criar sala administrativa",
"controlledroominfo-msgbox-label": "Informe o nome da sala administrativa\r\n(veja https://syncplay.pl/guide/ para instruções de uso):",
"identifyascontroller-msgbox-label": "Identificar-se como administrador da sala",
"identifyinfo-msgbox-label": "Informe a senha de administrador para esta sala\r\n(veja https://syncplay.pl/guide/ para instruções de uso):",
"public-server-msgbox-label": "Selecione o servidor público para esta sessão de visualização",
"megabyte-suffix": " MB",
# Tooltips
"host-tooltip": "Hostname ou IP para se conectar, opcionalmente incluindo uma porta (por exemplo, syncplay.pl:8999). Só sincroniza-se com utilizadores no mesmo servidor/porta.",
"name-tooltip": "Nome pelo qual você será conhecido. Não há cadastro, então você pode facilmente mudar mais tarde. Se não for especificado, será gerado aleatoriamente.",
"password-tooltip": "Senhas são necessárias apenas para servidores privados.",
"room-tooltip": "O nome da sala para se conectar pode ser praticamente qualquer coisa, mas você só irá se sincronizar com utilizadores na mesma sala.",
"edit-rooms-tooltip": "Edit room list.", # TO DO: Translate
"executable-path-tooltip": "Localização do seu reprodutor de mídia preferido (mpv, mpv.net, VLC, MPC-HC/BE, mplayer2 ou IINA).",
"media-path-tooltip": "Localização do vídeo ou transmissão a ser aberto. Necessário com o mplayer2.",
"player-arguments-tooltip": "Argumentos de comando de linha adicionais para serem repassados ao reprodutor de mídia.",
"mediasearcdirectories-arguments-tooltip": "Pasta onde o Syncplay vai procurar por ficheiros de mídia, por exemplo quando você estiver usando o recurso de clicar para mudar. O Syncplay irá procurar recursivamente pelas subpastas.",
"more-tooltip": "Mostrar configurações frequentemente menos utilizadas.",
"filename-privacy-tooltip": "Modo de privacidade para mandar nome de ficheiro do ficheiro atual para o servidor.",
"filesize-privacy-tooltip": "Modo de privacidade para mandar tamanho do ficheiro atual para o servidor.",
"privacy-sendraw-tooltip": "Enviar esta informação sem ofuscação. Esta é a opção padrão com mais funcionalidades.",
"privacy-sendhashed-tooltip": "Mandar versão hasheada da informação, tornando-a menos visível aos outros clients.",
"privacy-dontsend-tooltip": "Não enviar esta informação ao servidor. Esta opção oferece a maior privacidade.",
"checkforupdatesautomatically-tooltip": "Verificar o site do Syncplay regularmente para ver se alguma nova versão do Syncplay está disponível.",
"autosavejoinstolist-tooltip": "When you join a room in a server, automatically remember the room name in the list of rooms to join.", # TO DO: Translate
"autosavejoinstolist-label": "Add rooms you join to the room list", # TO DO: Translate
"slowondesync-tooltip": "Reduzir a velocidade de reprodução temporariamente quando necessário para trazer você de volta à sincronia com os outros espectadores. Não suportado pelo MPC-HC/BE.",
"dontslowdownwithme-tooltip": "Significa que outros não serão desacelerados ou retrocedidos se sua reprodução estiver ficando para trás. Útil para administradores de salas.",
"pauseonleave-tooltip": "Pausar reprodução se você for disconectado ou se alguém sair da sua sala.",
"readyatstart-tooltip": "Definir-se como 'pronto' ao começar (do contrário você será definido como 'não pronto' até mudar seu estado de prontidão)",
"forceguiprompt-tooltip": "Diálogo de configuração não é exibido ao abrir um ficheiro com o Syncplay.", # (Inverted)
"nostore-tooltip": "Começar Syncplay com a dada configuração, mas não guardar as mudanças permanentemente.", # (Inverted)
"rewindondesync-tooltip": "Retroceder automaticamente quando necessário para sincronizar. Desabilitar isto pode resultar em grandes dessincronizações!",
"fastforwardondesync-tooltip": "Avançar automaticamente quando estiver fora de sincronia com o administrador da sala (ou sua posição pretendida caso 'Nunca desacelerar ou retroceder outros' estiver habilitada).",
"showosd-tooltip": "Envia mensagens do Syncplay à tela do reprodutor de mídia (OSD).",
"showosdwarnings-tooltip": "Mostra avisos se: estiver tocando ficheiros diferentes, sozinho na sala, utilizadores não prontos, etc.",
"showsameroomosd-tooltip": "Mostra notificações na tela (OSD) sobre eventos relacionados à sala em que o utilizador está.",
"shownoncontrollerosd-tooltip": "Mostra notificações na tela (OSD) sobre eventos relacionados a não administradores que estão em salas gerenciadas.",
"showdifferentroomosd-tooltip": "Mostra notificações na tela (OSD) sobre eventos relacionados à sala em que o utilizador não está.",
"showslowdownosd-tooltip": "Mostra notificações na tela (OSD) sobre desaceleramento/retrocedimento por conta de diferença nos tempos.",
"showdurationnotification-tooltip": "Útil quando um segmento em um ficheiro de múltiplas partes está faltando, mas pode resultar em falsos positivos.",
"language-tooltip": "Idioma a ser utilizado pelo Syncplay.",
"unpause-always-tooltip": "Se você pressionar para despausar, sempre te definirá como pronto e despausará em vez de simplesmente te definir com pronto.",
"unpause-ifalreadyready-tooltip": "Se você pressionar para despausar quando não estiver pronto, irá te definir como pronto - despause novamente para despausar.",
"unpause-ifothersready-tooltip": "Se você apertar para despausar quando não estiver pronto, só irá despausar quando outros estiverem prontos.",
"unpause-ifminusersready-tooltip": "Se você apertar para despausar quando não estiver pronto, só irá despausar quando outros estiverem prontos e o número mínimo de utilizadores for atingido.",
"trusteddomains-arguments-tooltip": "Domínios para os quais é permitido trocar automaticamente quando as playlists compartilhadas estiverem habilitadas.",
"chatinputenabled-tooltip": "Ativar entrada de chat via mpv (pressione Enter para escrever, Enter para enviar, ESC para cancelar)",
"chatdirectinput-tooltip": "Evita ter de apertar 'Enter' para entrar no modo de entrada de chat no mpv. Pressione TAB no mpv para temporariamente desabilitar esta função.",
"font-label-tooltip": "Fonte usada ao escrever mensagens no chat no mpv. Apenas no lado do client, portanto não afeta a cor que os outros veem.",
"set-input-font-tooltip": "Família de fonte usada ao escrever mensagens no chat no mpv. Apenas no lado do client, portanto não afeta a cor que os outros veem.",
"set-input-colour-tooltip": "Cor de fonte usada ao escrever mensagens no chat no mpv. Apenas no lado do client, portanto não afeta a cor que os outros veem.",
"chatinputposition-tooltip": "Lugar no mpv onde a entrada de chat será exibida quando você apertar Enter e digitar.",
"chatinputposition-top-tooltip": "Colocar entrada de chat no topo da janela do mpv.",
"chatinputposition-middle-tooltip": "Colocar entrada de chat no meio da janela do mpv.",
"chatinputposition-bottom-tooltip": "Colocar entrada de chat no fundo da janela do mpv.",
"chatoutputenabled-tooltip": "Mostrar mensagens de chat na tela do reprodutor (OSD) (se suportado pelo reprodutor).",
"font-output-label-tooltip": "Fonte da saída de chat.",
"set-output-font-tooltip": "Fonte usada para exibir mensagens do chat.",
"chatoutputmode-tooltip": "Como as mensagens do chat são exibidas.",
"chatoutputmode-chatroom-tooltip": "Exibe novas linhas de chat diretamente abaixo da linha anterior.",
"chatoutputmode-scrolling-tooltip": "Exibe novas linhas de chat rolando-as da direita pra esquerda.",
"help-tooltip": "Abre o guia de utilizadores do Syncplay.pl.",
"reset-tooltip": "Redefine todas as configurações para seus respectivos padrões.",
"update-server-list-tooltip": "Conecta ao syncplay.pl para atualizar a lista de servidores públicos.",
"sslconnection-tooltip": "Conectado com segurança ao servidor. Clique para exibir detalhes do certificado.",
"joinroom-tooltip": "Sair da sala atual e ingressar na sala especificada.",
"seektime-msgbox-label": "Saltar para tempo especificado (em segundos ou minutos:segundos). Use + ou - para fazer um pulo relativo ao tempo atual.",
"ready-tooltip": "Indica se você está pronto para assistir.",
"autoplay-tooltip": "Reproduzir automaticamente quando todos os usuários que tiverem indicadores de prontidão estiverem prontos e o limiar de usuários for atingido.",
"switch-to-file-tooltip": "Clique duas vezes para mudar para {}", # Filename
"sendmessage-tooltip": "Mandar mensagem para a sala",
# In-userlist notes (GUI)
"differentsize-note": "Tamanhos diferentes!",
"differentsizeandduration-note": "Tamanhos e durações diferentes!",
"differentduration-note": "Durações diferentes!",
"nofile-note": "(Nenhum arquivo está sendo tocado)",
# Server messages to client
"new-syncplay-available-motd-message": "Você está usando o Syncplay {}, mas uma versão mais nova está disponível em https://syncplay.pl", # ClientVersion
# Server notifications
"welcome-server-notification": "Seja bem-vindo ao servidor de Syncplay, versão {0}", # version
"client-connected-room-server-notification": "{0}({2}) conectou-se à sala '{1}'", # username, host, room
"client-left-server-notification": "{0} saiu do servidor", # name
"no-salt-notification": "POR FAVOR, NOTE: Para permitir que as senhas de administradores de sala geradas por esta instância do servidor ainda funcionem quando o servidor for reiniciado, por favor, adicione o seguinte argumento de linha de comando ao executar o servidor de Syncplay no futuro: --salt {}", # Salt
# Server arguments
"server-argument-description": 'Solução para sincronizar a reprodução de múltiplas instâncias de MPlayer e MPC-HC/BE pela rede. Instância de servidor',
"server-argument-epilog": 'Se nenhuma opção for fornecida, os valores de _config serão utilizados',
"server-port-argument": 'porta TCP do servidor',
"server-password-argument": 'senha do servidor',
"server-isolate-room-argument": 'salas devem ser isoladas?',
"server-salt-argument": "string aleatória utilizada para gerar senhas de salas gerenciadas",
"server-disable-ready-argument": "desativar recurso de prontidão",
"server-motd-argument": "caminho para o arquivo o qual o motd será obtido",
"server-chat-argument": "O chat deve ser desativado?",
"server-chat-maxchars-argument": "Número máximo de caracteres numa mensagem do chat (o padrão é {})", # Default number of characters
"server-maxusernamelength-argument": "Número máximos de caracteres num nome de utilizador (o padrão é {})",
"server-stats-db-file-argument": "Habilita estatísticas de servidor usando o arquivo db SQLite fornecido",
"server-startTLS-argument": "Habilita conexões TLS usando os arquivos de certificado no caminho fornecido",
"server-messed-up-motd-unescaped-placeholders": "A Mensagem do Dia possui placeholders não escapados. Todos os sinais de $ devem ser dobrados (como em $$).",
"server-messed-up-motd-too-long": "A Mensagem do Dia é muito longa - máximo de {} caracteres, {} foram dados.",
# Server errors
"unknown-command-server-error": "Comando desconhecido: {}", # message
"not-json-server-error": "Não é uma string codificada como JSON: {}", # message
"line-decode-server-error": "Não é uma string UTF-8",
"not-known-server-error": "Você deve ser conhecido pelo servidor antes de mandar este comando",
"client-drop-server-error": "Drop do client: {} -- {}", # host, error
"password-required-server-error": "Senha necessária",
"wrong-password-server-error": "Senha incorreta fornecida",
"hello-server-error": "Not enough Hello arguments", # DO NOT TRANSLATE
# Playlists
"playlist-selection-changed-notification": "{} mudou a seleção da playlist", # Username
"playlist-contents-changed-notification": "{} atualizou playlist", # Username
"cannot-find-file-for-playlist-switch-error": "Não foi possível encontrar o ficheiro {} no pastas de mídia para a troca de playlist!", # Filename
"cannot-add-duplicate-error": "Não foi possível adicionar uma segunda entrada para '{}' para a playlist uma vez que duplicatas não são permitidas.", # Filename
"cannot-add-unsafe-path-error": "Não foi possível automaticamente carregar {} porque este não é um domínio confiado. Você pode trocar para a URL manualmente dando um clique duplo nela na playlist e adicionando o domínio aos domínios confiáveis em 'Ficheiro -> Avançado -> Definir domínios confiáveis'. Se você clicar com o botão direito na URL, você pode adicionar esta URL como domínio confiável pelo menu de contexto.", # Filename
"sharedplaylistenabled-label": "Habilitar playlists compartilhadas",
"removefromplaylist-menu-label": "Remover da playlist",
"shuffleremainingplaylist-menu-label": "Embaralhar resto da playlist",
"shuffleentireplaylist-menu-label": "Embaralhar toda a playlist",
"undoplaylist-menu-label": "Desfazer última alteração à playlist",
"addfilestoplaylist-menu-label": "Adicionar ficheiro(s) ao final da playlist",
"addurlstoplaylist-menu-label": "Adicionar URL(s) ao final da playlist",
"editplaylist-menu-label": "Editar playlist",
"open-containing-folder": "Abrir pasta contendo este ficheiro",
"addyourfiletoplaylist-menu-label": "Adicionar seu ficheiro à playlist",
"addotherusersfiletoplaylist-menu-label": "Adicionar ficheiros de {} à playlist", # [Username]
"addyourstreamstoplaylist-menu-label": "Adicionar sua transmissão à playlist",
"addotherusersstreamstoplaylist-menu-label": "Adicionar transmissão de {} à playlist", # [Username]
"openusersstream-menu-label": "Abrir transmissão de {}", # [username]'s
"openusersfile-menu-label": "Abrir ficheiro de {}", # [username]'s
"playlist-instruction-item-message": "Arraste um ficheiro aqui para adicioná-lo à playlist compartilhada.",
"sharedplaylistenabled-tooltip": "Operadores da sala podem adicionar ficheiros para a playlist compartilhada para tornar mais fácil para todo mundo assistir a mesma coisa. Configure os pastas de mídia em 'Miscelânea'.",
"playlist-empty-error": "Playlist is currently empty.", # TO DO: Translate
"playlist-invalid-index-error": "Invalid playlist index", # TO DO: Translate
}

View File

@ -16,7 +16,7 @@ ru = {
"connection-failed-notification": "Не удалось подключиться к серверу",
"connected-successful-notification": "Соединение с сервером установлено",
"retrying-notification": "%s, следующая попытка через %d секунд(ы)...", # Seconds
"reachout-successful-notification": "Successfully reached {} ({})", # TODO: Translate
"reachout-successful-notification": "Подключение к {} ({}) успешно",
"rewind-notification": "Перемотано из-за разницы во времени с {}", # User
"fastforward-notification": "Ускорено из-за разницы во времени с {}", # User
@ -39,25 +39,24 @@ ru = {
"not-all-ready": "Не готовы: {}", # Usernames
"all-users-ready": "Все зрители готовы ({} чел.)", # Number of ready users
"ready-to-unpause-notification": "Вы помечены как готовый - нажмите еще раз, чтобы продолжить воспроизведение",
"ready-to-unpause-notification": "Вы помечены как готовый — нажмите ещё раз, чтобы продолжить воспроизведение",
"set-as-ready-notification": "Вы помечены как готовый",
"set-as-not-ready-notification": "Вы помечены как неготовый",
"autoplaying-notification": "Автовоспроизведение через {}...", # Number of seconds until playback will start
"identifying-as-controller-notification": "Идентификация как оператора комнаты с паролем '{}'...",
"failed-to-identify-as-controller-notification": "{} не прошел идентификацию в качестве оператора комнаты.",
"authenticated-as-controller-notification": "{} вошел как оператор комнаты.",
"created-controlled-room-notification": "Создана управляемая комната '{}' с паролем '{}'. Сохраните эти данные!", # RoomName, operatorPassword
"file-different-notification": "Вероятно, файл, который Вы смотрите, отличается от того, который смотрит {}.", # User
"authenticated-as-controller-notification": "{} вошёл как оператор комнаты.",
"created-controlled-room-notification": "Создана управляемая комната '{}' с паролем '{}'. Сохраните эти данные!\n\nВ управляемых комнатах всех синхронизируют с оператором (-ами) комнаты, только у которых есть права ставить и снимать с паузы, перематывать и изменять список воспроизведения.\n\nПопросите обычных зрителей подключиться к комнате '{}', а операторы могут подключиться к комнате '{}', чтобы автоматически авторизироваться.", # RoomName, operatorPassword, roomName, roomName:operatorPassword
"file-different-notification": "Вероятно, файл, который вы смотрите, отличается от того, который смотрит {}.", # User
"file-differences-notification": "Ваш файл отличается: {}", # Differences
"room-file-differences": "Несовпадения файла: {}", # File differences (filename, size, and/or duration)
"file-difference-filename": "имя",
"file-difference-filesize": "размер",
"file-difference-duration": "длительность",
"alone-in-the-room": "В комнате кроме Вас никого нет.",
"alone-in-the-room": "В комнате кроме вас никого нет.",
"different-filesize-notification": " (размер Вашего файла не совпадает с размером их файла!)",
"different-filesize-notification": " (размер вашего файла не совпадает с размером их файла!)",
"userlist-playing-notification": "{} смотрит:", # Username
"file-played-by-notification": "Файл: {} просматривают:", # File
"no-file-played-notification": "{} не смотрит ничего", # Username
@ -67,7 +66,7 @@ ru = {
"controller-userlist-userflag": "Оператор",
"ready-userlist-userflag": "Готов",
"update-check-failed-notification": "Невозможно автоматически проверить, что версия Syncplay {} все еще актуальна. Хотите зайти на https://syncplay.pl/ и вручную проверить наличие обновлений?",
"update-check-failed-notification": "Невозможно автоматически проверить, что версия Syncplay {} все ещё актуальна. Хотите зайти на https://syncplay.pl/ и вручную проверить наличие обновлений?",
"syncplay-uptodate-notification": "У вас последняя версия Syncplay",
"syncplay-updateavailable-notification": "Доступна новая версия Syncplay. Хотите открыть страницу релиза?",
@ -77,80 +76,85 @@ ru = {
"unrecognized-command-notification": "Неизвестная команда.",
"commandlist-notification": "Доступные команды:",
"commandlist-notification/room": "\tr [name] - сменить комнату",
"commandlist-notification/room": "\tr [имя комнаты] - сменить комнату",
"commandlist-notification/list": "\tl - показать список пользователей",
"commandlist-notification/undo": "\tu - отменить последнюю перемотку",
"commandlist-notification/pause": "\tp - вкл./выкл. паузу",
"commandlist-notification/seek": "\t[s][+-]time - перемотать к заданному моменту времени, если не указан + или -, то время считается абсолютным (от начала файла) в секундах или мин:сек",
"commandlist-notification/help": "\th - помощь",
"commandlist-notification/toggle": "\tt - переключить статус готов/не готов к просмотру",
"commandlist-notification/create": "\tc [name] - создать управляемую комнату с таким же именем, как у текущей",
"commandlist-notification/auth": "\ta [password] - авторизоваться как оператор комнаты с помощью пароля",
"commandlist-notification/chat": "\tch [message] - send a chat message in a room", # TODO: Translate
"commandlist-notification/create": "\tc [имя комнаты] - создать управляемую комнату с таким же именем, как у текущей",
"commandlist-notification/auth": "\ta [пароль] - авторизоваться как оператор комнаты с помощью пароля",
"commandlist-notification/chat": "\tch [сообщение] - выслать сообщение в комнату",
"commandList-notification/queue": "\tqa [файл/URL] - добавить файл или URL в конец списка воспроизведения",
"commandList-notification/playlist": "\tql - показать текущий список воспроизведения",
"commandList-notification/select": "\tqs [индекс] - выделить указанный пункт в списке воспроизведения",
"commandList-notification/delete": "\tqd [индекс] - удалить указанный пункт из списка воспроизведения",
"syncplay-version-notification": "Версия Syncplay: {}", # syncplay.version
"more-info-notification": "Больше информации на {}", # projectURL
"gui-data-cleared-notification": "Syncplay очистил путь и информацию о состоянии окна, использованного GUI.",
"language-changed-msgbox-label": "Язык переключится при следующем запуске Syncplay.",
"promptforupdate-label": "Вы не против, если Syncplay будет автоматически изредка проверять наличие обновлений?",
"promptforupdate-label": "Разрешить Syncplay периодически проверять наличие обновлений?",
"media-player-latency-warning": "Внимание: У Вашего проигрывателя слишком большой отклик ({} секунд). Если Вы замечаете проблемы с синхронизацией, то закройте ресурсоемкие приложения. Если это не помогло - попробуйте другой проигрыватель.", # Seconds to respond
"media-player-latency-warning": "Внимание: у проигрывателя слишком большой отклик ({} секунд). Если заметите проблемы с синхронизацией, закройте ресурсоёмкие приложения. Если не поможет, попробуйте другой проигрыватель.", # Seconds to respond
"mpv-unresponsive-error": "mpv не отвечает {} секунд, по-видимому, произошел сбой. Пожалуйста, перезапустите Syncplay.", # Seconds to respond
# Client prompts
"enter-to-exit-prompt": "Для выхода нажмите Enter\n",
"enter-to-exit-prompt": "Для выхода нажмите \"Ввод\"\n",
# Client errors
"missing-arguments-error": "Некоторые необходимые аргументы отсутствуют, обратитесь к --help",
"server-timeout-error": "Подключение к серверу превысило лимит времени",
"mpc-slave-error": "Невозможно запустить MPC в slave режиме!",
"mpc-slave-error": "Невозможно запустить MPC в режиме slave!",
"mpc-version-insufficient-error": "Версия MPC слишком старая, пожалуйста, используйте `mpc-hc` >= `{}`",
"mpc-be-version-insufficient-error": "Версия MPC слишком старая, пожалуйста, используйте `mpc-be` >= `{}`",
"mpv-version-error": "Syncplay несовместим с данной версией mpv. Пожалуйста, используйте другую версию mpv (лучше свежайшую).",
"mpv-failed-advice": "Возможно, mpv не может запуститься из-за неподдерживаемых параметров командной строки или неподдерживаемой версии mpv.",
"player-file-open-error": "Проигрыватель не может открыть файл.",
"player-path-error": "Путь к проигрывателю задан неверно. Supported players are: mpv, mpv.net, VLC, MPC-HC, MPC-BE and mplayer2.", # TODO: Translate last sentence
"player-path-error": "Путь к проигрывателю задан неверно. Поддерживаемые проигрыватели: mpv, mpv.net, VLC, MPC-HC, MPC-BE, mplayer2 и IINA.",
"hostname-empty-error": "Имя пользователя не может быть пустым.",
"empty-error": "{} не может быть пустым.", # Configuration
"media-player-error": "Ошибка проигрывателя: \"{}\"", # Error line
"unable-import-gui-error": "Невозможно импортировать библиотеки GUI (графического интерфейса). Необходимо установить PySide, иначе графический интерфейс не будет работать.",
"unable-import-twisted-error": "Could not import Twisted. Please install Twisted v16.4.0 or later.", #To do: translate
"unable-import-gui-error": "Невозможно импортировать библиотеки графического интерфейса. Необходимо установить PySide, иначе графический интерфейс не будет работать.",
"unable-import-twisted-error": "Невозможно импортировать Twisted. Установите Twisted 16.4.0 или более позднюю версию.",
"arguments-missing-error": "Некоторые необходимые аргументы отсутствуют, обратитесь к --help",
"unable-to-start-client-error": "Невозможно запустить клиент",
"player-path-config-error": "Путь к проигрывателю установлен неверно. Supported players are: mpv, mpv.net, VLC, MPC-HC, MPC-BE and mplayer2", # To do: Translate end
"player-path-config-error": "Путь к проигрывателю установлен неверно. Поддерживаемые проигрыватели: mpv, mpv.net, VLC, MPC-HC, MPC-BE, mplayer2 и IINA.",
"no-file-path-config-error": "Файл должен быть указан до включения проигрывателя",
"no-hostname-config-error": "Имя сервера не может быть пустым",
"no-hostname-config-error": "Адрес сервера не может быть пустым",
"invalid-port-config-error": "Неверный номер порта",
"empty-value-config-error": "Поле '{}' не может быть пустым", # Config option
"not-json-error": "Не является закодированной json-строкой\n",
"hello-arguments-error": "Не хватает аргументов Hello\n",
"version-mismatch-error": "Конфликт версий между клиентом и сервером\n",
"vlc-failed-connection": "Ошибка подключения к VLC. Если у Вас не установлен syncplay.lua, то обратитесь к https://syncplay.pl/LUA/ за инструкциями.",
"vlc-failed-connection": "Ошибка подключения к VLC. Если у вас не установлен syncplay.lua, обратитесь к https://syncplay.pl/LUA/ за инструкциями. На данный момент Syncplay несовместим с VLC 4, поэтому используйте VLC 3 или другой проигрыватель, например, mpv.",
"vlc-failed-noscript": "VLC сообщает, что скрипт интерфейса syncplay.lua не установлен. Пожалуйста, обратитесь к https://syncplay.pl/LUA/ за инструкциями.",
"vlc-failed-versioncheck": "Данная версия VLC не поддерживается Syncplay. Пожалуйста, используйте VLC версии 2 или выше.",
"vlc-initial-warning": 'VLC не всегда предоставляет точную информацию о позиции воспроизведения, особенно для файлов с расширениями mp4 и avi. Если возникли проблемы с перемоткой, попробуйте другой проигрыватель, например, <a href="https://mpv.io/">mpv</a> (или <a href="https://github.com/stax76/mpv.net/">mpv.net</a> для Windows).',
"feature-sharedPlaylists": "shared playlists", # used for not-supported-by-server-error # TODO: Translate
"feature-chat": "chat", # used for not-supported-by-server-error # TODO: Translate
"feature-readiness": "readiness", # used for not-supported-by-server-error # TODO: Translate
"feature-managedRooms": "managed rooms", # used for not-supported-by-server-error # TODO: Translate
"feature-sharedPlaylists": "общий список воспроизведения", # used for not-supported-by-server-error
"feature-chat": "чат", # used for not-supported-by-server-error
"feature-readiness": "готовность", # used for not-supported-by-server-error
"feature-managedRooms": "управляемые комнаты", # used for not-supported-by-server-error
"not-supported-by-server-error": "The {} feature is not supported by this server..", # feature # TODO: Translate
# OLD TRANSLATION: "not-supported-by-server-error": u"Эта возможность не поддерживается сервером. Требуется сервер Syncplay {}+, вы подключены к серверу Syncplay {}.", # minVersion, serverVersion
"not-supported-by-server-error": "Возможность '{}' не поддерживается сервером.", # feature
"shared-playlists-not-supported-by-server-error": "Общие списки воспроизведения могут не поддерживаться сервером. Для корректной работы требуется сервер Syncplay {}+, вы подключены к серверу Syncplay {}.", # minVersion, serverVersion
"shared-playlists-disabled-by-server-error": "The shared playlist feature has been disabled in the server configuration. To use this feature you will need to connect to a different server.", # TODO: Translate
"shared-playlists-disabled-by-server-error": "Общий список воспроизведения отключён сервером. Чтобы использовать эту возможность, подключитесь к другому серверу.",
"invalid-seek-value": "Некорректное значение для перемотки",
"invalid-offset-value": "Некорректное смещение",
"switch-file-not-found-error": "Невозможно найти файл '{0}'. Проверьте папки воспроизведения.", # File not found
"folder-search-timeout-error": "Поиск файла был прерван в папке '{}'. Это может происходить из-за большого количества подпапок. Для корректной работы поиска файлов зайдите через выпадающее меню в Файл->Папки воспроизведения и удалите данную папку из списка, или замените её на нужную подпапку. If the folder is actually fine then you can re-enable it by selecting File->Set Media Directories and pressing 'OK'.", # Folder # TODO: Translate last sentence
"folder-search-first-file-timeout-error": "Поиск файла в '{}' был прерван, так как невозможно открыть каталог. Это может происходить, если это сетевой диск или диск перешел в режим экономии энергии. Для корректной работы поиска файлов зайдите через выпадающее меню в Файл->Папки воспроизведения и удалите данную папку, или решите проблему через изменение параметров энергосбережения.", # Folder
"folder-search-timeout-error": "Поиск файла был прерван в папке '{}'. Это может произойти из-за большого количества подпапок. Для корректной работы поиска файлов зайдите через выпадающее меню в Файл->Папки воспроизведения и удалите данную папку из списка или замените её на нужную подпапку. Если на самом деле с папкой всё в порядке, вы можете cнова её включить через выпадающее меню Файл->Папки воспроизведения.", # Folder
"folder-search-first-file-timeout-error": "Поиск файла в '{}' был прерван, так как невозможно открыть каталог. Это может произойти, если это сетевой диск или диск перешёл в режим экономии энергии. Для корректной работы поиска файлов зайдите через выпадающее меню в Файл->Папки воспроизведения и удалите данную папку, или решите проблему изменив параметры энергосбережения.", # Folder
"added-file-not-in-media-directory-error": "Вы загрузили файл из '{}', который не числится в папках воспроизведения. Вы можете добавить его через выпадающее меню Файл->Папки воспроизведения.", # Folder
"no-media-directories-error": "Вы не указали папки воспроизведения. Для корректной работы зайдите через выпадающее меню в Файл->Папки воспроизведения и укажите нужные каталоги.",
"cannot-find-directory-error": "Не удалось найти папку воспроизведения '{}'. Для обновления списка папок, через выпадающее меню, перейдите в Файл->Папки воспроизведения и укажите нужные каталоги.",
"cannot-find-directory-error": "Не удалось найти папку воспроизведения '{}'. Чтобы обновить список папок, через выпадающее меню перейдите в Файл->Папки воспроизведения и укажите нужные каталоги.",
"failed-to-load-server-list-error": "Не удалось загрузить список публичных серверов. Откройте https://www.syncplay.pl/ через браузер.",
@ -159,22 +163,22 @@ ru = {
"argument-epilog": 'Если параметр не будет передан, то будет использоваться значение, указанное в _config.',
"nogui-argument": 'не использовать GUI',
"host-argument": 'адрес сервера',
"name-argument": 'желательное имя пользователя',
"name-argument": 'желаемое имя пользователя',
"debug-argument": 'режим отладки',
"force-gui-prompt-argument": 'показать окно настройки',
"no-store-argument": 'не сохранять данные в .syncplay',
"room-argument": 'начальная комната',
"password-argument": 'пароль для доступа к серверу',
"player-path-argument": 'путь к исполняемому файлу Вашего проигрывателя',
"player-path-argument": 'путь к исполняемому файлу проигрывателя',
"file-argument": 'воспроизводимый файл',
"args-argument": 'параметры проигрывателя; если нужно передать параметры, начинающиеся с - , то сначала пишите \'--\'',
"clear-gui-data-argument": 'сбрасывает путь и данные о состоянии окна GUI, хранимые как QSettings',
"language-argument": 'язык сообщений Syncplay (de/en/ru/it/es/pt_BR)',
"language-argument": 'язык сообщений Syncplay (de/en/ru/it/es/pt_BR/pt_PT/tr)',
"version-argument": 'выводит номер версии',
"version-message": "Вы используете Syncplay версии {} ({})",
"load-playlist-from-file-argument": "loads playlist from text file (one entry per line)", # TODO: Translate
"load-playlist-from-file-argument": "загружает список воспроизведения из текстового файла (один пункт на строку)",
# Client labels
"config-window-title": "Настройка Syncplay",
@ -184,10 +188,11 @@ ru = {
"name-label": "Имя пользователя (не обязательно):",
"password-label": "Пароль сервера (если требуется):",
"room-label": "Комната:",
"roomlist-msgbox-label": "Редактировать список комнат (одна на строку)",
"media-setting-title": "Воспроизведение",
"executable-path-label": "Путь к проигрывателю:",
"media-path-label": "Путь к видеофайлу:", # Todo: Translate to 'Path to video (optional)'
"media-path-label": "Путь к видеофайлу (не обязателен):",
"player-arguments-label": "Аргументы запуска проигрывателя:",
"browse-label": "Выбрать",
"update-server-list-label": "Обновить список",
@ -201,19 +206,20 @@ ru = {
"filename-privacy-label": "Имя файла:",
"filesize-privacy-label": "Размер файла:",
"checkforupdatesautomatically-label": "Проверять обновления автоматически",
"autosavejoinstolist-label": "Добавлять комнаты, к которым вы подключаетесь, в список комнат",
"slowondesync-label": "Замедлять при небольших рассинхронизациях (не поддерживаетя в MPC-HC/BE)",
"rewindondesync-label": "Перемотка при больших рассинхронизациях (настоятельно рекомендуется)",
"dontslowdownwithme-label": "Никогда не замедлять и не перематывать видео другим (функция тестируется)",
"pausing-title": "Приостановка",
"pauseonleave-label": "Приостанавливать, когда кто-то уходит (например, отключился)",
"pauseonleave-label": "Приостанавливать, когда кто-то уходит (например, отключается)",
"readiness-title": "Готовность",
"readyatstart-label": "Выставить статус 'Я готов' по умолчанию",
"fastforwardondesync-label": "Ускорять видео при отставании (рекомендуется)",
"forceguiprompt-label": "Не показывать больше этот диалог", # (Inverted)
"forceguiprompt-label": "Не всегда показывать окно настройки Syncplay", # (Inverted)
"showosd-label": "Включить экранные сообщения (поверх видео)",
"showosdwarnings-label": "Показывать предупреждения (напр., когда файлы не совпадают)",
"showsameroomosd-label": "Показывать события Вашей комнаты",
"showsameroomosd-label": "Показывать события вашей комнаты",
"shownoncontrollerosd-label": "Включить события, связанные с не-операторами в управляемой комнате.",
"showdifferentroomosd-label": "Показывать события других комнат",
"showslowdownosd-label": "Показывать уведомления о замедлении/перемотке",
@ -233,45 +239,45 @@ ru = {
"messages-label": "Сообщения",
"messages-osd-title": "Настройки OSD",
"messages-other-title": "Другие настройки отображения",
"chat-label": "Chat", # TODO: Translate
"chat-label": "Чат",
"privacy-label": "Приватность",
"privacy-title": "Настройки приватности",
"unpause-title": "Если вы стартуете, то:",
"unpause-ifalreadyready-option": "Снять паузу, если уже готов",
"unpause-ifothersready-option": "Снять паузу, если Вы и остальные в комнате готовы (по-умолчанию)",
"unpause-ifothersready-option": "Снять паузу, если вы и остальные в комнате готовы (по умолчанию)",
"unpause-ifminusersready-option": "Снять паузу, если все в комнате готовы и присутствует минимум зрителей",
"unpause-always": "Всегда снимать паузу",
"syncplay-trusteddomains-title": "Доверенные сайты (стрим-сервисы, видеохостинги, файлы в сети)",
"addtrusteddomain-menu-label": "Добавить {} как доверенный сайт", # Domain
"chat-title": "Chat message input", # TODO: Translate
"chatinputenabled-label": "Enable chat input via mpv (using enter key)", # TODO: Translate
"chatdirectinput-label": "Allow instant chat input (bypass having to press enter key to chat)", # TODO: Translate
"chatinputfont-label": "Chat input font", # TODO: Translate
"chatfont-label": "Set font", # TODO: Translate
"chatcolour-label": "Set colour", # TODO: Translate
"chatinputposition-label": "Position of message input area in mpv", # TODO: Translate
"chat-top-option": "Top", # TODO: Translate
"chat-middle-option": "Middle", # TODO: Translate
"chat-bottom-option": "Bottom", # TODO: Translate
"chatoutputheader-label": "Chat message output", # TODO: Traslate
"chatoutputfont-label": "Chat output font", # TODO: Translate
"chatoutputenabled-label": "Enable chat output in media player (mpv only for now)", # TODO: Translate
"chatoutputposition-label": "Output mode", # TODO: Translate
"chat-chatroom-option": "Chatroom style", # TODO: Translate
"chat-scrolling-option": "Scrolling style", # TODO: Translate
"chat-title": "Ввод сообщений чата",
"chatinputenabled-label": "Разрешить ввод сообщений в mpv (при помощи клавиши 'ввод')",
"chatdirectinput-label": "Разрешить мгновенный ввод сообщений (без необходимости нажимать 'ввод', чтобы выслать сообщение)",
"chatinputfont-label": "Шрифт для поля ввода сообщений",
"chatfont-label": "Установить шрифт",
"chatcolour-label": "Установить цвет",
"chatinputposition-label": "Позиция поля ввода сообщения в mpv",
"chat-top-option": "Вверху",
"chat-middle-option": "Посередине",
"chat-bottom-option": "Внизу",
"chatoutputheader-label": "Вывод сообщений чата",
"chatoutputfont-label": "Шрифт сообщений чата",
"chatoutputenabled-label": "Разрешить вывод сообщений в проигрывателе (пока что только в mpv)",
"chatoutputposition-label": "Режим вывода",
"chat-chatroom-option": "Режим чата",
"chat-scrolling-option": "Режим прокрутки",
"mpv-key-tab-hint": "[TAB] to toggle access to alphabet row key shortcuts.", # TODO: Translate
"mpv-key-hint": "[ENTER] to send message. [ESC] to escape chat mode.", # TODO: Translate
"alphakey-mode-warning-first-line": "You can temporarily use old mpv bindings with a-z keys.", # TODO: Translate
"alphakey-mode-warning-second-line": "Press [TAB] to return to Syncplay chat mode.", # TODO: Translate
"mpv-key-tab-hint": "[TAB] - включить или выключить горячие клавиши mpv.",
"mpv-key-hint": "[ВВОД] - выслать сообщение. [ESC] - выйти из режима чата.",
"alphakey-mode-warning-first-line": "Сейчас можно использовать горячие клавиши mpv, нажимая a-z.",
"alphakey-mode-warning-second-line": "Нажмите [TAB], чтобы вернуться в режим чата.",
"help-label": "Помощь",
"reset-label": "Сброс настроек",
"run-label": "Запустить",
"storeandrun-label": "Сохранить и запустить",
"contact-label": "Есть идея, нашли ошибку или хотите оставить отзыв? Пишите на <a href=\"mailto:dev@syncplay.pl\">dev@syncplay.pl</a>, в <a href=\"https://webchat.freenode.net/?channels=#syncplay\">IRC канал #Syncplay</a> на irc.freenode.net или <a href=\"https://github.com/Uriziel/syncplay/issues\">задавайте вопросы через GitHub</a>. Кроме того, заходите на <a href=\"https://syncplay.pl/\">www.syncplay.pl</a> за инорфмацией, помощью и обновлениями! Do not use Syncplay to send sensitive information.", # TODO: Translate last sentence
"contact-label": "Есть идея, нашли ошибку или хотите оставить отзыв? Пишите на <a href=\"mailto:dev@syncplay.pl\">dev@syncplay.pl</a>, в <a href=\"https://webchat.freenode.net/?channels=#syncplay\">IRC канал #Syncplay</a> на irc.freenode.net или <a href=\"https://github.com/Uriziel/syncplay/issues\">задавайте вопросы через GitHub</a>. Кроме того, заходите на <a href=\"https://syncplay.pl/\">www.syncplay.pl</a> за информацией, помощью и обновлениями! Не используйте Syncplay для передачи конфиденциальной информации.",
"joinroom-label": "Зайти в комнату",
"joinroom-menu-label": "Зайти в комнату {}",
@ -283,7 +289,7 @@ ru = {
"autoplay-menu-label": "Показывать кнопку &автовоспроизведения",
"autoplay-guipushbuttonlabel": "Стартовать, когда все будут готовы",
"autoplay-minimum-label": "Минимум зрителей:",
"sendmessage-label": "Send", # TODO: Translate
"sendmessage-label": "Выслать",
"ready-guipushbuttonlabel": "Я готов",
@ -301,8 +307,8 @@ ru = {
"openmedia-menu-label": "&Открыть файл",
"openstreamurl-menu-label": "Открыть &ссылку",
"setmediadirectories-menu-label": "&Папки воспроизведения",
"loadplaylistfromfile-menu-label": "&Load playlist from file", # TODO: Translate
"saveplaylisttofile-menu-label": "&Save playlist to file", # TODO: Translate
"loadplaylistfromfile-menu-label": "&Загрузить список воспроизведения из файла",
"saveplaylisttofile-menu-label": "&Сохранить список воспроизведения в файл",
"exit-menu-label": "&Выход",
"advanced-menu-label": "&Дополнительно",
"window-menu-label": "&Вид",
@ -324,27 +330,25 @@ ru = {
"userguide-menu-label": "&Руководство пользователя",
"update-menu-label": "Проверить &обновления",
# startTLS messages - TODO: Translate
"startTLS-initiated": "Attempting secure connection",
"startTLS-secure-connection-ok": "Secure connection established ({})",
"startTLS-server-certificate-invalid": 'Secure connection failed. The server uses an invalid security certificate. This communication could be intercepted by a third party. For further details and troubleshooting see <a href="https://syncplay.pl/trouble">here</a>.',
"startTLS-not-supported-client": "This client does not support TLS",
"startTLS-not-supported-server": "This server does not support TLS",
"startTLS-initiated": "Попытка установить безопасное соединение",
"startTLS-secure-connection-ok": "Безопасное соединение установлено ({})",
"startTLS-server-certificate-invalid": 'Не удалось установить безопасное соединение. Сервер использует некорректный сертификат безопасности. Коммуникация с сервером может быть перехвачена третьими лицами. Подробности и способы устранения проблемы <a href="https://syncplay.pl/trouble">здесь</a>.',
"startTLS-server-certificate-invalid-DNS-ID": "Syncplay не доверяет этому серверу, потому что сервер использует сертификат безопасности, не предназначенный для данного адреса.",
"startTLS-not-supported-client": "Клиент не поддерживает TLS",
"startTLS-not-supported-server": "Сервер не поддерживает TLS",
# TLS certificate dialog - TODO: Translate
"tls-information-title": "Certificate Details",
"tls-dialog-status-label": "<strong>Syncplay is using an encrypted connection to {}.</strong>",
"tls-dialog-desc-label": "Encryption with a digital certificate keeps information private as it is sent to or from the<br/>server {}.",
"tls-dialog-connection-label": "Information encrypted using Transport Layer Security (TLS), version {} with the cipher<br/>suite: {}.",
"tls-dialog-certificate-label": "Certificate issued by {} valid until {}.",
"tls-information-title": "Подробности сертификата",
"tls-dialog-status-label": "<strong>Syncplay использует зашифрованное соединение с {}.</strong>",
"tls-dialog-desc-label": "Шифрование при помощи цифрового сертификата позволяет не разглашать<br/>информацию во время передачи данных на сервер {} и с него.",
"tls-dialog-connection-label": "Информация зашифрована при помощи Transport Layer Security (TLS)<br/>версии {} шифром {}.",
"tls-dialog-certificate-label": "Сертификат выдан {}, действителен до {}.",
# About dialog - TODO: Translate
"about-menu-label": "&About Syncplay",
"about-dialog-title": "About Syncplay",
"about-dialog-release": "Version {} release {}",
"about-dialog-license-text": "Licensed under the Apache&nbsp;License,&nbsp;Version 2.0",
"about-dialog-license-button": "License",
"about-dialog-dependencies": "Dependencies",
"about-menu-label": "&О Syncplay",
"about-dialog-title": "О Syncplay",
"about-dialog-release": "Версия {}, выпуск {}",
"about-dialog-license-text": "Лицензировано на условиях Apache&nbsp;License,&nbsp;Version 2.0",
"about-dialog-license-button": "Лицензия",
"about-dialog-dependencies": "Зависимости",
"setoffset-msgbox-label": "Установить смещение",
"offsetinfo-msgbox-label": "Смещение (см. инструкцию на странице www.syncplay.pl/guide):",
@ -364,19 +368,21 @@ ru = {
"identifyascontroller-msgbox-label": "Войти как оператор комнаты",
"identifyinfo-msgbox-label": "Введите пароль оператора комнаты\r\n(см. инструкцию на странице www.syncplay.pl/guide):",
"public-server-msgbox-label": "Выбите публичный сервер для данной сессии",
"public-server-msgbox-label": "Выберите публичный сервер для данной сессии",
"megabyte-suffix": " МБ", # Technically it is a mebibyte
# Tooltips
"host-tooltip": "Имя или IP-адрес, к которому будет произведено подключение, может содержать номер порта (напр., syncplay.pl:8999). Синхронизация возможна только в рамках одного сервера/порта.",
"name-tooltip": "Имя, под которым Вы будете известны. Регистриция не требуется, так что имя пользователя можно легко сменить в любой момент. Будет сгенерировано случайным образом, если не указать.",
"name-tooltip": "Имя, под которым вы будете известны. Регистрация не требуется, поэтому имя можно легко сменить в любой момент. Если оставить пустым, будет сгенерировано случайное имя.",
"password-tooltip": "Пароли нужны для подключения к приватным серверам.",
"room-tooltip": "Комната, в которую Вы попадете сразу после подключения. Синхронизация возможна только между людьми в одной и той же комнате.",
"room-tooltip": "Комната, в которую вы попадете сразу после подключения. Синхронизация возможна только между людьми в одной и той же комнате.",
"executable-path-tooltip": "Расположение Вашего видеопроигрывателя (MPC-HC, MPC-BE, VLC, mplayer2 или mpv).",
"media-path-tooltip": "Расположение видеофайла или потока для просмотра. Обязательно для mplayer2.", # TODO: Confirm translation
"edit-rooms-tooltip": "Редактировать список комнат.",
"executable-path-tooltip": "Расположение проигрывателя (mpv, mpv.net, VLC, MPC-HC/BE, mplayer2 или IINA).",
"media-path-tooltip": "Расположение видеофайла или потока для просмотра. Обязательно для mplayer2.",
"player-arguments-tooltip": "Передавать дополнительные аргументы командной строки этому проигрывателю.",
"mediasearcdirectories-arguments-tooltip": "Папки, где Syncplay будет искать медиафайлы, включая подпапки.",
@ -387,17 +393,18 @@ ru = {
"privacy-sendhashed-tooltip": "Отправляет хэш-сумму этой информации, делая ее невидимой для других пользователей.",
"privacy-dontsend-tooltip": "Не отправлять эту информацию на сервер. Предоставляет наибольшую приватность.",
"checkforupdatesautomatically-tooltip": "Syncplay будет регулярно заходить на сайт и проверять наличие новых версий.",
"autosavejoinstolist-tooltip": "Автоматически запоминать название комнаты в списке при подключении к комнате.",
"slowondesync-tooltip": "Временно уменьшить скорость воспроизведения в целях синхронизации с другими зрителями. Не поддерживается в MPC-HC/BE.",
"dontslowdownwithme-tooltip": "Ваши лаги не будут влиять на других зрителей.",
"pauseonleave-tooltip": "Приостановить воспроизведение, если Вы покинули комнату или кто-то из зрителей отключился от сервера.",
"readyatstart-tooltip": "Отметить Вас готовым к просмотру сразу же (по умолчанию Вы отмечены не готовым)",
"dontslowdownwithme-tooltip": "Ваше отставание не будет влиять на других зрителей.",
"pauseonleave-tooltip": "Приостановить воспроизведение, если вы покинули комнату или кто-то из зрителей отключился от сервера.",
"readyatstart-tooltip": "Отметить вас готовым к просмотру сразу же (по умолчанию вы отмечены не готовым)",
"forceguiprompt-tooltip": "Окно настройки не будет отображаться при открытии файла в Syncplay.", # (Inverted)
"nostore-tooltip": "Запустить Syncplay с данной конфигурацией, но не сохранять изменения навсегда.",
"rewindondesync-tooltip": "Перематывать назад, когда это необходимо для синхронизации. Отключение этой опции может привести к большим рассинхронизациям!",
"fastforwardondesync-tooltip": "Перематывать вперед при рассинхронизации с оператором комнаты (или если включена опция 'Никогда не замедлять и не перематывать видео другим').",
"showosd-tooltip": "Отправлять сообщения Syncplay в видеопроигрыватель и отображать их поверх видео (OSD - On Screen Display).",
"showosdwarnings-tooltip": "Показывать OSC-предупреждения, если проигрываются разные файлы или если Вы в комнате больше никого нет.",
"showsameroomosd-tooltip": "Показывать OSD-уведомления о событиях, относящихся к комнате, в которой Вы находитесь.",
"showosdwarnings-tooltip": "Показывать OSC-предупреждения, если проигрываются разные файлы или если вы в комнате больше никого нет.",
"showsameroomosd-tooltip": "Показывать OSD-уведомления о событиях, относящихся к комнате, в которой вы находитесь.",
"shownoncontrollerosd-tooltip": "Показывать OSD-уведомления о событиях, относящихся к не-операторам в управляемой комнате.",
"showdifferentroomosd-tooltip": "Показывать OSD-уведомления о событиях, относящихся к любым другим комнатам.",
"showslowdownosd-tooltip": "Показывать уведомления о замедлении или перемотке в целях синхронизации.",
@ -409,40 +416,40 @@ ru = {
"unpause-ifminusersready-tooltip": "Когда вы стартуете не готовым, воспроизведение начнется, если остальные готовы и присутствует достаточное число зрителей.",
"trusteddomains-arguments-tooltip": "Сайты, которые разрешены для автоматического воспроизведения из общего списка воспроизведения.",
"chatinputenabled-tooltip": "Enable chat input in mpv (press enter to chat, enter to send, escape to cancel)", # TODO: Translate
"chatdirectinput-tooltip": "Skip having to press 'enter' to go into chat input mode in mpv. Press TAB in mpv to temporarily disable this feature.", # TODO: Translate
"font-label-tooltip": "Font used for when entering chat messages in mpv. Client-side only, so doesn't affect what other see.", # TODO: Translate
"set-input-font-tooltip": "Font family used for when entering chat messages in mpv. Client-side only, so doesn't affect what other see.", # TODO: Translate
"set-input-colour-tooltip": "Font colour used for when entering chat messages in mpv. Client-side only, so doesn't affect what other see.", # TODO: Translate
"chatinputposition-tooltip": "Location in mpv where chat input text will appear when you press enter and type.", # TODO: Translate
"chatinputposition-top-tooltip": "Place chat input at top of mpv window.", # TODO: Translate
"chatinputposition-middle-tooltip": "Place chat input in dead centre of mpv window.", # TODO: Translate
"chatinputposition-bottom-tooltip": "Place chat input at bottom of mpv window.", # TODO: Translate
"chatoutputenabled-tooltip": "Show chat messages in OSD (if supported by media player).", # TODO: Translate
"font-output-label-tooltip": "Chat output font.", # TODO: Translate
"set-output-font-tooltip": "Font used for when displaying chat messages.", # TODO: Translate
"chatoutputmode-tooltip": "How chat messages are displayed.", # TODO: Translate
"chatoutputmode-chatroom-tooltip": "Display new lines of chat directly below previous line.", # TODO: Translate
"chatoutputmode-scrolling-tooltip": "Scroll chat text from right to left.", # TODO: Translate
"chatinputenabled-tooltip": "Разрешить ввод сообщений в mpv (нажмите 'Ввод', чтобы ввести сообщение, 'Ввод', чтобы отправить, 'Escape', чтобы отменить)",
"chatdirectinput-tooltip": "Не требовать нажимать 'Ввод' для ввода сообщений в mpv. Нажмите 'Tab', чтобы временно отключить эту возможность.",
"font-label-tooltip": "Шрифт для ввода сообщений в mpv. Настройка на стороне клиента, поэтому не влияет на то, что видят другие.",
"set-input-font-tooltip": "Шрифт для ввода сообщений в mpv. Настройка на стороне клиента, поэтому не влияет на то, что видят другие.",
"set-input-colour-tooltip": "Цвет шрифта для ввода сообщений в mpv. Настройка на стороне клиента, поэтому не влияет на то, что видят другие.",
"chatinputposition-tooltip": "Расположение поля ввода сообщений, которое появляется, если нажать 'Ввод' и начать набирать сообщение.",
"chatinputposition-top-tooltip": "Разместить ввод сообщений вверху окна mpv.",
"chatinputposition-middle-tooltip": "Разместить ввод сообщений в центре окна mpv.",
"chatinputposition-bottom-tooltip": "Разместить ввод сообщений внизу окна mpv.",
"chatoutputenabled-tooltip": "Показывать сообщения в проигрывателе (если поддерживается проигрывателем).",
"font-output-label-tooltip": "Шрифт для вывода сообщений чата.",
"set-output-font-tooltip": "Шрифт для отображения сообщений в чате.",
"chatoutputmode-tooltip": "Как отображаются сообщения в чате.",
"chatoutputmode-chatroom-tooltip": "Показывать новые сообщения под предыдущим сообщением.",
"chatoutputmode-scrolling-tooltip": "Прокручивать сообщения в чате справа налево.",
"help-tooltip": "Открыть Руководство Пользователя на Syncplay.pl.",
"reset-tooltip": "Сбрасывает все настройки Syncplay в начальное состояние.",
"update-server-list-tooltip": "Обновить список публичных серверов от syncplay.pl.",
"sslconnection-tooltip": "Securely connected to server. Click for certificate details.", # TODO: Translate
"sslconnection-tooltip": "Установлено безопасное соединение с сервером. Нажмите, чтобы увидеть подробности сертификата.",
"joinroom-tooltip": "Покинуть комнату и зайти в другую, указанную комнату.",
"seektime-msgbox-label": "Перемотать к определенному моменту времени (указывать в секундах или мин:сек). Используйте +/-, чтобы перемотать вперед/назад относительно настоящего момента.",
"ready-tooltip": "Показывает, готовы ли Вы к просмотру или нет.",
"ready-tooltip": "Показывает, готовы ли вы к просмотру или нет.",
"autoplay-tooltip": "Автоматическое воспроизведение, когда все пользователи с индикаторами готовности будут готовы и присутствует достаточное число зрителей.",
"switch-to-file-tooltip": "Кликните два раза для воспроизведения {}", # Filename
"sendmessage-tooltip": "Send message to room", # TODO: Translate
"sendmessage-tooltip": "Выслать сообщение в комнату",
# In-userlist notes (GUI)
"differentsize-note": "Размер файла не совпадает!",
"differentsizeandduration-note": "Размер и продолжительность файла не совпадают!",
"differentduration-note": "Продолжительность файла не совпадает!",
"nofile-note": "(ничего)",
"nofile-note": "(Никакой файл не проигрывается)",
# Server messages to client
"new-syncplay-available-motd-message": "Вы используете Syncplay версии {}. Доступна более новая версия на https://syncplay.pl/", # ClientVersion
@ -462,18 +469,18 @@ ru = {
"server-salt-argument": "генерировать пароли к управляемым комнатам на основании указанной строки (соли)",
"server-disable-ready-argument": "отключить статусы готов/не готов",
"server-motd-argument": "путь к файлу, из которого будет извлекаться MOTD-сообщение",
"server-chat-argument": "Should chat be disabled?", # TODO: Translate
"server-chat-maxchars-argument": "Maximum number of characters in a chat message (default is {})", # TODO: Translate
"server-maxusernamelength-argument": "Maximum number of characters in a username (default is {})", # TODO: Translate
"server-stats-db-file-argument": "Enable server stats using the SQLite db file provided", # TODO: Translate
"server-startTLS-argument": "Enable TLS connections using the certificate files in the path provided", # TODO: Translate
"server-messed-up-motd-unescaped-placeholders" : "MOTD-сообщение содержит неэкранированные спец.символы. Все знаки $ должны быть продублированы ($$).",
"server-chat-argument": "Должен ли чат быть отключён?",
"server-chat-maxchars-argument": "Максимальное число символов в сообщениях в чате (по умолчанию {})",
"server-maxusernamelength-argument": "Максимальное число символов в именах пользователей (по умолчанию {})",
"server-stats-db-file-argument": "Включить статистику сервера в указанном файле SQLite",
"server-startTLS-argument": "Включить TLS-соединения используя файлы сертификатов в указанном пути",
"server-messed-up-motd-unescaped-placeholders": "MOTD-сообщение содержит неэкранированные спецсимволы. Все знаки $ должны быть продублированы ($$).",
"server-messed-up-motd-too-long": "MOTD-сообщение слишком длинное: максимальная длина - {} символ(ов), текущая длина - {} символ(ов).",
# Server errors
"unknown-command-server-error": "Неизвестная команда: {}", # message
"not-json-server-error": "Не является закодированной json-строкой: {}", # message
"line-decode-server-error": "Not a utf-8 string", # TODO: Translate
"line-decode-server-error": "Не строка в кодировке UTF-8",
"not-known-server-error": "Данную команду могут выполнять только авторизованные пользователи.",
"client-drop-server-error": "Клиент отключен с ошибкой: {} -- {}", # host, error
"password-required-server-error": "Необходимо указать пароль.",
@ -484,24 +491,27 @@ ru = {
"playlist-contents-changed-notification": "{} обновил список воспроизведения", # Username
"cannot-find-file-for-playlist-switch-error": "Не удалось найти файл {} в папках воспроизведения!", # Filename
"cannot-add-duplicate-error": "'{}' уже есть в списке воспроизведения.", # Filename
"cannot-add-unsafe-path-error": "Не удалось автоматически переключиться на {}, потому что ссылка не соответствует доверенным сайтам. Её можно включить вручную, дважны кливнув по ссылке в списке воспроизведения. Добавить доверенный сайт можно в выпадающем меню 'Дополнительно' или просто кликнув по ссылке правой кнопкой мыши.", # Filename
"cannot-add-unsafe-path-error": "Не удалось автоматически переключиться на {}, потому что ссылка не соответствует доверенным сайтам. Её можно включить вручную, дважды кликнув по ссылке в списке воспроизведения. Добавить доверенный сайт можно в меню 'Дополнительно' или просто кликнув по ссылке правой кнопкой мыши.", # Filename
"sharedplaylistenabled-label": "Включить общий список воспроизведения",
"removefromplaylist-menu-label": "Удалить",
"shuffleremainingplaylist-menu-label": "Shuffle remaining playlist", # Was: Перемешать список # TODO: Translate
"shuffleentireplaylist-menu-label": "Shuffle entire playlist", # TODO: Translate
"shuffleremainingplaylist-menu-label": "Перемешать оставшийся список воспроизведения",
"shuffleentireplaylist-menu-label": "Перемешать весь список воспроизведения",
"undoplaylist-menu-label": "Отменить последнее действие",
"addfilestoplaylist-menu-label": "Добавить файлы в очередь",
"addurlstoplaylist-menu-label": "Добавить ссылку в очередь",
"editplaylist-menu-label": "Редактировать список",
"open-containing-folder": "Open folder containing this file", # TODO: Traslate
"addyourfiletoplaylist-menu-label": "Добавить файл от вас в список воспроизведения", # TODO: Check
"addotherusersfiletoplaylist-menu-label": "Добавить файл {} в список воспроизведения", # Username # TODO: Check
"addyourstreamstoplaylist-menu-label": "Добавить поток от вас в список воспроизведения", # TODO: Check
"addotherusersstreamstoplaylist-menu-label": "Добавить поток {} в список воспроизведения", # Username # TODO: Check
"openusersstream-menu-label": "Открыть поток от {}", # [username]'s
"openusersfile-menu-label": "Открыть файл от {}", # [username]'s
"open-containing-folder": "Открыть папку, содержащую этот файл",
"addyourfiletoplaylist-menu-label": "Добавить ваш файл в список воспроизведения",
"addotherusersfiletoplaylist-menu-label": "Добавить файл {} в список воспроизведения",
"addyourstreamstoplaylist-menu-label": "Добавить ваш поток в список воспроизведения",
"addotherusersstreamstoplaylist-menu-label": "Добавить поток {} в список воспроизведения",
"openusersstream-menu-label": "Открыть поток {}",
"openusersfile-menu-label": "Открыть файл {}",
"playlist-instruction-item-message": "Перетащите сюда файлы, чтобы добавить их в общий список.",
"sharedplaylistenabled-tooltip": "Оператор комнаты может добавлять файлы в список общего воспроизведения для удобного совместного просмотра. Папки воспроизведения настраиваются во вкладке 'Файл'.",
"sharedplaylistenabled-tooltip": "Оператор комнаты может добавлять файлы в список общего воспроизведения для удобного совместного просмотра. Папки воспроизведения настраиваются в меню 'Файл'.",
"playlist-empty-error": "Список воспроизведения пуст.",
"playlist-invalid-index-error": "Неверный индекс в списке воспроизведения",
}

522
syncplay/messages_tr.py Normal file
View File

@ -0,0 +1,522 @@
# coding:utf8
"""Turkish dictionary"""
tr = {
"LANGUAGE": "Türkçe", # Turkish
# Client notifications
"config-cleared-notification": "Ayarlar temizlendi. Geçerli bir konfigürasyon kaydettiğinizde değişiklikler kaydedilecektir.",
"relative-config-notification": "Göreli yapılandırma dosya(ları) yüklendi: {}",
"connection-attempt-notification": "{} İle bağlantı kurulmaya çalışılıyor: {}", # Port, IP
"reconnection-attempt-notification": "Sunucuyla bağlantı kesildi, yeniden bağlanılmaya çalışılıyor",
"disconnection-notification": "Sunucuyla bağlantısı kesildi",
"connection-failed-notification": "Sunucuyla bağlantı başarısız oldu",
"connected-successful-notification": "Sunucuya başarıyla bağlandı",
"retrying-notification": "% s,% d saniye içinde yeniden deneniyor ...", # Seconds
"reachout-successful-notification": "Başarıyla ulaşıldı {} ({})",
"rewind-notification": "{} ile zaman farkı nedeniyle geri alındı", # User
"fastforward-notification": "{} ile zaman farkı nedeniyle ileri sarıldı", # User
"slowdown-notification": "{} ile zaman farkı nedeniyele nedeniyle yavaşlıyor", # User
"revert-notification": "Hızı normale döndürülüyor",
"pause-notification": "{} duraklattı", # User
"unpause-notification": "{} devam ettirdi", # User
"seek-notification": "{}, {} konumundan {} konumuna atladı", # User, from time, to time
"current-offset-notification": "Mevcut fark: {} saniye", # Offset
"media-directory-list-updated-notification": "Syncplay ortam dizinleri güncellendi.",
"room-join-notification": "{} odaya katıldı: '{}'", # User
"left-notification": "{} ayrıldı", # User
"left-paused-notification": "{} ayrıldı, {} duraklattı", # User who left, User who paused
"playing-notification": "{} oynatıyor '{}' ({})", # User, file, duration
"playing-notification/room-addendum": " odada: '{}'", # Room
"not-all-ready": "Hazır değil: {}", # Usernames
"all-users-ready": "Herkes hazır ({} kullanıcı)", # Number of ready users
"ready-to-unpause-notification": "Artık hazır olarak ayarlandınız - devam ettirmek için yeniden duraklatmayı kaldırın",
"set-as-ready-notification": "Artık hazırsınız",
"set-as-not-ready-notification": "Artık hazır değilsiniz",
"autoplaying-notification": "{} içinde otomatik oynatılıyor ...", # Number of seconds until playback will start
"identifying-as-controller-notification": "Oda operatörü '{}' parolası ile tanımlanıyor ...",
"failed-to-identify-as-controller-notification": "{}, operatörü olarak tanımlanamadı.",
"authenticated-as-controller-notification": "{}, oda operatörü olarak doğrulandı",
"created-controlled-room-notification": "Yönetilen oda '{}' '{}' şifresiyle oluşturuldu. Lütfen bu bilgileri ileride başvurmak üzere kaydedin!\n\nYönetilen odalarda, oynatma listesini duraklatabilen, devam ettirebilen, arayabilen ve değiştirebilen tek kişi olan oda operatörleri ile herkes senkronize edilir.\n\nNormal izleyicilerden '{}' odasına katılmalarını istemelisiniz, ancak oda operatörleri kendilerini otomatik olarak doğrulamak için '{}' odasına katılabilir.", # RoomName, operatorPassword, roomName, roomName:operatorPassword
"file-different-notification": "Oynadığınız dosya, {} dosyasından farklı görünüyor", # User
"file-differences-notification": "Dosyanız aşağıdaki şekil(ler)de farklılık gösterir: {}", # Differences
"room-file-differences": "Dosya farklılıkları: {}", # File differences (filename, size, and/or duration)
"file-difference-filename": "adı",
"file-difference-filesize": "boyutu",
"file-difference-duration": "süresi",
"alone-in-the-room": "Odada yalnızsın",
"different-filesize-notification": " (dosya boyutları sizinkinden farklı!)",
"userlist-playing-notification": "{} oynuyor:", # Username
"file-played-by-notification": "Dosya: {} şu kullanıcı tarafından oynatılıyor:", # File
"no-file-played-notification": "{} dosya oynatmıyor", # Username
"notplaying-notification": "Herhangi bir dosya oynatmayan kişiler:",
"userlist-room-notification": "Odada '{}':", # Room
"userlist-file-notification": "Dosya",
"controller-userlist-userflag": "Operatör",
"ready-userlist-userflag": "Hazır",
"update-check-failed-notification": "Syncplay {} 'in güncel olup olmadığı otomatik olarak kontrol edilemedi. Güncellemeleri manuel olarak kontrol etmek için https://syncplay.pl/ adresini ziyaret etmek ister misiniz?", # Syncplay version
"syncplay-uptodate-notification": "Syncplay güncel",
"syncplay-updateavailable-notification": "Syncplay'in yeni bir sürümü mevcut. Sürüm sayfasını ziyaret etmek istiyor musunuz?",
"mplayer-file-required-notification": "MPlayer kullanarak Syncplay, başlatırken dosya sağlamanızı gerektirir",
"mplayer-file-required-notification/example": "Kullanım örneği: syncplay [options] [url|path/]filename",
"mplayer2-required": "Syncplay, MPlayer 1.x ile uyumlu değil, lütfen mplayer2 veya mpv kullanın",
"unrecognized-command-notification": "Tanımsız komut",
"commandlist-notification": "Kullanılabilir komutlar:",
"commandlist-notification/room": "\tr [name] - odayı değiştirir",
"commandlist-notification/list": "\tl - kullanıcı listesini gösterir",
"commandlist-notification/undo": "\tu - son isteği geri alır",
"commandlist-notification/pause": "\tp - duraklatmayı değiştirir",
"commandlist-notification/seek": "\t[s][+-]time - verilen zaman değerine atlar, eğer + veya - belirtilmezse, saniye:dakika cinsinden mutlak zamandır.",
"commandlist-notification/help": "\th - yardım",
"commandlist-notification/toggle": "\tt - izlemeye hazır olup olmadığınızı değiştirir",
"commandlist-notification/create": "\tc [name] - mevcut odanın adını kullanarak yönetilen oda oluştur",
"commandlist-notification/auth": "\ta [password] - operatör şifresi ile oda operatörü olarak kimlik doğrular",
"commandlist-notification/chat": "\tch [message] - bir odaya sohbet mesajı gönderir",
"commandList-notification/queue": "\tqa [file/url] - oynatma listesinin altına dosya veya bağlantı ekler",
"commandList-notification/playlist": "\tql - mevcut oynatma listesini gösterir",
"commandList-notification/select": "\tqs [index] - oynatma listesinde verilen girişi seçer",
"commandList-notification/delete": "\tqd [index] - verilen girişi oynatma listesinden siler",
"syncplay-version-notification": "Syncplay sürümü: {}", # syncplay.version
"more-info-notification": "Daha fazla bilgiye şu adresten ulaşabilirsiniz: {}", # projectURL
"gui-data-cleared-notification": "Syncplay, GUI tarafından kullanılan yolu ve pencere durumu verilerini temizledi.",
"language-changed-msgbox-label": "Syncplay'i çalıştırdığınızda dil değiştirilecek.",
"promptforupdate-label": "Syncplay'in zaman zaman güncellemeleri otomatik olarak kontrol etmesi uygun mudur?",
"media-player-latency-warning": "Uyarı: Medya yürütücünün yanıt vermesi {} saniye sürdü. Senkronizasyon sorunları yaşıyorsanız, sistem kaynaklarını boşaltmak için uygulamaları kapatın ve bu işe yaramazsa, farklı bir medya oynatıcı deneyin.", # Seconds to respond
"mpv-unresponsive-error": "mpv {} saniye boyunca yanıt vermedi, bu nedenle arızalı görünüyor. Lütfen Syncplay'i yeniden başlatın.", # Seconds to respond
# Client prompts
"enter-to-exit-prompt": "Çıkmak için enter tuşuna basın\n",
# Client errors
"missing-arguments-error": "Bazı gerekli argümanlar eksik, bakınız --help",
"server-timeout-error": "Sunucuyla bağlantı zaman aşımına uğradı",
"mpc-slave-error": "Bağımlı modda MPC başlatılamıyor!",
"mpc-version-insufficient-error": "MPC sürümü yeterli değil, lütfen `mpc-hc`> =` {} `kullanın",
"mpc-be-version-insufficient-error": "MPC sürümü yeterli değil, lütfen `mpc-hc`> =` {} `kullanın",
"mpv-version-error": "Syncplay, mpv'nin bu sürümüyle uyumlu değil. Lütfen farklı bir mpv sürümü kullanın (ör. Git HEAD).",
"mpv-failed-advice": "Mpv'nin başlatılamamasının nedeni, desteklenmeyen komut satırı bağımsız değişkenlerinin veya mpv'nin desteklenmeyen bir sürümünün kullanılması olabilir.",
"player-file-open-error": "Oynatıcı dosyayı açamadı",
"player-path-error": "Oynatıcı yolu doğru ayarlanmadı. Desteklenen oynatıcılar şunlardır: mpv, mpv.net, VLC, MPC-HC, MPC-BE, mplayer2 ve IINA",
"hostname-empty-error": "Ana bilgisayar adı boş olamaz",
"empty-error": "{} boş olamaz", # Configuration
"media-player-error": "Medaya oynatıcısı hatası: \"{}\"", # Error line
"unable-import-gui-error": "GUI kitaplıkları içe aktarılamadı. PySide kurulu değilse, GUI'nin çalışması için kurmanız gerekecektir.",
"unable-import-twisted-error": "Twisted içe aktarılamadı. Lütfen Twisted v16.4.0 veya sonraki sürümünü yükleyin.",
"arguments-missing-error": "Bazı gerekli argümanlar eksik, bakınız --help",
"unable-to-start-client-error": "İstemci başlatılamıyor",
"player-path-config-error": "Oynatıcı yolu doğru ayarlanmadı. Desteklenen oyuncular şunlardır: mpv, mpv.net, VLC, MPC-HC, MPC-BE, mplayer2 ve IINA.",
"no-file-path-config-error": "Oynatıcınız başlatılmadan önce dosya seçilmelidir",
"no-hostname-config-error": "Ana bilgisayar adı boş olamaz",
"invalid-port-config-error": "Bağlantı noktası geçerli olmalıdır",
"empty-value-config-error": "{} boş olamaz", # Config option
"not-json-error": "JSON ile kodlanmış bir dize değil\n",
"hello-arguments-error": "Not enough Hello arguments\n", # DO NOT TRANSLATE
"version-mismatch-error": "İstemci ve sunucu sürümleri arasında uyumsuzluk\n",
"vlc-failed-connection": "VLC'ye bağlanılamadı. Syncplay.lua'yı yüklemediyseniz ve VLC'nin en son sürümünü kullanıyorsanız talimatlar için lütfen https://syncplay.pl/LUA/ adresine bakın. Syncplay ve VLC 4 şu anda uyumlu değildir, bu nedenle VLC 3'ü veya mpv gibi bir alternatifi kullanın.",
"vlc-failed-noscript": "VLC, syncplay.lua arabirim komut dosyasının yüklenmediğini bildirdi. Talimatlar için lütfen https://syncplay.pl/LUA/ adresine bakın.",
"vlc-failed-versioncheck": "VLC'nin bu sürümü Syncplay tarafından desteklenmemektedir.",
"vlc-initial-warning": 'VLC, özellikle .mp4 ve .avi dosyaları için Syncplay\'e her zaman doğru konum bilgisi sağlamaz. Hatalı arama ile ilgili sorunlar yaşarsanız, lütfen <a href="https://mpv.io/"> mpv</a> gibi alternatif bir medya oynatıcı deneyin. (veya Windows kullanıcıları için <a href="https://github.com/stax76/mpv.net/">mpv.net</a>).',
"feature-sharedPlaylists": "paylaşılan oynatma listeleri", # used for not-supported-by-server-error
"feature-chat": "sohbet", # used for not-supported-by-server-error
"feature-readiness": "hazırlık", # used for not-supported-by-server-error
"feature-managedRooms": "yönetilen odalar", # used for not-supported-by-server-error
"not-supported-by-server-error": "{} özelliği bu sunucu tarafından desteklenmiyor ..", # feature
"shared-playlists-not-supported-by-server-error": "Paylaşılan çalma listeleri özelliği sunucu tarafından desteklenmeyebilir. Doğru çalıştığından emin olmak için Syncplay {}+ çalıştıran bir sunucu gerektirir, ancak sunucu Syncplay {} çalıştırmaktadır.", # minVersion, serverVersion
"shared-playlists-disabled-by-server-error": "Paylaşılan çalma listesi özelliği, sunucu yapılandırmasında devre dışı bırakıldı. Bu özelliği kullanmak için farklı bir sunucuya bağlanmanız gerekecektir.",
"invalid-seek-value": "Geçersiz atlama değerie",
"invalid-offset-value": "Geçersiz zaman konumu değeri",
"switch-file-not-found-error": "'{0}' dosyasına geçilemedi. Syncplay, belirtilen medya dizinlerine bakar.", # File not found
"folder-search-timeout-error": "'{}' üzerinden arama yapmak çok uzun sürdüğü için medya dizinlerinde medya araması durduruldu. Ortam klasörleri listenizde arama yapmak için çok fazla alt klasörün bulunduğu bir klasör seçerseniz bu meydana gelir. Otomatik dosya değiştirmenin tekrar çalışması için lütfen menü çubuğunda Dosya-> Medya Dizinlerini Ayarla'yı seçin ve bu dizini kaldırın veya uygun bir alt klasörle değiştirin. Klasör gerçekten iyi durumdaysa, Dosya-> Medya Dizinlerini Ayarla'yı seçip 'Tamam'a basarak yeniden etkinleştirebilirsiniz.", # Folder
"folder-search-first-file-timeout-error": "Dizine erişim çok uzun sürdüğü için '{}' içindeki medya araması durduruldu. Bu, bir ağ sürücüsü ise veya sürücünüzü bir süre kullanılmadığında dönecek şekilde yapılandırırsanız olabilir. Otomatik dosya değiştirmenin tekrar çalışması için lütfen Dosya-> Medya Dizinlerini Ayarla'ya gidin ve dizini kaldırın veya sorunu çözün (örn. Güç tasarrufu ayarlarını değiştirerek).", # Folder
"added-file-not-in-media-directory-error": "Bilinen bir medya dizini olmayan '{}' içine bir dosya yüklediniz. Menü çubuğunda Dosya-> Medya Dizinlerini Ayarla'yı seçerek bunu bir medya dizini olarak ekleyebilirsiniz.", # Folder
"no-media-directories-error": "Hiçbir medya dizini ayarlanmadı. Paylaşılan çalma listesi ve dosya değiştirme özelliklerinin düzgün çalışması için lütfen Dosya-> Ortam Dizinlerini Ayarla'yı seçin ve Syncplay'in medya dosyalarını bulmak için nereye bakması gerektiğini belirtin.",
"cannot-find-directory-error": "'{}' medya dizini bulunamadı. Medya dizinleri listenizi güncellemek için lütfen menü çubuğundan Dosya-> Medya Dizinlerini Ayarla'yı seçin ve Syncplay'in medya dosyalarını bulmak için nereye bakması gerektiğini belirtin.",
"failed-to-load-server-list-error": "Genel sunucu listesi yüklenemedi. Lütfen tarayıcınızda https://www.syncplay.pl/ adresini ziyaret edin.",
# Client arguments
"argument-description": 'Ağ üzerinden birden çok medya oynatıcı örneğinin oynatılmasını senkronize etme çözümü.',
"argument-epilog": 'Sağlanan seçenek yoksa _config değerleri kullanılacaktır',
"nogui-argument": 'GUI olmadan göster',
"host-argument": 'sunucunun adresi',
"name-argument": 'istenilen kullanıcı adı',
"debug-argument": 'debug modu',
"force-gui-prompt-argument": 'yapılandırma isteminin görünmesini sağlayın',
"no-store-argument": 'değerleri .syncplay içinde saklamayın',
"room-argument": 'varsayılan oda',
"password-argument": 'sunucu parolası',
"player-path-argument": 'oynatıcınızın çalıştırılabilir yolu',
"file-argument": 'oynatmak için dosya',
"args-argument": 'oynatıcı seçenekleri, ile başlayan seçenekleri iletmeniz gerekiyorsa - bunların başına tek \'--\' argümanı ekleyin',
"clear-gui-data-argument": 'QSettings olarak depolanan yol ve pencere durumu GUI verilerini sıfırlar',
"language-argument": 'Syncplay mesajları için dil (de/en/ru/it/es/pt_BR/pt_PT/tr)',
"version-argument": 'versiyonunuzu yazdırır',
"version-message": "Syncplay sürümünü kullanıyorsunuz {} ({})",
"load-playlist-from-file-argument": "metin dosyasından oynatma listesi yükler (her satıra bir giriş)",
# Client labels
"config-window-title": "Syncplay yapılandırması",
"connection-group-title": "Bağlantı ayarları",
"host-label": "Sunucu adresi: ",
"name-label": "Kullanıcı adı (isteğe bağlı):",
"password-label": "Sunucu şifresi (varsa):",
"room-label": "Varsayılan oda: ",
"roomlist-msgbox-label": "Oda listesini düzenleyin (her satıra bir tane)",
"media-setting-title": "Medya oynatıcı ayarları",
"executable-path-label": "Medya oynatıcı dosya yolu:",
"media-path-label": "Video dosya yolu (isteğe bağlı):",
"player-arguments-label": "Oynatıcı argümanları (varsa):",
"browse-label": "Araştır",
"update-server-list-label": "Listeyi güncelle",
"more-title": "Daha fazla ayar göster",
"never-rewind-value": "Asla",
"seconds-suffix": " secs",
"privacy-sendraw-option": "raw gönder",
"privacy-sendhashed-option": "hashed gönder",
"privacy-dontsend-option": "Gönderme",
"filename-privacy-label": "Dosya yolu bilgisi:",
"filesize-privacy-label": "Dosya boyutu bilgisi:",
"checkforupdatesautomatically-label": "Syncplay güncellemelerini otomatik olarak kontrol edin",
"autosavejoinstolist-label": "Katıldığınız odaları oda listesine ekleyin",
"slowondesync-label": "Küçük desenkronizasyonda yavaşlama (MPC-HC / BE'de desteklenmez)",
"rewindondesync-label": "Ana desenkronizasyonda geri sar (önerilir)",
"fastforwardondesync-label": "Geride kalırsa hızlı ileri sar (önerilir)",
"dontslowdownwithme-label": "Başkalarını asla yavaşlatma veya geri sarma (deneysel)",
"pausing-title": "Duraklatılıyor",
"pauseonleave-label": "Kullanıcı ayrıldığında duraklayın (ör. Bağlantısı kesilirse)",
"readiness-title": "İlk hazırlık durumu",
"readyatstart-label": "Beni varsayılan olarak 'izlemeye hazır' olarak ayarla",
"forceguiprompt-label": "Syncplay yapılandırma penceresini her zaman gösterme", # (Inverted)
"showosd-label": "OSD Mesajlarını Etkinleştir",
"showosdwarnings-label": "Uyarıları dahil edin (ör. Dosyalar farklı olduğunda, kullanıcılar hazır olmadığında)",
"showsameroomosd-label": "Odanızdaki etkinlikleri dahil edin",
"shownoncontrollerosd-label": "Operatör olmayanlardan gelen olayları yönetilen odalara dahil et",
"showdifferentroomosd-label": "Diğer odalardaki etkinlikleri dahil et",
"showslowdownosd-label": "Yavaşlatma / geri alma bildirimlerini dahil et",
"language-label": "Dil:",
"automatic-language": "Varsayılan ({})", # Default language
"showdurationnotification-label": "Medya süresi uyuşmazlıkları konusunda uyarın",
"basics-label": "Temeller",
"readiness-label": "Oynat/Duraklat",
"misc-label": "Misc",
"core-behaviour-title": "Çekirdek oda davranışı",
"syncplay-internals-title": "Syncplay dahili bileşenleri",
"syncplay-mediasearchdirectories-title": "Medya aramak için dizinler",
"syncplay-mediasearchdirectories-label": "Medya aramak için dizinler (satır başına bir yol)",
"sync-label": "Sync",
"sync-otherslagging-title": "Başkaları geride kalıyorsa ...",
"sync-youlaggging-title": "Geride kalıyorsan ...",
"messages-label": "mesajlar",
"messages-osd-title": "Ekran üstü görüntü ayarları",
"messages-other-title": "Diğer ekran ayarları",
"chat-label": "Sohbet",
"privacy-label": "Gizlilik", # Currently unused, but will be brought back if more space is needed in Misc tab
"privacy-title": "Gizlilik ayarları",
"unpause-title": "Oynat'a basarsanız, hazır olarak ayarlayın ve:",
"unpause-ifalreadyready-option": "Zaten hazır olarak ayarlanmışsa duraklatmayı bırakın",
"unpause-ifothersready-option": "Zaten hazırsa veya odadaki diğerleri hazırsa duraklatmayı bırakın (varsayılan)",
"unpause-ifminusersready-option": "Zaten hazırsa veya diğerleri hazırsa ve min kullanıcılar hazırsa duraklatmayı kaldırın",
"unpause-always": "Her zaman devam ettir",
"syncplay-trusteddomains-title": "Güvenilir alanlar (akış hizmetleri ve barındırılan içerik için)",
"chat-title": "Sohbet mesajı girişi",
"chatinputenabled-label": "Mpv aracılığıyla sohbet girişini etkinleştir",
"chatdirectinput-label": "Anında sohbet girişine izin ver (sohbet etmek için enter tuşuna basma zorunluluğunu atlayın)",
"chatinputfont-label": "Sohbet yazı tipi",
"chatfont-label": "Yazı tipini ayarla",
"chatcolour-label": "Rengi ayarla",
"chatinputposition-label": "Mesaj giriş alanının mpv'deki konumu",
"chat-top-option": "Üst",
"chat-middle-option": "Orta",
"chat-bottom-option": "Alt",
"chatoutputheader-label": "Sohbet mesajı çıkışı",
"chatoutputfont-label": "Sohbet çıktı yazı tipi",
"chatoutputenabled-label": "Medya oynatıcıda sohbet çıkışını etkinleştirin (şimdilik yalnızca mpv)",
"chatoutputposition-label": "Çıkış modu",
"chat-chatroom-option": "Sohbet odası stili",
"chat-scrolling-option": "Kaydırma stili",
"mpv-key-tab-hint": "Alfabe satırı tuşu kısayollarına erişimi değiştirmek için [TAB].",
"mpv-key-hint": "Mesaj göndermek için [ENTER]. Sohbet modundan çıkmak için [ESC].",
"alphakey-mode-warning-first-line": "Geçici olarak eski mpv bağlamalarını a-z tuşlarıyla kullanabilirsiniz.",
"alphakey-mode-warning-second-line": "Syncplay sohbet moduna dönmek için [TAB] tuşuna basın.",
"help-label": "Yardım",
"reset-label": "Varsayılanları geri yükle",
"run-label": "Syncplay'i çalıştırın",
"storeandrun-label": "Yapılandırmayı depolayın ve Syncplay'i çalıştırın",
"contact-label": "E-posta <a href=\"mailto:dev@syncplay.pl\"><nobr>dev@syncplay.pl</nobr></a> göndermekten çekinmeyin. irc.freenode.net'te <a href=\"https://webchat.freenode.net/?channels=#syncplay\"><nobr>#Syncplay IRC channel</nobr></a> kanalı üzerinden yazabilir, GitHub üzerinden <a href=\"https://github.com/Uriziel/syncplay/issues\"><nobr>sorun bildirebilir</nobr></a>, Facebook üzerinden <a href=\"https://www.facebook.com/SyncplaySoftware\"><nobr>bizi beğenebilir</nobr></a>, Twitter üzerinden <a href=\"https://twitter.com/Syncplay/\"><nobr>bizi takip edebilir</nobr></a>, veya <a href=\"https://syncplay.pl/\"><nobr>https://syncplay.pl/</nobr></a> adresinden sayfamızı ziyaret edebilirsiniz. Hassas bilgileri göndermek için Syncplay kullanmayın.",
"joinroom-label": "Odaya katıl",
"joinroom-menu-label": "{} odasına katıl",
"seektime-menu-label": "Zamana atla",
"undoseek-menu-label": "Atlamayı geri al",
"play-menu-label": "Oynat",
"pause-menu-label": "Duraklat",
"playbackbuttons-menu-label": "Oynatma düğmelerini göster",
"autoplay-menu-label": "Otomatik oynat düğmesini göster",
"autoplay-guipushbuttonlabel": "Her şey hazır olduğunda oynat",
"autoplay-minimum-label": "Asgari kullanıcı:",
"sendmessage-label": "Gönder",
"ready-guipushbuttonlabel": "İzlemeye hazırım!",
"roomuser-heading-label": "Oda / Kullanıcı",
"size-heading-label": "Boyut",
"duration-heading-label": "Uzunluk",
"filename-heading-label": "Dosya Adı",
"notifications-heading-label": "Bildirimler",
"userlist-heading-label": "Kimin ne oynadığını listesi",
"browseformedia-label": "Medya dosyalarına göz atın",
"file-menu-label": "&Dosya", # & precedes shortcut key
"openmedia-menu-label": "Medya d&osyasını",
"openstreamurl-menu-label": "Medya akışı &URL'sini aç",
"setmediadirectories-menu-label": "Medya di&zinlerini ayarlayın",
"loadplaylistfromfile-menu-label": "Dosyadan oynatma &listesi yükle",
"saveplaylisttofile-menu-label": "Oynatma listesini dosyaya kay&dedin",
"exit-menu-label": "Çı&kış",
"advanced-menu-label": "&Gelişmiş",
"window-menu-label": "&Pencere",
"setoffset-menu-label": "Zaman &konumunu ayarla",
"createcontrolledroom-menu-label": "&Yönetilen oda oluştur",
"identifyascontroller-menu-label": "&Oda operatörü olarak tanımlayın",
"settrusteddomains-menu-label": "Güvenilir &domain ayarlayın",
"addtrusteddomain-menu-label": "{} Alanını güvenilen alan olarak ekleyin", # Domain
"edit-menu-label": "Düzenl&e",
"cut-menu-label": "Ke&s",
"copy-menu-label": "&Kopyala",
"paste-menu-label": "&Yapıştır",
"selectall-menu-label": "&Tümünü Seç",
"playback-menu-label": "&Oynatma",
"help-menu-label": "&Yardım",
"userguide-menu-label": "&Kullanım kılavuzunu aç",
"update-menu-label": "&Güncellemeleri kontrol ediniz",
"startTLS-initiated": "Güvenli bağlantı kurulmaya çalışılıyor",
"startTLS-secure-connection-ok": "Güvenli bağlantı kuruldu ({})",
"startTLS-server-certificate-invalid": 'Güvenli bağlantı kurulamadı. Sunucu geçersiz bir güvenlik sertifikası kullanıyor. Bu iletişim üçüncü bir şahıs tarafından engellenebilir. Daha fazla ayrıntı ve sorun giderme için <a href="https://syncplay.pl/trouble"> buraya </a> bakın.',
"startTLS-server-certificate-invalid-DNS-ID": "Syncplay, ana bilgisayar adı için geçerli olmayan bir sertifika kullandığından bu sunucuya güvenmiyor.",
"startTLS-not-supported-client": "Bu istemci TLS'yi desteklemiyor",
"startTLS-not-supported-server": "Bu sunucu TLS'yi desteklemiyor",
# TLS certificate dialog
"tls-information-title": "Sertifika Ayrıntıları",
"tls-dialog-status-label": "<strong> Syncplay, {} ile şifrelenmiş bir bağlantı kullanıyor. </strong>",
"tls-dialog-desc-label": "Dijital sertifika yapılam şifreleme, <br>bu sunucuya {} veri gönderirken ve alırken bilgileri gizli tutar.",
"tls-dialog-connection-label": "Transport Layer Security (TLS), sürüm {} ile şifrelenen şifre<br/>paketi: {}.",
"tls-dialog-certificate-label": "{} Tarafından verilen sertifika {} tarihine kadar geçerlidir.",
# About dialog
"about-menu-label": "&Syncplay hakkında",
"about-dialog-title": "Syncplay hakkında",
"about-dialog-release": "Sürüm {} yayın {}",
"about-dialog-license-text": "Apache Lisansı altında&nbsp;Lisanslanmıştır,&nbsp;Sürüm 2.0",
"about-dialog-license-button": "Lisans",
"about-dialog-dependencies": "Bağımlılıklar",
"setoffset-msgbox-label": "Zaman konumunu ayarla",
"offsetinfo-msgbox-label": "Zaman Konumu (Kullanım talimatları için https://syncplay.pl/guide/ adresine bakın):",
"promptforstreamurl-msgbox-label": "Medya akışı URL'sini aç",
"promptforstreamurlinfo-msgbox-label": "Akış URL'si",
"addfolder-label": "Klasör ekle",
"adduris-msgbox-label": "Oynatma listesine URL ekleyin (her satıra bir tane)",
"editplaylist-msgbox-label": "Oynatma listesi ayarlayın (satır başına bir)",
"trusteddomains-msgbox-label": "Etki alanları otomatik olarak geçiş yapmakta sorun yoktur (her satırda bir)",
"createcontrolledroom-msgbox-label": "Yönetilen oda oluştur",
"controlledroominfo-msgbox-label": "Yönetilen odanın adını girin\r\n(kullanım talimatları için https://syncplay.pl/guide/ adresine bakın):",
"identifyascontroller-msgbox-label": "Oda operatörü olarak tanımlayın",
"identifyinfo-msgbox-label": "Bu oda için operatör şifresini girin\r\n(kullanım talimatları için https://syncplay.pl/guide/ adresine bakın):",
"public-server-msgbox-label": "Bu görüntüleme oturumu için genel sunucuyu seçin",
"megabyte-suffix": " MB",
# Tooltips
"host-tooltip": "Bağlanılacak ana bilgisayar adı veya IP, isteğe bağlı olarak bağlantı noktası dahil (ör. Syncplay.pl:8999). Yalnızca aynı sunucu/bağlantı noktasındaki kişilerle senkronize edilir.",
"name-tooltip": "Takma adınız tarafından tanınacaksınız. Kayıt yok, bu nedenle daha sonra kolayca değiştirebilirsiniz. Hiçbiri belirtilmediyse rastgele ad oluşturuldu.",
"password-tooltip": "Parolalar yalnızca özel sunuculara bağlanmak için gereklidir.",
"room-tooltip": "Bağlantı kurulduğunda katılabileceğiniz oda neredeyse her şey olabilir, ancak yalnızca aynı odadaki kişilerle senkronize olacaksınız.",
"edit-rooms-tooltip": "Oda listesini düzenleyin.",
"executable-path-tooltip": "Seçtiğiniz desteklenen medya oynatıcının konumu (mpv, mpv.net, VLC, MPC-HC / BE, mplayer2 veya IINA).",
"media-path-tooltip": "ılacak videonun veya akışın konumu. Mplayer2 için gerekli.",
"player-arguments-tooltip": "Bu medya oynatıcıya iletilecek ek komut satırı argümanları / anahtarları.",
"mediasearcdirectories-arguments-tooltip": "Syncplay'in medya dosyalarını arayacağı dizinler, ör. geçmek için tıklama özelliğini kullandığınızda. Syncplay, alt klasörler arasında yinelemeli olarak bakacaktır.",
"more-tooltip": "Daha az kullanılan ayarları görüntüleyin.",
"filename-privacy-tooltip": "Oynatılmakta olan dosya adını sunucuya göndermek için gizlilik modu.",
"filesize-privacy-tooltip": "Oynatılmakta olan dosyanın boyutunu sunucuya göndermek için gizlilik modu.",
"privacy-sendraw-tooltip": "Bu bilgileri şaşırtmadan gönderin. Bu, çoğu işlevselliğe sahip varsayılan seçenektir.",
"privacy-sendhashed-tooltip": "Bilginin karma bir versiyonunu göndererek diğer istemciler tarafından daha az görünür hale getirin.",
"privacy-dontsend-tooltip": "Bu bilgiyi sunucuya göndermeyin. Bu, maksimum gizlilik sağlar.",
"checkforupdatesautomatically-tooltip": "Syncplay'in yeni bir sürümünün mevcut olup olmadığını görmek için Syncplay web sitesine düzenli olarak danışın.",
"autosavejoinstolist-tooltip": "Sunucudaki bir odaya katıldığınızda, katılacağınız odalar listesindeki oda adını otomatik olarak hatırlayın.",
"slowondesync-tooltip": "Sizi diğer izleyicilerle senkronize hale getirmek için gerektiğinde oynatma oranını geçici olarak azaltın. MPC-HC/BE'de desteklenmez.",
"dontslowdownwithme-tooltip": "Oynatma işleminiz geciktiğinde başkalarının yavaşlamaması veya geri sarılmaması anlamına gelir. Oda operatörleri için kullanışlıdır.",
"pauseonleave-tooltip": "Bağlantınız kesilirse veya biri odanızdan ayrılırsa oynatmayı duraklatın.",
"readyatstart-tooltip": "Başlangıçta kendinizi 'hazır' olarak ayarlayın (aksi takdirde hazır olma durumunuzu değiştirene kadar 'hazır değil' olarak ayarlanırsınız)",
"forceguiprompt-tooltip": "Syncplay ile bir dosya açarken yapılandırma diyaloğu gösterilmiyor.", # (Inverted)
"nostore-tooltip": "Syncplay'i verilen yapılandırmayla çalıştırın, ancak değişiklikleri kalıcı olarak saklamayın.", # (Inverted)
"rewindondesync-tooltip": "Tekrar senkronize olmak için gerektiğinde geri gidin. Bu seçeneğin devre dışı bırakılması büyük desenkronizasyonlara neden olabilir!",
"fastforwardondesync-tooltip": "Oda operatörüyle senkronizasyon dışındayken ileri atlayın (veya 'Başkalarını asla yavaşlatma veya geri sarma' etkinse taklit konumunuz).",
"showosd-tooltip": "Syncplay mesajlarını medya oynatıcı OSD'sine gönderir.",
"showosdwarnings-tooltip": "Farklı bir dosya oynatılıyorsa, odada tek başına, kullanıcılar hazır değilse vb. Uyarıları gösterin.",
"showsameroomosd-tooltip": "Oda kullanıcısının bulunduğu yerle ilgili olaylar için OSD bildirimlerini göster.",
"shownoncontrollerosd-tooltip": "Yönetilen odalarda bulunan operatör olmayanlarla ilgili olaylar için OSD bildirimlerini gösterin.",
"showdifferentroomosd-tooltip": "Oda kullanıcısının içinde olmadığı ile ilgili olaylar için OSD bildirimlerini göster.",
"showslowdownosd-tooltip": "Zaman farkında yavaşlama / geri dönme bildirimlerini gösterin.",
"showdurationnotification-tooltip": "Çok parçalı bir dosyadaki bir segment eksik olduğunda kullanışlıdır, ancak yanlış pozitiflere neden olabilir.",
"language-tooltip": "Syncplay tarafından kullanılacak dil.",
"unpause-always-tooltip": "Yeniden duraklatmaya basarsanız, yalnızca sizi hazır olarak ayarlamak yerine, her zaman hazır ve duraklatmaya devam etmenizi sağlar.",
"unpause-ifalreadyready-tooltip": "Hazır olmadığınızda yeniden duraklatmaya basarsanız, sizi hazır olarak ayarlar - devam ettirmek için yeniden duraklatmaya basın.",
"unpause-ifothersready-tooltip": "Hazır olmadığınızda duraklatmayı kaldır'a basarsanız, yalnızca başkaları hazırsa duraklatmaya devam eder.",
"unpause-ifminusersready-tooltip": "Hazır değilken duraklatmayı kaldır'a basarsanız, yalnızca başkaları hazırsa ve minimum kullanıcı eşiğine ulaşılırsa duraklatmaya devam edilir.",
"trusteddomains-arguments-tooltip": "Syncplay'in, paylaşılan oynatma listeleri etkinleştirildiğinde otomatik olarak geçiş yapmasının uygun olduğu alanlar.",
"chatinputenabled-tooltip": "MPv'de sohbet girişini etkinleştirin (sohbet için enter'a basın, göndermek için enter'a basın, iptal etmek için çıkış yapın)",
"chatdirectinput-tooltip": "Mpv'de sohbet giriş moduna geçmek için 'enter' tuşuna basma zorunluluğunu atlayın. Bu özelliği geçici olarak devre dışı bırakmak için mpv'de TAB tuşuna basın.",
"font-label-tooltip": "Mpv'de sohbet mesajlarını girerken kullanılan yazı tipi. Yalnızca istemci tarafındadır, bu nedenle diğerlerinin gördüklerini etkilemez.",
"set-input-font-tooltip": "Mpv'de sohbet mesajlarını girerken kullanılan yazı tipi ailesi. Yalnızca istemci tarafındadır, bu nedenle diğerlerinin gördüklerini etkilemez.",
"set-input-colour-tooltip": "Mpv'de sohbet mesajlarını girerken kullanılan yazı tipi rengi. Yalnızca istemci tarafındadır, bu nedenle diğerlerinin gördüklerini etkilemez.",
"chatinputposition-tooltip": "Enter tuşuna basıp yazdığınızda sohbet giriş metninin görüneceği mpv'deki konum.",
"chatinputposition-top-tooltip": "Sohbet girişini mpv penceresinin üstüne yerleştirin.",
"chatinputposition-middle-tooltip": "Sohbet girişini mpv penceresinin tam ortasına yerleştirin.",
"chatinputposition-bottom-tooltip": "Sohbet girişini mpv penceresinin altına yerleştirin.",
"chatoutputenabled-tooltip": "OSD'de sohbet mesajlarını gösterin (medya oynatıcı tarafından destekleniyorsa).",
"font-output-label-tooltip": "Sohbet yazı tipi.",
"set-output-font-tooltip": "Sohbet mesajlarını görüntülerken kullanılan yazı tipi.",
"chatoutputmode-tooltip": "Sohbet mesajları nasıl görüntülenir.",
"chatoutputmode-chatroom-tooltip": "Yeni sohbet satırlarını doğrudan önceki satırın altında görüntüleyin.",
"chatoutputmode-scrolling-tooltip": "Sohbet metnini sağdan sola kaydırın.",
"help-tooltip": "Syncplay.pl kullanım kılavuzunu açar.",
"reset-tooltip": "Tüm ayarları varsayılan yapılandırmaya sıfırlayın.",
"update-server-list-tooltip": "Genel sunucuların listesini güncellemek için syncplay.pl'ye bağlanın.",
"sslconnection-tooltip": "Sunucuya güvenli bir şekilde bağlı. Sertifika detayları için tıklayınız.",
"joinroom-tooltip": "Mevcut odadan çıkın ve belirtilen odaya katılır.",
"seektime-msgbox-label": "Belirtilen zamana atlayın (saniye / dakika:saniye). Göreceli atlama için +/- kullanın.",
"ready-tooltip": "İzlemeye hazır olup olmadığınızı gösterir.",
"autoplay-tooltip": "Hazır olma göstergesine sahip tüm kullanıcılar hazır olduğunda ve minimum kullanıcı eşiğine ulaşıldığında otomatik oynatın.",
"switch-to-file-tooltip": "Çift tıklama ile şuna geç {}", # Filename
"sendmessage-tooltip": "Odaya mesaj gönder",
# In-userlist notes (GUI)
"differentsize-note": "Farklı boyut!",
"differentsizeandduration-note": "Farklı boyut ve süre!",
"differentduration-note": "Farklı süre!",
"nofile-note": "(Oynatılan dosya yok)",
# Server messages to client
"new-syncplay-available-motd-message": "Syncplay {} kullanıyorsunuz ancak daha yeni bir sürüm https://syncplay.pl adresinde mevcut", # ClientVersion
# Server notifications
"welcome-server-notification": "Syncplay sunucusuna hoş geldiniz, ver. {0}", # version
"client-connected-room-server-notification": "{0}({2}) odaya bağlandı '{1}'", # username, host, room
"client-left-server-notification": "{0} sunucudan ayrıldı", # name
"no-salt-notification": "LÜTFEN DİKKAT: Bu sunucu örneği tarafından oluşturulan oda operatörü şifrelerinin sunucu yeniden başlatıldığında da çalışmasına izin vermek için, lütfen gelecekte Syncplay sunucusunu çalıştırırken aşağıdaki komut satırı bağımsız değişkenini ekleyin: --salt {}", # Salt
# Server arguments
"server-argument-description": 'Ağ üzerinden birden çok medya oynatıcı örneğinin oynatılmasını senkronize etme çözümü. Sunucu örneği',
"server-argument-epilog": 'Sağlanan seçenek yoksa _config değerleri kullanılacaktır',
"server-port-argument": 'sunucu TCP bağlantı noktası',
"server-password-argument": 'sunucu parolası',
"server-isolate-room-argument": 'odalar izole edilmeli mi?',
"server-salt-argument": "yönetilen oda şifreleri oluşturmak için kullanılan rastgele dize",
"server-disable-ready-argument": "hazır olma özelliğini devre dışı bırak",
"server-motd-argument": "motd alınacak dosyanın yolu",
"server-chat-argument": "Sohbet devre dışı bırakılmalı mı?",
"server-chat-maxchars-argument": "Bir sohbet mesajındaki maksimum karakter sayısı (varsayılan: {})", # Default number of characters
"server-maxusernamelength-argument": "Bir kullanıcı adındaki maksimum karakter sayısı (varsayılan {})",
"server-stats-db-file-argument": "SQLite db dosyasını kullanarak sunucu istatistiklerini etkinleştirin",
"server-startTLS-argument": "Dosya yolundaki sertifika dosyalarını kullanarak TLS bağlantılarını etkinleştirin",
"server-messed-up-motd-unescaped-placeholders": "Günün Mesajında çıkış karaktersiz yer tutucular var. Tüm $ işaretleri iki katına çıkarılmalıdır ($$).",
"server-messed-up-motd-too-long": "Günün Mesajı çok uzun - maksimum {} karakter olmalı, {} verildi.",
# Server errors
"unknown-command-server-error": "Bilinmeyen komut {}", # message
"not-json-server-error": "JSON ile kodlanmış bir dize değil {}", # message
"line-decode-server-error": "Utf-8 dizesi değil",
"not-known-server-error": "Bu komutu göndermeden önce sunucu tarafından bilinmelisiniz",
"client-drop-server-error": "İstemci bırakma: {} -- {}", # host, error
"password-required-server-error": "Parola gerekli",
"wrong-password-server-error": "Yanlış parola sağlandı",
"hello-server-error": "Not enough Hello arguments", # DO NOT TRANSLATE
# Playlists
"playlist-selection-changed-notification": "{} oynatma listesi seçimini değiştirdi", # Username
"playlist-contents-changed-notification": "{} oynatma listesini güncelledi", # Username
"cannot-find-file-for-playlist-switch-error": "Çalma listesi anahtarı için medya dizinlerinde {} dosyası bulunamadı!", # Filename
"cannot-add-duplicate-error": "Yinelemelere izin verilmediğinden oynatma listesine '{}' için ikinci giriş eklenemedi.", # Filename
"cannot-add-unsafe-path-error": "Güvenilir bir alanda olmadığı için {} otomatik olarak yüklenemedi. Oynatma listesinde çift tıklayarak URL'ye manuel olarak geçebilir ve Dosya-> Gelişmiş-> Güvenilir Etki Alanlarını Ayarla aracılığıyla güvenilir etki alanları ekleyebilirsiniz. Bir URL'yi sağ tıklarsanız, o URL'nin etki alanını bağlam menüsü aracılığıyla güvenilen etki alanı olarak ekleyebilirsiniz.", # Filename
"sharedplaylistenabled-label": "Oynatma listesi paylaşımını etkinleştir",
"removefromplaylist-menu-label": "Oynatma listesinden kaldır",
"shuffleremainingplaylist-menu-label": "Kalan oynatma listesini karıştır",
"shuffleentireplaylist-menu-label": "Tüm oynatma listesini karıştır",
"undoplaylist-menu-label": "Oynatma listesindeki son değişikliği geri al",
"addfilestoplaylist-menu-label": "Oynatma listesinin altına dosya(lar) ekle",
"addurlstoplaylist-menu-label": "Oynatma listesinin altına URL('ler) ekle",
"editplaylist-menu-label": "Oynatma listesini düzenle",
"open-containing-folder": "Bu dosyayı içeren klasörü aç",
"addyourfiletoplaylist-menu-label": "Dosyanızı oynatma listesine ekleyin",
"addotherusersfiletoplaylist-menu-label": "{} kişisinin dosyasını oynatma listesine ekle", # [Username]
"addyourstreamstoplaylist-menu-label": "Akışınızı oynatma listesine ekleyin",
"addotherusersstreamstoplaylist-menu-label": "Oynatma listesine {} kişisinin akışını ekleyin", # [Username]
"openusersstream-menu-label": "{} kişisinin akışınıın", # [username]'s
"openusersfile-menu-label": "{} kişisinin dosyasınıın", # [username]'s
"playlist-instruction-item-message": "Dosyayı paylaşılan çalma listesine eklemek için buraya sürükleyin.",
"sharedplaylistenabled-tooltip": "Oda operatörleri, herkesin aynı şeyi izlemesini kolaylaştırmak için senkronize edilmiş bir çalma listesine dosya ekleyebilir. 'Misc' altında ortam dizinlerini yapılandırın.",
"playlist-empty-error": "Oynatma listesi şu anda boş.",
"playlist-invalid-index-error": "Geçersiz oynatma listesi dizini",
}

View File

@ -12,7 +12,12 @@ try:
except ImportError:
from syncplay.players.basePlayer import DummyPlayer
MpcBePlayer = DummyPlayer
try:
from syncplay.players.iina import IinaPlayer
except ImportError:
from syncplay.players.basePlayer import DummyPlayer
IinaPlayer = DummyPlayer
def getAvailablePlayers():
return [MPCHCAPIPlayer, MpvPlayer, MpvnetPlayer, VlcPlayer, MpcBePlayer, MplayerPlayer]
return [MPCHCAPIPlayer, MpvPlayer, MpvnetPlayer, VlcPlayer, MpcBePlayer, MplayerPlayer, IinaPlayer]

88
syncplay/players/iina.py Normal file
View File

@ -0,0 +1,88 @@
import os
from syncplay import constants
from syncplay.utils import findResourcePath
from syncplay.players.mpv import MpvPlayer
from syncplay.players.ipc_iina import IINA
class IinaPlayer(MpvPlayer):
@staticmethod
def run(client, playerPath, filePath, args):
constants.MPV_NEW_VERSION = True
constants.MPV_OSC_VISIBILITY_CHANGE_VERSION = True
return IinaPlayer(client, IinaPlayer.getExpandedPath(playerPath), filePath, args)
@staticmethod
def getStartupArgs(userArgs):
args = {}
if userArgs:
for argToAdd in userArgs:
if argToAdd.startswith('--'):
argToAdd = argToAdd[2:]
elif argToAdd.startswith('-'):
argToAdd = argToAdd[1:]
if argToAdd.strip() == "":
continue
if "=" in argToAdd:
(argName, argValue) = argToAdd.split("=", 1)
else:
argName = argToAdd
argValue = "yes"
args[argName] = argValue
return args
@staticmethod
def getDefaultPlayerPathsList():
l = []
for path in constants.IINA_PATHS:
p = IinaPlayer.getExpandedPath(path)
if p:
l.append(p)
return l
@staticmethod
def isValidPlayerPath(path):
if "iina-cli" in path or "iina-cli" in IinaPlayer.getExpandedPath(path):
return True
return False
@staticmethod
def getExpandedPath(playerPath):
if "iina-cli" in playerPath:
pass
elif "IINA.app/Contents/MacOS/IINA" in playerPath:
playerPath = os.path.join(os.path.dirname(playerPath), "iina-cli")
if os.access(playerPath, os.X_OK):
return playerPath
for path in os.environ['PATH'].split(':'):
path = os.path.join(os.path.realpath(path), playerPath)
if os.access(path, os.X_OK):
return path
return playerPath
@staticmethod
def getIconPath(path):
return constants.IINA_ICONPATH
def __init__(self, client, playerPath, filePath, args):
from twisted.internet import reactor
self.reactor = reactor
self._client = client
self._set_defaults()
self._playerIPCHandler = IINA
self._create_listener(playerPath, filePath, args)
def _preparePlayer(self):
for key, value in constants.IINA_PROPERTIES.items():
self._setProperty(key, value)
self._listener.sendLine(["load-script", findResourcePath("syncplayintf.lua")])
super()._preparePlayer()
def _onFileUpdate(self):
# do not show file info for our placeholder image in Syncplay UI
if self._filename == "iina-bkg.png":
return
else:
super()._onFileUpdate()

56
syncplay/players/ipc_iina.py Executable file
View File

@ -0,0 +1,56 @@
import os.path
import subprocess
import time
from syncplay.vendor.python_mpv_jsonipc.python_mpv_jsonipc import log, MPV, MPVError, MPVProcess
from syncplay.utils import resourcespath
class IINA(MPV):
"""The main IINA interface class. Use this to control the MPV player instantiated by IINA."""
def _start_mpv(self, ipc_socket, mpv_location, **kwargs):
# Attempt to start IINA 3 times.
for i in range(3):
try:
self.mpv_process = IINAProcess(ipc_socket, mpv_location, **kwargs)
break
except MPVError:
log.warning("IINA start failed.", exc_info=1)
continue
else:
raise MPVError("IINA process retry limit reached.")
class IINAProcess(MPVProcess):
"""
Manages an IINA process, ensuring the socket or pipe is available. (Internal)
"""
def _start_process(self, ipc_socket, args, env):
self.process = subprocess.Popen(args, env=env)
ipc_exists = False
for _ in range(100): # Give IINA 10 seconds to start.
time.sleep(0.1)
self.process.poll()
if os.path.exists(ipc_socket):
ipc_exists = True
log.debug("Found IINA socket.")
break
if self.process.returncode != 0: # iina-cli returns immediately after its start
log.error("IINA failed with returncode {0}.".format(self.process.returncode))
break
else:
self.process.terminate()
raise MPVError("IINA start timed out.")
if not ipc_exists or self.process.returncode != 0:
self.process.terminate()
raise MPVError("IINA not started.")
def _get_arglist(self, exec_location, **kwargs):
args = [exec_location]
args.append('--no-stdin')
args.append(resourcespath + 'iina-bkg.png')
self._set_default(kwargs, "mpv-input-ipc-server", self.ipc_socket)
args.extend("--{0}={1}".format(v[0].replace("_", "-"), self._mpv_fmt(v[1]))
for v in kwargs.items())
return args

View File

@ -86,7 +86,7 @@ class MpcHcApi:
_fields_ = [
('nMsgPos', ctypes.c_int32),
('nDurationMS', ctypes.c_int32),
('strMsg', ctypes.c_wchar * (len(message) + 1))
('strMsg', ctypes.c_wchar * (len(message.encode('utf-8')) + 1))
]
cmessage = __OSDDATASTRUCT()
cmessage.nMsgPos = MsgPos
@ -406,6 +406,8 @@ class MPCHCAPIPlayer(BasePlayer):
def openFile(self, filePath, resetPosition=False):
self._mpcApi.openFile(filePath)
if resetPosition:
self.setPosition(0)
def displayMessage(
self, message,

View File

@ -4,17 +4,29 @@ import re
import sys
import time
import subprocess
import threading
import ast
from syncplay import constants
from syncplay.players.mplayer import MplayerPlayer
from syncplay.messages import getMessage
from syncplay.players.basePlayer import BasePlayer
from syncplay.utils import isURL, findResourcePath
from syncplay.utils import isMacOS, isWindows, isASCII
from syncplay.vendor.python_mpv_jsonipc.python_mpv_jsonipc import MPV
class MpvPlayer(MplayerPlayer):
class MpvPlayer(BasePlayer):
RE_VERSION = re.compile(r'.*mpv (\d+)\.(\d+)\.\d+.*')
osdMessageSeparator = "\\n"
osdMessageSeparator = "; " # TODO: Make conditional
POSITION_QUERY = 'time-pos'
OSD_QUERY = 'show_text'
RE_ANSWER = re.compile(constants.MPLAYER_ANSWER_REGEX)
lastResetTime = None
lastMPVPositionUpdate = None
alertOSDSupported = True
chatOSDSupported = True
speedSupported = True
customOpenDialog = False
@staticmethod
def run(client, playerPath, filePath, args):
@ -22,26 +34,43 @@ class MpvPlayer(MplayerPlayer):
ver = MpvPlayer.RE_VERSION.search(subprocess.check_output([playerPath, '--version']).decode('utf-8'))
except:
ver = None
constants.MPV_NEW_VERSION = ver is None or int(ver.group(1)) > 0 or int(ver.group(2)) >= 6
constants.MPV_NEW_VERSION = ver is None or int(ver.group(1)) > 0 or int(ver.group(2)) >= 23
if not constants.MPV_NEW_VERSION:
from twisted.internet import reactor
the_reactor = reactor
the_reactor.callFromThread(client.ui.showErrorMessage,
"This version of mpv is not compatible with Syncplay. "
"Please use mpv >=0.23.0.", True)
the_reactor.callFromThread(client.stop)
return
constants.MPV_OSC_VISIBILITY_CHANGE_VERSION = False if ver is None else int(ver.group(1)) > 0 or int(ver.group(2)) >= 28
if not constants.MPV_OSC_VISIBILITY_CHANGE_VERSION:
client.ui.showDebugMessage(
"This version of mpv is not known to be compatible with changing the OSC visibility. "
"Please use mpv >=0.28.0.")
if constants.MPV_NEW_VERSION:
return NewMpvPlayer(client, MpvPlayer.getExpandedPath(playerPath), filePath, args)
else:
return OldMpvPlayer(client, MpvPlayer.getExpandedPath(playerPath), filePath, args)
return MpvPlayer(client, MpvPlayer.getExpandedPath(playerPath), filePath, args)
@staticmethod
def getStartupArgs(path, userArgs):
def getStartupArgs(userArgs):
args = constants.MPV_ARGS
args["script"] = findResourcePath("syncplayintf.lua")
if userArgs:
args.extend(userArgs)
args.extend(constants.MPV_SLAVE_ARGS)
if constants.MPV_NEW_VERSION:
args.extend(constants.MPV_SLAVE_ARGS_NEW)
args.extend(["--script={}".format(findResourcePath("syncplayintf.lua"))])
for argToAdd in userArgs:
if argToAdd.startswith('--'):
argToAdd = argToAdd[2:]
elif argToAdd.startswith('-'):
argToAdd = argToAdd[1:]
if argToAdd.strip() == "":
continue
if "=" in argToAdd:
(argName, argValue) = argToAdd.split("=", 1)
if argValue[0] == '"' and argValue[-1] == '"':
argValue = argValue[1:-1]
else:
argName = argToAdd
argValue = "yes"
args[argName] = argValue
return args
@staticmethod
@ -83,18 +112,8 @@ class MpvPlayer(MplayerPlayer):
def getPlayerPathErrors(playerPath, filePath):
return None
class OldMpvPlayer(MpvPlayer):
POSITION_QUERY = 'time-pos'
OSD_QUERY = 'show_text'
def _setProperty(self, property_, value):
self._listener.sendLine("no-osd set {} {}".format(property_, value))
def setPaused(self, value):
if self._paused != value:
self._paused = not self._paused
self._listener.sendLine('cycle pause')
self._listener.sendLine(["set_property", property_, value])
def mpvErrorCheck(self, line):
if "Error parsing option" in line or "Error parsing commandline option" in line:
@ -107,41 +126,30 @@ class OldMpvPlayer(MpvPlayer):
if constants and any(errormsg in line for errormsg in constants.MPV_ERROR_MESSAGES_TO_REPEAT):
self._client.ui.showErrorMessage(line)
def _handleUnknownLine(self, line):
self.mpvErrorCheck(line)
if "Playing: " in line:
newpath = line[9:]
oldpath = self._filepath
if newpath != oldpath and oldpath is not None:
self.reactor.callFromThread(self._onFileUpdate)
if self._paused != self._client.getGlobalPaused():
self.setPaused(self._client.getGlobalPaused())
self.setPosition(self._client.getGlobalPosition())
class NewMpvPlayer(OldMpvPlayer):
lastResetTime = None
lastMPVPositionUpdate = None
alertOSDSupported = True
chatOSDSupported = True
def displayMessage(self, message, duration=(constants.OSD_DURATION * 1000), OSDType=constants.OSD_NOTIFICATION,
mood=constants.MESSAGE_NEUTRAL):
if not self._client._config["chatOutputEnabled"]:
MplayerPlayer.displayMessage(self, message=message, duration=duration, OSDType=OSDType, mood=mood)
messageString = self._sanitizeText(message.replace("\\n", "<NEWLINE>")).replace("<NEWLINE>", "\\n")
self._listener.mpvpipe.show_text(messageString, duration, constants.MPLAYER_OSD_LEVEL)
return
messageString = self._sanitizeText(message.replace("\\n", "<NEWLINE>")).replace(
"\\\\", constants.MPV_INPUT_BACKSLASH_SUBSTITUTE_CHARACTER).replace("<NEWLINE>", "\\n")
self._listener.sendLine('script-message-to syncplayintf {}-osd-{} "{}"'.format(OSDType, mood, messageString))
self._listener.sendLine(["script-message-to", "syncplayintf", "{}-osd-{}".format(OSDType, mood), messageString])
def displayChatMessage(self, username, message):
if not self._client._config["chatOutputEnabled"]:
MplayerPlayer.displayChatMessage(self, username, message)
messageString = "<{}> {}".format(username, message)
messageString = self._sanitizeText(messageString.replace("\\n", "<NEWLINE>")).replace("<NEWLINE>", "\\n")
duration = int(constants.OSD_DURATION * 1000)
self._listener.mpvpipe.show_text(messageString, duration, constants.MPLAYER_OSD_LEVEL)
return
username = self._sanitizeText(username.replace("\\", constants.MPV_INPUT_BACKSLASH_SUBSTITUTE_CHARACTER))
message = self._sanitizeText(message.replace("\\", constants.MPV_INPUT_BACKSLASH_SUBSTITUTE_CHARACTER))
messageString = "<{}> {}".format(username, message)
self._listener.sendLine('script-message-to syncplayintf chat "{}"'.format(messageString))
self._listener.sendLine(["script-message-to", "syncplayintf", "chat", messageString])
def setSpeed(self, value):
self._setProperty('speed', "{:.2f}".format(value))
def setPaused(self, value):
if self._paused == value:
@ -153,6 +161,15 @@ class NewMpvPlayer(OldMpvPlayer):
if value == False:
self.lastMPVPositionUpdate = time.time()
def _getFilename(self):
self._getProperty('filename')
def _getLength(self):
self._getProperty('length')
def _getFilepath(self):
self._getProperty('path')
def _getProperty(self, property_):
floatProperties = ['time-pos']
if property_ in floatProperties:
@ -161,7 +178,7 @@ class NewMpvPlayer(OldMpvPlayer):
propertyID = '=duration:${=length:0}'
else:
propertyID = property_
self._listener.sendLine("print_text ""ANS_{}=${{{}}}""".format(property_, propertyID))
self._listener.sendLine(["print_text", '"ANS_{}=${{{}}}"'.format(property_, propertyID)])
def getCalculatedPosition(self):
if self.fileLoaded == False:
@ -197,26 +214,87 @@ class NewMpvPlayer(OldMpvPlayer):
return self._position
def _storePosition(self, value):
if self._client.isPlayingMusic() and self._paused == False and self._position == value and abs(self._position-self._position) < 0.5:
self._client.ui.showDebugMessage("EOF DETECTED!")
self._position = 0
self.setPosition(0)
if value is None:
self._client.ui.showDebugMessage("NONE TYPE POSITION!")
return
self.lastMPVPositionUpdate = time.time()
if self._recentlyReset():
self._client.ui.showDebugMessage("Recently reset, so storing position as 0")
self._position = 0
elif self._fileIsLoaded() or (value < constants.MPV_NEWFILE_IGNORE_TIME and self._fileIsLoaded(ignoreDelay=True)):
old_position = float(self._position)
self._position = max(value, 0)
#self._client.ui.showDebugMessage("Position changed from {} to {}".format(old_position, self._position))
else:
self._client.ui.showDebugMessage(
"No file loaded so storing position as GlobalPosition ({})".format(self._client.getGlobalPosition()))
"No file loaded so storing position {} as GlobalPosition ({})".format(value, self._client.getGlobalPosition()))
self._position = self._client.getGlobalPosition()
def _storePauseState(self, value):
if value is None:
self._client.ui.showDebugMessage("NONE TYPE PAUSE STATE!")
return
if self._fileIsLoaded():
self._paused = value
#self._client.ui.showDebugMessage("PAUSE STATE STORED AS {}".format(self._paused))
else:
self._paused = self._client.getGlobalPaused()
#self._client.ui.showDebugMessage("STORING GLOBAL PAUSED AS FILE IS NOT LOADED")
def lineReceived(self, line):
if line:
self._client.ui.showDebugMessage("player << {}".format(line))
line = line.replace("[cplayer] ", "") # -v workaround
line = line.replace("[term-msg] ", "") # -v workaround
line = line.replace(" cplayer: ", "") # --msg-module workaround
line = line.replace(" term-msg: ", "")
if (
"Failed to get value of property" in line or
"=(unavailable)" in line or
line == "ANS_filename=" or
line == "ANS_length=" or
line == "ANS_path="
):
if "filename" in line:
self._getFilename()
elif "length" in line:
self._getLength()
elif "path" in line:
self._getFilepath()
return
match = self.RE_ANSWER.match(line)
if not match:
self._handleUnknownLine(line)
return
name, value = [m for m in match.groups() if m]
name = name.lower()
if name == self.POSITION_QUERY:
self._storePosition(float(value))
self._positionAsk.set()
elif name == "pause":
self._storePauseState(bool(value == 'yes'))
self._pausedAsk.set()
elif name == "length":
try:
self._duration = float(value)
except:
self._duration = 0
self._durationAsk.set()
elif name == "path":
self._filepath = value
self._pathAsk.set()
elif name == "filename":
self._filename = value
self._filenameAsk.set()
elif name == "exiting":
if value != 'Quit':
if self.quitReason is None:
self.quitReason = getMessage("media-player-error").format(value)
self.reactor.callFromThread(self._client.ui.showErrorMessage, self.quitReason, True)
self.drop()
def askForStatus(self):
self._positionAsk.clear()
@ -231,8 +309,53 @@ class NewMpvPlayer(OldMpvPlayer):
self._client.updatePlayerStatus(
self._paused if self.fileLoaded else self._client.getGlobalPaused(), self.getCalculatedPosition())
def drop(self):
try:
self._listener.sendLine(['quit'])
except AttributeError as e:
self._client.ui.showDebugMessage("Could not send quit message: {}".format(str(e)))
self._takeLocksDown()
self.reactor.callFromThread(self._client.stop, False)
def _takeLocksDown(self):
try:
self._durationAsk.set()
self._filenameAsk.set()
self._pathAsk.set()
self._positionAsk.set()
self._pausedAsk.set()
except:
pass
def _getPausedAndPosition(self):
self._listener.sendLine("print_text ANS_pause=${pause}\r\nprint_text ANS_time-pos=${=time-pos}")
self._listener.sendLine(["script-message-to", "syncplayintf", "get_paused_and_position"])
def _getPaused(self):
self._getProperty('pause')
def _getPosition(self):
self._getProperty(self.POSITION_QUERY)
def _sanitizeText(self, text):
text = text.replace("\r", "")
text = text.replace("\n", "")
text = text.replace("\\\"", "<SYNCPLAY_QUOTE>")
text = text.replace("\"", "<SYNCPLAY_QUOTE>")
text = text.replace("%", "%%")
text = text.replace("\\", "\\\\")
text = text.replace("{", "\\\\{")
text = text.replace("}", "\\\\}")
text = text.replace("<SYNCPLAY_QUOTE>", "\\\"")
return text
def _quoteArg(self, arg):
arg = arg.replace('\\', '\\\\')
arg = arg.replace("'", "\\'")
arg = arg.replace('"', '\\"')
arg = arg.replace("\r", "")
arg = arg.replace("\n", "")
return '"{}"'.format(arg)
def _preparePlayer(self):
if self.delayedFilePath:
@ -246,7 +369,7 @@ class NewMpvPlayer(OldMpvPlayer):
def _loadFile(self, filePath):
self._clearFileLoaded()
self._listener.sendLine('loadfile {}'.format(self._quoteArg(filePath)), notReadyAfterThis=True)
self._listener.sendLine(['loadfile', filePath], notReadyAfterThis=True)
def setFeatures(self, featureList):
self.sendMpvOptions()
@ -256,7 +379,11 @@ class NewMpvPlayer(OldMpvPlayer):
self._client.ui.showDebugMessage(
"Did not seek as recently reset and {} below 'do not reset position' threshold".format(value))
return
MplayerPlayer.setPosition(self, value)
self._position = max(value, 0)
self._client.ui.showDebugMessage(
"Setting position to {}...".format(self._position))
self._setProperty(self.POSITION_QUERY, "{}".format(value))
time.sleep(0.03)
self.lastMPVPositionUpdate = time.time()
def openFile(self, filePath, resetPosition=False):
@ -264,6 +391,7 @@ class NewMpvPlayer(OldMpvPlayer):
if resetPosition:
self.lastResetTime = time.time()
if isURL(filePath):
self._client.ui.showDebugMessage("Setting additional lastResetTime due to stream")
self.lastResetTime += constants.STREAM_ADDITIONAL_IGNORE_TIME
self._loadFile(filePath)
if self._paused != self._client.getGlobalPaused():
@ -271,9 +399,11 @@ class NewMpvPlayer(OldMpvPlayer):
else:
self._client.ui.showDebugMessage("Don't want to set paused to {}".format(self._client.getGlobalPaused()))
if resetPosition == False:
self._client.ui.showDebugMessage("OpenFile setting position to global position: {}".format(self._client.getGlobalPosition()))
self.setPosition(self._client.getGlobalPosition())
else:
self._storePosition(0)
# TO TRY: self._listener.setReadyToSend(False)
def sendMpvOptions(self):
options = []
@ -285,7 +415,7 @@ class NewMpvPlayer(OldMpvPlayer):
options.append("{}={}".format(option, getMessage(option)))
options.append("OscVisibilityChangeCompatible={}".format(constants.MPV_OSC_VISIBILITY_CHANGE_VERSION))
options_string = ", ".join(options)
self._listener.sendLine('script-message-to syncplayintf set_syncplayintf_options "{}"'.format(options_string))
self._listener.sendLine(["script-message-to", "syncplayintf", "set_syncplayintf_options", options_string])
self._setOSDPosition()
def _handleUnknownLine(self, line):
@ -295,18 +425,37 @@ class NewMpvPlayer(OldMpvPlayer):
line = line.replace(constants.MPV_INPUT_BACKSLASH_SUBSTITUTE_CHARACTER, "\\")
self._listener.sendChat(line[6:-7])
if "<paused=" in line and ", pos=" in line:
update_string = line.replace(">", "<").replace("=", "<").replace(", ", "<").split("<")
paused_update = update_string[2]
position_update = update_string[4]
if paused_update == "nil":
self._storePauseState(float(self._client.getGlobalPaused()))
else:
self._storePauseState(bool(paused_update == 'true'))
self._pausedAsk.set()
if position_update == "nil":
self._storePosition(float(self._client.getGlobalPosition()))
else:
self._storePosition(float(position_update))
self._positionAsk.set()
#self._client.ui.showDebugMessage("{} = {} / {}".format(update_string, paused_update, position_update))
if "<get_syncplayintf_options>" in line:
self.sendMpvOptions()
if line == "<SyncplayUpdateFile>" or "Playing:" in line:
self._client.ui.showDebugMessage("Not ready to send due to <SyncplayUpdateFile>")
self._listener.setReadyToSend(False)
self._clearFileLoaded()
elif line == "</SyncplayUpdateFile>":
self._onFileUpdate()
self._listener.setReadyToSend(True)
self._client.ui.showDebugMessage("Ready to send due to </SyncplayUpdateFile>")
elif "Failed" in line or "failed" in line or "No video or audio streams selected" in line or "error" in line:
self._client.ui.showDebugMessage("Not ready to send due to error")
self._listener.setReadyToSend(True)
def _setOSDPosition(self):
@ -330,12 +479,15 @@ class NewMpvPlayer(OldMpvPlayer):
return False
def _onFileUpdate(self):
self._client.ui.showDebugMessage("File update")
self.fileLoaded = True
self.lastLoadedTime = time.time()
self.reactor.callFromThread(self._client.updateFile, self._filename, self._duration, self._filepath)
if not (self._recentlyReset()):
self._client.ui.showDebugMessage("onFileUpdate setting position to global position: {}".format(self._client.getGlobalPosition()))
self.reactor.callFromThread(self.setPosition, self._client.getGlobalPosition())
if self._paused != self._client.getGlobalPaused():
self._client.ui.showDebugMessage("onFileUpdate setting position to global paused: {}".format(self._client.getGlobalPaused()))
self.reactor.callFromThread(self._client.getGlobalPaused)
def _fileIsLoaded(self, ignoreDelay=False):
@ -347,3 +499,247 @@ class NewMpvPlayer(OldMpvPlayer):
self.fileLoaded and self.lastLoadedTime is not None and
time.time() > (self.lastLoadedTime + constants.MPV_NEWFILE_IGNORE_TIME)
)
def __init__(self, client, playerPath, filePath, args):
from twisted.internet import reactor
self.reactor = reactor
self._client = client
self._set_defaults()
self._playerIPCHandler = MPV
self._create_listener(playerPath, filePath, args)
def _set_defaults(self):
self._paused = None
self._position = 0.0
self._duration = None
self._filename = None
self._filepath = None
self.quitReason = None
self.lastLoadedTime = None
self.fileLoaded = False
self.delayedFilePath = None
def _create_listener(self, playerPath, filePath, args):
try:
self._listener = self.__Listener(self, self._playerIPCHandler, playerPath, filePath, args)
except ValueError:
self._client.ui.showMessage(getMessage("mplayer-file-required-notification"))
self._client.ui.showMessage(getMessage("mplayer-file-required-notification/example"))
self.drop()
return
except AttributeError as e:
self._client.ui.showErrorMessage("Could not load mpv: " + str(e))
return
self._listener.setDaemon(True)
self._listener.start()
self._durationAsk = threading.Event()
self._filenameAsk = threading.Event()
self._pathAsk = threading.Event()
self._positionAsk = threading.Event()
self._pausedAsk = threading.Event()
self._preparePlayer()
def _fileUpdateClearEvents(self):
self._durationAsk.clear()
self._filenameAsk.clear()
self._pathAsk.clear()
def _fileUpdateWaitEvents(self):
self._durationAsk.wait()
self._filenameAsk.wait()
self._pathAsk.wait()
def mpv_log_handler(self, level, prefix, text):
self.lineReceived(text)
class __Listener(threading.Thread):
def __init__(self, playerController, playerIPCHandler, playerPath, filePath, args):
self.playerIPCHandler = playerIPCHandler
self.playerPath = playerPath
self.mpv_arguments = playerController.getStartupArgs(args)
self.mpv_running = True
self.sendQueue = []
self.readyToSend = True
self.lastSendTime = None
self.lastNotReadyTime = None
self.__playerController = playerController
if not self.__playerController._client._config["chatOutputEnabled"]:
self.__playerController.alertOSDSupported = False
self.__playerController.chatOSDSupported = False
if self.__playerController.getPlayerPathErrors(playerPath, filePath):
raise ValueError()
if filePath and '://' not in filePath:
if not os.path.isfile(filePath) and 'PWD' in os.environ:
filePath = os.environ['PWD'] + os.path.sep + filePath
filePath = os.path.realpath(filePath)
if filePath:
self.__playerController.delayedFilePath = filePath
# At least mpv may output escape sequences which result in syncplay
# trying to parse something like
# "\x1b[?1l\x1b>ANS_filename=blah.mkv". Work around this by
# unsetting TERM.
env = os.environ.copy()
if 'TERM' in env:
del env['TERM']
# On macOS, youtube-dl requires system python to run. Set the environment
# to allow that version of python to be executed in the mpv subprocess.
if isMacOS():
try:
env['PATH'] = '/opt/homebrew/bin:/usr/local/bin:/usr/bin'
ytdl_path = subprocess.check_output(['which', 'youtube-dl'], text=True, env=env).rstrip('\n')
with open(ytdl_path, 'rb') as f:
ytdl_shebang = f.readline()
ytdl_python = ytdl_shebang.decode('utf-8').lstrip('!#').rstrip('\n')
if '/usr/bin/env' in ytdl_python:
python_name = ytdl_python.split(' ')[1]
python_executable = subprocess.check_output(['which', python_name], text=True, env=env).rstrip('\n')
else:
python_executable = ytdl_python
pythonLibs = subprocess.check_output([python_executable, '-E', '-c',
'import sys; print(sys.path)'],
text=True, env=dict())
pythonLibs = ast.literal_eval(pythonLibs)
pythonPath = ':'.join(pythonLibs[1:])
except Exception as e:
pythonPath = None
if pythonPath is not None:
env['PATH'] = python_executable + ':' + env['PATH']
env['PYTHONPATH'] = pythonPath
try:
socket = self.mpv_arguments.get('input-ipc-server')
self.mpvpipe = self.playerIPCHandler(mpv_location=self.playerPath, ipc_socket=socket, loglevel="info", log_handler=self.__playerController.mpv_log_handler, quit_callback=self.stop_client, env=env, **self.mpv_arguments)
except Exception as e:
self.quitReason = getMessage("media-player-error").format(str(e)) + " " + getMessage("mpv-failed-advice")
self.__playerController.reactor.callFromThread(self.__playerController._client.ui.showErrorMessage, self.quitReason, True)
self.__playerController.drop()
self.__process = self.mpvpipe
#self.mpvpipe.show_text("HELLO WORLD!", 1000)
threading.Thread.__init__(self, name="MPV Listener")
def __getCwd(self, filePath, env):
if not filePath:
return None
if os.path.isfile(filePath):
cwd = os.path.dirname(filePath)
elif 'HOME' in env:
cwd = env['HOME']
elif 'APPDATA' in env:
cwd = env['APPDATA']
else:
cwd = None
return cwd
def run(self):
pass
def sendChat(self, message):
if message:
if message[:1] == "/" and message != "/":
command = message[1:]
if command and command[:1] == "/":
message = message[1:]
else:
self.__playerController.reactor.callFromThread(
self.__playerController._client.ui.executeCommand, command)
return
self.__playerController.reactor.callFromThread(self.__playerController._client.sendChat, message)
def isReadyForSend(self):
self.checkForReadinessOverride()
return self.readyToSend
def setReadyToSend(self, newReadyState):
oldState = self.readyToSend
self.readyToSend = newReadyState
self.lastNotReadyTime = time.time() if newReadyState == False else None
if self.readyToSend == True:
self.__playerController._client.ui.showDebugMessage("<mpv> Ready to send: True")
else:
self.__playerController._client.ui.showDebugMessage("<mpv> Ready to send: False")
if self.readyToSend == True and oldState == False:
self.processSendQueue()
def checkForReadinessOverride(self):
if self.lastNotReadyTime and time.time() - self.lastNotReadyTime > constants.MPV_MAX_NEWFILE_COOLDOWN_TIME:
self.setReadyToSend(True)
def sendLine(self, line, notReadyAfterThis=None):
self.checkForReadinessOverride()
try:
if self.sendQueue:
if constants.MPV_SUPERSEDE_IF_DUPLICATE_COMMANDS:
for command in constants.MPV_SUPERSEDE_IF_DUPLICATE_COMMANDS:
line_command = " ".join(line)
answer = line_command.startswith(command)
#self.__playerController._client.ui.showDebugMessage("Does line_command {} start with {}? {}".format(line_command, command, answer))
if line_command.startswith(command):
for itemID, deletionCandidate in enumerate(self.sendQueue):
if " ".join(deletionCandidate).startswith(command):
self.__playerController._client.ui.showDebugMessage(
"<mpv> Remove duplicate (supersede): {}".format(self.sendQueue[itemID]))
try:
self.sendQueue.remove(self.sendQueue[itemID])
except UnicodeWarning:
self.__playerController._client.ui.showDebugMessage(
"<mpv> Unicode mismatch occurred when trying to remove duplicate")
# TODO: Prevent this from being triggered
pass
break
break
if constants.MPV_REMOVE_BOTH_IF_DUPLICATE_COMMANDS:
for command in constants.MPV_REMOVE_BOTH_IF_DUPLICATE_COMMANDS:
if line == command:
for itemID, deletionCandidate in enumerate(self.sendQueue):
if deletionCandidate == command:
self.__playerController._client.ui.showDebugMessage(
"<mpv> Remove duplicate (delete both): {}".format(self.sendQueue[itemID]))
self.__playerController._client.ui.showDebugMessage(self.sendQueue[itemID])
return
except Exception as e:
self.__playerController._client.ui.showDebugMessage("<mpv> Problem removing duplicates, etc: {}".format(e))
self.sendQueue.append(line)
self.processSendQueue()
if notReadyAfterThis:
self.setReadyToSend(False)
def processSendQueue(self):
while self.sendQueue and self.readyToSend:
if self.lastSendTime and time.time() - self.lastSendTime < constants.MPV_SENDMESSAGE_COOLDOWN_TIME:
self.__playerController._client.ui.showDebugMessage(
"<mpv> Throttling message send, so sleeping for {}".format(
constants.MPV_SENDMESSAGE_COOLDOWN_TIME))
time.sleep(constants.MPV_SENDMESSAGE_COOLDOWN_TIME)
try:
lineToSend = self.sendQueue.pop()
if lineToSend:
self.lastSendTime = time.time()
self.actuallySendLine(lineToSend)
except IndexError:
pass
def stop_client(self):
self.readyToSend = False
try:
self.mpvpipe.terminate()
except: #When mpv is already closed
pass
self.__playerController._takeLocksDown()
self.__playerController.reactor.callFromThread(self.__playerController._client.stop, False)
def actuallySendLine(self, line):
try:
self.__playerController._client.ui.showDebugMessage("player >> {}".format(line))
try:
self.mpvpipe.command(*line)
except Exception as e:
self.__playerController._client.ui.showDebugMessage("CANNOT SEND {} DUE TO {}".format(line, e))
self.stop_client()
except IOError:
pass

View File

@ -1,8 +1,8 @@
import os
from syncplay import constants
from syncplay.players.mpv import NewMpvPlayer
from syncplay.players.mpv import MpvPlayer
class MpvnetPlayer(NewMpvPlayer):
class MpvnetPlayer(MpvPlayer):
@staticmethod

View File

@ -1,6 +1,4 @@
import asynchat
import asyncore
import os
import random
import re
@ -13,11 +11,99 @@ import urllib.error
import urllib.parse
import urllib.request
from twisted.internet.protocol import ReconnectingClientFactory
from twisted.protocols.basic import LineReceiver
from syncplay import constants, utils
from syncplay.messages import getMessage
from syncplay.players.basePlayer import BasePlayer
from syncplay.utils import isBSD, isLinux, isWindows, isMacOS
class VLCProtocol(LineReceiver):
def __init__(self):
self.delimiter = b'\n'
def lineReceived(self, data):
self.factory.vlcHasResponded = True
self.factory._playerController.lineReceived(data)
def sendLine(self, line):
if self.factory.connected:
if not self.factory.requestedVLCVersion:
self.factory.requestedVLCVersion = True
self.sendLine("get-vlc-version")
try:
lineToSend = line.encode('utf-8') + self.delimiter
self.transport.write(lineToSend)
if self.factory._playerController._client and self.factory._playerController._client.ui:
self.factory._playerController._client.ui.showDebugMessage("player >> {}".format(line))
except:
pass
def connectionMade(self):
self.factory.connected = True
self.factory._playerController._vlcready.set()
self.factory.timeVLCLaunched = None
self.factory._playerController.initWhenConnected()
def connectionLost(self, reason):
self.factory.connected = False
class VLCClientFactory(ReconnectingClientFactory):
# http://twistedmatrix.com/documents/current/api/twisted.internet.protocol.ReconnectingClientFactory.html
#
initialDelay = 0.3
maxDelay = 0.45
maxRetries = 50
def startedConnecting(self, connector):
self._playerController._client.ui.showDebugMessage("Starting to connect to VLC...")
def clientConnectionLost(self, connector, reason):
self._playerController._client.ui.showDebugMessage("Connection to VLC lost: {}".format(reason))
ReconnectingClientFactory.clientConnectionLost(self, connector, reason)
def clientConnectionFailed(self, connector, reason):
self._playerController._client.ui.showDebugMessage("Connection to VLC failed: {}".format(reason))
ReconnectingClientFactory.clientConnectionFailed(self, connector, reason)
def __init__(self, playerController, vlcHasResponded, vlcLaunchedTime, vlcProcess):
self._playerController = playerController
self._process = vlcProcess
self.requestedVLCVersion = False
self.vlcHasResponded = vlcHasResponded
self.timeVLCLaunched = vlcLaunchedTime
self.connected = False
def buildProtocol(self, addr):
self.protocol = VLCProtocol()
self.protocol.factory = self
return self.protocol
def clientConnectionLost(self, connector, reason):
if self.timeVLCLaunched and time.time() - self.timeVLCLaunched < constants.VLC_OPEN_MAX_WAIT_TIME:
try:
self._playerController._client.ui.showDebugMessage("Failed to connect to VLC, but reconnecting as within max wait time")
except:
pass
self._playerController._vlcready.clear()
connector.connect()
elif self.vlcHasResponded:
self._playerController.drop()
else:
self.vlcHasResponded = True
self._playerController.drop(getMessage("vlc-failed-connection").format(constants.VLC_MIN_VERSION))
def closeVLC(self):
self._playerController._vlcclosed.set()
if not self.connected and not self.timeVLCLaunched:
# For circumstances where Syncplay is not connected to VLC and is not reconnecting
try:
self._process.terminate()
except: # When VLC is already closed
pass
class VlcPlayer(BasePlayer):
speedSupported = True
@ -63,14 +149,15 @@ class VlcPlayer(BasePlayer):
self._vlcclosed = threading.Event()
self._listener = None
try:
self._listener = self.__Listener(self, playerPath, filePath, args, self._vlcready, self._vlcclosed)
self._listener = self.__Listener(self, playerPath, filePath, args, self.reactor)
except ValueError:
self._client.ui.showErrorMessage(getMessage("vlc-failed-connection"), True)
self.reactor.callFromThread(self._client.stop, True,)
return
def initWhenConnected(self):
try:
self._listener.setDaemon(True)
self._listener.start()
self._client.ui.showErrorMessage(getMessage("vlc-initial-warning"))
if not self._vlcready.wait(constants.VLC_OPEN_MAX_WAIT_TIME):
self._vlcready.set()
self._client.ui.showErrorMessage(getMessage("vlc-failed-connection"), True)
@ -314,7 +401,7 @@ class VlcPlayer(BasePlayer):
def drop(self, dropErrorMessage=None):
if self._listener:
self._vlcclosed.clear()
self._listener.sendLine('close-vlc')
self._listener._factory.closeVLC()
self._vlcclosed.wait()
self._durationAsk.set()
self._filenameAsk.set()
@ -326,13 +413,15 @@ class VlcPlayer(BasePlayer):
self.reactor.callFromThread(self._client.ui.showErrorMessage, dropErrorMessage, True)
self.reactor.callFromThread(self._client.stop, False,)
class __Listener(threading.Thread, asynchat.async_chat):
def __init__(self, playerController, playerPath, filePath, args, vlcReady, vlcClosed):
class __Listener():
def __init__(self, playerController, playerPath, filePath, args, reactor):
self.__playerController = playerController
self.requestedVLCVersion = False
self.reactor = reactor
self.vlcHasResponded = False
self.oldIntfVersion = None
self.timeVLCLaunched = None
call = [playerPath]
if filePath:
if utils.isASCII(filePath):
@ -341,27 +430,27 @@ class VlcPlayer(BasePlayer):
call.append(self.__playerController.getMRL(filePath))
if isLinux():
if 'snap' in playerPath:
playerController.vlcIntfPath = '/snap/vlc/current/usr/lib/vlc/lua/intf/'
playerController.vlcIntfUserPath = os.path.join(os.getenv('HOME', '.'), "snap/vlc/current/.local/share/vlc/lua/intf/")
self.__playerController.vlcIntfPath = '/snap/vlc/current/usr/lib/vlc/lua/intf/'
self.__playerController.vlcIntfUserPath = os.path.join(os.getenv('HOME', '.'), "snap/vlc/current/.local/share/vlc/lua/intf/")
else:
playerController.vlcIntfPath = "/usr/lib/vlc/lua/intf/"
playerController.vlcIntfUserPath = os.path.join(os.getenv('HOME', '.'), ".local/share/vlc/lua/intf/")
self.__playerController.vlcIntfPath = "/usr/lib/vlc/lua/intf/"
self.__playerController.vlcIntfUserPath = os.path.join(os.getenv('HOME', '.'), ".local/share/vlc/lua/intf/")
elif isMacOS():
playerController.vlcIntfPath = "/Applications/VLC.app/Contents/MacOS/share/lua/intf/"
playerController.vlcIntfUserPath = os.path.join(
self.__playerController.vlcIntfPath = "/Applications/VLC.app/Contents/MacOS/share/lua/intf/"
self.__playerController.vlcIntfUserPath = os.path.join(
os.getenv('HOME', '.'), "Library/Application Support/org.videolan.vlc/lua/intf/")
elif isBSD():
# *BSD ports/pkgs install to /usr/local by default.
# This should also work for all the other BSDs, such as OpenBSD or DragonFly.
playerController.vlcIntfPath = "/usr/local/lib/vlc/lua/intf/"
playerController.vlcIntfUserPath = os.path.join(os.getenv('HOME', '.'), ".local/share/vlc/lua/intf/")
self.__playerController.vlcIntfPath = "/usr/local/lib/vlc/lua/intf/"
self.__playerController.vlcIntfUserPath = os.path.join(os.getenv('HOME', '.'), ".local/share/vlc/lua/intf/")
elif "vlcportable.exe" in playerPath.lower():
playerController.vlcIntfPath = os.path.dirname(playerPath).replace("\\", "/") + "/App/vlc/lua/intf/"
playerController.vlcIntfUserPath = playerController.vlcIntfPath
self.__playerController.vlcIntfPath = os.path.dirname(playerPath).replace("\\", "/") + "/App/vlc/lua/intf/"
self.__playerController.vlcIntfUserPath = playerController.vlcIntfPath
else:
playerController.vlcIntfPath = os.path.dirname(playerPath).replace("\\", "/") + "/lua/intf/"
playerController.vlcIntfUserPath = os.path.join(os.getenv('APPDATA', '.'), "VLC\\lua\\intf\\")
playerController.vlcModulePath = playerController.vlcIntfPath + "modules/?.luac"
self.__playerController.vlcIntfPath = os.path.dirname(playerPath).replace("\\", "/") + "/lua/intf/"
self.__playerController.vlcIntfUserPath = os.path.join(os.getenv('APPDATA', '.'), "VLC\\lua\\intf\\")
self.__playerController.vlcModulePath = self.__playerController.vlcIntfPath + "modules/?.luac"
def _createIntfFolder(vlcSyncplayInterfaceDir):
self.__playerController._client.ui.showDebugMessage("Checking if syncplay.lua intf directory exists")
from pathlib import Path
@ -370,30 +459,10 @@ class VlcPlayer(BasePlayer):
else:
self.__playerController._client.ui.showDebugMessage("syncplay.lua intf directory not found, so creating directory '{}'".format(vlcSyncplayInterfaceDir))
Path(vlcSyncplayInterfaceDir).mkdir(mode=0o755, parents=True, exist_ok=True)
def _intfNeedsUpdating(vlcSyncplayInterfacePath):
self.__playerController._client.ui.showDebugMessage("Checking if '{}' exists and if it is the expected version".format(vlcSyncplayInterfacePath))
if not os.path.isfile(vlcSyncplayInterfacePath):
self.__playerController._client.ui.showDebugMessage("syncplay.lua not found, so file needs copying")
return True
if os.path.isfile(vlcSyncplayInterfacePath):
with open(vlcSyncplayInterfacePath, 'rU') as interfacefile:
for line in interfacefile:
if "local connectorversion" in line:
interface_version = line[26:31]
if interface_version == constants.VLC_INTERFACE_VERSION:
self.__playerController._client.ui.showDebugMessage("syncplay.lua exists and is expected version, so no file needs copying")
return False
else:
self.oldIntfVersion = line[26:31]
self.__playerController._client.ui.showDebugMessage("syncplay.lua is {} but expected version is {} so file needs to be copied".format(interface_version, constants.VLC_INTERFACE_VERSION))
return True
self.__playerController._client.ui.showDebugMessage("Up-to-dateness checks failed, so copy the file.")
return True
if _intfNeedsUpdating(os.path.join(playerController.vlcIntfUserPath, "syncplay.lua")):
try:
_createIntfFolder(playerController.vlcIntfUserPath)
_createIntfFolder(self.__playerController.vlcIntfUserPath)
copyForm = utils.findResourcePath("syncplay.lua")
copyTo = os.path.join(playerController.vlcIntfUserPath, "syncplay.lua")
copyTo = os.path.join(self.__playerController.vlcIntfUserPath, "syncplay.lua")
self.__playerController._client.ui.showDebugMessage("Copying VLC Lua Interface from '{}' to '{}'".format(copyForm, copyTo))
import shutil
if os.path.exists(copyTo):
@ -401,23 +470,20 @@ class VlcPlayer(BasePlayer):
shutil.copyfile(copyForm, copyTo)
os.chmod(copyTo, 0o755)
except Exception as e:
playerController._client.ui.showErrorMessage(e)
self.__playerController._client.ui.showErrorMessage(e)
return
if isLinux():
playerController.vlcDataPath = "/usr/lib/syncplay/resources"
self.__playerController.vlcDataPath = "/usr/lib/syncplay/resources"
else:
playerController.vlcDataPath = utils.findWorkingDir() + "\\resources"
playerController.SLAVE_ARGS.append('--data-path={}'.format(playerController.vlcDataPath))
playerController.SLAVE_ARGS.append(
self.__playerController.vlcDataPath = utils.findWorkingDir() + "\\resources"
self.__playerController.SLAVE_ARGS.append(
'--lua-config=syncplay={{modulepath=\"{}\",port=\"{}\"}}'.format(
playerController.vlcModulePath, str(playerController.vlcport)))
self.__playerController.vlcModulePath, str(self.__playerController.vlcport)))
call.extend(playerController.SLAVE_ARGS)
call.extend(self.__playerController.SLAVE_ARGS)
if args:
call.extend(args)
self._vlcready = vlcReady
self._vlcclosed = vlcClosed
self._vlcVersion = None
if isWindows() and getattr(sys, 'frozen', '') and getattr(sys, '_MEIPASS', '') is not None: # Needed for pyinstaller --onefile bundle
@ -438,11 +504,11 @@ class VlcPlayer(BasePlayer):
if "Hosting Syncplay" in line:
break
elif "Couldn't find lua interface" in line:
playerController._client.ui.showErrorMessage(
self.__playerController._client.ui.showErrorMessage(
getMessage("vlc-failed-noscript").format(line), True)
break
elif "lua interface error" in line:
playerController._client.ui.showErrorMessage(
self.__playerController._client.ui.showErrorMessage(
getMessage("media-player-error").format(line), True)
break
if not isMacOS():
@ -451,48 +517,13 @@ class VlcPlayer(BasePlayer):
vlcoutputthread = threading.Thread(target=self.handle_vlcoutput, args=())
vlcoutputthread.setDaemon(True)
vlcoutputthread.start()
threading.Thread.__init__(self, name="VLC Listener")
asynchat.async_chat.__init__(self)
self.set_terminator(b'\n')
self._ibuffer = []
self.create_socket(socket.AF_INET, socket.SOCK_STREAM)
self._sendingData = threading.Lock()
self.__playerController._vlcready.clear()
self._factory = VLCClientFactory(self.__playerController, self.vlcHasResponded, self.timeVLCLaunched, self.__process)
self.reactor.connectTCP('localhost', self.__playerController.vlcport, self._factory)
def _shouldListenForSTDOUT(self):
return not isWindows()
def initiate_send(self):
with self._sendingData:
asynchat.async_chat.initiate_send(self)
def run(self):
self._vlcready.clear()
self.connect(('localhost', self.__playerController.vlcport))
asyncore.loop()
def handle_connect(self):
asynchat.async_chat.handle_connect(self)
self._vlcready.set()
self.timeVLCLaunched = None
def collect_incoming_data(self, data):
self._ibuffer.append(data)
def handle_close(self):
if self.timeVLCLaunched and time.time() - self.timeVLCLaunched < constants.VLC_OPEN_MAX_WAIT_TIME:
try:
self.__playerController._client.ui.showDebugMessage("Failed to connect to VLC, but reconnecting as within max wait time")
except:
pass
self.run()
elif self.vlcHasResponded:
asynchat.async_chat.handle_close(self)
self.__playerController.drop()
else:
self.vlcHasResponded = True
asynchat.async_chat.handle_close(self)
self.__playerController.drop(getMessage("vlc-failed-connection").format(constants.VLC_MIN_VERSION))
def handle_vlcoutput(self):
out = self.__process.stderr
for line in iter(out.readline, ''):
@ -502,28 +533,5 @@ class VlcPlayer(BasePlayer):
break
out.close()
def found_terminator(self):
self.vlcHasResponded = True
self.__playerController.lineReceived(b"".join(self._ibuffer))
self._ibuffer = []
def sendLine(self, line):
if self.connected:
if not self.requestedVLCVersion:
self.requestedVLCVersion = True
self.sendLine("get-vlc-version")
# try:
lineToSend = line + "\n"
self.push(lineToSend.encode('utf-8'))
if self.__playerController._client and self.__playerController._client.ui:
self.__playerController._client.ui.showDebugMessage("player >> {}".format(line))
# except:
# pass
if line == "close-vlc":
self._vlcclosed.set()
if not self.connected and not self.timeVLCLaunched:
# For circumstances where Syncplay is not connected to VLC and is not reconnecting
try:
self.__process.terminate()
except: # When VLC is already closed
pass
self.reactor.callFromThread(self._factory.protocol.sendLine, line)

View File

@ -73,12 +73,16 @@ class SyncClientProtocol(JSONCommandProtocol):
self.clientIgnoringOnTheFly = 0
self.serverIgnoringOnTheFly = 0
self.logged = False
self.hadFirstPlaylistIndex = False
self.hadFirstStateUpdate = False
self._pingService = PingService()
def showDebugMessage(self, line):
self._client.ui.showDebugMessage(line)
def connectionMade(self):
self.hadFirstPlaylistIndex = False
self.hadFirstStateUpdate = False
self._client.initProtocol(self)
if self._client._clientSupportsTLS:
if self._client._serverSupportsTLS:
@ -99,6 +103,8 @@ class SyncClientProtocol(JSONCommandProtocol):
self._client._clientSupportsTLS = False
elif "certificate verify failed" in str(reason.value):
self.dropWithError(getMessage("startTLS-server-certificate-invalid"))
elif "mismatched_id=DNS_ID" in str(reason.value):
self.dropWithError(getMessage("startTLS-server-certificate-invalid-DNS-ID"))
except:
pass
self._client.destroyProtocol()
@ -181,7 +187,12 @@ class SyncClientProtocol(JSONCommandProtocol):
manuallyInitiated = values["manuallyInitiated"] if "manuallyInitiated" in values else True
self._client.setReady(user, isReady, manuallyInitiated)
elif command == "playlistIndex":
self._client.playlist.changeToPlaylistIndex(values['index'], values['user'])
user = values['user']
resetPosition = True
if not self.hadFirstPlaylistIndex:
self.hadFirstPlaylistIndex = True
resetPosition = False
self._client.playlist.changeToPlaylistIndex(values['index'], user, resetPosition=resetPosition)
elif command == "playlistChange":
self._client.playlist.changePlaylist(values['files'], values['user'])
elif command == "features":
@ -195,6 +206,8 @@ class SyncClientProtocol(JSONCommandProtocol):
def sendRoomSetting(self, roomName, password=None):
setting = {}
self.hadFirstStateUpdate = False
self.hadFirstPlaylistIndex = False
setting["name"] = roomName
if password:
setting["password"] = password
@ -243,6 +256,8 @@ class SyncClientProtocol(JSONCommandProtocol):
def handleState(self, state):
position, paused, doSeek, setBy = None, None, None, None
messageAge = 0
if not self.hadFirstStateUpdate:
self.hadFirstStateUpdate = True
if "ignoringOnTheFly" in state:
ignore = state["ignoringOnTheFly"]
if "server" in ignore:

BIN
syncplay/resources/IINA.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 632 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 743 B

BIN
syncplay/resources/iina-bkg.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

View File

@ -5,7 +5,7 @@
Principal author: Etoh
Other contributors: DerGenaue, jb, Pilotat
Project: https://syncplay.pl/
Version: 0.3.5
Version: 0.3.6
Note:
* This interface module is intended to be used in conjunction with Syncplay.
@ -78,9 +78,14 @@ Syncplay should install this automatically to your user folder.
--]==========================================================================]
local connectorversion = "0.3.5"
local connectorversion = "0.3.6"
local vlcversion = vlc.misc.version()
local vlcmajorversion = tonumber(vlcversion:sub(1,1)) -- get the major version of VLC
if vlcmajorversion > 3 then
vlc.misc.quit()
end
local durationdelay = 500000 -- Pause for get_duration command etc for increased reliability (uses microseconds)
local loopsleepduration = 2500 -- Pause for every event loop (uses microseconds)
local quitcheckfrequency = 20 -- Check whether VLC has closed every X loops

View File

@ -1,39 +0,0 @@
1.2.6
* `Not all files in the room are same` message is displayed after first unpause if that's the case
* `You're alone in the room` message is displayed after first unpause if that's the case
* All messages exported to messages.py
* Full UTF-8 support
* IRC Bot (experimental, thanks HarHar)
* MPV support (including streams - thanks happy)
* VLC support (experimental)
* MOTD (experimental)
* Reply on HTTP requests (experimental)
* Better GUI (thanks TacticalGenius230)
* Removed syncplayClientForceConfiguration.bat file for opening configuration
* Configuration always opens if no file was provided (not done with open with) or was set like that in configuration window
* Syncplay now tries to locate default player on first run
* Released executables are now working on Windows 8 (thanks titsontrains)
* Fixed Mplayer2 not working with msgcolor (thanks ion1)
* Added CCCP path for MPC-HC
* Various improvements to installer and uninstaller
* Re-enabled "mplayer" as a valid player name and improved version checking
* Removed passing stderr to outpup for mplayer
* Forcing precise seeking to fix double jumping in mplayer2/mpv.
* Added pre-experimental MAL support
* Fixed reconnection time prolonging over multiple disconnections
* Allow 1 second seeks
1.2.5 (2 January 2013)
* Installation support for Windows
* First official release.
1.2.4
* Config file is not saved again unless needed
* Added optimize flags to the default installation on Linux
* Server optimized to handle many users at the same time
* #58 - Default room always assumed your username now.
1.2.3 (29 December 2012)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 632 B

View File

@ -77,7 +77,13 @@ non_us_chars = {
'И','и','Й','й','К','к','Л','л','М','м','Н','н','О','о','П','п',
'Р','р','С','с','Т','т','У','у','Ф','ф','Х','х','Ц','ц','Ч','ч',
'Ш','ш','Щ','щ','Ъ','ъ','Ы','ы','Ь','ь','Э','э','Ю','ю','Я','я',
'',''
'','','Ğ','Ş','ı','ğ','ş',
'ç', 'ñ',
'´',
'`',
'^',
'~', '', 'ĩ', 'ũ',
'¨',
}
function format_scrolling(xpos, ypos, text)
@ -341,6 +347,18 @@ mp.register_script_message('set_syncplayintf_options', function(e)
set_syncplayintf_options(e)
end)
function state_paused_and_position()
-- bob
local pause_status = tostring(mp.get_property_native("pause"))
local position_status = tostring(mp.get_property_native("time-pos"))
mp.command('print-text "<paused='..pause_status..', pos='..position_status..'>"')
-- mp.command('print-text "<paused>true</paused><position>7.6</position>"')
end
mp.register_script_message('get_paused_and_position', function()
state_paused_and_position()
end)
-- Default options
local utils = require 'mp.utils'
local options = require 'mp.options'
@ -614,14 +632,14 @@ function wordwrapify_string(line)
local nextChar = 0
local chars = 0
local maxChars = str:len()
str = string.gsub(str, "\\\"", "\"");
repeat
nextChar = next_utf8(str, currentChar)
if nextChar == currentChar then
return newstr
end
local charToTest = str:sub(currentChar,nextChar-1)
if charToTest ~= "\\" and charToTest ~= "{" and charToTest ~= "}" and charToTest ~= "%" then
if charToTest ~= "{" and charToTest ~= "}" and charToTest ~= "%" then
newstr = newstr .. WORDWRAPIFY_MAGICWORD .. str:sub(currentChar,nextChar-1)
else
newstr = newstr .. str:sub(currentChar,nextChar-1)

View File

@ -1,489 +1,463 @@
{\rtf1\ansi\ansicpg1252\cocoartf1561\cocoasubrtf600
{\fonttbl\f0\fswiss\fcharset0 Helvetica;}
{\colortbl;\red255\green255\blue255;}
{\*\expandedcolortbl;;}
\vieww13920\viewh8980\viewkind0
\deftab529
\pard\tx529\pardeftab529\pardirnatural\partightenfactor0
{\rtf1\ansi\ansicpg1252\deff0\nouicompat\deftab529{\fonttbl{\f0\fswiss\fcharset0 Helvetica;}{\f1\fswiss\fcharset238 Helvetica;}}
{\colortbl ;\red0\green0\blue255;}
{\*\generator Riched20 10.0.18362}\viewkind4\uc1
\pard\tx529\f0\fs24\lang9 Syncplay relies on the following softwares, in compliance with their licenses. \par
\par
\b Qt.py\b0\par
\par
Copyright (c) 2016 Marcus Ottosson\par
\par
Permission is hereby granted, free of charge, to any person obtaining a copy\par
of this software and associated documentation files (the "Software"), to deal\par
in the Software without restriction, including without limitation the rights\par
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\par
copies of the Software, and to permit persons to whom the Software is\par
furnished to do so, subject to the following conditions:\par
\par
The above copyright notice and this permission notice shall be included in all\par
copies or substantial portions of the Software.\par
\par
\b Qt for Python\par
\b0\par
Copyright (C) 2018 The Qt Company Ltd.\par
Contact: {{\field{\*\fldinst{HYPERLINK https://www.qt.io/licensing/ }}{\fldrslt{https://www.qt.io/licensing/\ul0\cf0}}}}\f0\fs24\par
\par
This program is free software: you can redistribute it and/or modify\par
it under the terms of the GNU Lesser General Public License as published\par
by the Free Software Foundation, either version 3 of the License, or\par
(at your option) any later version.\par
\par
This program is distributed in the hope that it will be useful,\par
but WITHOUT ANY WARRANTY; without even the implied warranty of\par
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\par
GNU Lesser General Public License for more details.\par
\par
You should have received a copy of the GNU Lesser General Public License\par
along with this program. If not, see <{{\field{\*\fldinst{HYPERLINK "http://www.gnu.org/licenses/"}}{\fldrslt{http://www.gnu.org/licenses/\ul0\cf0}}}}\f0\fs24 >.\par
\par
\b Qt\b0\par
\par
This program uses Qt under the GNU LGPL version 3.\par
\par
Qt is a C++ toolkit for cross-platform application development.\par
\par
Qt provides single-source portability across all major desktop operating systems. It is also available for embedded Linux and other embedded and mobile operating systems.\par
\par
Qt is available under three different licensing options designed to accommodate the needs of our various users.\par
\par
Qt licensed under our commercial license agreement is appropriate for development of proprietary/commercial software where you do not want to share any source code with third parties or otherwise cannot comply with the terms of the GNU LGPL version 3 or GNU LGPL version 2.1.\par
\par
Qt licensed under the GNU LGPL version 3 is appropriate for the development of Qt applications provided you can comply with the terms and conditions of the GNU LGPL version 3.\par
\par
Qt licensed under the GNU LGPL version 2.1 is appropriate for the development of Qt applications provided you can comply with the terms and conditions of the GNU LGPL version 2.1.\par
\par
Please see qt.io/licensing for an overview of Qt licensing.\par
\par
Copyright (C) 2017 The Qt Company Ltd and other contributors.\par
\par
Qt and the Qt logo are trademarks of The Qt Company Ltd.\par
\par
Qt is The Qt Company Ltd product developed as an open source project. See qt.io for more information.\par
\par
\b Twisted\par
\par
\b0 Copyright (c) 2001-2017\par
Allen Short\par
Amber Hawkie Brown\par
Andrew Bennetts\par
Andy Gayton\par
Antoine Pitrou\par
Apple Computer, Inc.\par
Ashwini Oruganti\par
Benjamin Bruheim\par
Bob Ippolito\par
Canonical Limited\par
Christopher Armstrong\par
David Reid\par
Divmod Inc.\par
Donovan Preston\par
Eric Mangold\par
Eyal Lotem\par
Google Inc.\par
Hybrid Logic Ltd.\par
Hynek Schlawack\par
Itamar Turner-Trauring\par
James Knight\par
Jason A. Mobarak\par
Jean-Paul Calderone\par
Jessica McKellar\par
Jonathan D. Simms\par
Jonathan Jacobs\par
Jonathan Lange\par
Julian Berman\par
J\'fcrgen Hermann\par
Kevin Horn\par
Kevin Turner\par
Laurens Van Houtven\par
Mary Gardiner\par
Massachusetts Institute of Technology\par
Matthew Lefkowitz\par
Moshe Zadka\par
Paul Swartz\par
Pavel Pergamenshchik\par
Rackspace, US Inc.\par
Ralph Meijer\par
Richard Wall\par
Sean Riley\par
Software Freedom Conservancy\par
Tavendo GmbH\par
Thijs Triemstra\par
Thomas Herve\par
Timothy Allen\par
Tom Prince\par
Travis B. Hartwell\par
\par
and others that have contributed code to the public domain.\par
\par
Permission is hereby granted, free of charge, to any person obtaining\par
a copy of this software and associated documentation files (the\par
"Software"), to deal in the Software without restriction, including\par
without limitation the rights to use, copy, modify, merge, publish,\par
distribute, sublicense, and/or sell copies of the Software, and to\par
permit persons to whom the Software is furnished to do so, subject to\par
the following conditions:\par
\par
The above copyright notice and this permission notice shall be\par
included in all copies or substantial portions of the Software.\par
\b\par
qt5reactor\par
\par
\b0 Copyright (c) 2001-2018\par
Allen Short\par
Andy Gayton\par
Andrew Bennetts\par
Antoine Pitrou\par
Apple Computer, Inc.\par
Ashwini Oruganti\par
bakbuk\par
Benjamin Bruheim\par
Bob Ippolito\par
Burak Nehbit\par
Canonical Limited\par
Christopher Armstrong\par
Christopher R. Wood\par
David Reid\par
Donovan Preston\par
Elvis Stansvik\par
Eric Mangold\par
Eyal Lotem\par
Glenn Tarbox\par
Google Inc.\par
Hybrid Logic Ltd.\par
Hynek Schlawack\par
Itamar Turner-Trauring\par
James Knight\par
Jason A. Mobarak\par
Jean-Paul Calderone\par
Jessica McKellar\par
Jonathan Jacobs\par
Jonathan Lange\par
Jonathan D. Simms\par
J\'fcrgen Hermann\par
Julian Berman\par
Kevin Horn\par
Kevin Turner\par
Kyle Altendorf\par
Laurens Van Houtven\par
Mary Gardiner\par
Matthew Lefkowitz\par
Massachusetts Institute of Technology\par
Moshe Zadka\par
Paul Swartz\par
Pavel Pergamenshchik\par
Ralph Meijer\par
Richard Wall\par
Sean Riley\par
Software Freedom Conservancy\par
Tarashish Mishra\par
Travis B. Hartwell\par
Thijs Triemstra\par
Thomas Herve\par
Timothy Allen\par
Tom Prince\par
\par
Permission is hereby granted, free of charge, to any person obtaining\par
a copy of this software and associated documentation files (the\par
"Software"), to deal in the Software without restriction, including\par
without limitation the rights to use, copy, modify, merge, publish,\par
distribute, sublicense, and/or sell copies of the Software, and to\par
permit persons to whom the Software is furnished to do so, subject to\par
the following conditions:\par
\par
The above copyright notice and this permission notice shall be\par
included in all copies or substantial portions of the Software.\par
\par
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\par
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\par
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\par
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\par
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\par
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\par
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\b\par
\par
appnope\par
\b0\par
Copyright (c) 2013, Min Ragan-Kelley\par
\par
All rights reserved.\par
\par
Redistribution and use in source and binary forms, with or without\par
modification, are permitted provided that the following conditions are met:\par
\par
Redistributions of source code must retain the above copyright notice, this\par
list of conditions and the following disclaimer.\par
\par
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND\par
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\par
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\par
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE\par
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\par
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\par
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\par
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\par
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\par
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\par
\par
\b py2exe\par
\b0\par
Copyright (c) 2000-2013 Thomas Heller, Jimmy Retzlaff\par
\par
Permission is hereby granted, free of charge, to any person obtaining\par
a copy of this software and associated documentation files (the\par
"Software"), to deal in the Software without restriction, including\par
without limitation the rights to use, copy, modify, merge, publish,\par
distribute, sublicense, and/or sell copies of the Software, and to\par
permit persons to whom the Software is furnished to do so, subject to\par
the following conditions:\par
\par
The above copyright notice and this permission notice shall be\par
included in all copies or substantial portions of the Software.\par
\par
\b py2app\par
\par
\b0 Copyright (c) 2004 Bob Ippolito.\par
\par
Some parts copyright (c) 2010-2014 Ronald Oussoren\par
\par
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\par
\par
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\par
\par
\b dmgbuild\par
\par
\b0 Copyright (c) 2014 Alastair Houghton\par
Copyright (c) 2017 The Qt Company Ltd.\par
\par
Permission is hereby granted, free of charge, to any person obtaining a copy\par
of this software and associated documentation files (the "Software"), to deal\par
in the Software without restriction, including without limitation the rights\par
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\par
copies of the Software, and to permit persons to whom the Software is\par
furnished to do so, subject to the following conditions:\par
\par
The above copyright notice and this permission notice shall be included in\par
all copies or substantial portions of the Software.\par
\par
\b Requests\par
\par
\b0 Copyright 2018 Kenneth Reitz\par
\par
Licensed under the Apache License, Version 2.0 (the \ldblquote License\rdblquote ); you may not use this file\par
except in compliance with the License. You may obtain a copy of the License at\par
\par
{{\field{\*\fldinst{HYPERLINK http://www.apache.org/licenses/LICENSE-2.0 }}{\fldrslt{http://www.apache.org/licenses/LICENSE-2.0\ul0\cf0}}}}\f0\fs24\par
\par
Unless required by applicable law or agreed to in writing, software distributed under the \par
License is distributed on an \ldblquote AS IS\rdblquote BASIS, WITHOUT WARRANTIES OR CONDI-\par
TIONS OF ANY KIND, either express or implied. See the License for the specific lang-\par
uage governing permissions and limitations under the License.\par
\par
\b mpv-repl\b0\par
\par
Copyright 2016, James Ross-Gowan\par
\par
Permission to use, copy, modify, and/or distribute this software for any\par
purpose with or without fee is hereby granted, provided that the above\par
copyright notice and this permission notice appear in all copies.\par
\par
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\par
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND\par
FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\par
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\par
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\par
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\par
PERFORMANCE OF THIS SOFTWARE.\par
\par
\b python-certifi\b0\par
\par
This Source Code Form is subject to the terms of the Mozilla Public License,\par
v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain\par
one at {{\field{\*\fldinst{HYPERLINK http://mozilla.org/MPL/2.0/ }}{\fldrslt{http://mozilla.org/MPL/2.0/\ul0\cf0}}}}\f0\fs24 .\par
\par
\b cffi\b0\par
\par
\f0\fs24 \cf0 \CocoaLigature0 Syncplay relies on the following softwares, in compliance with their licenses. \
\
\pard This package has been mostly done by Armin Rigo with help from\par
Maciej Fija\f1\'b3kowski. The idea is heavily based (although not directly\par
copied) from LuaJIT ffi by Mike Pall.\par
\par
Other contributors:\par
\par
Google Inc.\par
\b Qt.py
\b0 \
\
Copyright (c) 2016 Marcus Ottosson\
\
Permission is hereby granted, free of charge, to any person obtaining a copy\
of this software and associated documentation files (the "Software"), to deal\
in the Software without restriction, including without limitation the rights\
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\
copies of the Software, and to permit persons to whom the Software is\
furnished to do so, subject to the following conditions:\
\
The above copyright notice and this permission notice shall be included in all\
copies or substantial portions of the Software.\
\
\pard\tx529\par
The MIT License\par
\par
Permission is hereby granted, free of charge, to any person \par
obtaining a copy of this software and associated documentation \par
files (the "Software"), to deal in the Software without \par
restriction, including without limitation the rights to use, \par
copy, modify, merge, publish, distribute, sublicense, and/or \par
sell copies of the Software, and to permit persons to whom the \par
Software is furnished to do so, subject to the following conditions:\par
\par
The above copyright notice and this permission notice shall be included \par
in all copies or substantial portions of the Software.\par
\par
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS \par
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, \par
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL \par
THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER \par
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING \par
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER \par
DEALINGS IN THE SOFTWARE.\par
\par
\b service-identity\b0\par
\par
Copyright (c) 2014 Hynek Schlawack\par
\par
Permission is hereby granted, free of charge, to any person obtaining a copy of\par
this software and associated documentation files (the "Software"), to deal in\par
the Software without restriction, including without limitation the rights to\par
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies\par
of the Software, and to permit persons to whom the Software is furnished to do\par
so, subject to the following conditions:\par
\par
The above copyright notice and this permission notice shall be included in all\par
copies or substantial portions of the Software.\par
\par
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\par
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\par
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\par
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\par
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\par
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\par
SOFTWARE.\par
\par
\b pyopenssl\b0\par
\par
Licensed under the Apache License, Version 2.0 (the \ldblquote License\rdblquote ); you may not use this file\par
except in compliance with the License. You may obtain a copy of the License at\par
\par
{{\field{\*\fldinst{HYPERLINK http://www.apache.org/licenses/LICENSE-2.0 }}{\fldrslt{http://www.apache.org/licenses/LICENSE-2.0\ul0\cf0}}}}\f1\fs24\par
\par
Unless required by applicable law or agreed to in writing, software distributed under the \par
License is distributed on an \ldblquote AS IS\rdblquote BASIS, WITHOUT WARRANTIES OR CONDI-\par
TIONS OF ANY KIND, either express or implied. See the License for the specific lang-\par
uage governing permissions and limitations under the License.\par
\par
\b cryptography\b0\par
\par
Authors listed here: {{\field{\*\fldinst{HYPERLINK https://github.com/pyca/cryptography/blob/master/AUTHORS.rst }}{\fldrslt{https://github.com/pyca/cryptography/blob/master/AUTHORS.rst\ul0\cf0}}}}\f1\fs24\par
\par
Licensed under the Apache License, Version 2.0 (the \ldblquote License\rdblquote ); you may not use this file\par
except in compliance with the License. You may obtain a copy of the License at\par
\par
{{\field{\*\fldinst{HYPERLINK http://www.apache.org/licenses/LICENSE-2.0 }}{\fldrslt{http://www.apache.org/licenses/LICENSE-2.0\ul0\cf0}}}}\f1\fs24\par
\par
Unless required by applicable law or agreed to in writing, software distributed under the \par
License is distributed on an \ldblquote AS IS\rdblquote BASIS, WITHOUT WARRANTIES OR CONDI-\par
TIONS OF ANY KIND, either express or implied. See the License for the specific lang-\par
uage governing permissions and limitations under the License.\par
\par
\b Darkdetect\b0\par
\par
Copyright (c) 2019, Alberto Sottile\par
All rights reserved.\par
\par
Redistribution and use in source and binary forms, with or without\par
modification, are permitted provided that the following conditions are met:\par
* Redistributions of source code must retain the above copyright\par
notice, this list of conditions and the following disclaimer.\par
* Redistributions in binary form must reproduce the above copyright\par
notice, this list of conditions and the following disclaimer in the\par
documentation and/or other materials provided with the distribution.\par
* Neither the name of "darkdetect" nor the\par
names of its contributors may be used to endorse or promote products\par
derived from this software without specific prior written permission.\par
\par
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND\par
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\par
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\par
DISCLAIMED. IN NO EVENT SHALL "Alberto Sottile" BE LIABLE FOR ANY\par
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES\par
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\par
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND\par
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\par
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\par
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\par
\par
\b Python MPV JSONIPC\par
\b0\f0\lang2057 Authors listed here: {{\field{\*\fldinst{HYPERLINK https://github.com/iwalton3/python-mpv-jsonipc/ }}{\fldrslt{https://github.com/iwalton3/python-mpv-jsonipc/\ul0\cf0}}}}\f0\fs24 (principal developer Ian Walton / iwalton3)\b\f1\lang9\par
\par
\b0 Licensed under the Apache License, Version 2.0 (the \ldblquote License\rdblquote ); you may not use this file\par
except in compliance with the License. You may obtain a copy of the License at\par
\par
{{\field{\*\fldinst{HYPERLINK http://www.apache.org/licenses/LICENSE-2.0 }}{\fldrslt{http://www.apache.org/licenses/LICENSE-2.0\ul0\cf0}}}}\f1\fs24\par
\par
Unless required by applicable law or agreed to in writing, software distributed under the \par
License is distributed on an \ldblquote AS IS\rdblquote BASIS, WITHOUT WARRANTIES OR CONDI-\par
TIONS OF ANY KIND, either express or implied. See the License for the specific lang-\par
uage governing permissions and limitations under the License.\par
\b\par
\par
Icons\par
\par
\b0 Syncplay uses the following icons and images:\par
\par
- Silk icon set 1.3\par
_________________________________________\par
Mark James\par
{{\field{\*\fldinst{HYPERLINK http://www.famfamfam.com/lab/icons/silk/ }}{\fldrslt{http://www.famfamfam.com/lab/icons/silk/\ul0\cf0}}}}\f1\fs24\par
_________________________________________\par
\par
This work is licensed under a\par
Creative Commons Attribution 2.5 License.\par
[ {{\field{\*\fldinst{HYPERLINK http://creativecommons.org/licenses/by/2.5/ }}{\fldrslt{http://creativecommons.org/licenses/by/2.5/\ul0\cf0}}}}\f1\fs24 ]\par
\par
This means you may use it for any purpose,\par
and make any changes you like.\par
All I ask is that you include a link back\par
to this page in your credits.\par
\par
Are you using this icon set? Send me an email\par
(including a link or picture if available) to\par
mjames@gmail.com\par
\par
Any other questions about this icon set please\par
contact mjames@gmail.com\par
\par
- Silk Companion 1\par
\par
\b Qt for Python\
\pard Copyright Damien Guard - CC-BY 3.0\par
{{\field{\*\fldinst{HYPERLINK https://damieng.com/creative/icons/silk-companion-1-icons }}{\fldrslt{https://damieng.com/creative/icons/silk-companion-1-icons\ul0\cf0}}}}\f1\fs24\par
\par
- Padlock free icon\par
CC-BY 3.0\par
Icon made by Maxim Basinski from {{\field{\*\fldinst{HYPERLINK https://www.flaticon.com/free-icon/padlock_291248 }}{\fldrslt{https://www.flaticon.com/free-icon/padlock_291248\ul0\cf0}}}}\f1\fs24\par
\par
\b0 \
Copyright (C) 2018 The Qt Company Ltd.\
Contact: https://www.qt.io/licensing/\
\
This program is free software: you can redistribute it and/or modify\
it under the terms of the GNU Lesser General Public License as published\
by the Free Software Foundation, either version 3 of the License, or\
(at your option) any later version.\
\
This program is distributed in the hope that it will be useful,\
but WITHOUT ANY WARRANTY; without even the implied warranty of\
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\
GNU Lesser General Public License for more details.\
\
You should have received a copy of the GNU Lesser General Public License\
along with this program. If not, see <http://www.gnu.org/licenses/>.\
\
\b Qt
\b0 \
\
This program uses Qt under the GNU LGPL version 3.\
\
Qt is a C++ toolkit for cross-platform application development.\
\
Qt provides single-source portability across all major desktop operating systems. It is also available for embedded Linux and other embedded and mobile operating systems.\
\
Qt is available under three different licensing options designed to accommodate the needs of our various users.\
\
Qt licensed under our commercial license agreement is appropriate for development of proprietary/commercial software where you do not want to share any source code with third parties or otherwise cannot comply with the terms of the GNU LGPL version 3 or GNU LGPL version 2.1.\
\
Qt licensed under the GNU LGPL version 3 is appropriate for the development of Qt applications provided you can comply with the terms and conditions of the GNU LGPL version 3.\
\
Qt licensed under the GNU LGPL version 2.1 is appropriate for the development of Qt applications provided you can comply with the terms and conditions of the GNU LGPL version 2.1.\
\
Please see qt.io/licensing for an overview of Qt licensing.\
\
Copyright (C) 2017 The Qt Company Ltd and other contributors.\
\
Qt and the Qt logo are trademarks of The Qt Company Ltd.\
\
Qt is The Qt Company Ltd product developed as an open source project. See qt.io for more information.\
\
\b Twisted\
\
\b0 Copyright (c) 2001-2017\
Allen Short\
Amber Hawkie Brown\
Andrew Bennetts\
Andy Gayton\
Antoine Pitrou\
Apple Computer, Inc.\
Ashwini Oruganti\
Benjamin Bruheim\
Bob Ippolito\
Canonical Limited\
Christopher Armstrong\
David Reid\
Divmod Inc.\
Donovan Preston\
Eric Mangold\
Eyal Lotem\
Google Inc.\
Hybrid Logic Ltd.\
Hynek Schlawack\
Itamar Turner-Trauring\
James Knight\
Jason A. Mobarak\
Jean-Paul Calderone\
Jessica McKellar\
Jonathan D. Simms\
Jonathan Jacobs\
Jonathan Lange\
Julian Berman\
J\'fcrgen Hermann\
Kevin Horn\
Kevin Turner\
Laurens Van Houtven\
Mary Gardiner\
Massachusetts Institute of Technology\
Matthew Lefkowitz\
Moshe Zadka\
Paul Swartz\
Pavel Pergamenshchik\
Rackspace, US Inc.\
Ralph Meijer\
Richard Wall\
Sean Riley\
Software Freedom Conservancy\
Tavendo GmbH\
Thijs Triemstra\
Thomas Herve\
Timothy Allen\
Tom Prince\
Travis B. Hartwell\
\
and others that have contributed code to the public domain.\
\
Permission is hereby granted, free of charge, to any person obtaining\
a copy of this software and associated documentation files (the\
"Software"), to deal in the Software without restriction, including\
without limitation the rights to use, copy, modify, merge, publish,\
distribute, sublicense, and/or sell copies of the Software, and to\
permit persons to whom the Software is furnished to do so, subject to\
the following conditions:\
\
The above copyright notice and this permission notice shall be\
included in all copies or substantial portions of the Software.\
\b \
qt5reactor\
\
\b0 Copyright (c) 2001-2018\
Allen Short\
Andy Gayton\
Andrew Bennetts\
Antoine Pitrou\
Apple Computer, Inc.\
Ashwini Oruganti\
bakbuk\
Benjamin Bruheim\
Bob Ippolito\
Burak Nehbit\
Canonical Limited\
Christopher Armstrong\
Christopher R. Wood\
David Reid\
Donovan Preston\
Elvis Stansvik\
Eric Mangold\
Eyal Lotem\
Glenn Tarbox\
Google Inc.\
Hybrid Logic Ltd.\
Hynek Schlawack\
Itamar Turner-Trauring\
James Knight\
Jason A. Mobarak\
Jean-Paul Calderone\
Jessica McKellar\
Jonathan Jacobs\
Jonathan Lange\
Jonathan D. Simms\
J\'fcrgen Hermann\
Julian Berman\
Kevin Horn\
Kevin Turner\
Kyle Altendorf\
Laurens Van Houtven\
Mary Gardiner\
Matthew Lefkowitz\
Massachusetts Institute of Technology\
Moshe Zadka\
Paul Swartz\
Pavel Pergamenshchik\
Ralph Meijer\
Richard Wall\
Sean Riley\
Software Freedom Conservancy\
Tarashish Mishra\
Travis B. Hartwell\
Thijs Triemstra\
Thomas Herve\
Timothy Allen\
Tom Prince\
\
Permission is hereby granted, free of charge, to any person obtaining\
a copy of this software and associated documentation files (the\
"Software"), to deal in the Software without restriction, including\
without limitation the rights to use, copy, modify, merge, publish,\
distribute, sublicense, and/or sell copies of the Software, and to\
permit persons to whom the Software is furnished to do so, subject to\
the following conditions:\
\
The above copyright notice and this permission notice shall be\
included in all copies or substantial portions of the Software.\
\
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
\b \
\
appnope\
\b0 \
Copyright (c) 2013, Min Ragan-Kelley\
\
All rights reserved.\
\
Redistribution and use in source and binary forms, with or without\
modification, are permitted provided that the following conditions are met:\
\
Redistributions of source code must retain the above copyright notice, this\
list of conditions and the following disclaimer.\
\
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND\
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE\
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\
\
\b py2exe\
\b0 \
Copyright (c) 2000-2013 Thomas Heller, Jimmy Retzlaff\
\
Permission is hereby granted, free of charge, to any person obtaining\
a copy of this software and associated documentation files (the\
"Software"), to deal in the Software without restriction, including\
without limitation the rights to use, copy, modify, merge, publish,\
distribute, sublicense, and/or sell copies of the Software, and to\
permit persons to whom the Software is furnished to do so, subject to\
the following conditions:\
\
The above copyright notice and this permission notice shall be\
included in all copies or substantial portions of the Software.\
\
\b py2app\
\
\b0 Copyright (c) 2004 Bob Ippolito.\
\
Some parts copyright (c) 2010-2014 Ronald Oussoren\
\
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\
\
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\
\
\b dmgbuild\
\
\b0 Copyright (c) 2014 Alastair Houghton\
Copyright (c) 2017 The Qt Company Ltd.\
\
Permission is hereby granted, free of charge, to any person obtaining a copy\
of this software and associated documentation files (the "Software"), to deal\
in the Software without restriction, including without limitation the rights\
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\
copies of the Software, and to permit persons to whom the Software is\
furnished to do so, subject to the following conditions:\
\
The above copyright notice and this permission notice shall be included in\
all copies or substantial portions of the Software.\
\
\b Requests\
\
\b0 Copyright 2018 Kenneth Reitz\
\
Licensed under the Apache License, Version 2.0 (the \'93License\'94); you may not use this file\
except in compliance with the License. You may obtain a copy of the License at\
\
http://www.apache.org/licenses/LICENSE-2.0\
\
Unless required by applicable law or agreed to in writing, software distributed under the \
License is distributed on an \'93AS IS\'94 BASIS, WITHOUT WARRANTIES OR CONDI-\
TIONS OF ANY KIND, either express or implied. See the License for the specific lang-\
uage governing permissions and limitations under the License.\
\
\b mpv-repl
\b0 \
\
Copyright 2016, James Ross-Gowan\
\
Permission to use, copy, modify, and/or distribute this software for any\
purpose with or without fee is hereby granted, provided that the above\
copyright notice and this permission notice appear in all copies.\
\
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND\
FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\
PERFORMANCE OF THIS SOFTWARE.\
\
\b python-certifi
\b0 \
\
This Source Code Form is subject to the terms of the Mozilla Public License,\
v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain\
one at http://mozilla.org/MPL/2.0/.\
\
\b cffi
\b0 \
\
\pard\pardeftab720\partightenfactor0
\cf0 This package has been mostly done by Armin Rigo with help from\
Maciej Fija\uc0\u322 kowski. The idea is heavily based (although not directly\
copied) from LuaJIT ffi by Mike Pall.\
\
Other contributors:\
\
Google Inc.\
\pard\tx529\pardeftab529\pardirnatural\partightenfactor0
\cf0 \
The MIT License\
\
Permission is hereby granted, free of charge, to any person \
obtaining a copy of this software and associated documentation \
files (the "Software"), to deal in the Software without \
restriction, including without limitation the rights to use, \
copy, modify, merge, publish, distribute, sublicense, and/or \
sell copies of the Software, and to permit persons to whom the \
Software is furnished to do so, subject to the following conditions:\
\
The above copyright notice and this permission notice shall be included \
in all copies or substantial portions of the Software.\
\
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS \
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, \
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL \
THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER \
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING \
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER \
DEALINGS IN THE SOFTWARE.\
\
\b service-identity
\b0 \
\
Copyright (c) 2014 Hynek Schlawack\
\
Permission is hereby granted, free of charge, to any person obtaining a copy of\
this software and associated documentation files (the "Software"), to deal in\
the Software without restriction, including without limitation the rights to\
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies\
of the Software, and to permit persons to whom the Software is furnished to do\
so, subject to the following conditions:\
\
The above copyright notice and this permission notice shall be included in all\
copies or substantial portions of the Software.\
\
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\
SOFTWARE.\
\
\b pyopenssl
\b0 \
\
Licensed under the Apache License, Version 2.0 (the \'93License\'94); you may not use this file\
except in compliance with the License. You may obtain a copy of the License at\
\
http://www.apache.org/licenses/LICENSE-2.0\
\
Unless required by applicable law or agreed to in writing, software distributed under the \
License is distributed on an \'93AS IS\'94 BASIS, WITHOUT WARRANTIES OR CONDI-\
TIONS OF ANY KIND, either express or implied. See the License for the specific lang-\
uage governing permissions and limitations under the License.\
\
\b cryptography
\b0 \
\
Authors listed here: https://github.com/pyca/cryptography/blob/master/AUTHORS.rst\
\
Licensed under the Apache License, Version 2.0 (the \'93License\'94); you may not use this file\
except in compliance with the License. You may obtain a copy of the License at\
\
http://www.apache.org/licenses/LICENSE-2.0\
\
Unless required by applicable law or agreed to in writing, software distributed under the \
License is distributed on an \'93AS IS\'94 BASIS, WITHOUT WARRANTIES OR CONDI-\
TIONS OF ANY KIND, either express or implied. See the License for the specific lang-\
uage governing permissions and limitations under the License.\
\
\b Darkdetect
\b0 \
\
Copyright (c) 2019, Alberto Sottile\
All rights reserved.\
\
Redistribution and use in source and binary forms, with or without\
modification, are permitted provided that the following conditions are met:\
* Redistributions of source code must retain the above copyright\
notice, this list of conditions and the following disclaimer.\
* Redistributions in binary form must reproduce the above copyright\
notice, this list of conditions and the following disclaimer in the\
documentation and/or other materials provided with the distribution.\
* Neither the name of "darkdetect" nor the\
names of its contributors may be used to endorse or promote products\
derived from this software without specific prior written permission.\
\
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND\
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\
DISCLAIMED. IN NO EVENT SHALL "Alberto Sottile" BE LIABLE FOR ANY\
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES\
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND\
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\
\
\b Icons\
\
\b0 Syncplay uses the following icons and images:\
\
- Silk icon set 1.3\
_________________________________________\
Mark James\
http://www.famfamfam.com/lab/icons/silk/\
_________________________________________\
\
This work is licensed under a\
Creative Commons Attribution 2.5 License.\
[ http://creativecommons.org/licenses/by/2.5/ ]\
\
This means you may use it for any purpose,\
and make any changes you like.\
All I ask is that you include a link back\
to this page in your credits.\
\
Are you using this icon set? Send me an email\
(including a link or picture if available) to\
mjames@gmail.com\
\
Any other questions about this icon set please\
contact mjames@gmail.com\
\
- Silk Companion 1\
\
\pard\pardeftab720\partightenfactor0
\cf0 Copyright Damien Guard - CC-BY 3.0\
https://damieng.com/creative/icons/silk-companion-1-icons\
\
- Padlock free icon\
CC-BY 3.0\
Icon made by Maxim Basinski from https://www.flaticon.com/free-icon/padlock_291248\
\
\pard\tx529\pardeftab529\pardirnatural\partightenfactor0
\cf0 \
\pard\tx529\par
}

View File

@ -29,6 +29,7 @@ class ConfigurationGetter(object):
"noGui": False,
"noStore": False,
"room": "",
"roomList": [],
"password": None,
"playerPath": None,
"perPlayerArguments": None,
@ -37,6 +38,7 @@ class ConfigurationGetter(object):
"loopAtEndOfPlaylist": False,
"loopSingleFiles": False,
"onlySwitchToTrustedDomains": True,
"autosaveJoinsToList": True,
"trustedDomains": constants.DEFAULT_TRUSTED_DOMAINS,
"file": None,
"playerArgs": [],
@ -136,6 +138,7 @@ class ConfigurationGetter(object):
"loopAtEndOfPlaylist",
"loopSingleFiles",
"onlySwitchToTrustedDomains",
"autosaveJoinsToList",
"chatInputEnabled",
"chatInputFontUnderline",
"chatDirectInput",
@ -149,6 +152,7 @@ class ConfigurationGetter(object):
]
self._serialised = [
"roomList",
"perPlayerArguments",
"mediaSearchDirectories",
"trustedDomains",
@ -181,7 +185,7 @@ class ConfigurationGetter(object):
self._iniStructure = {
"server_data": ["host", "port", "password"],
"client_settings": [
"name", "room", "playerPath",
"name", "room", "roomList", "playerPath",
"perPlayerArguments", "slowdownThreshold",
"rewindThreshold", "fastforwardThreshold",
"slowOnDesync", "rewindOnDesync",
@ -192,8 +196,10 @@ class ConfigurationGetter(object):
"autoplayInitialState", "mediaSearchDirectories",
"sharedPlaylistEnabled", "loopAtEndOfPlaylist",
"loopSingleFiles",
"autoplayRequireSameFilenames",
"onlySwitchToTrustedDomains", "trustedDomains", "publicServers"],
"gui": [
"autosaveJoinsToList",
"showOSD", "showOSDWarnings", "showSlowdownOSD",
"showDifferentRoomOSD", "showSameRoomOSD",
"showNonControllerOSD", "showDurationNotification",

View File

@ -15,8 +15,11 @@ from syncplay.vendor.Qt import QtCore, QtWidgets, QtGui, __binding__, IsPySide,
from syncplay.vendor.Qt.QtCore import Qt, QSettings, QCoreApplication, QSize, QPoint, QUrl, QLine, QEventLoop, Signal
from syncplay.vendor.Qt.QtWidgets import QApplication, QLineEdit, QLabel, QCheckBox, QButtonGroup, QRadioButton, QDoubleSpinBox, QPlainTextEdit
from syncplay.vendor.Qt.QtGui import QCursor, QIcon, QImage, QDesktopServices
try:
if hasattr(QtCore.Qt, 'AA_EnableHighDpiScaling'):
QtWidgets.QApplication.setAttribute(QtCore.Qt.AA_EnableHighDpiScaling, True)
except AttributeError:
pass # To ignore error "Attribute Qt::AA_EnableHighDpiScaling must be set before QCoreApplication is created"
if hasattr(QtCore.Qt, 'AA_UseHighDpiPixmaps'):
QtWidgets.QApplication.setAttribute(QtCore.Qt.AA_UseHighDpiPixmaps, True)
if IsPySide2:
@ -156,6 +159,31 @@ class ConfigDialog(QtWidgets.QDialog):
def openHelp(self):
self.QtGui.QDesktopServices.openUrl(QUrl("https://syncplay.pl/guide/client/"))
def openRoomsDialog(self):
RoomsDialog = QtWidgets.QDialog()
RoomsLayout = QtWidgets.QGridLayout()
RoomsTextbox = QtWidgets.QPlainTextEdit()
RoomsDialog.setWindowTitle(getMessage("roomlist-msgbox-label"))
RoomsPlaylistLabel = QtWidgets.QLabel(getMessage("roomlist-msgbox-label"))
RoomsTextbox.setLineWrapMode(QtWidgets.QPlainTextEdit.NoWrap)
RoomsTextbox.setPlainText(utils.getListAsMultilineString(self.config['roomList']))
RoomsLayout.addWidget(RoomsPlaylistLabel, 0, 0, 1, 1)
RoomsLayout.addWidget(RoomsTextbox, 1, 0, 1, 1)
RoomsButtonBox = QtWidgets.QDialogButtonBox()
RoomsButtonBox.setOrientation(Qt.Horizontal)
RoomsButtonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Ok | QtWidgets.QDialogButtonBox.Cancel)
RoomsButtonBox.accepted.connect(RoomsDialog.accept)
RoomsButtonBox.rejected.connect(RoomsDialog.reject)
RoomsLayout.addWidget(RoomsButtonBox, 2, 0, 1, 1)
RoomsDialog.setLayout(RoomsLayout)
RoomsDialog.setModal(True)
RoomsDialog.show()
result = RoomsDialog.exec_()
if result == QtWidgets.QDialog.Accepted:
newRooms = utils.convertMultilineStringToList(RoomsTextbox.toPlainText())
newRooms = sorted(newRooms)
self.relistRoomList(newRooms)
def safenormcaseandpath(self, path):
if utils.isURL(path):
return path
@ -380,6 +408,29 @@ class ConfigDialog(QtWidgets.QDialog):
settings.setValue("publicServers", servers)
self.hostCombobox.setEditText(currentServer)
def fillRoomsCombobox(self):
previousRoomSelection = self.roomsCombobox.currentText()
self.roomsCombobox.clear()
for roomListValue in self.config['roomList']:
self.roomsCombobox.addItem(roomListValue)
self.roomsCombobox.setEditText(previousRoomSelection)
def relistRoomList(self, newRooms):
filteredNewRooms = [room for room in newRooms if room and not room.isspace()]
self.config['roomList'] = filteredNewRooms
self.fillRoomsCombobox()
def addRoomToList(self, newRoom=None):
if newRoom is None:
newRoom = self.roomsCombobox.currentText()
if not newRoom:
return
roomList = self.config['roomList']
if newRoom not in roomList:
roomList.append(newRoom)
roomList = sorted(roomList)
self.config['roomList'] = roomList
def showErrorMessage(self, errorMessage):
QtWidgets.QMessageBox.warning(self, "Syncplay", errorMessage)
@ -447,6 +498,9 @@ class ConfigDialog(QtWidgets.QDialog):
else:
self.config['file'] = str(self.mediapathTextbox.text())
self.config['publicServers'] = self.publicServerAddresses
self.config['room'] = self.roomsCombobox.currentText()
if self.config['autosaveJoinsToList']:
self.addRoomToList(self.config['room'])
self.pressedclosebutton = False
self.close()
@ -599,11 +653,18 @@ class ConfigDialog(QtWidgets.QDialog):
self.usernameTextbox.setObjectName("name")
self.serverpassLabel = QLabel(getMessage("password-label"), self)
self.defaultroomTextbox = QLineEdit(self)
self.roomsCombobox = QtWidgets.QComboBox(self)
self.roomsCombobox.setEditable(True)
self.fillRoomsCombobox()
self.roomsCombobox.setEditText(config['room'])
self.usernameLabel = QLabel(getMessage("name-label"), self)
self.serverpassTextbox = QLineEdit(self)
self.serverpassTextbox.setText(self.storedPassword)
self.defaultroomLabel = QLabel(getMessage("room-label"), self)
self.editRoomsButton = QtWidgets.QToolButton()
self.editRoomsButton.setIcon(QtGui.QIcon(resourcespath + 'bullet_edit_centered.png'))
self.editRoomsButton.setObjectName(constants.LOAD_SAVE_MANUALLY_MARKER + "edit-rooms")
self.editRoomsButton.released.connect(self.openRoomsDialog)
self.hostLabel.setObjectName("host")
self.hostCombobox.setObjectName(constants.LOAD_SAVE_MANUALLY_MARKER + "host")
@ -614,7 +675,7 @@ class ConfigDialog(QtWidgets.QDialog):
self.hostCombobox.editTextChanged.connect(self.updatePasswordVisibilty)
self.hostCombobox.currentIndexChanged.connect(self.updatePasswordVisibilty)
self.defaultroomLabel.setObjectName("room")
self.defaultroomTextbox.setObjectName("room")
self.roomsCombobox.setObjectName("room")
self.connectionSettingsLayout = QtWidgets.QGridLayout()
self.connectionSettingsLayout.addWidget(self.hostLabel, 0, 0)
@ -624,7 +685,8 @@ class ConfigDialog(QtWidgets.QDialog):
self.connectionSettingsLayout.addWidget(self.usernameLabel, 2, 0)
self.connectionSettingsLayout.addWidget(self.usernameTextbox, 2, 1)
self.connectionSettingsLayout.addWidget(self.defaultroomLabel, 3, 0)
self.connectionSettingsLayout.addWidget(self.defaultroomTextbox, 3, 1)
self.connectionSettingsLayout.addWidget(self.editRoomsButton, 3, 2, Qt.AlignRight)
self.connectionSettingsLayout.addWidget(self.roomsCombobox, 3, 1)
self.connectionSettingsLayout.setSpacing(10)
self.connectionSettingsGroup.setLayout(self.connectionSettingsLayout)
if isMacOS():
@ -836,6 +898,10 @@ class ConfigDialog(QtWidgets.QDialog):
self.automaticupdatesCheckbox.setObjectName("checkForUpdatesAutomatically")
self.internalSettingsLayout.addWidget(self.automaticupdatesCheckbox)
self.autosaveJoinsToListCheckbox = QCheckBox(getMessage("autosavejoinstolist-label"))
self.autosaveJoinsToListCheckbox.setObjectName("autosaveJoinsToList")
self.internalSettingsLayout.addWidget(self.autosaveJoinsToListCheckbox)
## Media path directories
self.mediasearchSettingsGroup = QtWidgets.QGroupBox(getMessage("syncplay-mediasearchdirectories-title"))
@ -1054,7 +1120,7 @@ class ConfigDialog(QtWidgets.QDialog):
font.setPointSize(self.config[configName + "RelativeFontSize"])
font.setWeight(self.config[configName + "FontWeight"])
font.setUnderline(self.config[configName + "FontUnderline"])
value, ok = QtWidgets.QFontDialog.getFont(font)
ok, value = QtWidgets.QFontDialog.getFont(font)
if ok:
self.config[configName + "FontFamily"] = value.family()
self.config[configName + "RelativeFontSize"] = value.pointSize()

View File

@ -3,12 +3,13 @@ import re
import sys
import threading
import time
import os
import syncplay
from syncplay import constants
from syncplay import utils
from syncplay.messages import getMessage
from syncplay.utils import formatTime
from syncplay.utils import formatTime, isURL
class ConsoleUI(threading.Thread):
@ -22,6 +23,9 @@ class ConsoleUI(threading.Thread):
def addClient(self, client):
self._syncplayClient = client
def addFileToPlaylist(self, file):
self._syncplayClient.playlist.addToPlaylist(file)
def drop(self):
pass
@ -85,6 +89,9 @@ class ConsoleUI(threading.Thread):
def userListChange(self):
pass
def addRoomToList(self):
pass
def fileSwitchFoundFiles(self):
pass
@ -181,6 +188,44 @@ class ConsoleUI(threading.Thread):
self._syncplayClient.identifyAsController(controlpassword)
elif command.group('command') in constants.COMMANDS_TOGGLE:
self._syncplayClient.toggleReady()
elif command.group('command') in constants.COMMANDS_QUEUE:
filename = command.group('parameter')
if filename is None:
self.showErrorMessage("No file/url given")
return
self._syncplayClient.ui.addFileToPlaylist(filename)
elif command.group('command') in constants.COMMANDS_PLAYLIST:
playlist = self._syncplayClient.playlist
playlist_elements = ["\t{}: {}".format(i+1, el) for i, el in enumerate(playlist._playlist)]
if playlist_elements:
i = playlist._playlistIndex
if i is not None and i in range(len(playlist_elements)):
playlist_elements[i] = " *" + playlist_elements[i]
self.showMessage("\n".join(playlist_elements), True)
else:
self.showMessage(getMessage("playlist-empty-error"), True)
elif command.group('command') in constants.COMMANDS_SELECT:
try:
index = int(command.group('parameter').strip()) - 1
if index < 0 or index >= len(self._syncplayClient.playlist._playlist):
raise TypeError("Invalid playlist index")
self._syncplayClient.playlist.changeToPlaylistIndex(index, resetPosition=True)
self._syncplayClient.rewindFile()
except (TypeError, AttributeError):
self.showErrorMessage(getMessage("playlist-invalid-index-error"))
elif command.group('command') in constants.COMMANDS_DELETE:
try:
index = int(command.group('parameter').strip()) - 1
self._syncplayClient.playlist.deleteAtIndex(index)
except (TypeError, AttributeError):
self.showErrorMessage(getMessage("playlist-invalid-index-error"))
else:
if self._tryAdvancedCommands(data):
return
@ -197,6 +242,10 @@ class ConsoleUI(threading.Thread):
self.showMessage(getMessage("commandlist-notification/create"), True)
self.showMessage(getMessage("commandlist-notification/auth"), True)
self.showMessage(getMessage("commandlist-notification/chat"), True)
self.showMessage(getMessage("commandList-notification/queue"), True)
self.showMessage(getMessage("commandList-notification/playlist"), True)
self.showMessage(getMessage("commandList-notification/select"), True)
self.showMessage(getMessage("commandList-notification/delete"), True)
self.showMessage(getMessage("syncplay-version-notification").format(syncplay.version), True)
self.showMessage(getMessage("more-info-notification").format(syncplay.projectURL), True)

View File

@ -21,10 +21,18 @@ from syncplay.utils import formatTime, sameFilename, sameFilesize, sameFiledurat
from syncplay.vendor import Qt
from syncplay.vendor.Qt import QtCore, QtWidgets, QtGui, __binding__, __binding_version__, __qt_version__, IsPySide, IsPySide2
from syncplay.vendor.Qt.QtCore import Qt, QSettings, QSize, QPoint, QUrl, QLine, QDateTime
applyDPIScaling = True
if isLinux():
applyDPIScaling = False
else:
applyDPIScaling = True
try:
if hasattr(QtCore.Qt, 'AA_EnableHighDpiScaling'):
QtWidgets.QApplication.setAttribute(QtCore.Qt.AA_EnableHighDpiScaling, True)
QtWidgets.QApplication.setAttribute(QtCore.Qt.AA_EnableHighDpiScaling, applyDPIScaling)
except AttributeError:
pass # To ignore error "Attribute Qt::AA_EnableHighDpiScaling must be set before QCoreApplication is created"
if hasattr(QtCore.Qt, 'AA_UseHighDpiPixmaps'):
QtWidgets.QApplication.setAttribute(QtCore.Qt.AA_UseHighDpiPixmaps, True)
QtWidgets.QApplication.setAttribute(QtCore.Qt.AA_UseHighDpiPixmaps, applyDPIScaling)
if IsPySide2:
from PySide2.QtCore import QStandardPaths
if isMacOS() and IsPySide:
@ -48,7 +56,7 @@ class ConsoleInGUI(ConsoleUI):
def showErrorMessage(self, message, criticalerror=False):
self._syncplayClient.ui.showErrorMessage(message, criticalerror)
def updateRoomName(self, room=""):
def updateRoomName(self, room=""): #bob
self._syncplayClient.ui.updateRoomName(room)
def getUserlist(self):
@ -239,6 +247,7 @@ class MainWindow(QtWidgets.QMainWindow):
sslInformation = "N/A"
sslMode = False
def setPlaylistInsertPosition(self, newPosition):
if not self.playlist.isEnabled():
return
@ -454,12 +463,33 @@ class MainWindow(QtWidgets.QMainWindow):
return f(self, *args, **kwds)
return wrapper
def fillRoomsCombobox(self):
previousRoomSelection = self.roomsCombobox.currentText()
self.roomsCombobox.clear()
for roomListValue in self.config['roomList']:
self.roomsCombobox.addItem(roomListValue)
self.roomsCombobox.setEditText(previousRoomSelection)
def addRoomToList(self, newRoom=None):
if newRoom is None:
newRoom = self.roomsCombobox.currentText()
if not newRoom:
return
roomList = self.config['roomList']
if newRoom not in roomList:
roomList.append(newRoom)
self.config['roomList'] = roomList
roomList = sorted(roomList)
self._syncplayClient.setRoomList(roomList)
self.relistRoomList(roomList)
def addClient(self, client):
self._syncplayClient = client
if self.console:
self.console.addClient(client)
self.roomInput.setText(self._syncplayClient.getRoom())
self.config = self._syncplayClient.getConfig()
self.roomsCombobox.setEditText(self._syncplayClient.getRoom())
self.fillRoomsCombobox()
try:
self.playlistGroup.blockSignals(True)
self.playlistGroup.setChecked(self.config['sharedPlaylistEnabled'])
@ -497,7 +527,7 @@ class MainWindow(QtWidgets.QMainWindow):
if not featureList["sharedPlaylists"]:
self.playlistGroup.setEnabled(False)
self.chatInput.setMaxLength(constants.MAX_CHAT_MESSAGE_LENGTH)
self.roomInput.setMaxLength(constants.MAX_ROOM_NAME_LENGTH)
#self.roomsCombobox.setMaxLength(constants.MAX_ROOM_NAME_LENGTH)
def setSSLMode(self, sslMode, sslInformation):
self.sslMode = sslMode
@ -863,7 +893,12 @@ class MainWindow(QtWidgets.QMainWindow):
self.playlist.updatePlaylistIndexIcon()
def updateRoomName(self, room=""):
self.roomInput.setText(room)
self.roomsCombobox.setEditText(room)
try:
if self.config['autosaveJoinsToList']:
self.addRoomToList(room)
except:
pass
def showDebugMessage(self, message):
print(message)
@ -874,6 +909,8 @@ class MainWindow(QtWidgets.QMainWindow):
QtWidgets.QMessageBox.critical(self, "Syncplay", message)
message = message.replace("&", "&amp;").replace('"', "&quot;").replace("<", "&lt;").replace(">", "&gt;")
message = message.replace("&lt;a href=&quot;https://syncplay.pl/trouble&quot;&gt;", '<a href="https://syncplay.pl/trouble">').replace("&lt;/a&gt;", "</a>")
message = message.replace("&lt;a href=&quot;https://mpv.io/&quot;&gt;", '<a href="https://mpv.io/">').replace("&lt;/a&gt;", "</a>")
message = message.replace("&lt;a href=&quot;https://github.com/stax76/mpv.net/&quot;&gt;", '<a href="https://github.com/stax76/mpv.net/">').replace("&lt;/a&gt;", "</a>")
message = message.replace("\n", "<br />")
if isDarkMode:
message = "<span style=\"{}\">".format(constants.STYLE_DARK_ERRORNOTIFICATION) + message + "</span>"
@ -884,16 +921,18 @@ class MainWindow(QtWidgets.QMainWindow):
@needsClient
def joinRoom(self, room=None):
if room is None:
room = self.roomInput.text()
room = self.roomsCombobox.currentText()
if room == "":
if self._syncplayClient.userlist.currentUser.file:
room = self._syncplayClient.userlist.currentUser.file["name"]
else:
room = self._syncplayClient.defaultRoom
self.roomInput.setText(room)
self.roomsCombobox.setEditText(room)
if room != self._syncplayClient.getRoom():
self._syncplayClient.setRoom(room, resetAutoplay=True)
self._syncplayClient.sendRoom()
if self.config['autosaveJoinsToList']:
self.addRoomToList(room)
def seekPositionDialog(self):
seekTime, ok = QtWidgets.QInputDialog.getText(
@ -1116,6 +1155,37 @@ class MainWindow(QtWidgets.QMainWindow):
self.addStreamToPlaylist(URI)
self.updatingPlaylist = False
def openEditRoomsDialog(self):
RoomsDialog = QtWidgets.QDialog()
RoomsLayout = QtWidgets.QGridLayout()
RoomsTextbox = QtWidgets.QPlainTextEdit()
RoomsDialog.setWindowTitle(getMessage("roomlist-msgbox-label"))
RoomsPlaylistLabel = QtWidgets.QLabel(getMessage("roomlist-msgbox-label"))
RoomsTextbox.setLineWrapMode(QtWidgets.QPlainTextEdit.NoWrap)
RoomsTextbox.setPlainText(utils.getListAsMultilineString(self.config['roomList']))
RoomsLayout.addWidget(RoomsPlaylistLabel, 0, 0, 1, 1)
RoomsLayout.addWidget(RoomsTextbox, 1, 0, 1, 1)
RoomsButtonBox = QtWidgets.QDialogButtonBox()
RoomsButtonBox.setOrientation(Qt.Horizontal)
RoomsButtonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Ok | QtWidgets.QDialogButtonBox.Cancel)
RoomsButtonBox.accepted.connect(RoomsDialog.accept)
RoomsButtonBox.rejected.connect(RoomsDialog.reject)
RoomsLayout.addWidget(RoomsButtonBox, 2, 0, 1, 1)
RoomsDialog.setLayout(RoomsLayout)
RoomsDialog.setModal(True)
RoomsDialog.show()
result = RoomsDialog.exec_()
if result == QtWidgets.QDialog.Accepted:
newRooms = utils.convertMultilineStringToList(RoomsTextbox.toPlainText())
newRooms = sorted(newRooms)
self.relistRoomList(newRooms)
self._syncplayClient.setRoomList(newRooms)
def relistRoomList(self, newRooms):
filteredNewRooms = [room for room in newRooms if room and not room.isspace()]
self.config['roomList'] = filteredNewRooms
self.fillRoomsCombobox()
@needsClient
def openEditPlaylistDialog(self):
oldPlaylist = utils.getListAsMultilineString(self.getPlaylistState())
@ -1417,14 +1487,14 @@ class MainWindow(QtWidgets.QMainWindow):
window.listSplit = QtWidgets.QSplitter(Qt.Vertical, self)
window.listSplit.addWidget(window.userlistFrame)
window.listLayout.addWidget(window.listSplit)
window.roomInput = QtWidgets.QLineEdit()
window.roomInput.setMaxLength(constants.MAX_ROOM_NAME_LENGTH)
window.roomInput.returnPressed.connect(self.joinRoom)
window.roomsCombobox = QtWidgets.QComboBox(self)
window.roomsCombobox.setEditable(True)
#window.roomsCombobox.setMaxLength(constants.MAX_ROOM_NAME_LENGTH)
window.roomButton = QtWidgets.QPushButton(
QtGui.QPixmap(resourcespath + 'door_in.png'),
getMessage("joinroom-label"))
window.roomButton.pressed.connect(self.joinRoom)
window.roomButton.setFixedWidth(window.roomButton.sizeHint().width()+3)
window.roomLayout = QtWidgets.QHBoxLayout()
window.roomFrame = QtWidgets.QFrame()
window.roomFrame.setLayout(self.roomLayout)
@ -1436,7 +1506,7 @@ class MainWindow(QtWidgets.QMainWindow):
window.roomFrame.setContentsMargins(0, 0, 0, 0)
window.roomLayout.setContentsMargins(0, 0, 0, 0)
self.roomButton.setToolTip(getMessage("joinroom-tooltip"))
window.roomLayout.addWidget(window.roomInput)
window.roomLayout.addWidget(window.roomsCombobox)
window.roomLayout.addWidget(window.roomButton)
window.roomFrame.setMaximumHeight(window.roomFrame.sizeHint().height())
window.listLayout.addWidget(window.roomFrame, Qt.AlignRight)
@ -1661,6 +1731,10 @@ class MainWindow(QtWidgets.QMainWindow):
window.windowMenu = QtWidgets.QMenu(getMessage("window-menu-label"), self)
window.editroomsAction = window.windowMenu.addAction(QtGui.QPixmap(resourcespath + 'door_open_edit.png'), getMessage("roomlist-msgbox-label"))
window.editroomsAction.triggered.connect(self.openEditRoomsDialog)
window.menuBar.addMenu(window.windowMenu)
window.playbackAction = window.windowMenu.addAction(getMessage("playbackbuttons-menu-label"))
window.playbackAction.setCheckable(True)
window.playbackAction.triggered.connect(self.updatePlaybackFrameVisibility)
@ -1668,7 +1742,7 @@ class MainWindow(QtWidgets.QMainWindow):
window.autoplayAction = window.windowMenu.addAction(getMessage("autoplay-menu-label"))
window.autoplayAction.setCheckable(True)
window.autoplayAction.triggered.connect(self.updateAutoplayVisibility)
window.menuBar.addMenu(window.windowMenu)
# Help menu
@ -1876,7 +1950,7 @@ class MainWindow(QtWidgets.QMainWindow):
self.playlist.setPlaylistIndexFilename(filename)
def addFileToPlaylist(self, filePath, index=-1):
if os.path.isfile(filePath):
if not isURL(filePath):
self.removePlaylistNote()
filename = os.path.basename(filePath)
if self.noPlaylistDuplicates(filename):
@ -1885,7 +1959,7 @@ class MainWindow(QtWidgets.QMainWindow):
else:
self.playlist.insertItem(index, filename)
self._syncplayClient.fileSwitch.notifyUserIfFileNotInMediaDirectory(filename, filePath)
elif isURL(filePath):
else:
self.removePlaylistNote()
if self.noPlaylistDuplicates(filePath):
if self.playlist == -1 or index == -1:

View File

@ -0,0 +1,195 @@
Apache License
==============
_Version 2.0, January 2004_
_&lt;<http://www.apache.org/licenses/>&gt;_
### Terms and Conditions for use, reproduction, and distribution
#### 1. Definitions
“License” shall mean the terms and conditions for use, reproduction, and
distribution as defined by Sections 1 through 9 of this document.
“Licensor” shall mean the copyright owner or entity authorized by the copyright
owner that is granting the License.
“Legal Entity” shall mean the union of the acting entity and all other entities
that control, are controlled by, or are under common control with that entity.
For the purposes of this definition, “control” means **(i)** the power, direct or
indirect, to cause the direction or management of such entity, whether by
contract or otherwise, or **(ii)** ownership of fifty percent (50%) or more of the
outstanding shares, or **(iii)** beneficial ownership of such entity.
“You” (or “Your”) shall mean an individual or Legal Entity exercising
permissions granted by this License.
“Source” form shall mean the preferred form for making modifications, including
but not limited to software source code, documentation source, and configuration
files.
“Object” form shall mean any form resulting from mechanical transformation or
translation of a Source form, including but not limited to compiled object code,
generated documentation, and conversions to other media types.
“Work” shall mean the work of authorship, whether in Source or Object form, made
available under the License, as indicated by a copyright notice that is included
in or attached to the work (an example is provided in the Appendix below).
“Derivative Works” shall mean any work, whether in Source or Object form, that
is based on (or derived from) the Work and for which the editorial revisions,
annotations, elaborations, or other modifications represent, as a whole, an
original work of authorship. For the purposes of this License, Derivative Works
shall not include works that remain separable from, or merely link (or bind by
name) to the interfaces of, the Work and Derivative Works thereof.
“Contribution” shall mean any work of authorship, including the original version
of the Work and any modifications or additions to that Work or Derivative Works
thereof, that is intentionally submitted to Licensor for inclusion in the Work
by the copyright owner or by an individual or Legal Entity authorized to submit
on behalf of the copyright owner. For the purposes of this definition,
“submitted” means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems, and
issue tracking systems that are managed by, or on behalf of, the Licensor for
the purpose of discussing and improving the Work, but excluding communication
that is conspicuously marked or otherwise designated in writing by the copyright
owner as “Not a Contribution.”
“Contributor” shall mean Licensor and any individual or Legal Entity on behalf
of whom a Contribution has been received by Licensor and subsequently
incorporated within the Work.
#### 2. Grant of Copyright License
Subject to the terms and conditions of this License, each Contributor hereby
grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free,
irrevocable copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the Work and such
Derivative Works in Source or Object form.
#### 3. Grant of Patent License
Subject to the terms and conditions of this License, each Contributor hereby
grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free,
irrevocable (except as stated in this section) patent license to make, have
made, use, offer to sell, sell, import, and otherwise transfer the Work, where
such license applies only to those patent claims licensable by such Contributor
that are necessarily infringed by their Contribution(s) alone or by combination
of their Contribution(s) with the Work to which such Contribution(s) was
submitted. If You institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work or a
Contribution incorporated within the Work constitutes direct or contributory
patent infringement, then any patent licenses granted to You under this License
for that Work shall terminate as of the date such litigation is filed.
#### 4. Redistribution
You may reproduce and distribute copies of the Work or Derivative Works thereof
in any medium, with or without modifications, and in Source or Object form,
provided that You meet the following conditions:
* **(a)** You must give any other recipients of the Work or Derivative Works a copy of
this License; and
* **(b)** You must cause any modified files to carry prominent notices stating that You
changed the files; and
* **(c)** You must retain, in the Source form of any Derivative Works that You distribute,
all copyright, patent, trademark, and attribution notices from the Source form
of the Work, excluding those notices that do not pertain to any part of the
Derivative Works; and
* **(d)** If the Work includes a “NOTICE” text file as part of its distribution, then any
Derivative Works that You distribute must include a readable copy of the
attribution notices contained within such NOTICE file, excluding those notices
that do not pertain to any part of the Derivative Works, in at least one of the
following places: within a NOTICE text file distributed as part of the
Derivative Works; within the Source form or documentation, if provided along
with the Derivative Works; or, within a display generated by the Derivative
Works, if and wherever such third-party notices normally appear. The contents of
the NOTICE file are for informational purposes only and do not modify the
License. You may add Your own attribution notices within Derivative Works that
You distribute, alongside or as an addendum to the NOTICE text from the Work,
provided that such additional attribution notices cannot be construed as
modifying the License.
You may add Your own copyright statement to Your modifications and may provide
additional or different license terms and conditions for use, reproduction, or
distribution of Your modifications, or for any such Derivative Works as a whole,
provided Your use, reproduction, and distribution of the Work otherwise complies
with the conditions stated in this License.
#### 5. Submission of Contributions
Unless You explicitly state otherwise, any Contribution intentionally submitted
for inclusion in the Work by You to the Licensor shall be under the terms and
conditions of this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify the terms of
any separate license agreement you may have executed with Licensor regarding
such Contributions.
#### 6. Trademarks
This License does not grant permission to use the trade names, trademarks,
service marks, or product names of the Licensor, except as required for
reasonable and customary use in describing the origin of the Work and
reproducing the content of the NOTICE file.
#### 7. Disclaimer of Warranty
Unless required by applicable law or agreed to in writing, Licensor provides the
Work (and each Contributor provides its Contributions) on an “AS IS” BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied,
including, without limitation, any warranties or conditions of TITLE,
NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are
solely responsible for determining the appropriateness of using or
redistributing the Work and assume any risks associated with Your exercise of
permissions under this License.
#### 8. Limitation of Liability
In no event and under no legal theory, whether in tort (including negligence),
contract, or otherwise, unless required by applicable law (such as deliberate
and grossly negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special, incidental,
or consequential damages of any character arising as a result of this License or
out of the use or inability to use the Work (including but not limited to
damages for loss of goodwill, work stoppage, computer failure or malfunction, or
any and all other commercial damages or losses), even if such Contributor has
been advised of the possibility of such damages.
#### 9. Accepting Warranty or Additional Liability
While redistributing the Work or Derivative Works thereof, You may choose to
offer, and charge a fee for, acceptance of support, warranty, indemnity, or
other liability obligations and/or rights consistent with this License. However,
in accepting such obligations, You may act only on Your own behalf and on Your
sole responsibility, not on behalf of any other Contributor, and only if You
agree to indemnify, defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason of your
accepting any such warranty or additional liability.
_END OF TERMS AND CONDITIONS_
### APPENDIX: How to apply the Apache License to your work
To apply the Apache License to your work, attach the following boilerplate
notice, with the fields enclosed by brackets `[]` replaced with your own
identifying information. (Don't include the brackets!) The text should be
enclosed in the appropriate comment syntax for the file format. We also
recommend that a file or class name and description of purpose be included on
the same “printed page” as the copyright notice for easier identification within
third-party archives.
Copyright [yyyy] [name of copyright owner]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

View File

@ -0,0 +1,56 @@
# Python MPV JSONIPC
This implements an interface similar to `python-mpv`, but it uses the JSON IPC protocol instead of the C API. This means
you can control external instances of MPV including players like SMPlayer, and it can use MPV players that are prebuilt
instead of needing `libmpv1`. It may also be more resistant to crashes such as Segmentation Faults, but since it isn't
directly communicating with MPV via the C API the performance will be worse.
Please note that this only implements the subset of `python-mpv` that is used by `plex-mpv-shim` and
`jellyfin-mpv-shim`. Other functionality has not been implemented.
## Installation
```bash
sudo pip3 install python-mpv-jsonipc
```
## Basic usage
Create an instance of MPV. You can use an already running MPV or have the library start a
managed copy of MPV. Command arguments can be specified when initializing MPV if you are
starting a managed copy of MPV.
Please also see the [API Documentation](https://github.com/iwalton3/python-mpv-jsonipc/blob/master/docs.md).
```python
from python_mpv_jsonipc import MPV
# Uses MPV that is in the PATH.
mpv = MPV()
# Use MPV that is running and connected to /tmp/mpv-socket.
mpv = MPV(start_mpv=False, ipc_socket="/tmp/mpv-socket")
# Uses MPV that is found at /path/to/mpv.
mpv = MPV(mpv_location="/path/to/mpv")
# After you have an MPV, you can read and set (if applicable) properties.
mpv.volume # 100.0 by default
mpv.volume = 20
# You can also send commands.
mpv.command_name(arg1, arg2)
# Bind to key press events with a decorator
@mpv.on_key_press("space")
def space_handler():
pass
# You can also observe and wait for properties.
@mpv.property_observer("eof-reached")
def handle_eof(name, value):
pass
# Or simply wait for the value to change once.
mpv.wait_for_property("duration")
```

View File

View File

@ -0,0 +1,460 @@
<a name=".python_mpv_jsonipc"></a>
## python\_mpv\_jsonipc
<a name=".python_mpv_jsonipc.MPVError"></a>
### MPVError
``` python
class MPVError(Exception):
| MPVError(**args, ****kwargs)
```
An error originating from MPV or due to a problem with MPV.
<a name=".python_mpv_jsonipc.WindowsSocket"></a>
### WindowsSocket
``` python
class WindowsSocket(threading.Thread)
```
Wraps a Windows named pipe in a high-level interface. (Internal)
Data is automatically encoded and decoded as JSON. The callback
function will be called for each inbound message.
<a name=".python_mpv_jsonipc.WindowsSocket.__init__"></a>
#### \_\_init\_\_
``` python
| __init__(ipc_socket, callback=None, quit_callback=None)
```
Create the wrapper.
**ipc\_socket** is the pipe name. (Not including \\\\.\\pipe\\)
**callback(json\_data)** is the function for recieving events.
<a name=".python_mpv_jsonipc.WindowsSocket.stop"></a>
#### stop
``` python
| stop()
```
Terminate the thread.
<a name=".python_mpv_jsonipc.WindowsSocket.send"></a>
#### send
``` python
| send(data)
```
Send **data** to the pipe, encoded as JSON.
<a name=".python_mpv_jsonipc.WindowsSocket.run"></a>
#### run
``` python
| run()
```
Process pipe events. Do not run this directly. Use **start**.
<a name=".python_mpv_jsonipc.UnixSocket"></a>
### UnixSocket
``` python
class UnixSocket(threading.Thread)
```
Wraps a Unix/Linux socket in a high-level interface. (Internal)
Data is automatically encoded and decoded as JSON. The callback
function will be called for each inbound message.
<a name=".python_mpv_jsonipc.UnixSocket.__init__"></a>
#### \_\_init\_\_
``` python
| __init__(ipc_socket, callback=None, quit_callback=None)
```
Create the wrapper.
**ipc\_socket** is the path to the socket.
**callback(json\_data)** is the function for recieving events.
<a name=".python_mpv_jsonipc.UnixSocket.stop"></a>
#### stop
``` python
| stop()
```
Terminate the thread.
<a name=".python_mpv_jsonipc.UnixSocket.send"></a>
#### send
``` python
| send(data)
```
Send **data** to the socket, encoded as JSON.
<a name=".python_mpv_jsonipc.UnixSocket.run"></a>
#### run
``` python
| run()
```
Process socket events. Do not run this directly. Use **start**.
<a name=".python_mpv_jsonipc.MPVProcess"></a>
### MPVProcess
``` python
class MPVProcess()
```
Manages an MPV process, ensuring the socket or pipe is available. (Internal)
<a name=".python_mpv_jsonipc.MPVProcess.__init__"></a>
#### \_\_init\_\_
``` python
| __init__(ipc_socket, mpv_location=None, ****kwargs)
```
Create and start the MPV process. Will block until socket/pipe is available.
**ipc\_socket** is the path to the Unix/Linux socket or name of the Windows pipe.
**mpv\_location** is the path to mpv. If left unset it tries the one in the PATH.
All other arguments are forwarded to MPV as command-line arguments.
<a name=".python_mpv_jsonipc.MPVProcess.stop"></a>
#### stop
``` python
| stop()
```
Terminate the process.
<a name=".python_mpv_jsonipc.MPVInter"></a>
### MPVInter
``` python
class MPVInter()
```
Low-level interface to MPV. Does NOT manage an mpv process. (Internal)
<a name=".python_mpv_jsonipc.MPVInter.__init__"></a>
#### \_\_init\_\_
``` python
| __init__(ipc_socket, callback=None, quit_callback=None)
```
Create the wrapper.
**ipc\_socket** is the path to the Unix/Linux socket or name of the Windows pipe.
**callback(event\_name, data)** is the function for recieving events.
<a name=".python_mpv_jsonipc.MPVInter.stop"></a>
#### stop
``` python
| stop()
```
Terminate the underlying connection.
<a name=".python_mpv_jsonipc.MPVInter.event_callback"></a>
#### event\_callback
``` python
| event_callback(data)
```
Internal callback for recieving events from MPV.
<a name=".python_mpv_jsonipc.MPVInter.command"></a>
#### command
``` python
| command(command, **args)
```
Issue a command to MPV. Will block until completed or timeout is reached.
**command** is the name of the MPV command
All further arguments are forwarded to the MPV command.
Throws TimeoutError if timeout of 120 seconds is reached.
<a name=".python_mpv_jsonipc.EventHandler"></a>
### EventHandler
``` python
class EventHandler(threading.Thread)
```
Event handling thread. (Internal)
<a name=".python_mpv_jsonipc.EventHandler.__init__"></a>
#### \_\_init\_\_
``` python
| __init__()
```
Create an instance of the thread.
<a name=".python_mpv_jsonipc.EventHandler.put_task"></a>
#### put\_task
``` python
| put_task(func, **args)
```
Put a new task to the thread.
**func** is the function to call
All further arguments are forwarded to **func**.
<a name=".python_mpv_jsonipc.EventHandler.stop"></a>
#### stop
``` python
| stop()
```
Terminate the thread.
<a name=".python_mpv_jsonipc.EventHandler.run"></a>
#### run
``` python
| run()
```
Process socket events. Do not run this directly. Use **start**.
<a name=".python_mpv_jsonipc.MPV"></a>
### MPV
``` python
class MPV()
```
The main MPV interface class. Use this to control MPV.
This will expose all mpv commands as callable methods and all properties.
You can set properties and call the commands directly.
Please note that if you are using a really old MPV version, a fallback command
list is used. Not all commands may actually work when this fallback is used.
<a name=".python_mpv_jsonipc.MPV.__init__"></a>
#### \_\_init\_\_
``` python
| __init__(start_mpv=True, ipc_socket=None, mpv_location=None, log_handler=None, loglevel=None, quit_callback=None, ****kwargs)
```
Create the interface to MPV and process instance.
**start\_mpv** will start an MPV process if true. (Default: True)
**ipc\_socket** is the path to the Unix/Linux socket or name of Windows pipe. (Default: Random Temp File)
**mpv\_location** is the location of MPV for **start\_mpv**. (Default: Use MPV in PATH)
**log\_handler(level, prefix, text)** is an optional handler for log events. (Default: Disabled)
**loglevel** is the level for log messages. Levels are fatal, error, warn, info, v, debug, trace. (Default: Disabled)
All other arguments are forwarded to MPV as command-line arguments if **start\_mpv** is used.
<a name=".python_mpv_jsonipc.MPV.bind_event"></a>
#### bind\_event
``` python
| bind_event(name, callback)
```
Bind a callback to an MPV event.
**name** is the MPV event name.
**callback(event\_data)** is the function to call.
<a name=".python_mpv_jsonipc.MPV.on_event"></a>
#### on\_event
``` python
| on_event(name)
```
Decorator to bind a callback to an MPV event.
@on\_event(name)
def my\_callback(event\_data):
pass
<a name=".python_mpv_jsonipc.MPV.event_callback"></a>
#### event\_callback
``` python
| event_callback(name)
```
An alias for on\_event to maintain compatibility with python-mpv.
<a name=".python_mpv_jsonipc.MPV.on_key_press"></a>
#### on\_key\_press
``` python
| on_key_press(name)
```
Decorator to bind a callback to an MPV keypress event.
@on\_key\_press(key\_name)
def my\_callback():
pass
<a name=".python_mpv_jsonipc.MPV.bind_key_press"></a>
#### bind\_key\_press
``` python
| bind_key_press(name, callback)
```
Bind a callback to an MPV keypress event.
**name** is the key symbol.
**callback()** is the function to call.
<a name=".python_mpv_jsonipc.MPV.bind_property_observer"></a>
#### bind\_property\_observer
``` python
| bind_property_observer(name, callback)
```
Bind a callback to an MPV property change.
**name** is the property name.
**callback(name, data)** is the function to call.
Returns a unique observer ID needed to destroy the observer.
<a name=".python_mpv_jsonipc.MPV.unbind_property_observer"></a>
#### unbind\_property\_observer
``` python
| unbind_property_observer(observer_id)
```
Remove callback to an MPV property change.
**observer\_id** is the id returned by bind\_property\_observer.
<a name=".python_mpv_jsonipc.MPV.property_observer"></a>
#### property\_observer
``` python
| property_observer(name)
```
Decorator to bind a callback to an MPV property change.
@property\_observer(property\_name)
def my\_callback(name, data):
pass
<a name=".python_mpv_jsonipc.MPV.wait_for_property"></a>
#### wait\_for\_property
``` python
| wait_for_property(name)
```
Waits for the value of a property to change.
**name** is the name of the property.
<a name=".python_mpv_jsonipc.MPV.play"></a>
#### play
``` python
| play(url)
```
Play the specified URL. An alias to loadfile().
<a name=".python_mpv_jsonipc.MPV.terminate"></a>
#### terminate
``` python
| terminate()
```
Terminate the connection to MPV and process (if **start\_mpv** is used).
<a name=".python_mpv_jsonipc.MPV.command"></a>
#### command
``` python
| command(command, **args)
```
Send a command to MPV. All commands are bound to the class by default,
except JSON IPC specific commands. This may also be useful to retain
compatibility with python-mpv, as it does not bind all of the commands.
**command** is the command name.
All further arguments are forwarded to the MPV command.

View File

@ -0,0 +1,650 @@
import threading
import socket
import json
import os
import time
import subprocess
import random
import queue
import logging
log = logging.getLogger('mpv-jsonipc')
if os.name == "nt":
import _winapi
from multiprocessing.connection import PipeConnection
TIMEOUT = 120
# Older MPV versions do not allow us to dynamically retrieve the command list.
FALLBACK_COMMAND_LIST = [
'ignore', 'seek', 'revert-seek', 'quit', 'quit-watch-later', 'stop', 'frame-step', 'frame-back-step',
'playlist-next', 'playlist-prev', 'playlist-shuffle', 'playlist-unshuffle', 'sub-step', 'sub-seek',
'print-text', 'show-text', 'expand-text', 'expand-path', 'show-progress', 'sub-add', 'audio-add',
'video-add', 'sub-remove', 'audio-remove', 'video-remove', 'sub-reload', 'audio-reload', 'video-reload',
'rescan-external-files', 'screenshot', 'screenshot-to-file', 'screenshot-raw', 'loadfile', 'loadlist',
'playlist-clear', 'playlist-remove', 'playlist-move', 'run', 'subprocess', 'set', 'change-list', 'add',
'cycle', 'multiply', 'cycle-values', 'enable-section', 'disable-section', 'define-section', 'ab-loop',
'drop-buffers', 'af', 'vf', 'af-command', 'vf-command', 'ao-reload', 'script-binding', 'script-message',
'script-message-to', 'overlay-add', 'overlay-remove', 'osd-overlay', 'write-watch-later-config',
'hook-add', 'hook-ack', 'mouse', 'keybind', 'keypress', 'keydown', 'keyup', 'apply-profile',
'load-script', 'dump-cache', 'ab-loop-dump-cache', 'ab-loop-align-cache']
class MPVError(Exception):
"""An error originating from MPV or due to a problem with MPV."""
def __init__(self, *args, **kwargs):
super(MPVError, self).__init__(*args, **kwargs)
class WindowsSocket(threading.Thread):
"""
Wraps a Windows named pipe in a high-level interface. (Internal)
Data is automatically encoded and decoded as JSON. The callback
function will be called for each inbound message.
"""
def __init__(self, ipc_socket, callback=None, quit_callback=None):
"""Create the wrapper.
*ipc_socket* is the pipe name. (Not including \\\\.\\pipe\\)
*callback(json_data)* is the function for recieving events.
*quit_callback* is called when the socket connection dies.
"""
ipc_socket = "\\\\.\\pipe\\" + ipc_socket
self.callback = callback
self.quit_callback = quit_callback
access = _winapi.GENERIC_READ | _winapi.GENERIC_WRITE
limit = 5 # Connection may fail at first. Try 5 times.
for _ in range(limit):
try:
pipe_handle = _winapi.CreateFile(
ipc_socket, access, 0, _winapi.NULL, _winapi.OPEN_EXISTING,
_winapi.FILE_FLAG_OVERLAPPED, _winapi.NULL
)
break
except OSError:
time.sleep(1)
else:
raise MPVError("Cannot connect to pipe.")
self.socket = PipeConnection(pipe_handle)
if self.callback is None:
self.callback = lambda data: None
threading.Thread.__init__(self)
def stop(self, join=True):
"""Terminate the thread."""
if self.socket is not None:
self.socket.close()
if join:
self.join()
def send(self, data):
"""Send *data* to the pipe, encoded as JSON."""
try:
self.socket.send_bytes(json.dumps(data).encode('utf-8') + b'\n')
except OSError as ex:
if len(ex.args) == 1 and ex.args[0] == "handle is closed":
raise BrokenPipeError("handle is closed")
raise ex
def run(self):
"""Process pipe events. Do not run this directly. Use *start*."""
data = b''
try:
while True:
current_data = self.socket.recv_bytes(2048)
if current_data == b'':
break
data += current_data
if data[-1] != 10:
continue
data = data.decode('utf-8', 'ignore').encode('utf-8')
for item in data.split(b'\n'):
if item == b'':
continue
json_data = json.loads(item)
self.callback(json_data)
data = b''
except EOFError:
if self.quit_callback:
self.quit_callback()
class UnixSocket(threading.Thread):
"""
Wraps a Unix/Linux socket in a high-level interface. (Internal)
Data is automatically encoded and decoded as JSON. The callback
function will be called for each inbound message.
"""
def __init__(self, ipc_socket, callback=None, quit_callback=None):
"""Create the wrapper.
*ipc_socket* is the path to the socket.
*callback(json_data)* is the function for recieving events.
*quit_callback* is called when the socket connection dies.
"""
self.ipc_socket = ipc_socket
self.callback = callback
self.quit_callback = quit_callback
self.socket = socket.socket(socket.AF_UNIX)
self.socket.connect(self.ipc_socket)
if self.callback is None:
self.callback = lambda data: None
threading.Thread.__init__(self)
def stop(self, join=True):
"""Terminate the thread."""
if self.socket is not None:
try:
self.socket.shutdown(socket.SHUT_WR)
self.socket.close()
self.socket = None
except OSError:
pass # Ignore socket close failure.
if join:
self.join()
def send(self, data):
"""Send *data* to the socket, encoded as JSON."""
if self.socket is None:
raise BrokenPipeError("socket is closed")
self.socket.send(json.dumps(data).encode('utf-8') + b'\n')
def run(self):
"""Process socket events. Do not run this directly. Use *start*."""
data = b''
while True:
current_data = self.socket.recv(1024)
if current_data == b'':
break
data += current_data
if data[-1] != 10:
continue
data = data.decode('utf-8', 'ignore').encode('utf-8')
for item in data.split(b'\n'):
if item == b'':
continue
json_data = json.loads(item)
self.callback(json_data)
data = b''
if self.quit_callback:
self.quit_callback()
class MPVProcess:
"""
Manages an MPV process, ensuring the socket or pipe is available. (Internal)
"""
def __init__(self, ipc_socket, mpv_location=None, env=None, **kwargs):
"""
Create and start the MPV process. Will block until socket/pipe is available.
*ipc_socket* is the path to the Unix/Linux socket or name of the Windows pipe.
*mpv_location* is the path to mpv. If left unset it tries the one in the PATH.
All other arguments are forwarded to MPV as command-line arguments.
"""
if mpv_location is None:
if os.name == 'nt':
mpv_location = "mpv.exe"
else:
mpv_location = "mpv"
log.debug("Staring MPV from {0}.".format(mpv_location))
if os.name == 'nt':
ipc_socket = "\\\\.\\pipe\\" + ipc_socket
if os.name != 'nt' and os.path.exists(ipc_socket):
os.remove(ipc_socket)
log.debug("Using IPC socket {0} for MPV.".format(ipc_socket))
self.ipc_socket = ipc_socket
args = self._get_arglist(mpv_location, **kwargs)
self._start_process(ipc_socket, args, env=env)
def _start_process(self, ipc_socket, args, env):
self.process = subprocess.Popen(args, env=env)
ipc_exists = False
for _ in range(100): # Give MPV 10 seconds to start.
time.sleep(0.1)
self.process.poll()
if os.path.exists(ipc_socket):
ipc_exists = True
log.debug("Found MPV socket.")
break
if self.process.returncode is not None:
log.error("MPV failed with returncode {0}.".format(self.process.returncode))
break
else:
self.process.terminate()
raise MPVError("MPV start timed out.")
if not ipc_exists or self.process.returncode is not None:
self.process.terminate()
raise MPVError("MPV not started.")
def _set_default(self, prop_dict, key, value):
if key not in prop_dict:
prop_dict[key] = value
def _get_arglist(self, exec_location, **kwargs):
args = [exec_location]
self._set_default(kwargs, "idle", True)
self._set_default(kwargs, "input_ipc_server", self.ipc_socket)
self._set_default(kwargs, "input_terminal", False)
self._set_default(kwargs, "terminal", False)
args.extend("--{0}={1}".format(v[0].replace("_", "-"), self._mpv_fmt(v[1]))
for v in kwargs.items())
return args
def _mpv_fmt(self, data):
if data == True:
return "yes"
elif data == False:
return "no"
else:
return data
def stop(self):
"""Terminate the process."""
self.process.terminate()
if os.name != 'nt' and os.path.exists(self.ipc_socket):
os.remove(self.ipc_socket)
class MPVInter:
"""
Low-level interface to MPV. Does NOT manage an mpv process. (Internal)
"""
def __init__(self, ipc_socket, callback=None, quit_callback=None):
"""Create the wrapper.
*ipc_socket* is the path to the Unix/Linux socket or name of the Windows pipe.
*callback(event_name, data)* is the function for recieving events.
*quit_callback* is called when the socket connection to MPV dies.
"""
Socket = UnixSocket
if os.name == 'nt':
Socket = WindowsSocket
self.callback = callback
self.quit_callback = quit_callback
if self.callback is None:
self.callback = lambda event, data: None
self.socket = Socket(ipc_socket, self.event_callback, self.quit_callback)
self.socket.start()
self.command_id = 1
self.rid_lock = threading.Lock()
self.socket_lock = threading.Lock()
self.cid_result = {}
self.cid_wait = {}
def stop(self, join=True):
"""Terminate the underlying connection."""
self.socket.stop(join)
def event_callback(self, data):
"""Internal callback for recieving events from MPV."""
if "request_id" in data:
self.cid_result[data["request_id"]] = data
self.cid_wait[data["request_id"]].set()
elif "event" in data:
self.callback(data["event"], data)
def command(self, command, *args):
"""
Issue a command to MPV. Will block until completed or timeout is reached.
*command* is the name of the MPV command
All further arguments are forwarded to the MPV command.
Throws TimeoutError if timeout of 120 seconds is reached.
"""
self.rid_lock.acquire()
command_id = self.command_id
self.command_id += 1
self.rid_lock.release()
event = threading.Event()
self.cid_wait[command_id] = event
command_list = [command]
command_list.extend(args)
try:
self.socket_lock.acquire()
self.socket.send({"command":command_list, "request_id": command_id})
finally:
self.socket_lock.release()
has_event = event.wait(timeout=TIMEOUT)
if has_event:
data = self.cid_result[command_id]
del self.cid_result[command_id]
del self.cid_wait[command_id]
if data["error"] != "success":
if data["error"] == "property unavailable":
return None
raise MPVError(data["error"])
else:
return data.get("data")
else:
raise TimeoutError("No response from MPV.")
class EventHandler(threading.Thread):
"""Event handling thread. (Internal)"""
def __init__(self):
"""Create an instance of the thread."""
self.queue = queue.Queue()
threading.Thread.__init__(self)
def put_task(self, func, *args):
"""
Put a new task to the thread.
*func* is the function to call
All further arguments are forwarded to *func*.
"""
self.queue.put((func, args))
def stop(self, join=True):
"""Terminate the thread."""
self.queue.put("quit")
self.join(join)
def run(self):
"""Process socket events. Do not run this directly. Use *start*."""
while True:
event = self.queue.get()
if event == "quit":
break
try:
event[0](*event[1])
except Exception:
log.error("EventHandler caught exception from {0}.".format(event), exc_info=1)
class MPV:
"""
The main MPV interface class. Use this to control MPV.
This will expose all mpv commands as callable methods and all properties.
You can set properties and call the commands directly.
Please note that if you are using a really old MPV version, a fallback command
list is used. Not all commands may actually work when this fallback is used.
"""
def __init__(self, start_mpv=True, ipc_socket=None, mpv_location=None,
log_handler=None, loglevel=None, quit_callback=None, **kwargs):
"""
Create the interface to MPV and process instance.
*start_mpv* will start an MPV process if true. (Default: True)
*ipc_socket* is the path to the Unix/Linux socket or name of Windows pipe. (Default: Random Temp File)
*mpv_location* is the location of MPV for *start_mpv*. (Default: Use MPV in PATH)
*log_handler(level, prefix, text)* is an optional handler for log events. (Default: Disabled)
*loglevel* is the level for log messages. Levels are fatal, error, warn, info, v, debug, trace. (Default: Disabled)
*quit_callback* is called when the socket connection to MPV dies.
All other arguments are forwarded to MPV as command-line arguments if *start_mpv* is used.
"""
self.properties = {}
self.event_bindings = {}
self.key_bindings = {}
self.property_bindings = {}
self.mpv_process = None
self.mpv_inter = None
self.quit_callback = quit_callback
self.event_handler = EventHandler()
self.event_handler.start()
if ipc_socket is None:
rand_file = "mpv{0}".format(random.randint(0, 2**48))
if os.name == "nt":
ipc_socket = rand_file
else:
ipc_socket = "/tmp/{0}".format(rand_file)
if start_mpv:
self._start_mpv(ipc_socket, mpv_location, **kwargs)
self.mpv_inter = MPVInter(ipc_socket, self._callback, self._quit_callback)
self.properties = set(x.replace("-", "_") for x in self.command("get_property", "property-list"))
try:
command_list = [x["name"] for x in self.command("get_property", "command-list")]
except MPVError:
log.warning("Using fallback command list.")
command_list = FALLBACK_COMMAND_LIST
for command in command_list:
object.__setattr__(self, command.replace("-", "_"), self._get_wrapper(command))
self._dir = list(self.properties)
self._dir.extend(object.__dir__(self))
self.observer_id = 1
self.observer_lock = threading.Lock()
self.keybind_id = 1
self.keybind_lock = threading.Lock()
if log_handler is not None and loglevel is not None:
self.command("request_log_messages", loglevel)
@self.on_event("log-message")
def log_handler_event(data):
self.event_handler.put_task(log_handler, data["level"], data["prefix"], data["text"].strip())
@self.on_event("property-change")
def event_handler(data):
if data.get("id") in self.property_bindings:
self.event_handler.put_task(self.property_bindings[data["id"]], data["name"], data.get("data"))
@self.on_event("client-message")
def client_message_handler(data):
args = data["args"]
if len(args) == 2 and args[0] == "custom-bind":
self.event_handler.put_task(self.key_bindings[args[1]])
def _start_mpv(self, ipc_socket, mpv_location, **kwargs):
# Attempt to start MPV 3 times.
for i in range(3):
try:
self.mpv_process = MPVProcess(ipc_socket, mpv_location, **kwargs)
break
except MPVError:
log.warning("MPV start failed.", exc_info=1)
continue
else:
raise MPVError("MPV process retry limit reached.")
def _quit_callback(self):
"""
Internal handler for quit events.
"""
if self.quit_callback:
self.quit_callback()
self.terminate(join=False)
def bind_event(self, name, callback):
"""
Bind a callback to an MPV event.
*name* is the MPV event name.
*callback(event_data)* is the function to call.
"""
if name not in self.event_bindings:
self.event_bindings[name] = set()
self.event_bindings[name].add(callback)
def on_event(self, name):
"""
Decorator to bind a callback to an MPV event.
@on_event(name)
def my_callback(event_data):
pass
"""
def wrapper(func):
self.bind_event(name, func)
return func
return wrapper
# Added for compatibility.
def event_callback(self, name):
"""An alias for on_event to maintain compatibility with python-mpv."""
return self.on_event(name)
def on_key_press(self, name):
"""
Decorator to bind a callback to an MPV keypress event.
@on_key_press(key_name)
def my_callback():
pass
"""
def wrapper(func):
self.bind_key_press(name, func)
return func
return wrapper
def bind_key_press(self, name, callback):
"""
Bind a callback to an MPV keypress event.
*name* is the key symbol.
*callback()* is the function to call.
"""
self.keybind_lock.acquire()
keybind_id = self.keybind_id
self.keybind_id += 1
self.keybind_lock.release()
bind_name = "bind{0}".format(keybind_id)
self.key_bindings["bind{0}".format(keybind_id)] = callback
try:
self.keybind(name, "script-message custom-bind {0}".format(bind_name))
except MPVError:
self.define_section(bind_name, "{0} script-message custom-bind {1}".format(name, bind_name))
self.enable_section(bind_name)
def bind_property_observer(self, name, callback):
"""
Bind a callback to an MPV property change.
*name* is the property name.
*callback(name, data)* is the function to call.
Returns a unique observer ID needed to destroy the observer.
"""
self.observer_lock.acquire()
observer_id = self.observer_id
self.observer_id += 1
self.observer_lock.release()
self.property_bindings[observer_id] = callback
self.command("observe_property", observer_id, name)
return observer_id
def unbind_property_observer(self, observer_id):
"""
Remove callback to an MPV property change.
*observer_id* is the id returned by bind_property_observer.
"""
self.command("unobserve_property", observer_id)
del self.property_bindings[observer_id]
def property_observer(self, name):
"""
Decorator to bind a callback to an MPV property change.
@property_observer(property_name)
def my_callback(name, data):
pass
"""
def wrapper(func):
self.bind_property_observer(name, func)
return func
return wrapper
def wait_for_property(self, name):
"""
Waits for the value of a property to change.
*name* is the name of the property.
"""
event = threading.Event()
first_event = True
def handler(*_):
nonlocal first_event
if first_event == True:
first_event = False
else:
event.set()
observer_id = self.bind_property_observer(name, handler)
event.wait()
self.unbind_property_observer(observer_id)
def _get_wrapper(self, name):
def wrapper(*args):
return self.command(name, *args)
return wrapper
def _callback(self, event, data):
if event in self.event_bindings:
for callback in self.event_bindings[event]:
self.event_handler.put_task(callback, data)
def play(self, url):
"""Play the specified URL. An alias to loadfile()."""
self.loadfile(url)
def __del__(self):
self.terminate()
def terminate(self, join=True):
"""Terminate the connection to MPV and process (if *start_mpv* is used)."""
if self.mpv_process:
self.mpv_process.stop()
if self.mpv_inter:
self.mpv_inter.stop(join)
self.event_handler.stop(join)
def command(self, command, *args):
"""
Send a command to MPV. All commands are bound to the class by default,
except JSON IPC specific commands. This may also be useful to retain
compatibility with python-mpv, as it does not bind all of the commands.
*command* is the command name.
All further arguments are forwarded to the MPV command.
"""
return self.mpv_inter.command(command, *args)
def __getattr__(self, name):
if name in self.properties:
return self.command("get_property", name.replace("_", "-"))
return object.__getattribute__(self, name)
def __setattr__(self, name, value):
if name not in {"properties", "command"} and name in self.properties:
return self.command("set_property", name.replace("_", "-"), value)
return object.__setattr__(self, name, value)
def __hasattr__(self, name):
if object.__hasattr__(self, name):
return True
else:
try:
getattr(self, name)
return True
except MPVError:
return False
def __dir__(self):
return self._dir

View File

@ -0,0 +1,25 @@
from setuptools import setup
import os
with open("README.md", "r") as fh:
long_description = fh.read()
setup(
name='python-mpv-jsonipc',
version='1.1.11',
author="Ian Walton",
author_email="iwalton3@gmail.com",
description="Python API to MPV using JSON IPC",
license='Apache-2.0',
long_description=open('README.md').read(),
long_description_content_type="text/markdown",
url="https://github.com/iwalton3/python-mpv-jsonipc",
py_modules=['python_mpv_jsonipc'],
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
],
python_requires='>=3.6',
install_requires=[]
)

View File

@ -1,11 +0,0 @@
#!/usr/bin/env bash
sudo groupadd --system lxd
sudo usermod -a -G lxd $USER
sudo apt-get -qq update
sudo apt-get -y install snapd
sudo snap install lxd
sudo lxd.migrate -yes
sudo lxd waitready
sudo lxd init --auto --storage-backend dir
sudo snap install snapcraft --classic