Merge branch 'dweymouth:main' into main

This commit is contained in:
Benoît Smith
2024-08-07 10:20:15 +02:00
committed by GitHub
13 changed files with 246 additions and 16 deletions
@@ -5,10 +5,10 @@ import (
"strconv" "strconv"
"strings" "strings"
"github.com/dweymouth/go-subsonic/subsonic"
"github.com/dweymouth/supersonic/backend/mediaprovider" "github.com/dweymouth/supersonic/backend/mediaprovider"
"github.com/dweymouth/supersonic/backend/mediaprovider/helpers" "github.com/dweymouth/supersonic/backend/mediaprovider/helpers"
"github.com/dweymouth/supersonic/sharedutil" "github.com/dweymouth/supersonic/sharedutil"
"github.com/supersonic-app/go-subsonic/subsonic"
) )
func (s *subsonicMediaProvider) AlbumSortOrders() []string { func (s *subsonicMediaProvider) AlbumSortOrders() []string {
@@ -8,10 +8,10 @@ import (
"golang.org/x/text/collate" "golang.org/x/text/collate"
"golang.org/x/text/language" "golang.org/x/text/language"
"github.com/dweymouth/go-subsonic/subsonic"
"github.com/dweymouth/supersonic/backend/mediaprovider" "github.com/dweymouth/supersonic/backend/mediaprovider"
"github.com/dweymouth/supersonic/backend/mediaprovider/helpers" "github.com/dweymouth/supersonic/backend/mediaprovider/helpers"
"github.com/dweymouth/supersonic/sharedutil" "github.com/dweymouth/supersonic/sharedutil"
"github.com/supersonic-app/go-subsonic/subsonic"
) )
func (s *subsonicMediaProvider) ArtistSortOrders() []string { func (s *subsonicMediaProvider) ArtistSortOrders() []string {
+1 -1
View File
@@ -6,10 +6,10 @@ import (
"sync" "sync"
"github.com/deluan/sanitize" "github.com/deluan/sanitize"
"github.com/dweymouth/go-subsonic/subsonic"
"github.com/dweymouth/supersonic/backend/mediaprovider" "github.com/dweymouth/supersonic/backend/mediaprovider"
"github.com/dweymouth/supersonic/backend/mediaprovider/helpers" "github.com/dweymouth/supersonic/backend/mediaprovider/helpers"
"github.com/dweymouth/supersonic/sharedutil" "github.com/dweymouth/supersonic/sharedutil"
"github.com/supersonic-app/go-subsonic/subsonic"
) )
func (s *subsonicMediaProvider) SearchAll(searchQuery string, maxResults int) ([]*mediaprovider.SearchResult, error) { func (s *subsonicMediaProvider) SearchAll(searchQuery string, maxResults int) ([]*mediaprovider.SearchResult, error) {
@@ -4,7 +4,7 @@ import (
"log" "log"
"strconv" "strconv"
"github.com/dweymouth/go-subsonic/subsonic" "github.com/supersonic-app/go-subsonic/subsonic"
) )
type searchIterBase struct { type searchIterBase struct {
@@ -12,10 +12,10 @@ import (
"sync" "sync"
"time" "time"
"github.com/dweymouth/go-subsonic/subsonic"
"github.com/dweymouth/supersonic/backend/mediaprovider" "github.com/dweymouth/supersonic/backend/mediaprovider"
"github.com/dweymouth/supersonic/backend/mediaprovider/helpers" "github.com/dweymouth/supersonic/backend/mediaprovider/helpers"
"github.com/dweymouth/supersonic/sharedutil" "github.com/dweymouth/supersonic/sharedutil"
"github.com/supersonic-app/go-subsonic/subsonic"
) )
const ( const (
@@ -1,8 +1,8 @@
package subsonic package subsonic
import ( import (
subsonicCli "github.com/dweymouth/go-subsonic/subsonic"
"github.com/dweymouth/supersonic/backend/mediaprovider" "github.com/dweymouth/supersonic/backend/mediaprovider"
subsonicCli "github.com/supersonic-app/go-subsonic/subsonic"
) )
type SubsonicServer struct { type SubsonicServer struct {
@@ -3,8 +3,8 @@ package subsonic
import ( import (
"log" "log"
"github.com/dweymouth/go-subsonic/subsonic"
"github.com/dweymouth/supersonic/backend/mediaprovider" "github.com/dweymouth/supersonic/backend/mediaprovider"
"github.com/supersonic-app/go-subsonic/subsonic"
) )
func (s *subsonicMediaProvider) IterateTracks(searchQuery string) mediaprovider.TrackIterator { func (s *subsonicMediaProvider) IterateTracks(searchQuery string) mediaprovider.TrackIterator {
+1 -1
View File
@@ -4,7 +4,7 @@ package mpv
// int mpv_get_peaks(mpv_handle* handle, double* lPeak, double* rPeak, double* lRMS, double* rRMS); // int mpv_get_peaks(mpv_handle* handle, double* lPeak, double* rPeak, double* lRMS, double* rRMS);
import "C" import "C"
import ( import (
"github.com/dweymouth/go-mpv" "github.com/supersonic-app/go-mpv"
) )
// rather than querying peaks through m.mpv.GetProperty which necessitates // rather than querying peaks through m.mpv.GetProperty which necessitates
+1 -1
View File
@@ -7,7 +7,7 @@ import (
"math" "math"
"strconv" "strconv"
"github.com/dweymouth/go-mpv" "github.com/supersonic-app/go-mpv"
"github.com/dweymouth/supersonic/backend/player" "github.com/dweymouth/supersonic/backend/player"
) )
+1 -1
View File
@@ -9,12 +9,12 @@ import (
"time" "time"
"github.com/dweymouth/go-jellyfin" "github.com/dweymouth/go-jellyfin"
"github.com/dweymouth/go-subsonic/subsonic"
"github.com/dweymouth/supersonic/backend/mediaprovider" "github.com/dweymouth/supersonic/backend/mediaprovider"
jellyfinMP "github.com/dweymouth/supersonic/backend/mediaprovider/jellyfin" jellyfinMP "github.com/dweymouth/supersonic/backend/mediaprovider/jellyfin"
subsonicMP "github.com/dweymouth/supersonic/backend/mediaprovider/subsonic" subsonicMP "github.com/dweymouth/supersonic/backend/mediaprovider/subsonic"
"github.com/dweymouth/supersonic/res" "github.com/dweymouth/supersonic/res"
"github.com/google/uuid" "github.com/google/uuid"
"github.com/supersonic-app/go-subsonic/subsonic"
"github.com/zalando/go-keyring" "github.com/zalando/go-keyring"
) )
+2 -2
View File
@@ -12,12 +12,12 @@ require (
github.com/dweymouth/fyne-lyrics v0.0.0-20240528234907-15eee7ce5e64 github.com/dweymouth/fyne-lyrics v0.0.0-20240528234907-15eee7ce5e64
github.com/dweymouth/fyne-tooltip v0.2.0 github.com/dweymouth/fyne-tooltip v0.2.0
github.com/dweymouth/go-jellyfin v0.0.0-20240517151952-5ceca61cb645 github.com/dweymouth/go-jellyfin v0.0.0-20240517151952-5ceca61cb645
github.com/dweymouth/go-mpv v0.0.0-20240724002347-c5e5b36f1bbf
github.com/dweymouth/go-subsonic v0.0.0-20240726004217-2e8e348ad417
github.com/godbus/dbus/v5 v5.1.0 github.com/godbus/dbus/v5 v5.1.0
github.com/google/uuid v1.3.0 github.com/google/uuid v1.3.0
github.com/pelletier/go-toml/v2 v2.0.8 github.com/pelletier/go-toml/v2 v2.0.8
github.com/quarckster/go-mpris-server v1.0.3 github.com/quarckster/go-mpris-server v1.0.3
github.com/supersonic-app/go-mpv v0.1.0
github.com/supersonic-app/go-subsonic v0.0.0-20240807031555-2cb1ccd78f85
github.com/zalando/go-keyring v0.2.1 github.com/zalando/go-keyring v0.2.1
golang.org/x/net v0.25.0 golang.org/x/net v0.25.0
golang.org/x/text v0.16.0 golang.org/x/text v0.16.0
+4 -4
View File
@@ -85,10 +85,6 @@ github.com/dweymouth/fyne/v2 v2.3.0-rc1.0.20240805144743-24df77c3cc7e h1:FSTLNY9
github.com/dweymouth/fyne/v2 v2.3.0-rc1.0.20240805144743-24df77c3cc7e/go.mod h1:9D4oT3NWeG+MLi/lP7ItZZyujHC/qqMJpoGTAYX5Uqc= github.com/dweymouth/fyne/v2 v2.3.0-rc1.0.20240805144743-24df77c3cc7e/go.mod h1:9D4oT3NWeG+MLi/lP7ItZZyujHC/qqMJpoGTAYX5Uqc=
github.com/dweymouth/go-jellyfin v0.0.0-20240517151952-5ceca61cb645 h1:KzqSaQwG3HsTZQlEtkp0BeUy9vmYZ0rq0B15qIPSiBs= github.com/dweymouth/go-jellyfin v0.0.0-20240517151952-5ceca61cb645 h1:KzqSaQwG3HsTZQlEtkp0BeUy9vmYZ0rq0B15qIPSiBs=
github.com/dweymouth/go-jellyfin v0.0.0-20240517151952-5ceca61cb645/go.mod h1:fcUagHBaQnt06GmBAllNE0J4O/7064zXRWdqnTTtVjI= github.com/dweymouth/go-jellyfin v0.0.0-20240517151952-5ceca61cb645/go.mod h1:fcUagHBaQnt06GmBAllNE0J4O/7064zXRWdqnTTtVjI=
github.com/dweymouth/go-mpv v0.0.0-20240724002347-c5e5b36f1bbf h1:QVjXWx7XGkSPOCEu5EL9QVY3fkdDSnG5KEkok5o1svM=
github.com/dweymouth/go-mpv v0.0.0-20240724002347-c5e5b36f1bbf/go.mod h1:Ov0ieN90M7i+0k3OxhA/g1dozGs+UcPHDsMKqPgRDk0=
github.com/dweymouth/go-subsonic v0.0.0-20240726004217-2e8e348ad417 h1:VVVqQvHwm2K3+h8z4Tw3jYIDKETpEMR++XICdJDx0pE=
github.com/dweymouth/go-subsonic v0.0.0-20240726004217-2e8e348ad417/go.mod h1:OWtcumdQsan8uM6wmx6PqKhldaCthH10CQ+vb+94kzo=
github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4=
github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4=
github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98= github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98=
@@ -313,6 +309,10 @@ github.com/stretchr/testify v1.8.3/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXl
github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk=
github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo=
github.com/subosito/gotenv v1.2.0/go.mod h1:N0PQaV/YGNqwC0u51sEeR/aUtSLEXKX9iv69rRypqCw= github.com/subosito/gotenv v1.2.0/go.mod h1:N0PQaV/YGNqwC0u51sEeR/aUtSLEXKX9iv69rRypqCw=
github.com/supersonic-app/go-mpv v0.1.0 h1:U+cCnLQxmpqx5mY6nMlC0J4uIdCCXUbAjpjS04XkFu8=
github.com/supersonic-app/go-mpv v0.1.0/go.mod h1:1bQz6kBQumJopXEbkiqoLxIXLy7F7yWFBvknvpAtIC0=
github.com/supersonic-app/go-subsonic v0.0.0-20240807031555-2cb1ccd78f85 h1:7PpVvIoF3kUQwqRyIJcKJui8VxbkLzqWH+Ysw1g84tU=
github.com/supersonic-app/go-subsonic v0.0.0-20240807031555-2cb1ccd78f85/go.mod h1:D+OWPXeD9owcdcoXATv5YPBGWxxVvn5k98rt5B4wMc4=
github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
+230
View File
@@ -0,0 +1,230 @@
{
"A new version is available": "Uma nova versão está disponível",
"About": "Sobre",
"Add Server": "Adicionar servidor",
"Add to playlist": "Adicionar a lista de reprodução",
"Add to queue": "Adicionar à fila",
"Album": "Álbum",
"album": "álbum",
"Album count": "Número de álbuns",
"Album Count": "Número de Álbuns",
"Album filters": "Filtros do álbum",
"Album gain": "Ganho do álbum",
"Album info not available": "Informações sobre o álbum indisponíveis",
"Album peak": "Pico do álbum",
"Albums": "Álbuns",
"albums": "álbuns",
"All": "Todas",
"All Tracks": "Todas as faixas",
"Alt. URL": "URL Alt.",
"Are you sure you want to delete the server": "Tem certeza que deseja remover o servidor",
"Artist": "Artista",
"Artist (A-Z)": "Artista (A-Z)",
"Artists": "Artistas",
"Artist biography not available.": "Biografia de artista indisponível.",
"Audio device": "Dispositivo de áudio",
"Audio Drama": "Áudio Drama",
"Audiobook": "Audiolivro",
"Authentication failed": "A autenticação falhou",
"Auto": "Auto",
"Autoselect device": "Selecionar dispositivo automaticamente",
"Back": "Voltar",
"Bit rate": "Taxa de bits",
"BPM": "BPM",
"Broadcast": "Transmissão",
"Cancel": "Cancelar",
"Check for Updates": "Buscar atualizações",
"Close": "Fechar",
"Close to system tray": "Fechar para a bandeja do sistema",
"Comment": "Comentar",
"Compilation": "Compilação",
"Composer": "Compositor",
"Configure your music server to add radio stations": "Configure o seu servidor de música para adicionar estações de rádio",
"Confirm Delete Playlist": "Confirmar remoção da lista de reprodução",
"Confirm Delete Server": "Confirmar remoção do servidor",
"Connect to Server": "Conectar ao servidor",
"Connecting": "Conectando",
"Connecting to": "Conectando a",
"Content type": "Tipo de conteúdo",
"Could not reach server": "Não foi possível se conectar ao servidor",
"Create new playlist": "Criar nova lista de reprodução",
"day": "dia",
"days": "dias",
"Delete Playlist": "Remover lista de reprodução",
"Demo": "Demo",
"Description": "Descrição",
"Disable server transcoding": "Desabilitar transcodificação no servidor",
"Disc number": "Número do disco",
"Discography": "Discografia",
"discs": "discos",
"DJ-Mix": "DJ-Mix",
"Download": "Download",
"Download completed": "Download concluído",
"Duration": "Duração",
"Edit": "Editar",
"Edit Playlist": "Editar lista de reprodução",
"Edit server": "Editar servidor",
"Enable system tray": "Habilitar bandeja do sistema",
"Enabled": "Habilitado",
"Enter": "Enter",
"EP": "EP",
"Equalizer": "Equalizador",
"Exclusive mode": "Modo exclusive",
"Favorites": "Favoritos",
"Field Recording": "Gravação de campo",
"File path": "Caminho para o arquivo",
"File size": "Tamanho do arquivo",
"Filter albums": "Filtrar álbuns",
"Filter genres": "Filtrar gêneros",
"Forward": "Avançar",
"Frequently Played": "Tocados com frequência",
"General": "Geral",
"Genre": "Gênero",
"Genres": "Gêneros",
"Github page": "Página do GitHub",
"Go to release page": "Ir para a página do release",
"Hide": "Ocultar",
"Home": "Principal",
"Home Page": "Página principal",
"hr": "h",
"hrs": "h",
"Internet Radio Stations": "Estacões de Rádio da Internet",
"Interview": "Entrevista",
"Is favorite": "É favorito",
"Is not favorite": "Não é favorito",
"Last played": "Tocados recentemente",
"Live": "Ao Vivo",
"Locally": "Localmente",
"Log Out": "Encerrar sessão",
"Login to Server": "Iniciar sessão no servidor",
"Lyrics": "Letra",
"Lyrics not available": "Letra indisponível",
"Menu": "Menu",
"min": "min",
"minutes of track have been played": "minutos da faixa foram tocados",
"Mixtape": "Mixtape",
"Mute": "Mudo",
"My Server": "Meu Servidor",
"Name": "Nome",
"Name (A-Z)": "Nome (A-Z)",
"Next": "Próximo",
"Nickname": "Apelido",
"No new version found": "Nenhuma versão nova encontrada",
"No radio stations available": "Nenhuma estação de rádio disponível",
"None": "Nenhum",
"none": "nenhum",
"none selected": "nenhum selecionado",
"OK": "OK",
"optional": "opcional",
"or when": "ou quando",
"Password": "Senha",
"Pause": "Pausar",
"Paused": "Pausado",
"Peak Meter": "Medidor de Picos",
"percent of track is played": "porcento da faixa foi tocada",
"Play": "Reproduzir",
"Play Artist Radio": "Reproduzir rádio do artista",
"Play count": "Número de reproduções",
"Play Discography": "Reproduzir discografia",
"Play next": "Reproduzir próximo",
"Play Queue": "Reproduzir fila",
"Play random": "Reproduzir aleatoriamente",
"Playback": "Playback",
"Playing": "Tocando",
"Playlist": "Lista de reprodução",
"Playlists": "Listas de reprodução",
"playlist by": "lista de reprodução por",
"Plays": "Reproduções",
"Prevent clipping": "Evitar clipping",
"Previous": "Anterior",
"Private": "Privado",
"Public": "Público",
"Random": "Aleatório",
"Rating": "Classificação",
"reissued": "reeditado",
"Recently Added": "Adicionado recentemente",
"Recently Played": "Tocado recentemente",
"Related": "Relacionado",
"Reload": "Recarregar",
"Remix": "Remix",
"Remove from playlist": "Remover da lista de reprodução",
"ReplayGain mode": "Modo do ReplayGain",
"ReplayGain preamp": "Preamp do ReplayGain",
"Restart required": "Requer reinício",
"Save play queue on exit": "Salvar fila de reprodução ao sair",
"Saved at": "Salvo em",
"Scrobble when": "Fazer scrobble quando",
"Search Everywhere": "Pesquisar em todos os lugares",
"Search page": "Página de pesquisa",
"Search playlists or new playlist name": "Pesquisar listas de reprodução ou criar uma nova",
"sec": "s",
"selected": "selecionado",
"Send playback statistics to server": "Enviar estatísticas de reprodução ao servidor",
"Server": "Servidor",
"Server Type": "Tipo de servidor",
"Server unreachable": "Servidor inalcançável",
"Set rating": "Definir classificação",
"Settings": "Configurações",
"Share": "Compartilhar",
"Share content": "Compartilhar conteúdo",
"Show": "Mostrar",
"Show info": "Mostrar informações",
"Show notification on track change": "Mostrar notificação ao mudar de faixa",
"Show play queue": "Mostrar lista de reprodução",
"Show year in album grid cards": "Mostrar ano nos cartões da grade de álbuns",
"Shuffle": "Aleatório",
"Shuffle albums": "Álbuns em ordem aleatória",
"Shuffle tracks": "Faixas em ordem aleatória",
"Similar artists": "Artistas similares",
"Single": "Single",
"Size": "Tamanho",
"Skip duplicate tracks": "Pular faixas duplicadas",
"Skip this version": "Pular esta versão",
"Soundtrack": "Trilha Sonora",
"Spoken Word": "Palavra Falada",
"Startup page": "Página de inicialização",
"Stopped": "Parado",
"Support the project": "Apoie o projeto",
"Switch Servers": "Trocar de servidor",
"Testing connection": "Testando conexão",
"Theme": "Tema",
"Time": "Tempo",
"Title": "Título",
"Title (A-Z)": "Título (A-Z)",
"Top Tracks": "Principais Faixas",
"Total time": "Tempo total",
"Track": "Faixa",
"track": "faixa",
"Track count": "Número de faixas",
"Track gain": "Ganho da faixa",
"Track Info": "Informações sobre a faixa",
"Track number": "Número da faixa",
"Track peak": "Pico da faixa",
"tracks": "faixas",
"UI Scaling": "Escala da Interface",
"URL": "URL",
"Use legacy authentication": "Usar autenticação legado",
"Username": "Nome de usuário",
"version": "versão",
"Visualizations": "Visualizações",
"Volume": "Volume",
"wrong URL": "URL incorreta",
"wrong username/password": "nome de usuário/senha incorreto(a)",
"Year": "Ano",
"Year (ascending)": "Ano (ascendente)",
"Year (descending)": "Ano (descendente)",
"Year from": "Ano a partir de",
"You are running the latest version of": "Você está usando a última versão do",
"Quit": "Sair",
"Rescan Library": "Reescanear biblioteca",
"Search": "Pesquisar",
"Owner": "Proprietário",
"To server": "Ao servidor",
"Fav.": "Fav.",
"Set favorite": "Adicionar aos favoritos",
"Unset favorite": "Remover dos favoritos",
"Remove from queue": "Remover da fila",
"Play song radio": "Reproduzir rádio da faixa",
"to":"a",
"by":"de"
}