mirror of
https://github.com/austinried/subtracks.git
synced 2025-12-27 00:59:28 +01:00
Compare commits
18 Commits
v2.0.0-alp
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b0bb26f84b | ||
|
|
e94fcf3128 | ||
|
|
bd6e818f36 | ||
|
|
96d0c35c31 | ||
|
|
4ef3281a0b | ||
|
|
c56e3dba0f | ||
|
|
53d284ace4 | ||
|
|
c2733482e5 | ||
|
|
67f0c926c4 | ||
|
|
889be2ff2c | ||
|
|
52b51954aa | ||
|
|
1c76293559 | ||
|
|
250d6793a2 | ||
|
|
121af2bca3 | ||
|
|
e410dcb2eb | ||
|
|
63ff9772e5 | ||
|
|
1ae29c5ade | ||
|
|
fedd6a71bb |
@ -22,6 +22,8 @@
|
|||||||
"resourcesSortByTitle",
|
"resourcesSortByTitle",
|
||||||
"resourcesSortByUpdated",
|
"resourcesSortByUpdated",
|
||||||
"settingsAboutActionsSupport",
|
"settingsAboutActionsSupport",
|
||||||
|
"settingsAboutShareLogs",
|
||||||
|
"settingsAboutChooseLog",
|
||||||
"settingsNetworkOptionsOfflineMode",
|
"settingsNetworkOptionsOfflineMode",
|
||||||
"settingsNetworkOptionsOfflineModeOff",
|
"settingsNetworkOptionsOfflineModeOff",
|
||||||
"settingsNetworkOptionsOfflineModeOn",
|
"settingsNetworkOptionsOfflineModeOn",
|
||||||
@ -53,6 +55,8 @@
|
|||||||
"resourcesSortByTitle",
|
"resourcesSortByTitle",
|
||||||
"resourcesSortByUpdated",
|
"resourcesSortByUpdated",
|
||||||
"settingsAboutActionsSupport",
|
"settingsAboutActionsSupport",
|
||||||
|
"settingsAboutShareLogs",
|
||||||
|
"settingsAboutChooseLog",
|
||||||
"settingsNetworkOptionsOfflineMode",
|
"settingsNetworkOptionsOfflineMode",
|
||||||
"settingsNetworkOptionsOfflineModeOff",
|
"settingsNetworkOptionsOfflineModeOff",
|
||||||
"settingsNetworkOptionsOfflineModeOn",
|
"settingsNetworkOptionsOfflineModeOn",
|
||||||
@ -62,32 +66,12 @@
|
|||||||
],
|
],
|
||||||
|
|
||||||
"cs": [
|
"cs": [
|
||||||
"actionsCancel",
|
|
||||||
"actionsDelete",
|
|
||||||
"actionsDownload",
|
|
||||||
"actionsDownloadCancel",
|
|
||||||
"actionsDownloadDelete",
|
|
||||||
"actionsOk",
|
|
||||||
"controlsShuffle",
|
|
||||||
"resourcesAlbumCount",
|
"resourcesAlbumCount",
|
||||||
"resourcesArtistCount",
|
"resourcesArtistCount",
|
||||||
"resourcesFilterAlbum",
|
|
||||||
"resourcesFilterArtist",
|
|
||||||
"resourcesFilterOwner",
|
|
||||||
"resourcesFilterYear",
|
|
||||||
"resourcesPlaylistCount",
|
"resourcesPlaylistCount",
|
||||||
"resourcesSongCount",
|
"resourcesSongCount",
|
||||||
"resourcesSongListDeleteAllContent",
|
"settingsAboutShareLogs",
|
||||||
"resourcesSongListDeleteAllTitle",
|
"settingsAboutChooseLog",
|
||||||
"resourcesSortByAlbum",
|
|
||||||
"resourcesSortByAlbumCount",
|
|
||||||
"resourcesSortByTitle",
|
|
||||||
"resourcesSortByUpdated",
|
|
||||||
"settingsAboutActionsLicenses",
|
|
||||||
"settingsAboutActionsProjectHomepage",
|
|
||||||
"settingsAboutActionsSupport",
|
|
||||||
"settingsAboutName",
|
|
||||||
"settingsAboutVersion",
|
|
||||||
"settingsMusicName",
|
"settingsMusicName",
|
||||||
"settingsMusicOptionsScrobbleDescriptionOff",
|
"settingsMusicOptionsScrobbleDescriptionOff",
|
||||||
"settingsMusicOptionsScrobbleDescriptionOn",
|
"settingsMusicOptionsScrobbleDescriptionOn",
|
||||||
@ -96,12 +80,7 @@
|
|||||||
"settingsNetworkOptionsMinBufferTitle",
|
"settingsNetworkOptionsMinBufferTitle",
|
||||||
"settingsNetworkOptionsOfflineMode",
|
"settingsNetworkOptionsOfflineMode",
|
||||||
"settingsNetworkOptionsOfflineModeOff",
|
"settingsNetworkOptionsOfflineModeOff",
|
||||||
"settingsNetworkOptionsOfflineModeOn",
|
"settingsNetworkOptionsOfflineModeOn"
|
||||||
"settingsNetworkOptionsStreamFormat",
|
|
||||||
"settingsNetworkOptionsStreamFormatServerDefault",
|
|
||||||
"settingsResetActionsClearImageCache",
|
|
||||||
"settingsResetName",
|
|
||||||
"settingsServersFieldsName"
|
|
||||||
],
|
],
|
||||||
|
|
||||||
"da": [
|
"da": [
|
||||||
@ -133,6 +112,8 @@
|
|||||||
"resourcesSortByTitle",
|
"resourcesSortByTitle",
|
||||||
"resourcesSortByUpdated",
|
"resourcesSortByUpdated",
|
||||||
"settingsAboutActionsSupport",
|
"settingsAboutActionsSupport",
|
||||||
|
"settingsAboutShareLogs",
|
||||||
|
"settingsAboutChooseLog",
|
||||||
"settingsMusicOptionsScrobbleDescriptionOff",
|
"settingsMusicOptionsScrobbleDescriptionOff",
|
||||||
"settingsNetworkOptionsOfflineMode",
|
"settingsNetworkOptionsOfflineMode",
|
||||||
"settingsNetworkOptionsOfflineModeOff",
|
"settingsNetworkOptionsOfflineModeOff",
|
||||||
@ -146,29 +127,8 @@
|
|||||||
],
|
],
|
||||||
|
|
||||||
"de": [
|
"de": [
|
||||||
"actionsDownloadDelete",
|
"settingsAboutShareLogs",
|
||||||
"actionsOk",
|
"settingsAboutChooseLog"
|
||||||
"resourcesAlbumCount",
|
|
||||||
"resourcesArtistCount",
|
|
||||||
"resourcesFilterAlbum",
|
|
||||||
"resourcesFilterArtist",
|
|
||||||
"resourcesFilterOwner",
|
|
||||||
"resourcesFilterYear",
|
|
||||||
"resourcesPlaylistCount",
|
|
||||||
"resourcesSongCount",
|
|
||||||
"resourcesSongListDeleteAllContent",
|
|
||||||
"resourcesSongListDeleteAllTitle",
|
|
||||||
"resourcesSortByAlbum",
|
|
||||||
"resourcesSortByAlbumCount",
|
|
||||||
"resourcesSortByTitle",
|
|
||||||
"resourcesSortByUpdated",
|
|
||||||
"settingsAboutActionsSupport",
|
|
||||||
"settingsNetworkOptionsOfflineMode",
|
|
||||||
"settingsNetworkOptionsOfflineModeOff",
|
|
||||||
"settingsNetworkOptionsOfflineModeOn",
|
|
||||||
"settingsNetworkOptionsStreamFormat",
|
|
||||||
"settingsNetworkOptionsStreamFormatServerDefault",
|
|
||||||
"settingsServersFieldsName"
|
|
||||||
],
|
],
|
||||||
|
|
||||||
"es": [
|
"es": [
|
||||||
@ -187,6 +147,8 @@
|
|||||||
"resourcesSortByTitle",
|
"resourcesSortByTitle",
|
||||||
"resourcesSortByUpdated",
|
"resourcesSortByUpdated",
|
||||||
"settingsAboutActionsSupport",
|
"settingsAboutActionsSupport",
|
||||||
|
"settingsAboutShareLogs",
|
||||||
|
"settingsAboutChooseLog",
|
||||||
"settingsNetworkOptionsOfflineMode",
|
"settingsNetworkOptionsOfflineMode",
|
||||||
"settingsNetworkOptionsOfflineModeOff",
|
"settingsNetworkOptionsOfflineModeOff",
|
||||||
"settingsNetworkOptionsOfflineModeOn",
|
"settingsNetworkOptionsOfflineModeOn",
|
||||||
@ -218,6 +180,8 @@
|
|||||||
"resourcesSortByTitle",
|
"resourcesSortByTitle",
|
||||||
"resourcesSortByUpdated",
|
"resourcesSortByUpdated",
|
||||||
"settingsAboutActionsSupport",
|
"settingsAboutActionsSupport",
|
||||||
|
"settingsAboutShareLogs",
|
||||||
|
"settingsAboutChooseLog",
|
||||||
"settingsNetworkOptionsOfflineMode",
|
"settingsNetworkOptionsOfflineMode",
|
||||||
"settingsNetworkOptionsOfflineModeOff",
|
"settingsNetworkOptionsOfflineModeOff",
|
||||||
"settingsNetworkOptionsOfflineModeOn",
|
"settingsNetworkOptionsOfflineModeOn",
|
||||||
@ -249,6 +213,8 @@
|
|||||||
"resourcesSortByTitle",
|
"resourcesSortByTitle",
|
||||||
"resourcesSortByUpdated",
|
"resourcesSortByUpdated",
|
||||||
"settingsAboutActionsSupport",
|
"settingsAboutActionsSupport",
|
||||||
|
"settingsAboutShareLogs",
|
||||||
|
"settingsAboutChooseLog",
|
||||||
"settingsNetworkOptionsOfflineMode",
|
"settingsNetworkOptionsOfflineMode",
|
||||||
"settingsNetworkOptionsOfflineModeOff",
|
"settingsNetworkOptionsOfflineModeOff",
|
||||||
"settingsNetworkOptionsOfflineModeOn",
|
"settingsNetworkOptionsOfflineModeOn",
|
||||||
@ -300,6 +266,8 @@
|
|||||||
"settingsAboutActionsLicenses",
|
"settingsAboutActionsLicenses",
|
||||||
"settingsAboutActionsSupport",
|
"settingsAboutActionsSupport",
|
||||||
"settingsAboutName",
|
"settingsAboutName",
|
||||||
|
"settingsAboutShareLogs",
|
||||||
|
"settingsAboutChooseLog",
|
||||||
"settingsAboutVersion",
|
"settingsAboutVersion",
|
||||||
"settingsMusicOptionsScrobbleDescriptionOff",
|
"settingsMusicOptionsScrobbleDescriptionOff",
|
||||||
"settingsMusicOptionsScrobbleDescriptionOn",
|
"settingsMusicOptionsScrobbleDescriptionOn",
|
||||||
@ -356,6 +324,8 @@
|
|||||||
"resourcesSortByTitle",
|
"resourcesSortByTitle",
|
||||||
"resourcesSortByUpdated",
|
"resourcesSortByUpdated",
|
||||||
"settingsAboutActionsSupport",
|
"settingsAboutActionsSupport",
|
||||||
|
"settingsAboutShareLogs",
|
||||||
|
"settingsAboutChooseLog",
|
||||||
"settingsNetworkOptionsOfflineMode",
|
"settingsNetworkOptionsOfflineMode",
|
||||||
"settingsNetworkOptionsOfflineModeOff",
|
"settingsNetworkOptionsOfflineModeOff",
|
||||||
"settingsNetworkOptionsOfflineModeOn",
|
"settingsNetworkOptionsOfflineModeOn",
|
||||||
@ -387,6 +357,8 @@
|
|||||||
"resourcesSortByTitle",
|
"resourcesSortByTitle",
|
||||||
"resourcesSortByUpdated",
|
"resourcesSortByUpdated",
|
||||||
"settingsAboutActionsSupport",
|
"settingsAboutActionsSupport",
|
||||||
|
"settingsAboutShareLogs",
|
||||||
|
"settingsAboutChooseLog",
|
||||||
"settingsNetworkOptionsOfflineMode",
|
"settingsNetworkOptionsOfflineMode",
|
||||||
"settingsNetworkOptionsOfflineModeOff",
|
"settingsNetworkOptionsOfflineModeOff",
|
||||||
"settingsNetworkOptionsOfflineModeOn",
|
"settingsNetworkOptionsOfflineModeOn",
|
||||||
@ -418,6 +390,8 @@
|
|||||||
"resourcesSortByTitle",
|
"resourcesSortByTitle",
|
||||||
"resourcesSortByUpdated",
|
"resourcesSortByUpdated",
|
||||||
"settingsAboutActionsSupport",
|
"settingsAboutActionsSupport",
|
||||||
|
"settingsAboutShareLogs",
|
||||||
|
"settingsAboutChooseLog",
|
||||||
"settingsNetworkOptionsOfflineMode",
|
"settingsNetworkOptionsOfflineMode",
|
||||||
"settingsNetworkOptionsOfflineModeOff",
|
"settingsNetworkOptionsOfflineModeOff",
|
||||||
"settingsNetworkOptionsOfflineModeOn",
|
"settingsNetworkOptionsOfflineModeOn",
|
||||||
@ -427,63 +401,17 @@
|
|||||||
],
|
],
|
||||||
|
|
||||||
"pt": [
|
"pt": [
|
||||||
"actionsCancel",
|
|
||||||
"actionsDelete",
|
|
||||||
"actionsDownload",
|
|
||||||
"actionsDownloadCancel",
|
|
||||||
"actionsDownloadDelete",
|
|
||||||
"actionsOk",
|
|
||||||
"controlsShuffle",
|
|
||||||
"resourcesAlbumCount",
|
"resourcesAlbumCount",
|
||||||
"resourcesArtistCount",
|
"resourcesArtistCount",
|
||||||
"resourcesFilterAlbum",
|
|
||||||
"resourcesFilterArtist",
|
|
||||||
"resourcesFilterOwner",
|
"resourcesFilterOwner",
|
||||||
"resourcesFilterYear",
|
|
||||||
"resourcesPlaylistCount",
|
"resourcesPlaylistCount",
|
||||||
"resourcesSongCount",
|
"resourcesSongCount",
|
||||||
"resourcesSongListDeleteAllContent",
|
"resourcesSongListDeleteAllContent",
|
||||||
"resourcesSongListDeleteAllTitle",
|
"resourcesSongListDeleteAllTitle",
|
||||||
"resourcesSortByAlbum",
|
|
||||||
"resourcesSortByAlbumCount",
|
"resourcesSortByAlbumCount",
|
||||||
"resourcesSortByTitle",
|
|
||||||
"resourcesSortByUpdated",
|
"resourcesSortByUpdated",
|
||||||
"settingsAboutActionsSupport",
|
"settingsAboutShareLogs",
|
||||||
"settingsNetworkOptionsOfflineMode",
|
"settingsAboutChooseLog",
|
||||||
"settingsNetworkOptionsOfflineModeOff",
|
|
||||||
"settingsNetworkOptionsOfflineModeOn",
|
|
||||||
"settingsNetworkOptionsStreamFormat",
|
|
||||||
"settingsNetworkOptionsStreamFormatServerDefault",
|
|
||||||
"settingsServersFieldsName"
|
|
||||||
],
|
|
||||||
|
|
||||||
"ru": [
|
|
||||||
"actionsCancel",
|
|
||||||
"actionsDelete",
|
|
||||||
"actionsDownload",
|
|
||||||
"actionsDownloadCancel",
|
|
||||||
"actionsDownloadDelete",
|
|
||||||
"actionsOk",
|
|
||||||
"controlsShuffle",
|
|
||||||
"resourcesAlbumCount",
|
|
||||||
"resourcesArtistCount",
|
|
||||||
"resourcesFilterAlbum",
|
|
||||||
"resourcesFilterArtist",
|
|
||||||
"resourcesFilterOwner",
|
|
||||||
"resourcesFilterYear",
|
|
||||||
"resourcesPlaylistCount",
|
|
||||||
"resourcesSongCount",
|
|
||||||
"resourcesSongListDeleteAllContent",
|
|
||||||
"resourcesSongListDeleteAllTitle",
|
|
||||||
"resourcesSortByAlbum",
|
|
||||||
"resourcesSortByAlbumCount",
|
|
||||||
"resourcesSortByTitle",
|
|
||||||
"resourcesSortByUpdated",
|
|
||||||
"settingsAboutActionsSupport",
|
|
||||||
"settingsNetworkOptionsOfflineMode",
|
|
||||||
"settingsNetworkOptionsOfflineModeOff",
|
|
||||||
"settingsNetworkOptionsOfflineModeOn",
|
|
||||||
"settingsNetworkOptionsStreamFormat",
|
|
||||||
"settingsNetworkOptionsStreamFormatServerDefault",
|
"settingsNetworkOptionsStreamFormatServerDefault",
|
||||||
"settingsServersFieldsName"
|
"settingsServersFieldsName"
|
||||||
],
|
],
|
||||||
@ -511,6 +439,8 @@
|
|||||||
"resourcesSortByTitle",
|
"resourcesSortByTitle",
|
||||||
"resourcesSortByUpdated",
|
"resourcesSortByUpdated",
|
||||||
"settingsAboutActionsSupport",
|
"settingsAboutActionsSupport",
|
||||||
|
"settingsAboutShareLogs",
|
||||||
|
"settingsAboutChooseLog",
|
||||||
"settingsNetworkOptionsOfflineMode",
|
"settingsNetworkOptionsOfflineMode",
|
||||||
"settingsNetworkOptionsOfflineModeOff",
|
"settingsNetworkOptionsOfflineModeOff",
|
||||||
"settingsNetworkOptionsOfflineModeOn",
|
"settingsNetworkOptionsOfflineModeOn",
|
||||||
@ -542,6 +472,8 @@
|
|||||||
"resourcesSortByTitle",
|
"resourcesSortByTitle",
|
||||||
"resourcesSortByUpdated",
|
"resourcesSortByUpdated",
|
||||||
"settingsAboutActionsSupport",
|
"settingsAboutActionsSupport",
|
||||||
|
"settingsAboutShareLogs",
|
||||||
|
"settingsAboutChooseLog",
|
||||||
"settingsNetworkOptionsOfflineMode",
|
"settingsNetworkOptionsOfflineMode",
|
||||||
"settingsNetworkOptionsOfflineModeOff",
|
"settingsNetworkOptionsOfflineModeOff",
|
||||||
"settingsNetworkOptionsOfflineModeOn",
|
"settingsNetworkOptionsOfflineModeOn",
|
||||||
@ -556,6 +488,8 @@
|
|||||||
"resourcesArtistCount",
|
"resourcesArtistCount",
|
||||||
"resourcesPlaylistCount",
|
"resourcesPlaylistCount",
|
||||||
"resourcesSongCount",
|
"resourcesSongCount",
|
||||||
|
"settingsAboutShareLogs",
|
||||||
|
"settingsAboutChooseLog",
|
||||||
"settingsNetworkOptionsOfflineMode",
|
"settingsNetworkOptionsOfflineMode",
|
||||||
"settingsNetworkOptionsOfflineModeOff",
|
"settingsNetworkOptionsOfflineModeOff",
|
||||||
"settingsNetworkOptionsOfflineModeOn",
|
"settingsNetworkOptionsOfflineModeOn",
|
||||||
|
|||||||
@ -4,6 +4,7 @@ import 'package:infinite_scroll_pagination/infinite_scroll_pagination.dart';
|
|||||||
|
|
||||||
import '../services/sync_service.dart';
|
import '../services/sync_service.dart';
|
||||||
import 'items.dart';
|
import 'items.dart';
|
||||||
|
import 'snackbars.dart';
|
||||||
|
|
||||||
class PagedListQueryView<T> extends HookConsumerWidget {
|
class PagedListQueryView<T> extends HookConsumerWidget {
|
||||||
final PagingController<int, T> pagingController;
|
final PagingController<int, T> pagingController;
|
||||||
@ -122,7 +123,13 @@ class SyncAllRefresh extends HookConsumerWidget {
|
|||||||
@override
|
@override
|
||||||
Widget build(BuildContext context, WidgetRef ref) {
|
Widget build(BuildContext context, WidgetRef ref) {
|
||||||
return RefreshIndicator(
|
return RefreshIndicator(
|
||||||
onRefresh: () => ref.read(syncServiceProvider.notifier).syncAll(),
|
onRefresh: () async {
|
||||||
|
try {
|
||||||
|
await ref.read(syncServiceProvider.notifier).syncAll();
|
||||||
|
} catch (e) {
|
||||||
|
showErrorSnackbar(context, e.toString());
|
||||||
|
}
|
||||||
|
},
|
||||||
child: child,
|
child: child,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,11 +1,16 @@
|
|||||||
|
import 'dart:math';
|
||||||
|
|
||||||
import 'package:auto_route/auto_route.dart';
|
import 'package:auto_route/auto_route.dart';
|
||||||
import 'package:fast_immutable_collections/fast_immutable_collections.dart';
|
import 'package:fast_immutable_collections/fast_immutable_collections.dart';
|
||||||
import 'package:flutter/foundation.dart';
|
import 'package:flutter/foundation.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_gen/gen_l10n/app_localizations.dart';
|
import 'package:flutter_gen/gen_l10n/app_localizations.dart';
|
||||||
import 'package:hooks_riverpod/hooks_riverpod.dart';
|
import 'package:hooks_riverpod/hooks_riverpod.dart';
|
||||||
|
import 'package:path/path.dart' as p;
|
||||||
|
import 'package:share_plus/share_plus.dart';
|
||||||
import 'package:url_launcher/url_launcher.dart';
|
import 'package:url_launcher/url_launcher.dart';
|
||||||
|
|
||||||
|
import '../../log.dart';
|
||||||
import '../../models/support.dart';
|
import '../../models/support.dart';
|
||||||
import '../../services/settings_service.dart';
|
import '../../services/settings_service.dart';
|
||||||
import '../../state/init.dart';
|
import '../../state/init.dart';
|
||||||
@ -162,6 +167,54 @@ class _About extends HookConsumerWidget {
|
|||||||
mode: LaunchMode.externalApplication,
|
mode: LaunchMode.externalApplication,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
const SizedBox(height: 12),
|
||||||
|
const _ShareLogsButton(),
|
||||||
|
],
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
class _ShareLogsButton extends StatelessWidget {
|
||||||
|
const _ShareLogsButton();
|
||||||
|
|
||||||
|
@override
|
||||||
|
Widget build(BuildContext context) {
|
||||||
|
final l = AppLocalizations.of(context);
|
||||||
|
|
||||||
|
return Row(
|
||||||
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
|
children: [
|
||||||
|
OutlinedButton.icon(
|
||||||
|
icon: const Icon(Icons.share),
|
||||||
|
label: Text(l.settingsAboutShareLogs),
|
||||||
|
onPressed: () async {
|
||||||
|
final files = await logFiles();
|
||||||
|
if (files.isEmpty) return;
|
||||||
|
|
||||||
|
// ignore: use_build_context_synchronously
|
||||||
|
final value = await showDialog<String>(
|
||||||
|
context: context,
|
||||||
|
builder: (context) => MultipleChoiceDialog<String>(
|
||||||
|
title: l.settingsAboutChooseLog,
|
||||||
|
current: files.first.path,
|
||||||
|
options: files
|
||||||
|
.map((e) => MultiChoiceOption.string(
|
||||||
|
title: p.basename(e.path),
|
||||||
|
option: e.path,
|
||||||
|
))
|
||||||
|
.toIList(),
|
||||||
|
),
|
||||||
|
);
|
||||||
|
|
||||||
|
if (value == null) return;
|
||||||
|
Share.shareXFiles(
|
||||||
|
[XFile(value, mimeType: 'text/plain')],
|
||||||
|
subject: 'Logs from subtracks: ${String.fromCharCodes(
|
||||||
|
List.generate(8, (_) => Random().nextInt(26) + 65),
|
||||||
|
)}',
|
||||||
|
);
|
||||||
|
},
|
||||||
|
),
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -8,9 +8,11 @@ import 'package:flutter_hooks/flutter_hooks.dart';
|
|||||||
import 'package:hooks_riverpod/hooks_riverpod.dart';
|
import 'package:hooks_riverpod/hooks_riverpod.dart';
|
||||||
|
|
||||||
import '../../database/database.dart';
|
import '../../database/database.dart';
|
||||||
|
import '../../log.dart';
|
||||||
import '../../models/settings.dart';
|
import '../../models/settings.dart';
|
||||||
import '../../services/settings_service.dart';
|
import '../../services/settings_service.dart';
|
||||||
import '../items.dart';
|
import '../items.dart';
|
||||||
|
import '../snackbars.dart';
|
||||||
|
|
||||||
class SourcePage extends HookConsumerWidget {
|
class SourcePage extends HookConsumerWidget {
|
||||||
final int? id;
|
final int? id;
|
||||||
@ -44,7 +46,7 @@ class SourcePage extends HookConsumerWidget {
|
|||||||
autofillHints: const [AutofillHints.url],
|
autofillHints: const [AutofillHints.url],
|
||||||
required: true,
|
required: true,
|
||||||
validator: (value, label) {
|
validator: (value, label) {
|
||||||
if (Uri.tryParse(value!) == null) {
|
if (!value!.contains(RegExp(r'https?:\/\/'))) {
|
||||||
return '$label must be a valid URL';
|
return '$label must be a valid URL';
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
@ -64,7 +66,7 @@ class SourcePage extends HookConsumerWidget {
|
|||||||
required: true,
|
required: true,
|
||||||
);
|
);
|
||||||
|
|
||||||
final forcePlaintextPassword = useState(!(source?.useTokenAuth ?? false));
|
final forcePlaintextPassword = useState(!(source?.useTokenAuth ?? true));
|
||||||
final forcePlaintextSwitch = SwitchListTile(
|
final forcePlaintextSwitch = SwitchListTile(
|
||||||
value: forcePlaintextPassword.value,
|
value: forcePlaintextPassword.value,
|
||||||
title: Text(l.settingsServersOptionsForcePlaintextPasswordTitle),
|
title: Text(l.settingsServersOptionsForcePlaintextPasswordTitle),
|
||||||
@ -161,8 +163,9 @@ class SourcePage extends HookConsumerWidget {
|
|||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
} catch (err) {
|
} catch (e, st) {
|
||||||
// TOOD: toast the error or whatever
|
showErrorSnackbar(context, e.toString());
|
||||||
|
log.severe('Saving source', e, st);
|
||||||
error = true;
|
error = true;
|
||||||
} finally {
|
} finally {
|
||||||
isSaving.value = false;
|
isSaving.value = false;
|
||||||
|
|||||||
14
lib/app/snackbars.dart
Normal file
14
lib/app/snackbars.dart
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
|
void showErrorSnackbar(BuildContext context, String message) {
|
||||||
|
final colors = Theme.of(context).colorScheme;
|
||||||
|
|
||||||
|
ScaffoldMessenger.of(context).showSnackBar(SnackBar(
|
||||||
|
content: Text(message, style: TextStyle(color: colors.onErrorContainer)),
|
||||||
|
backgroundColor: colors.errorContainer,
|
||||||
|
showCloseIcon: true,
|
||||||
|
closeIconColor: colors.onErrorContainer,
|
||||||
|
behavior: SnackBarBehavior.floating,
|
||||||
|
duration: const Duration(seconds: 10),
|
||||||
|
));
|
||||||
|
}
|
||||||
@ -9,11 +9,13 @@ import 'package:path/path.dart' as p;
|
|||||||
import 'package:path_provider/path_provider.dart';
|
import 'package:path_provider/path_provider.dart';
|
||||||
import 'package:riverpod_annotation/riverpod_annotation.dart';
|
import 'package:riverpod_annotation/riverpod_annotation.dart';
|
||||||
|
|
||||||
|
import '../log.dart';
|
||||||
import '../models/music.dart';
|
import '../models/music.dart';
|
||||||
import '../models/query.dart';
|
import '../models/query.dart';
|
||||||
import '../models/settings.dart';
|
import '../models/settings.dart';
|
||||||
import '../models/support.dart';
|
import '../models/support.dart';
|
||||||
import 'converters.dart';
|
import 'converters.dart';
|
||||||
|
import 'error_logging_database.dart';
|
||||||
|
|
||||||
part 'database.g.dart';
|
part 'database.g.dart';
|
||||||
|
|
||||||
@ -435,7 +437,11 @@ LazyDatabase _openConnection() {
|
|||||||
final dbFolder = await getApplicationDocumentsDirectory();
|
final dbFolder = await getApplicationDocumentsDirectory();
|
||||||
final file = File(p.join(dbFolder.path, 'subtracks.sqlite'));
|
final file = File(p.join(dbFolder.path, 'subtracks.sqlite'));
|
||||||
// return NativeDatabase.createInBackground(file, logStatements: true);
|
// return NativeDatabase.createInBackground(file, logStatements: true);
|
||||||
return NativeDatabase.createInBackground(file);
|
|
||||||
|
return ErrorLoggingDatabase(
|
||||||
|
NativeDatabase.createInBackground(file),
|
||||||
|
(e, s) => log.severe('SQL error', e, s),
|
||||||
|
);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
94
lib/database/error_logging_database.dart
Normal file
94
lib/database/error_logging_database.dart
Normal file
@ -0,0 +1,94 @@
|
|||||||
|
import 'dart:async';
|
||||||
|
|
||||||
|
import 'package:drift/drift.dart';
|
||||||
|
import 'package:drift/isolate.dart';
|
||||||
|
|
||||||
|
/// https://github.com/simolus3/drift/issues/2326#issuecomment-1445138730
|
||||||
|
class ErrorLoggingDatabase implements QueryExecutor {
|
||||||
|
final QueryExecutor inner;
|
||||||
|
final void Function(Object, StackTrace) onError;
|
||||||
|
|
||||||
|
ErrorLoggingDatabase(this.inner, this.onError);
|
||||||
|
|
||||||
|
Future<T> _handleErrors<T>(Future<T> Function() body) {
|
||||||
|
return Future.sync(body)
|
||||||
|
.onError<DriftWrappedException>((error, stackTrace) {
|
||||||
|
onError(error, error.trace ?? stackTrace);
|
||||||
|
throw error;
|
||||||
|
}).onError<DriftRemoteException>((error, stackTrace) {
|
||||||
|
onError(error, error.remoteStackTrace ?? stackTrace);
|
||||||
|
throw error;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
@override
|
||||||
|
TransactionExecutor beginTransaction() {
|
||||||
|
return _ErrorLoggingTransactionExecutor(inner.beginTransaction(), onError);
|
||||||
|
}
|
||||||
|
|
||||||
|
@override
|
||||||
|
Future<void> close() {
|
||||||
|
return _handleErrors(inner.close);
|
||||||
|
}
|
||||||
|
|
||||||
|
@override
|
||||||
|
SqlDialect get dialect => inner.dialect;
|
||||||
|
|
||||||
|
@override
|
||||||
|
Future<bool> ensureOpen(QueryExecutorUser user) {
|
||||||
|
return _handleErrors(() => inner.ensureOpen(user));
|
||||||
|
}
|
||||||
|
|
||||||
|
@override
|
||||||
|
Future<void> runBatched(BatchedStatements statements) {
|
||||||
|
return _handleErrors(() => inner.runBatched(statements));
|
||||||
|
}
|
||||||
|
|
||||||
|
@override
|
||||||
|
Future<void> runCustom(String statement, [List<Object?>? args]) {
|
||||||
|
return _handleErrors(() => inner.runCustom(statement, args));
|
||||||
|
}
|
||||||
|
|
||||||
|
@override
|
||||||
|
Future<int> runDelete(String statement, List<Object?> args) {
|
||||||
|
return _handleErrors(() => inner.runDelete(statement, args));
|
||||||
|
}
|
||||||
|
|
||||||
|
@override
|
||||||
|
Future<int> runInsert(String statement, List<Object?> args) {
|
||||||
|
return _handleErrors(() => inner.runInsert(statement, args));
|
||||||
|
}
|
||||||
|
|
||||||
|
@override
|
||||||
|
Future<List<Map<String, Object?>>> runSelect(
|
||||||
|
String statement, List<Object?> args) {
|
||||||
|
return _handleErrors(() => inner.runSelect(statement, args));
|
||||||
|
}
|
||||||
|
|
||||||
|
@override
|
||||||
|
Future<int> runUpdate(String statement, List<Object?> args) {
|
||||||
|
return _handleErrors(() => inner.runUpdate(statement, args));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
class _ErrorLoggingTransactionExecutor extends ErrorLoggingDatabase
|
||||||
|
implements TransactionExecutor {
|
||||||
|
final TransactionExecutor transaction;
|
||||||
|
|
||||||
|
_ErrorLoggingTransactionExecutor(
|
||||||
|
this.transaction, void Function(Object, StackTrace) onError)
|
||||||
|
: super(transaction, onError);
|
||||||
|
|
||||||
|
@override
|
||||||
|
Future<void> rollback() {
|
||||||
|
return _handleErrors(transaction.rollback);
|
||||||
|
}
|
||||||
|
|
||||||
|
@override
|
||||||
|
Future<void> send() {
|
||||||
|
return _handleErrors(transaction.send);
|
||||||
|
}
|
||||||
|
|
||||||
|
@override
|
||||||
|
bool get supportsNestedTransactions => transaction.supportsNestedTransactions;
|
||||||
|
}
|
||||||
@ -1,7 +1,8 @@
|
|||||||
import 'package:flutter/foundation.dart';
|
|
||||||
import 'package:http/http.dart';
|
import 'package:http/http.dart';
|
||||||
import 'package:riverpod_annotation/riverpod_annotation.dart';
|
import 'package:riverpod_annotation/riverpod_annotation.dart';
|
||||||
|
|
||||||
|
import '../log.dart';
|
||||||
|
|
||||||
part 'client.g.dart';
|
part 'client.g.dart';
|
||||||
|
|
||||||
const Map<String, String> subtracksHeaders = {
|
const Map<String, String> subtracksHeaders = {
|
||||||
@ -14,8 +15,14 @@ class SubtracksHttpClient extends BaseClient {
|
|||||||
@override
|
@override
|
||||||
Future<StreamedResponse> send(BaseRequest request) {
|
Future<StreamedResponse> send(BaseRequest request) {
|
||||||
request.headers.addAll(subtracksHeaders);
|
request.headers.addAll(subtracksHeaders);
|
||||||
if (kDebugMode) print('${request.method} ${request.url}');
|
log.info('${request.method} ${request.url}');
|
||||||
return request.send();
|
|
||||||
|
try {
|
||||||
|
return request.send();
|
||||||
|
} catch (e, st) {
|
||||||
|
log.severe('HTTP client: ${request.method} ${request.url}', e, st);
|
||||||
|
rethrow;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -1,166 +1,226 @@
|
|||||||
{
|
{
|
||||||
"actionsStar": "Ohodnotit",
|
"actionsStar": "Ohodnotit",
|
||||||
"@actionsStar": {},
|
"@actionsStar": {},
|
||||||
"actionsUnstar": "Zrušit hodnocení",
|
"actionsUnstar": "Zrušit hodnocení",
|
||||||
"@actionsUnstar": {},
|
"@actionsUnstar": {},
|
||||||
"messagesNothingHere": "Zde nic není…",
|
"messagesNothingHere": "Zde nic není…",
|
||||||
"@messagesNothingHere": {},
|
"@messagesNothingHere": {},
|
||||||
"navigationTabsHome": "Domů",
|
"navigationTabsHome": "Domů",
|
||||||
"@navigationTabsHome": {},
|
"@navigationTabsHome": {},
|
||||||
"navigationTabsLibrary": "Knihovna",
|
"navigationTabsLibrary": "Knihovna",
|
||||||
"@navigationTabsLibrary": {},
|
"@navigationTabsLibrary": {},
|
||||||
"navigationTabsSearch": "Hledat",
|
"navigationTabsSearch": "Hledat",
|
||||||
"@navigationTabsSearch": {},
|
"@navigationTabsSearch": {},
|
||||||
"navigationTabsSettings": "Nastavení",
|
"navigationTabsSettings": "Nastavení",
|
||||||
"@navigationTabsSettings": {},
|
"@navigationTabsSettings": {},
|
||||||
"resourcesAlbumActionsPlay": "Přehrát album",
|
"resourcesAlbumActionsPlay": "Přehrát album",
|
||||||
"@resourcesAlbumActionsPlay": {},
|
"@resourcesAlbumActionsPlay": {},
|
||||||
"resourcesAlbumActionsView": "Zobrazit album",
|
"resourcesAlbumActionsView": "Zobrazit album",
|
||||||
"@resourcesAlbumActionsView": {},
|
"@resourcesAlbumActionsView": {},
|
||||||
"resourcesAlbumListsSort": "Seřadit alba",
|
"resourcesAlbumListsSort": "Seřadit alba",
|
||||||
"@resourcesAlbumListsSort": {},
|
"@resourcesAlbumListsSort": {},
|
||||||
"resourcesAlbumName": "{count,plural, =1{Album} few{Alba} many{Alba} other{Alba}}",
|
"resourcesAlbumName": "{count,plural, =1{Album} few{Alba} many{Alba} other{Alba}}",
|
||||||
"@resourcesAlbumName": {
|
"@resourcesAlbumName": {
|
||||||
"placeholders": {
|
"placeholders": {
|
||||||
"count": {
|
"count": {
|
||||||
"type": "int"
|
"type": "int"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"resourcesArtistActionsView": "Zobrazit umělce",
|
"resourcesArtistActionsView": "Zobrazit umělce",
|
||||||
"@resourcesArtistActionsView": {},
|
"@resourcesArtistActionsView": {},
|
||||||
"resourcesArtistListsSort": "Seřadit umělce",
|
"resourcesArtistListsSort": "Seřadit umělce",
|
||||||
"@resourcesArtistListsSort": {},
|
"@resourcesArtistListsSort": {},
|
||||||
"resourcesArtistName": "{count,plural, =1{Umělec} few{Umělci} many{Umělci} other{Umělci}}",
|
"resourcesArtistName": "{count,plural, =1{Umělec} few{Umělci} many{Umělci} other{Umělci}}",
|
||||||
"@resourcesArtistName": {
|
"@resourcesArtistName": {
|
||||||
"placeholders": {
|
"placeholders": {
|
||||||
"count": {
|
"count": {
|
||||||
"type": "int"
|
"type": "int"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"resourcesFilterGenre": "Podle žánru",
|
"resourcesFilterGenre": "Podle žánru",
|
||||||
"@resourcesFilterGenre": {},
|
"@resourcesFilterGenre": {},
|
||||||
"resourcesFilterStarred": "Ohodnocené",
|
"resourcesFilterStarred": "Ohodnocené",
|
||||||
"@resourcesFilterStarred": {},
|
"@resourcesFilterStarred": {},
|
||||||
"resourcesPlaylistActionsPlay": "Přehrát seznam skladeb",
|
"resourcesPlaylistActionsPlay": "Přehrát seznam skladeb",
|
||||||
"@resourcesPlaylistActionsPlay": {},
|
"@resourcesPlaylistActionsPlay": {},
|
||||||
"resourcesPlaylistName": "{count,plural, =1{Seznam skladeb} few{Seznamy skladeb} many{Seznamy skladeb} other{Seznamy skladeb}}",
|
"resourcesPlaylistName": "{count,plural, =1{Seznam skladeb} few{Seznamy skladeb} many{Seznamy skladeb} other{Seznamy skladeb}}",
|
||||||
"@resourcesPlaylistName": {
|
"@resourcesPlaylistName": {
|
||||||
"placeholders": {
|
"placeholders": {
|
||||||
"count": {
|
"count": {
|
||||||
"type": "int"
|
"type": "int"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"resourcesQueueName": "{count,plural, =1{Fronta} few{Fronty} many{Fronty} other{Fronty}}",
|
"resourcesQueueName": "{count,plural, =1{Fronta} few{Fronty} many{Fronty} other{Fronty}}",
|
||||||
"@resourcesQueueName": {
|
"@resourcesQueueName": {
|
||||||
"placeholders": {
|
"placeholders": {
|
||||||
"count": {
|
"count": {
|
||||||
"type": "int"
|
"type": "int"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"resourcesSongListsArtistTopSongs": "Top skladby",
|
"resourcesSongListsArtistTopSongs": "Top skladby",
|
||||||
"@resourcesSongListsArtistTopSongs": {},
|
"@resourcesSongListsArtistTopSongs": {},
|
||||||
"resourcesSongName": "{count,plural, =1{Skladba} few{Skladby} many{Skladby} other{Skladby}}",
|
"resourcesSongName": "{count,plural, =1{Skladba} few{Skladby} many{Skladby} other{Skladby}}",
|
||||||
"@resourcesSongName": {
|
"@resourcesSongName": {
|
||||||
"placeholders": {
|
"placeholders": {
|
||||||
"count": {
|
"count": {
|
||||||
"type": "int"
|
"type": "int"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"resourcesSortByAdded": "Nedávno přidané",
|
"resourcesSortByAdded": "Nedávno přidané",
|
||||||
"@resourcesSortByAdded": {},
|
"@resourcesSortByAdded": {},
|
||||||
"resourcesSortByArtist": "Podle umělce",
|
"resourcesSortByArtist": "Umělce",
|
||||||
"@resourcesSortByArtist": {},
|
"@resourcesSortByArtist": {},
|
||||||
"resourcesSortByFrequentlyPlayed": "Často přehrávané",
|
"resourcesSortByFrequentlyPlayed": "Často přehrávané",
|
||||||
"@resourcesSortByFrequentlyPlayed": {},
|
"@resourcesSortByFrequentlyPlayed": {},
|
||||||
"resourcesSortByName": "Podle názvu",
|
"resourcesSortByName": "Názvu",
|
||||||
"@resourcesSortByName": {},
|
"@resourcesSortByName": {},
|
||||||
"resourcesSortByRandom": "Náhodně",
|
"resourcesSortByRandom": "Náhodně",
|
||||||
"@resourcesSortByRandom": {},
|
"@resourcesSortByRandom": {},
|
||||||
"resourcesSortByRecentlyPlayed": "Často přehrávané",
|
"resourcesSortByRecentlyPlayed": "Často přehrávané",
|
||||||
"@resourcesSortByRecentlyPlayed": {},
|
"@resourcesSortByRecentlyPlayed": {},
|
||||||
"resourcesSortByYear": "Podle roku",
|
"resourcesSortByYear": "Roku",
|
||||||
"@resourcesSortByYear": {},
|
"@resourcesSortByYear": {},
|
||||||
"searchHeaderTitle": "Hledat: {query}",
|
"searchHeaderTitle": "Hledat: {query}",
|
||||||
"@searchHeaderTitle": {
|
"@searchHeaderTitle": {
|
||||||
"placeholders": {
|
"placeholders": {
|
||||||
"query": {
|
"query": {
|
||||||
"type": "String"
|
"type": "String"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"searchInputPlaceholder": "Hledat",
|
"searchInputPlaceholder": "Hledat",
|
||||||
"@searchInputPlaceholder": {},
|
"@searchInputPlaceholder": {},
|
||||||
"searchMoreResults": "Více…",
|
"searchMoreResults": "Více…",
|
||||||
"@searchMoreResults": {},
|
"@searchMoreResults": {},
|
||||||
"searchNowPlayingContext": "Výsledky hledání",
|
"searchNowPlayingContext": "Výsledky hledání",
|
||||||
"@searchNowPlayingContext": {},
|
"@searchNowPlayingContext": {},
|
||||||
"settingsNetworkName": "Síť",
|
"settingsNetworkName": "Síť",
|
||||||
"@settingsNetworkName": {},
|
"@settingsNetworkName": {},
|
||||||
"settingsNetworkOptionsMaxBitrateMobileTitle": "Maximální datový tok (mobil)",
|
"settingsNetworkOptionsMaxBitrateMobileTitle": "Maximální datový tok (mobil)",
|
||||||
"@settingsNetworkOptionsMaxBitrateMobileTitle": {},
|
"@settingsNetworkOptionsMaxBitrateMobileTitle": {},
|
||||||
"settingsNetworkOptionsMaxBitrateWifiTitle": "Maximální datový tok (Wi-Fi)",
|
"settingsNetworkOptionsMaxBitrateWifiTitle": "Maximální datový tok (Wi-Fi)",
|
||||||
"@settingsNetworkOptionsMaxBitrateWifiTitle": {},
|
"@settingsNetworkOptionsMaxBitrateWifiTitle": {},
|
||||||
"settingsNetworkValuesKbps": "{value}kbps",
|
"settingsNetworkValuesKbps": "{value}kbps",
|
||||||
"@settingsNetworkValuesKbps": {
|
"@settingsNetworkValuesKbps": {
|
||||||
"placeholders": {
|
"placeholders": {
|
||||||
"value": {
|
"value": {
|
||||||
"type": "String"
|
"type": "String"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"settingsNetworkValuesSeconds": "{value} sekund",
|
"settingsNetworkValuesSeconds": "{value} sekund",
|
||||||
"@settingsNetworkValuesSeconds": {
|
"@settingsNetworkValuesSeconds": {
|
||||||
"placeholders": {
|
"placeholders": {
|
||||||
"value": {
|
"value": {
|
||||||
"type": "String"
|
"type": "String"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"settingsNetworkValuesUnlimitedKbps": "Neomezeno",
|
"settingsNetworkValuesUnlimitedKbps": "Neomezeno",
|
||||||
"@settingsNetworkValuesUnlimitedKbps": {},
|
"@settingsNetworkValuesUnlimitedKbps": {},
|
||||||
"settingsServersActionsAdd": "Přidat server",
|
"settingsServersActionsAdd": "Přidat server",
|
||||||
"@settingsServersActionsAdd": {},
|
"@settingsServersActionsAdd": {},
|
||||||
"settingsServersActionsDelete": "Odstranit",
|
"settingsServersActionsDelete": "Odstranit",
|
||||||
"@settingsServersActionsDelete": {},
|
"@settingsServersActionsDelete": {},
|
||||||
"settingsServersActionsEdit": "Upravit server",
|
"settingsServersActionsEdit": "Upravit server",
|
||||||
"@settingsServersActionsEdit": {},
|
"@settingsServersActionsEdit": {},
|
||||||
"settingsServersActionsSave": "Uložit",
|
"settingsServersActionsSave": "Uložit",
|
||||||
"@settingsServersActionsSave": {},
|
"@settingsServersActionsSave": {},
|
||||||
"settingsServersActionsTestConnection": "Otestovat spojení",
|
"settingsServersActionsTestConnection": "Otestovat spojení",
|
||||||
"@settingsServersActionsTestConnection": {},
|
"@settingsServersActionsTestConnection": {},
|
||||||
"settingsServersFieldsAddress": "Adresa",
|
"settingsServersFieldsAddress": "Adresa",
|
||||||
"@settingsServersFieldsAddress": {},
|
"@settingsServersFieldsAddress": {},
|
||||||
"settingsServersFieldsPassword": "Heslo",
|
"settingsServersFieldsPassword": "Heslo",
|
||||||
"@settingsServersFieldsPassword": {},
|
"@settingsServersFieldsPassword": {},
|
||||||
"settingsServersFieldsUsername": "Uživ. jméno",
|
"settingsServersFieldsUsername": "Uživ. jméno",
|
||||||
"@settingsServersFieldsUsername": {},
|
"@settingsServersFieldsUsername": {},
|
||||||
"settingsServersMessagesConnectionFailed": "Připojení k {address} selhalo, zkontrolujte nastavení nebo server",
|
"settingsServersMessagesConnectionFailed": "Připojení k {address} selhalo, zkontrolujte nastavení nebo server",
|
||||||
"@settingsServersMessagesConnectionFailed": {
|
"@settingsServersMessagesConnectionFailed": {
|
||||||
"placeholders": {
|
"placeholders": {
|
||||||
"address": {
|
"address": {
|
||||||
"type": "String"
|
"type": "String"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"settingsServersMessagesConnectionOk": "Připojení k {address} je OK!",
|
"settingsServersMessagesConnectionOk": "Připojení k {address} je OK!",
|
||||||
"@settingsServersMessagesConnectionOk": {
|
"@settingsServersMessagesConnectionOk": {
|
||||||
"placeholders": {
|
"placeholders": {
|
||||||
"address": {
|
"address": {
|
||||||
"type": "String"
|
"type": "String"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"settingsServersName": "Servery",
|
"settingsServersName": "Servery",
|
||||||
"@settingsServersName": {},
|
"@settingsServersName": {},
|
||||||
"settingsServersOptionsForcePlaintextPasswordDescriptionOff": "Posílat heslo jako token + salt",
|
"settingsServersOptionsForcePlaintextPasswordDescriptionOff": "Posílat heslo jako token + salt",
|
||||||
"@settingsServersOptionsForcePlaintextPasswordDescriptionOff": {},
|
"@settingsServersOptionsForcePlaintextPasswordDescriptionOff": {},
|
||||||
"settingsServersOptionsForcePlaintextPasswordDescriptionOn": "Posílat heslo v prostém textu (zastaralé, ujistěte se, že je vaše připojení zabezpečené!)",
|
"settingsServersOptionsForcePlaintextPasswordDescriptionOn": "Posílat heslo v prostém textu (zastaralé, ujistěte se, že je vaše připojení zabezpečené!)",
|
||||||
"@settingsServersOptionsForcePlaintextPasswordDescriptionOn": {},
|
"@settingsServersOptionsForcePlaintextPasswordDescriptionOn": {},
|
||||||
"settingsServersOptionsForcePlaintextPasswordTitle": "Vynutit heslo ve formátu prostého textu",
|
"settingsServersOptionsForcePlaintextPasswordTitle": "Vynutit heslo ve formátu prostého textu",
|
||||||
"@settingsServersOptionsForcePlaintextPasswordTitle": {}
|
"@settingsServersOptionsForcePlaintextPasswordTitle": {},
|
||||||
|
"actionsDownloadDelete": "Smazat stažené",
|
||||||
|
"@actionsDownloadDelete": {},
|
||||||
|
"actionsOk": "OK",
|
||||||
|
"@actionsOk": {},
|
||||||
|
"actionsCancel": "Zrušit",
|
||||||
|
"@actionsCancel": {},
|
||||||
|
"actionsDownload": "Stáhnout",
|
||||||
|
"@actionsDownload": {},
|
||||||
|
"controlsShuffle": "Náhodně",
|
||||||
|
"@controlsShuffle": {},
|
||||||
|
"resourcesFilterAlbum": "Album",
|
||||||
|
"@resourcesFilterAlbum": {},
|
||||||
|
"resourcesFilterArtist": "Umělec",
|
||||||
|
"@resourcesFilterArtist": {},
|
||||||
|
"resourcesFilterYear": "Rok",
|
||||||
|
"@resourcesFilterYear": {},
|
||||||
|
"resourcesFilterOwner": "Majitele",
|
||||||
|
"@resourcesFilterOwner": {},
|
||||||
|
"resourcesSongListDeleteAllTitle": "Smazat stažené?",
|
||||||
|
"@resourcesSongListDeleteAllTitle": {},
|
||||||
|
"resourcesSongListDeleteAllContent": "Toto odstraní všechny stažené soubory s hudbou.",
|
||||||
|
"@resourcesSongListDeleteAllContent": {},
|
||||||
|
"resourcesSortByUpdated": "Naposledy upravené",
|
||||||
|
"@resourcesSortByUpdated": {},
|
||||||
|
"resourcesSortByAlbum": "Alba",
|
||||||
|
"@resourcesSortByAlbum": {},
|
||||||
|
"resourcesSortByAlbumCount": "Počtu alb",
|
||||||
|
"@resourcesSortByAlbumCount": {},
|
||||||
|
"resourcesSortByTitle": "Názvu",
|
||||||
|
"@resourcesSortByTitle": {},
|
||||||
|
"settingsAboutActionsLicenses": "Licence",
|
||||||
|
"@settingsAboutActionsLicenses": {},
|
||||||
|
"settingsAboutActionsProjectHomepage": "Stránka projektu",
|
||||||
|
"@settingsAboutActionsProjectHomepage": {},
|
||||||
|
"settingsAboutActionsSupport": "Podpořit vývojáře 💜",
|
||||||
|
"@settingsAboutActionsSupport": {},
|
||||||
|
"settingsAboutVersion": "verze {version}",
|
||||||
|
"@settingsAboutVersion": {
|
||||||
|
"placeholders": {
|
||||||
|
"version": {
|
||||||
|
"type": "String"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"settingsNetworkOptionsStreamFormat": "Preferovaný formát pro streamování",
|
||||||
|
"@settingsNetworkOptionsStreamFormat": {},
|
||||||
|
"settingsNetworkOptionsStreamFormatServerDefault": "Použít nastavení serveru",
|
||||||
|
"@settingsNetworkOptionsStreamFormatServerDefault": {},
|
||||||
|
"settingsResetActionsClearImageCache": "Smazat mezipaměť obrázků",
|
||||||
|
"@settingsResetActionsClearImageCache": {},
|
||||||
|
"settingsResetName": "Resetovat",
|
||||||
|
"@settingsResetName": {},
|
||||||
|
"settingsServersFieldsName": "Jméno",
|
||||||
|
"@settingsServersFieldsName": {},
|
||||||
|
"settingsAboutName": "O aplikaci",
|
||||||
|
"@settingsAboutName": {},
|
||||||
|
"actionsDownloadCancel": "Zrušit stahování",
|
||||||
|
"@actionsDownloadCancel": {},
|
||||||
|
"actionsDelete": "Smazat",
|
||||||
|
"@actionsDelete": {}
|
||||||
}
|
}
|
||||||
@ -202,5 +202,75 @@
|
|||||||
"controlsShuffle": "Zufall",
|
"controlsShuffle": "Zufall",
|
||||||
"@controlsShuffle": {},
|
"@controlsShuffle": {},
|
||||||
"actionsCancel": "Abbrechen",
|
"actionsCancel": "Abbrechen",
|
||||||
"@actionsCancel": {}
|
"@actionsCancel": {},
|
||||||
|
"actionsDownloadDelete": "Heruntergeladene Inhalte löschen",
|
||||||
|
"@actionsDownloadDelete": {},
|
||||||
|
"actionsOk": "OK",
|
||||||
|
"@actionsOk": {},
|
||||||
|
"resourcesAlbumCount": "{count,plural, =1{{count} Album} other{{count} Alben}}",
|
||||||
|
"@resourcesAlbumCount": {
|
||||||
|
"placeholders": {
|
||||||
|
"count": {
|
||||||
|
"type": "int"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"resourcesFilterAlbum": "Album",
|
||||||
|
"@resourcesFilterAlbum": {},
|
||||||
|
"resourcesArtistCount": "{count,plural, =1{{count} Künstler} other{{count} Künstler}}",
|
||||||
|
"@resourcesArtistCount": {
|
||||||
|
"placeholders": {
|
||||||
|
"count": {
|
||||||
|
"type": "int"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"resourcesFilterArtist": "Künstler",
|
||||||
|
"@resourcesFilterArtist": {},
|
||||||
|
"resourcesFilterOwner": "Besitzer",
|
||||||
|
"@resourcesFilterOwner": {},
|
||||||
|
"resourcesFilterYear": "Jahr",
|
||||||
|
"@resourcesFilterYear": {},
|
||||||
|
"resourcesPlaylistCount": "{count,plural, =1{{count} Playlist} other{{count} Playlists}}",
|
||||||
|
"@resourcesPlaylistCount": {
|
||||||
|
"placeholders": {
|
||||||
|
"count": {
|
||||||
|
"type": "int"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"resourcesSongCount": "{count,plural, =1{{count} Song} other{{count} Songs}}",
|
||||||
|
"@resourcesSongCount": {
|
||||||
|
"placeholders": {
|
||||||
|
"count": {
|
||||||
|
"type": "int"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"resourcesSongListDeleteAllContent": "Hierdurch werden alle heruntergeladenen Inhalte entfernt.",
|
||||||
|
"@resourcesSongListDeleteAllContent": {},
|
||||||
|
"resourcesSortByAlbum": "Album",
|
||||||
|
"@resourcesSortByAlbum": {},
|
||||||
|
"resourcesSortByAlbumCount": "Albenanzahl",
|
||||||
|
"@resourcesSortByAlbumCount": {},
|
||||||
|
"resourcesSortByTitle": "Titel",
|
||||||
|
"@resourcesSortByTitle": {},
|
||||||
|
"resourcesSortByUpdated": "Kürzlich hinzugefügt",
|
||||||
|
"@resourcesSortByUpdated": {},
|
||||||
|
"settingsAboutActionsSupport": "Den Entwickler unterstützen",
|
||||||
|
"@settingsAboutActionsSupport": {},
|
||||||
|
"settingsNetworkOptionsOfflineMode": "Offline Modus",
|
||||||
|
"@settingsNetworkOptionsOfflineMode": {},
|
||||||
|
"settingsNetworkOptionsOfflineModeOff": "Nutze das Internet um Musik zu synchronisieren.",
|
||||||
|
"@settingsNetworkOptionsOfflineModeOff": {},
|
||||||
|
"settingsNetworkOptionsOfflineModeOn": "Nutze nicht das Internet um Musik zu synchronisieren.",
|
||||||
|
"@settingsNetworkOptionsOfflineModeOn": {},
|
||||||
|
"settingsNetworkOptionsStreamFormat": "Bevorzugtes Streaming-Format",
|
||||||
|
"@settingsNetworkOptionsStreamFormat": {},
|
||||||
|
"settingsServersFieldsName": "Name",
|
||||||
|
"@settingsServersFieldsName": {},
|
||||||
|
"resourcesSongListDeleteAllTitle": "Downloads löschen?",
|
||||||
|
"@resourcesSongListDeleteAllTitle": {},
|
||||||
|
"settingsNetworkOptionsStreamFormatServerDefault": "Server-Standard verwenden",
|
||||||
|
"@settingsNetworkOptionsStreamFormatServerDefault": {}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -173,6 +173,10 @@
|
|||||||
"@settingsAboutActionsSupport": {},
|
"@settingsAboutActionsSupport": {},
|
||||||
"settingsAboutName": "About",
|
"settingsAboutName": "About",
|
||||||
"@settingsAboutName": {},
|
"@settingsAboutName": {},
|
||||||
|
"settingsAboutShareLogs": "Share logs",
|
||||||
|
"@settingsAboutShareLogs": {},
|
||||||
|
"settingsAboutChooseLog": "Choose a log file",
|
||||||
|
"@settingsAboutChooseLog": {},
|
||||||
"settingsAboutVersion": "version {version}",
|
"settingsAboutVersion": "version {version}",
|
||||||
"@settingsAboutVersion": {
|
"@settingsAboutVersion": {
|
||||||
"placeholders": {
|
"placeholders": {
|
||||||
|
|||||||
@ -272,5 +272,9 @@
|
|||||||
"resourcesSortByTitle": "Título",
|
"resourcesSortByTitle": "Título",
|
||||||
"@resourcesSortByTitle": {},
|
"@resourcesSortByTitle": {},
|
||||||
"resourcesSortByUpdated": "Actualizado recentemente",
|
"resourcesSortByUpdated": "Actualizado recentemente",
|
||||||
"@resourcesSortByUpdated": {}
|
"@resourcesSortByUpdated": {},
|
||||||
|
"settingsAboutShareLogs": "Compartir rexistros",
|
||||||
|
"@settingsAboutShareLogs": {},
|
||||||
|
"settingsAboutChooseLog": "Escolle un ficheiro de rexistro",
|
||||||
|
"@settingsAboutChooseLog": {}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,196 +1,230 @@
|
|||||||
{
|
{
|
||||||
"actionsStar": "Favorito",
|
"actionsStar": "Favorito",
|
||||||
"@actionsStar": {},
|
"@actionsStar": {},
|
||||||
"actionsUnstar": "Remover favorito",
|
"actionsUnstar": "Remover favorito",
|
||||||
"@actionsUnstar": {},
|
"@actionsUnstar": {},
|
||||||
"messagesNothingHere": "Não existe nada…",
|
"messagesNothingHere": "Não existe nada…",
|
||||||
"@messagesNothingHere": {},
|
"@messagesNothingHere": {},
|
||||||
"navigationTabsHome": "Início",
|
"navigationTabsHome": "Início",
|
||||||
"@navigationTabsHome": {},
|
"@navigationTabsHome": {},
|
||||||
"navigationTabsLibrary": "Biblioteca",
|
"navigationTabsLibrary": "Biblioteca",
|
||||||
"@navigationTabsLibrary": {},
|
"@navigationTabsLibrary": {},
|
||||||
"navigationTabsSearch": "Procurar",
|
"navigationTabsSearch": "Procurar",
|
||||||
"@navigationTabsSearch": {},
|
"@navigationTabsSearch": {},
|
||||||
"navigationTabsSettings": "Definições",
|
"navigationTabsSettings": "Definições",
|
||||||
"@navigationTabsSettings": {},
|
"@navigationTabsSettings": {},
|
||||||
"resourcesAlbumActionsPlay": "Tocar Álbum",
|
"resourcesAlbumActionsPlay": "Tocar Álbum",
|
||||||
"@resourcesAlbumActionsPlay": {},
|
"@resourcesAlbumActionsPlay": {},
|
||||||
"resourcesAlbumActionsView": "Ver Álbum",
|
"resourcesAlbumActionsView": "Ver Álbum",
|
||||||
"@resourcesAlbumActionsView": {},
|
"@resourcesAlbumActionsView": {},
|
||||||
"resourcesAlbumListsSort": "Ordenar Álbuns",
|
"resourcesAlbumListsSort": "Ordenar Álbuns",
|
||||||
"@resourcesAlbumListsSort": {},
|
"@resourcesAlbumListsSort": {},
|
||||||
"resourcesAlbumName": "{count,plural, =1{Álbum} other{Álbuns}}",
|
"resourcesAlbumName": "{count,plural, =1{Álbum} other{Álbuns}}",
|
||||||
"@resourcesAlbumName": {
|
"@resourcesAlbumName": {
|
||||||
"placeholders": {
|
"placeholders": {
|
||||||
"count": {
|
"count": {
|
||||||
"type": "int"
|
"type": "int"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"resourcesArtistActionsView": "Ver Artista",
|
"resourcesArtistActionsView": "Ver Artista",
|
||||||
"@resourcesArtistActionsView": {},
|
"@resourcesArtistActionsView": {},
|
||||||
"resourcesArtistListsSort": "Ordenar Artistas",
|
"resourcesArtistListsSort": "Ordenar Artistas",
|
||||||
"@resourcesArtistListsSort": {},
|
"@resourcesArtistListsSort": {},
|
||||||
"resourcesArtistName": "{count,plural, =1{Artista} other{Artistas}}",
|
"resourcesArtistName": "{count,plural, =1{Artista} other{Artistas}}",
|
||||||
"@resourcesArtistName": {
|
"@resourcesArtistName": {
|
||||||
"placeholders": {
|
"placeholders": {
|
||||||
"count": {
|
"count": {
|
||||||
"type": "int"
|
"type": "int"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"resourcesFilterGenre": "Por Género",
|
"resourcesFilterGenre": "Por Género",
|
||||||
"@resourcesFilterGenre": {},
|
"@resourcesFilterGenre": {},
|
||||||
"resourcesFilterStarred": "Favoritos",
|
"resourcesFilterStarred": "Favoritos",
|
||||||
"@resourcesFilterStarred": {},
|
"@resourcesFilterStarred": {},
|
||||||
"resourcesPlaylistActionsPlay": "Tocar Playlist",
|
"resourcesPlaylistActionsPlay": "Tocar Playlist",
|
||||||
"@resourcesPlaylistActionsPlay": {},
|
"@resourcesPlaylistActionsPlay": {},
|
||||||
"resourcesPlaylistName": "{count,plural, =1{Lista} other{Listas}}",
|
"resourcesPlaylistName": "{count,plural, =1{Lista} other{Listas}}",
|
||||||
"@resourcesPlaylistName": {
|
"@resourcesPlaylistName": {
|
||||||
"placeholders": {
|
"placeholders": {
|
||||||
"count": {
|
"count": {
|
||||||
"type": "int"
|
"type": "int"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"resourcesQueueName": "{count,plural, =1{Fila} other{Filas}}",
|
"resourcesQueueName": "{count,plural, =1{Fila} other{Filas}}",
|
||||||
"@resourcesQueueName": {
|
"@resourcesQueueName": {
|
||||||
"placeholders": {
|
"placeholders": {
|
||||||
"count": {
|
"count": {
|
||||||
"type": "int"
|
"type": "int"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"resourcesSongListsArtistTopSongs": "Top Músicas",
|
"resourcesSongListsArtistTopSongs": "Top Músicas",
|
||||||
"@resourcesSongListsArtistTopSongs": {},
|
"@resourcesSongListsArtistTopSongs": {},
|
||||||
"resourcesSongName": "{count,plural, =1{Música} other{Músicas}}",
|
"resourcesSongName": "{count,plural, =1{Música} other{Músicas}}",
|
||||||
"@resourcesSongName": {
|
"@resourcesSongName": {
|
||||||
"placeholders": {
|
"placeholders": {
|
||||||
"count": {
|
"count": {
|
||||||
"type": "int"
|
"type": "int"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"resourcesSortByAdded": "Adicionado recentemente",
|
"resourcesSortByAdded": "Adicionado recentemente",
|
||||||
"@resourcesSortByAdded": {},
|
"@resourcesSortByAdded": {},
|
||||||
"resourcesSortByArtist": "Por Artista",
|
"resourcesSortByArtist": "Por Artista",
|
||||||
"@resourcesSortByArtist": {},
|
"@resourcesSortByArtist": {},
|
||||||
"resourcesSortByFrequentlyPlayed": "Mais Tocado",
|
"resourcesSortByFrequentlyPlayed": "Mais Tocado",
|
||||||
"@resourcesSortByFrequentlyPlayed": {},
|
"@resourcesSortByFrequentlyPlayed": {},
|
||||||
"resourcesSortByName": "Por Nome",
|
"resourcesSortByName": "Por Nome",
|
||||||
"@resourcesSortByName": {},
|
"@resourcesSortByName": {},
|
||||||
"resourcesSortByRandom": "Aleatório",
|
"resourcesSortByRandom": "Aleatório",
|
||||||
"@resourcesSortByRandom": {},
|
"@resourcesSortByRandom": {},
|
||||||
"resourcesSortByRecentlyPlayed": "Ouviu recentemente",
|
"resourcesSortByRecentlyPlayed": "Ouviu recentemente",
|
||||||
"@resourcesSortByRecentlyPlayed": {},
|
"@resourcesSortByRecentlyPlayed": {},
|
||||||
"resourcesSortByYear": "Por Ano",
|
"resourcesSortByYear": "Por Ano",
|
||||||
"@resourcesSortByYear": {},
|
"@resourcesSortByYear": {},
|
||||||
"searchHeaderTitle": "Procurar: {query}",
|
"searchHeaderTitle": "Procurar: {query}",
|
||||||
"@searchHeaderTitle": {
|
"@searchHeaderTitle": {
|
||||||
"placeholders": {
|
"placeholders": {
|
||||||
"query": {
|
"query": {
|
||||||
"type": "String"
|
"type": "String"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"searchInputPlaceholder": "Procurar",
|
"searchInputPlaceholder": "Procurar",
|
||||||
"@searchInputPlaceholder": {},
|
"@searchInputPlaceholder": {},
|
||||||
"searchMoreResults": "Mais…",
|
"searchMoreResults": "Mais…",
|
||||||
"@searchMoreResults": {},
|
"@searchMoreResults": {},
|
||||||
"searchNowPlayingContext": "Resultados da Pesquisa",
|
"searchNowPlayingContext": "Resultados da Pesquisa",
|
||||||
"@searchNowPlayingContext": {},
|
"@searchNowPlayingContext": {},
|
||||||
"settingsAboutActionsLicenses": "Licenças",
|
"settingsAboutActionsLicenses": "Licenças",
|
||||||
"@settingsAboutActionsLicenses": {},
|
"@settingsAboutActionsLicenses": {},
|
||||||
"settingsAboutActionsProjectHomepage": "Página do Projeto",
|
"settingsAboutActionsProjectHomepage": "Página do Projeto",
|
||||||
"@settingsAboutActionsProjectHomepage": {},
|
"@settingsAboutActionsProjectHomepage": {},
|
||||||
"settingsAboutName": "Acerca",
|
"settingsAboutName": "Acerca",
|
||||||
"@settingsAboutName": {},
|
"@settingsAboutName": {},
|
||||||
"settingsAboutVersion": "versão {version}",
|
"settingsAboutVersion": "versão {version}",
|
||||||
"@settingsAboutVersion": {
|
"@settingsAboutVersion": {
|
||||||
"placeholders": {
|
"placeholders": {
|
||||||
"version": {
|
"version": {
|
||||||
"type": "String"
|
"type": "String"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"settingsMusicName": "Música",
|
"settingsMusicName": "Música",
|
||||||
"@settingsMusicName": {},
|
"@settingsMusicName": {},
|
||||||
"settingsMusicOptionsScrobbleDescriptionOff": "Não enviar histórico de reproduções por scrobble",
|
"settingsMusicOptionsScrobbleDescriptionOff": "Não enviar histórico de reproduções por scrobble",
|
||||||
"@settingsMusicOptionsScrobbleDescriptionOff": {},
|
"@settingsMusicOptionsScrobbleDescriptionOff": {},
|
||||||
"settingsMusicOptionsScrobbleDescriptionOn": "Enviar histórico de reproduções por scrobble",
|
"settingsMusicOptionsScrobbleDescriptionOn": "Enviar histórico de reproduções por scrobble",
|
||||||
"@settingsMusicOptionsScrobbleDescriptionOn": {},
|
"@settingsMusicOptionsScrobbleDescriptionOn": {},
|
||||||
"settingsMusicOptionsScrobbleTitle": "Enviar reproduções por scrobble",
|
"settingsMusicOptionsScrobbleTitle": "Enviar reproduções por scrobble",
|
||||||
"@settingsMusicOptionsScrobbleTitle": {},
|
"@settingsMusicOptionsScrobbleTitle": {},
|
||||||
"settingsNetworkName": "Rede",
|
"settingsNetworkName": "Rede",
|
||||||
"@settingsNetworkName": {},
|
"@settingsNetworkName": {},
|
||||||
"settingsNetworkOptionsMaxBitrateMobileTitle": "Bitrate Máximo (móvel)",
|
"settingsNetworkOptionsMaxBitrateMobileTitle": "Bitrate Máximo (móvel)",
|
||||||
"@settingsNetworkOptionsMaxBitrateMobileTitle": {},
|
"@settingsNetworkOptionsMaxBitrateMobileTitle": {},
|
||||||
"settingsNetworkOptionsMaxBitrateWifiTitle": "Bitrate Máximo (Wi-Fi)",
|
"settingsNetworkOptionsMaxBitrateWifiTitle": "Bitrate Máximo (Wi-Fi)",
|
||||||
"@settingsNetworkOptionsMaxBitrateWifiTitle": {},
|
"@settingsNetworkOptionsMaxBitrateWifiTitle": {},
|
||||||
"settingsNetworkOptionsMaxBufferTitle": "Tempo de buffer máximo",
|
"settingsNetworkOptionsMaxBufferTitle": "Tempo de buffer máximo",
|
||||||
"@settingsNetworkOptionsMaxBufferTitle": {},
|
"@settingsNetworkOptionsMaxBufferTitle": {},
|
||||||
"settingsNetworkOptionsMinBufferTitle": "Tempo de buffer mínimo",
|
"settingsNetworkOptionsMinBufferTitle": "Tempo de buffer mínimo",
|
||||||
"@settingsNetworkOptionsMinBufferTitle": {},
|
"@settingsNetworkOptionsMinBufferTitle": {},
|
||||||
"settingsNetworkValuesKbps": "{value}kbps",
|
"settingsNetworkValuesKbps": "{value}kbps",
|
||||||
"@settingsNetworkValuesKbps": {
|
"@settingsNetworkValuesKbps": {
|
||||||
"placeholders": {
|
"placeholders": {
|
||||||
"value": {
|
"value": {
|
||||||
"type": "String"
|
"type": "String"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"settingsNetworkValuesSeconds": "{value} segundos",
|
"settingsNetworkValuesSeconds": "{value} segundos",
|
||||||
"@settingsNetworkValuesSeconds": {
|
"@settingsNetworkValuesSeconds": {
|
||||||
"placeholders": {
|
"placeholders": {
|
||||||
"value": {
|
"value": {
|
||||||
"type": "String"
|
"type": "String"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"settingsNetworkValuesUnlimitedKbps": "Ilimitado",
|
"settingsNetworkValuesUnlimitedKbps": "Ilimitado",
|
||||||
"@settingsNetworkValuesUnlimitedKbps": {},
|
"@settingsNetworkValuesUnlimitedKbps": {},
|
||||||
"settingsResetActionsClearImageCache": "Limpar cache de Imagens",
|
"settingsResetActionsClearImageCache": "Limpar cache de Imagens",
|
||||||
"@settingsResetActionsClearImageCache": {},
|
"@settingsResetActionsClearImageCache": {},
|
||||||
"settingsResetName": "Redefinir",
|
"settingsResetName": "Redefinir",
|
||||||
"@settingsResetName": {},
|
"@settingsResetName": {},
|
||||||
"settingsServersActionsAdd": "Adicionar Servidor",
|
"settingsServersActionsAdd": "Adicionar Servidor",
|
||||||
"@settingsServersActionsAdd": {},
|
"@settingsServersActionsAdd": {},
|
||||||
"settingsServersActionsDelete": "Apagar",
|
"settingsServersActionsDelete": "Apagar",
|
||||||
"@settingsServersActionsDelete": {},
|
"@settingsServersActionsDelete": {},
|
||||||
"settingsServersActionsEdit": "Editar Servidor",
|
"settingsServersActionsEdit": "Editar Servidor",
|
||||||
"@settingsServersActionsEdit": {},
|
"@settingsServersActionsEdit": {},
|
||||||
"settingsServersActionsSave": "Guardar",
|
"settingsServersActionsSave": "Guardar",
|
||||||
"@settingsServersActionsSave": {},
|
"@settingsServersActionsSave": {},
|
||||||
"settingsServersActionsTestConnection": "Testar Ligação",
|
"settingsServersActionsTestConnection": "Testar Ligação",
|
||||||
"@settingsServersActionsTestConnection": {},
|
"@settingsServersActionsTestConnection": {},
|
||||||
"settingsServersFieldsAddress": "Endereço",
|
"settingsServersFieldsAddress": "Endereço",
|
||||||
"@settingsServersFieldsAddress": {},
|
"@settingsServersFieldsAddress": {},
|
||||||
"settingsServersFieldsPassword": "Senha",
|
"settingsServersFieldsPassword": "Senha",
|
||||||
"@settingsServersFieldsPassword": {},
|
"@settingsServersFieldsPassword": {},
|
||||||
"settingsServersFieldsUsername": "Nome de utilizador",
|
"settingsServersFieldsUsername": "Nome de utilizador",
|
||||||
"@settingsServersFieldsUsername": {},
|
"@settingsServersFieldsUsername": {},
|
||||||
"settingsServersMessagesConnectionFailed": "Ligação a {address} falhou, verifique definições ou servidor",
|
"settingsServersMessagesConnectionFailed": "Ligação a {address} falhou, verifique definições ou servidor",
|
||||||
"@settingsServersMessagesConnectionFailed": {
|
"@settingsServersMessagesConnectionFailed": {
|
||||||
"placeholders": {
|
"placeholders": {
|
||||||
"address": {
|
"address": {
|
||||||
"type": "String"
|
"type": "String"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"settingsServersMessagesConnectionOk": "Ligação a {address} OK!",
|
"settingsServersMessagesConnectionOk": "Ligação a {address} OK!",
|
||||||
"@settingsServersMessagesConnectionOk": {
|
"@settingsServersMessagesConnectionOk": {
|
||||||
"placeholders": {
|
"placeholders": {
|
||||||
"address": {
|
"address": {
|
||||||
"type": "String"
|
"type": "String"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"settingsServersName": "Servidores",
|
"settingsServersName": "Servidores",
|
||||||
"@settingsServersName": {},
|
"@settingsServersName": {},
|
||||||
"settingsServersOptionsForcePlaintextPasswordDescriptionOff": "Enviar senha como token + sal",
|
"settingsServersOptionsForcePlaintextPasswordDescriptionOff": "Enviar senha como token + sal",
|
||||||
"@settingsServersOptionsForcePlaintextPasswordDescriptionOff": {},
|
"@settingsServersOptionsForcePlaintextPasswordDescriptionOff": {},
|
||||||
"settingsServersOptionsForcePlaintextPasswordDescriptionOn": "Enviar senha em texto simples (antigo, certifique-se que a sua ligação é segura!)",
|
"settingsServersOptionsForcePlaintextPasswordDescriptionOn": "Enviar senha em texto simples (antigo, certifique-se que a sua ligação é segura!)",
|
||||||
"@settingsServersOptionsForcePlaintextPasswordDescriptionOn": {},
|
"@settingsServersOptionsForcePlaintextPasswordDescriptionOn": {},
|
||||||
"settingsServersOptionsForcePlaintextPasswordTitle": "Forçar password em texto simples",
|
"settingsServersOptionsForcePlaintextPasswordTitle": "Forçar password em texto simples",
|
||||||
"@settingsServersOptionsForcePlaintextPasswordTitle": {}
|
"@settingsServersOptionsForcePlaintextPasswordTitle": {},
|
||||||
|
"actionsCancel": "Cancelar",
|
||||||
|
"@actionsCancel": {},
|
||||||
|
"actionsDelete": "Apagar",
|
||||||
|
"@actionsDelete": {},
|
||||||
|
"actionsDownload": "Descarregar",
|
||||||
|
"@actionsDownload": {},
|
||||||
|
"actionsDownloadCancel": "Cancelar descarga",
|
||||||
|
"@actionsDownloadCancel": {},
|
||||||
|
"actionsDownloadDelete": "Apagar descarga",
|
||||||
|
"@actionsDownloadDelete": {},
|
||||||
|
"resourcesFilterAlbum": "Álbum",
|
||||||
|
"@resourcesFilterAlbum": {},
|
||||||
|
"resourcesFilterArtist": "Artista",
|
||||||
|
"@resourcesFilterArtist": {},
|
||||||
|
"resourcesFilterYear": "Ano",
|
||||||
|
"@resourcesFilterYear": {},
|
||||||
|
"resourcesSortByAlbum": "Álbum",
|
||||||
|
"@resourcesSortByAlbum": {},
|
||||||
|
"settingsAboutActionsSupport": "Apoie o programador 💜",
|
||||||
|
"@settingsAboutActionsSupport": {},
|
||||||
|
"settingsNetworkOptionsOfflineMode": "Modo offline",
|
||||||
|
"@settingsNetworkOptionsOfflineMode": {},
|
||||||
|
"settingsNetworkOptionsOfflineModeOff": "Usar a internet para sincronizar música.",
|
||||||
|
"@settingsNetworkOptionsOfflineModeOff": {},
|
||||||
|
"settingsNetworkOptionsOfflineModeOn": "Não usar a internet para sincronizar ou tocar música.",
|
||||||
|
"@settingsNetworkOptionsOfflineModeOn": {},
|
||||||
|
"settingsNetworkOptionsStreamFormat": "Formato preferido de streaming",
|
||||||
|
"@settingsNetworkOptionsStreamFormat": {},
|
||||||
|
"resourcesSortByTitle": "Título",
|
||||||
|
"@resourcesSortByTitle": {},
|
||||||
|
"actionsOk": "OK",
|
||||||
|
"@actionsOk": {},
|
||||||
|
"controlsShuffle": "Aleatório",
|
||||||
|
"@controlsShuffle": {}
|
||||||
}
|
}
|
||||||
@ -1,196 +1,280 @@
|
|||||||
{
|
{
|
||||||
"actionsStar": "Избранное",
|
"actionsStar": "Избранное",
|
||||||
"@actionsStar": {},
|
"@actionsStar": {},
|
||||||
"actionsUnstar": "Убрать из избранного",
|
"actionsUnstar": "Убрать из избранного",
|
||||||
"@actionsUnstar": {},
|
"@actionsUnstar": {},
|
||||||
"messagesNothingHere": "Здесь ничего нет…",
|
"messagesNothingHere": "Здесь ничего нет…",
|
||||||
"@messagesNothingHere": {},
|
"@messagesNothingHere": {},
|
||||||
"navigationTabsHome": "Главная",
|
"navigationTabsHome": "Главная",
|
||||||
"@navigationTabsHome": {},
|
"@navigationTabsHome": {},
|
||||||
"navigationTabsLibrary": "Библиотека",
|
"navigationTabsLibrary": "Библиотека",
|
||||||
"@navigationTabsLibrary": {},
|
"@navigationTabsLibrary": {},
|
||||||
"navigationTabsSearch": "Поиск",
|
"navigationTabsSearch": "Поиск",
|
||||||
"@navigationTabsSearch": {},
|
"@navigationTabsSearch": {},
|
||||||
"navigationTabsSettings": "Настройки",
|
"navigationTabsSettings": "Настройки",
|
||||||
"@navigationTabsSettings": {},
|
"@navigationTabsSettings": {},
|
||||||
"resourcesAlbumActionsPlay": "Воспроизвести альбом",
|
"resourcesAlbumActionsPlay": "Воспроизвести альбом",
|
||||||
"@resourcesAlbumActionsPlay": {},
|
"@resourcesAlbumActionsPlay": {},
|
||||||
"resourcesAlbumActionsView": "Посмотреть альбом",
|
"resourcesAlbumActionsView": "Посмотреть альбом",
|
||||||
"@resourcesAlbumActionsView": {},
|
"@resourcesAlbumActionsView": {},
|
||||||
"resourcesAlbumListsSort": "Сортировка альбомов",
|
"resourcesAlbumListsSort": "Сортировка альбомов",
|
||||||
"@resourcesAlbumListsSort": {},
|
"@resourcesAlbumListsSort": {},
|
||||||
"resourcesAlbumName": "{count,plural, =1{Альбом} few{Альбомы} many{Альбомов} other{Альбомов}}",
|
"resourcesAlbumName": "{count,plural, =1{Альбом} few{Альбомы} many{Альбомов} other{Альбомов}}",
|
||||||
"@resourcesAlbumName": {
|
"@resourcesAlbumName": {
|
||||||
"placeholders": {
|
"placeholders": {
|
||||||
"count": {
|
"count": {
|
||||||
"type": "int"
|
"type": "int"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"resourcesArtistActionsView": "Посмотреть исполнителя",
|
"resourcesArtistActionsView": "Посмотреть исполнителя",
|
||||||
"@resourcesArtistActionsView": {},
|
"@resourcesArtistActionsView": {},
|
||||||
"resourcesArtistListsSort": "Сортировать исполнителей",
|
"resourcesArtistListsSort": "Сортировать исполнителей",
|
||||||
"@resourcesArtistListsSort": {},
|
"@resourcesArtistListsSort": {},
|
||||||
"resourcesArtistName": "{count,plural, =1{Исполнитель} few{Исполнители} many{Исполнителей} other{Исполнителей}}",
|
"resourcesArtistName": "{count,plural, =1{Исполнитель} few{Исполнители} many{Исполнителей} other{Исполнителей}}",
|
||||||
"@resourcesArtistName": {
|
"@resourcesArtistName": {
|
||||||
"placeholders": {
|
"placeholders": {
|
||||||
"count": {
|
"count": {
|
||||||
"type": "int"
|
"type": "int"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"resourcesFilterGenre": "По жанру",
|
"resourcesFilterGenre": "По жанру",
|
||||||
"@resourcesFilterGenre": {},
|
"@resourcesFilterGenre": {},
|
||||||
"resourcesFilterStarred": "Избранные",
|
"resourcesFilterStarred": "Избранные",
|
||||||
"@resourcesFilterStarred": {},
|
"@resourcesFilterStarred": {},
|
||||||
"resourcesPlaylistActionsPlay": "Воспроизвести плейлист",
|
"resourcesPlaylistActionsPlay": "Воспроизвести плейлист",
|
||||||
"@resourcesPlaylistActionsPlay": {},
|
"@resourcesPlaylistActionsPlay": {},
|
||||||
"resourcesPlaylistName": "{count,plural, =1{Плейлист} few{Плейлисты} many{Плейлистов} other{Плейлистов}}",
|
"resourcesPlaylistName": "{count,plural, =1{Плейлист} few{Плейлисты} many{Плейлистов} other{Плейлистов}}",
|
||||||
"@resourcesPlaylistName": {
|
"@resourcesPlaylistName": {
|
||||||
"placeholders": {
|
"placeholders": {
|
||||||
"count": {
|
"count": {
|
||||||
"type": "int"
|
"type": "int"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"resourcesQueueName": "{count,plural, =1{Очередь} few{Очереди} many{Очередей} other{Очередей}}",
|
"resourcesQueueName": "{count,plural, =1{Очередь} few{Очереди} many{Очередей} other{Очередей}}",
|
||||||
"@resourcesQueueName": {
|
"@resourcesQueueName": {
|
||||||
"placeholders": {
|
"placeholders": {
|
||||||
"count": {
|
"count": {
|
||||||
"type": "int"
|
"type": "int"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"resourcesSongListsArtistTopSongs": "Лучшие треки",
|
"resourcesSongListsArtistTopSongs": "Лучшие треки",
|
||||||
"@resourcesSongListsArtistTopSongs": {},
|
"@resourcesSongListsArtistTopSongs": {},
|
||||||
"resourcesSongName": "{count,plural, =1{Трек} few{Трека} many{Треков} other{Треков}}",
|
"resourcesSongName": "{count,plural, =1{Трек} few{Трека} many{Треков} other{Треков}}",
|
||||||
"@resourcesSongName": {
|
"@resourcesSongName": {
|
||||||
"placeholders": {
|
"placeholders": {
|
||||||
"count": {
|
"count": {
|
||||||
"type": "int"
|
"type": "int"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"resourcesSortByAdded": "Недавно добавленные",
|
"resourcesSortByAdded": "Недавно добавленные",
|
||||||
"@resourcesSortByAdded": {},
|
"@resourcesSortByAdded": {},
|
||||||
"resourcesSortByArtist": "По исполнителю",
|
"resourcesSortByArtist": "По исполнителям",
|
||||||
"@resourcesSortByArtist": {},
|
"@resourcesSortByArtist": {},
|
||||||
"resourcesSortByFrequentlyPlayed": "Часто проигрываемые",
|
"resourcesSortByFrequentlyPlayed": "Часто проигрываемые",
|
||||||
"@resourcesSortByFrequentlyPlayed": {},
|
"@resourcesSortByFrequentlyPlayed": {},
|
||||||
"resourcesSortByName": "По имени",
|
"resourcesSortByName": "По имени",
|
||||||
"@resourcesSortByName": {},
|
"@resourcesSortByName": {},
|
||||||
"resourcesSortByRandom": "Случайно",
|
"resourcesSortByRandom": "Случайно",
|
||||||
"@resourcesSortByRandom": {},
|
"@resourcesSortByRandom": {},
|
||||||
"resourcesSortByRecentlyPlayed": "Недавно проигранные",
|
"resourcesSortByRecentlyPlayed": "Недавно проигранные",
|
||||||
"@resourcesSortByRecentlyPlayed": {},
|
"@resourcesSortByRecentlyPlayed": {},
|
||||||
"resourcesSortByYear": "По году",
|
"resourcesSortByYear": "По году",
|
||||||
"@resourcesSortByYear": {},
|
"@resourcesSortByYear": {},
|
||||||
"searchHeaderTitle": "Поиск: {query}",
|
"searchHeaderTitle": "Поиск: {query}",
|
||||||
"@searchHeaderTitle": {
|
"@searchHeaderTitle": {
|
||||||
"placeholders": {
|
"placeholders": {
|
||||||
"query": {
|
"query": {
|
||||||
"type": "String"
|
"type": "String"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"searchInputPlaceholder": "Поиск",
|
"searchInputPlaceholder": "Поиск",
|
||||||
"@searchInputPlaceholder": {},
|
"@searchInputPlaceholder": {},
|
||||||
"searchMoreResults": "Больше…",
|
"searchMoreResults": "Больше…",
|
||||||
"@searchMoreResults": {},
|
"@searchMoreResults": {},
|
||||||
"searchNowPlayingContext": "Результаты поиска",
|
"searchNowPlayingContext": "Результаты поиска",
|
||||||
"@searchNowPlayingContext": {},
|
"@searchNowPlayingContext": {},
|
||||||
"settingsAboutActionsLicenses": "Лицензии",
|
"settingsAboutActionsLicenses": "Лицензии",
|
||||||
"@settingsAboutActionsLicenses": {},
|
"@settingsAboutActionsLicenses": {},
|
||||||
"settingsAboutActionsProjectHomepage": "Сайт проекта",
|
"settingsAboutActionsProjectHomepage": "Сайт проекта",
|
||||||
"@settingsAboutActionsProjectHomepage": {},
|
"@settingsAboutActionsProjectHomepage": {},
|
||||||
"settingsAboutName": "О Subtracks",
|
"settingsAboutName": "О Subtracks",
|
||||||
"@settingsAboutName": {},
|
"@settingsAboutName": {},
|
||||||
"settingsAboutVersion": "версия {version}",
|
"settingsAboutVersion": "версия {version}",
|
||||||
"@settingsAboutVersion": {
|
"@settingsAboutVersion": {
|
||||||
"placeholders": {
|
"placeholders": {
|
||||||
"version": {
|
"version": {
|
||||||
"type": "String"
|
"type": "String"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"settingsMusicName": "Музыка",
|
"settingsMusicName": "Музыка",
|
||||||
"@settingsMusicName": {},
|
"@settingsMusicName": {},
|
||||||
"settingsMusicOptionsScrobbleDescriptionOff": "Не отправлять историю воспроизведений",
|
"settingsMusicOptionsScrobbleDescriptionOff": "Не отправлять историю воспроизведений",
|
||||||
"@settingsMusicOptionsScrobbleDescriptionOff": {},
|
"@settingsMusicOptionsScrobbleDescriptionOff": {},
|
||||||
"settingsMusicOptionsScrobbleDescriptionOn": "Скробблинг истории воспроизведения",
|
"settingsMusicOptionsScrobbleDescriptionOn": "Скробблинг истории воспроизведения",
|
||||||
"@settingsMusicOptionsScrobbleDescriptionOn": {},
|
"@settingsMusicOptionsScrobbleDescriptionOn": {},
|
||||||
"settingsMusicOptionsScrobbleTitle": "Скробблинг",
|
"settingsMusicOptionsScrobbleTitle": "Скробблинг",
|
||||||
"@settingsMusicOptionsScrobbleTitle": {},
|
"@settingsMusicOptionsScrobbleTitle": {},
|
||||||
"settingsNetworkName": "Сеть",
|
"settingsNetworkName": "Сеть",
|
||||||
"@settingsNetworkName": {},
|
"@settingsNetworkName": {},
|
||||||
"settingsNetworkOptionsMaxBitrateMobileTitle": "Максимальный битрейт (мобильный интернет)",
|
"settingsNetworkOptionsMaxBitrateMobileTitle": "Максимальный битрейт (мобильный интернет)",
|
||||||
"@settingsNetworkOptionsMaxBitrateMobileTitle": {},
|
"@settingsNetworkOptionsMaxBitrateMobileTitle": {},
|
||||||
"settingsNetworkOptionsMaxBitrateWifiTitle": "Максимальный битрейт (Wi-Fi)",
|
"settingsNetworkOptionsMaxBitrateWifiTitle": "Максимальный битрейт (Wi-Fi)",
|
||||||
"@settingsNetworkOptionsMaxBitrateWifiTitle": {},
|
"@settingsNetworkOptionsMaxBitrateWifiTitle": {},
|
||||||
"settingsNetworkOptionsMaxBufferTitle": "Максимальное время буферизации",
|
"settingsNetworkOptionsMaxBufferTitle": "Максимальное время буферизации",
|
||||||
"@settingsNetworkOptionsMaxBufferTitle": {},
|
"@settingsNetworkOptionsMaxBufferTitle": {},
|
||||||
"settingsNetworkOptionsMinBufferTitle": "Минимальное время буферизации",
|
"settingsNetworkOptionsMinBufferTitle": "Минимальное время буферизации",
|
||||||
"@settingsNetworkOptionsMinBufferTitle": {},
|
"@settingsNetworkOptionsMinBufferTitle": {},
|
||||||
"settingsNetworkValuesKbps": "{value} кбит/с",
|
"settingsNetworkValuesKbps": "{value} кбит/с",
|
||||||
"@settingsNetworkValuesKbps": {
|
"@settingsNetworkValuesKbps": {
|
||||||
"placeholders": {
|
"placeholders": {
|
||||||
"value": {
|
"value": {
|
||||||
"type": "String"
|
"type": "String"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"settingsNetworkValuesSeconds": "{value} секунд",
|
"settingsNetworkValuesSeconds": "{value} секунд",
|
||||||
"@settingsNetworkValuesSeconds": {
|
"@settingsNetworkValuesSeconds": {
|
||||||
"placeholders": {
|
"placeholders": {
|
||||||
"value": {
|
"value": {
|
||||||
"type": "String"
|
"type": "String"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"settingsNetworkValuesUnlimitedKbps": "Без ограничений",
|
"settingsNetworkValuesUnlimitedKbps": "Без ограничений",
|
||||||
"@settingsNetworkValuesUnlimitedKbps": {},
|
"@settingsNetworkValuesUnlimitedKbps": {},
|
||||||
"settingsResetActionsClearImageCache": "Очистить кэш изображения",
|
"settingsResetActionsClearImageCache": "Очистить кэш изображения",
|
||||||
"@settingsResetActionsClearImageCache": {},
|
"@settingsResetActionsClearImageCache": {},
|
||||||
"settingsResetName": "Сброс",
|
"settingsResetName": "Сброс",
|
||||||
"@settingsResetName": {},
|
"@settingsResetName": {},
|
||||||
"settingsServersActionsAdd": "Добавить сервер",
|
"settingsServersActionsAdd": "Добавить сервер",
|
||||||
"@settingsServersActionsAdd": {},
|
"@settingsServersActionsAdd": {},
|
||||||
"settingsServersActionsDelete": "Удалить",
|
"settingsServersActionsDelete": "Удалить",
|
||||||
"@settingsServersActionsDelete": {},
|
"@settingsServersActionsDelete": {},
|
||||||
"settingsServersActionsEdit": "Редактировать сервер",
|
"settingsServersActionsEdit": "Редактировать сервер",
|
||||||
"@settingsServersActionsEdit": {},
|
"@settingsServersActionsEdit": {},
|
||||||
"settingsServersActionsSave": "Сохранить",
|
"settingsServersActionsSave": "Сохранить",
|
||||||
"@settingsServersActionsSave": {},
|
"@settingsServersActionsSave": {},
|
||||||
"settingsServersActionsTestConnection": "Проверить подключение",
|
"settingsServersActionsTestConnection": "Проверить подключение",
|
||||||
"@settingsServersActionsTestConnection": {},
|
"@settingsServersActionsTestConnection": {},
|
||||||
"settingsServersFieldsAddress": "Адрес",
|
"settingsServersFieldsAddress": "Адрес",
|
||||||
"@settingsServersFieldsAddress": {},
|
"@settingsServersFieldsAddress": {},
|
||||||
"settingsServersFieldsPassword": "Пароль",
|
"settingsServersFieldsPassword": "Пароль",
|
||||||
"@settingsServersFieldsPassword": {},
|
"@settingsServersFieldsPassword": {},
|
||||||
"settingsServersFieldsUsername": "Имя пользователя",
|
"settingsServersFieldsUsername": "Имя пользователя",
|
||||||
"@settingsServersFieldsUsername": {},
|
"@settingsServersFieldsUsername": {},
|
||||||
"settingsServersMessagesConnectionFailed": "Не удалось подключиться к {address}, проверьте настройки или сервер",
|
"settingsServersMessagesConnectionFailed": "Не удалось подключиться к {address}, проверьте настройки или сервер",
|
||||||
"@settingsServersMessagesConnectionFailed": {
|
"@settingsServersMessagesConnectionFailed": {
|
||||||
"placeholders": {
|
"placeholders": {
|
||||||
"address": {
|
"address": {
|
||||||
"type": "String"
|
"type": "String"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"settingsServersMessagesConnectionOk": "Подключение к {address} установлено!",
|
"settingsServersMessagesConnectionOk": "Подключение к {address} установлено!",
|
||||||
"@settingsServersMessagesConnectionOk": {
|
"@settingsServersMessagesConnectionOk": {
|
||||||
"placeholders": {
|
"placeholders": {
|
||||||
"address": {
|
"address": {
|
||||||
"type": "String"
|
"type": "String"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"settingsServersName": "Серверы",
|
"settingsServersName": "Серверы",
|
||||||
"@settingsServersName": {},
|
"@settingsServersName": {},
|
||||||
"settingsServersOptionsForcePlaintextPasswordDescriptionOff": "Отправить пароль в виде токена",
|
"settingsServersOptionsForcePlaintextPasswordDescriptionOff": "Отправить пароль в виде токена",
|
||||||
"@settingsServersOptionsForcePlaintextPasswordDescriptionOff": {},
|
"@settingsServersOptionsForcePlaintextPasswordDescriptionOff": {},
|
||||||
"settingsServersOptionsForcePlaintextPasswordDescriptionOn": "Отправить пароль в виде текста (устарело, убедитесь, что ваше соединение безопасно!)",
|
"settingsServersOptionsForcePlaintextPasswordDescriptionOn": "Отправить пароль в виде текста (устарело, убедитесь, что ваше соединение безопасно!)",
|
||||||
"@settingsServersOptionsForcePlaintextPasswordDescriptionOn": {},
|
"@settingsServersOptionsForcePlaintextPasswordDescriptionOn": {},
|
||||||
"settingsServersOptionsForcePlaintextPasswordTitle": "Принудительно использовать текстовой пароль",
|
"settingsServersOptionsForcePlaintextPasswordTitle": "Принудительно использовать текстовой пароль",
|
||||||
"@settingsServersOptionsForcePlaintextPasswordTitle": {}
|
"@settingsServersOptionsForcePlaintextPasswordTitle": {},
|
||||||
|
"settingsAboutShareLogs": "Поделиться журналами",
|
||||||
|
"@settingsAboutShareLogs": {},
|
||||||
|
"settingsAboutChooseLog": "Выбрать файл журнала",
|
||||||
|
"@settingsAboutChooseLog": {},
|
||||||
|
"settingsNetworkOptionsStreamFormatServerDefault": "Использовать сервер по умолчанию",
|
||||||
|
"@settingsNetworkOptionsStreamFormatServerDefault": {},
|
||||||
|
"actionsDownload": "Скачать",
|
||||||
|
"@actionsDownload": {},
|
||||||
|
"actionsDownloadCancel": "Отменить загрузку",
|
||||||
|
"@actionsDownloadCancel": {},
|
||||||
|
"actionsCancel": "Отменить",
|
||||||
|
"@actionsCancel": {},
|
||||||
|
"resourcesSongCount": "{count,plural, =1{{count} трек} other{{count} треки}}",
|
||||||
|
"@resourcesSongCount": {
|
||||||
|
"placeholders": {
|
||||||
|
"count": {
|
||||||
|
"type": "int"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"resourcesSortByAlbum": "По альбомам",
|
||||||
|
"@resourcesSortByAlbum": {},
|
||||||
|
"resourcesSortByTitle": "По заголовку",
|
||||||
|
"@resourcesSortByTitle": {},
|
||||||
|
"resourcesSortByUpdated": "По недавно обновленному",
|
||||||
|
"@resourcesSortByUpdated": {},
|
||||||
|
"resourcesSortByAlbumCount": "По количеству альбомов",
|
||||||
|
"@resourcesSortByAlbumCount": {},
|
||||||
|
"settingsNetworkOptionsOfflineMode": "Автономный режим",
|
||||||
|
"@settingsNetworkOptionsOfflineMode": {},
|
||||||
|
"settingsNetworkOptionsOfflineModeOff": "Использовать интернет для синхронизации музыки.",
|
||||||
|
"@settingsNetworkOptionsOfflineModeOff": {},
|
||||||
|
"settingsServersFieldsName": "Имя",
|
||||||
|
"@settingsServersFieldsName": {},
|
||||||
|
"actionsDelete": "Удалить",
|
||||||
|
"@actionsDelete": {},
|
||||||
|
"actionsDownloadDelete": "Удалить загруженное",
|
||||||
|
"@actionsDownloadDelete": {},
|
||||||
|
"actionsOk": "ОК",
|
||||||
|
"@actionsOk": {},
|
||||||
|
"controlsShuffle": "Перемешать",
|
||||||
|
"@controlsShuffle": {},
|
||||||
|
"resourcesFilterArtist": "По исполнителю",
|
||||||
|
"@resourcesFilterArtist": {},
|
||||||
|
"resourcesFilterAlbum": "По альбомам",
|
||||||
|
"@resourcesFilterAlbum": {},
|
||||||
|
"resourcesFilterYear": "По годам",
|
||||||
|
"@resourcesFilterYear": {},
|
||||||
|
"resourcesFilterOwner": "По владельцу",
|
||||||
|
"@resourcesFilterOwner": {},
|
||||||
|
"resourcesSongListDeleteAllContent": "Это удалит все загруженные файлы песен.",
|
||||||
|
"@resourcesSongListDeleteAllContent": {},
|
||||||
|
"settingsNetworkOptionsStreamFormat": "Предпочтительный формат потока",
|
||||||
|
"@settingsNetworkOptionsStreamFormat": {},
|
||||||
|
"resourcesSongListDeleteAllTitle": "Удалить загрузки?",
|
||||||
|
"@resourcesSongListDeleteAllTitle": {},
|
||||||
|
"settingsNetworkOptionsOfflineModeOn": "Не использовать интернет для синхронизации или воспроизведения музыки.",
|
||||||
|
"@settingsNetworkOptionsOfflineModeOn": {},
|
||||||
|
"settingsAboutActionsSupport": "Поддержать разработчика",
|
||||||
|
"@settingsAboutActionsSupport": {},
|
||||||
|
"resourcesArtistCount": "{count,plural, =1{{count} исполнитель} other{{count} исполнители}}",
|
||||||
|
"@resourcesArtistCount": {
|
||||||
|
"placeholders": {
|
||||||
|
"count": {
|
||||||
|
"type": "int"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"resourcesPlaylistCount": "{count,plural, =1{{count} плейлист} other{{count} плейлисты}}",
|
||||||
|
"@resourcesPlaylistCount": {
|
||||||
|
"placeholders": {
|
||||||
|
"count": {
|
||||||
|
"type": "int"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"resourcesAlbumCount": "{count,plural, =1{{count} альбом} other{{count} альбомы}}",
|
||||||
|
"@resourcesAlbumCount": {
|
||||||
|
"placeholders": {
|
||||||
|
"count": {
|
||||||
|
"type": "int"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
209
lib/log.dart
Normal file
209
lib/log.dart
Normal file
@ -0,0 +1,209 @@
|
|||||||
|
// import 'dart:convert';
|
||||||
|
|
||||||
|
import 'dart:io';
|
||||||
|
|
||||||
|
import 'package:collection/collection.dart';
|
||||||
|
import 'package:flutter/foundation.dart';
|
||||||
|
import 'package:logging/logging.dart';
|
||||||
|
import 'package:path/path.dart' as p;
|
||||||
|
import 'package:path_provider/path_provider.dart';
|
||||||
|
|
||||||
|
class AnsiColor {
|
||||||
|
/// ANSI Control Sequence Introducer, signals the terminal for new settings.
|
||||||
|
static const ansiEsc = '\x1B[';
|
||||||
|
|
||||||
|
/// Reset all colors and options for current SGRs to terminal defaults.
|
||||||
|
static const ansiDefault = '${ansiEsc}0m';
|
||||||
|
|
||||||
|
final int? fg;
|
||||||
|
final int? bg;
|
||||||
|
final bool color;
|
||||||
|
|
||||||
|
AnsiColor.none()
|
||||||
|
: fg = null,
|
||||||
|
bg = null,
|
||||||
|
color = false;
|
||||||
|
|
||||||
|
AnsiColor.fg(this.fg)
|
||||||
|
: bg = null,
|
||||||
|
color = true;
|
||||||
|
|
||||||
|
AnsiColor.bg(this.bg)
|
||||||
|
: fg = null,
|
||||||
|
color = true;
|
||||||
|
|
||||||
|
@override
|
||||||
|
String toString() {
|
||||||
|
if (fg != null) {
|
||||||
|
return '${ansiEsc}38;5;${fg}m';
|
||||||
|
} else if (bg != null) {
|
||||||
|
return '${ansiEsc}48;5;${bg}m';
|
||||||
|
} else {
|
||||||
|
return '';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
String call(String msg) {
|
||||||
|
if (color) {
|
||||||
|
// ignore: unnecessary_brace_in_string_interps
|
||||||
|
return '${this}$msg$ansiDefault';
|
||||||
|
} else {
|
||||||
|
return msg;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
AnsiColor toFg() => AnsiColor.fg(bg);
|
||||||
|
|
||||||
|
AnsiColor toBg() => AnsiColor.bg(fg);
|
||||||
|
|
||||||
|
/// Defaults the terminal's foreground color without altering the background.
|
||||||
|
String get resetForeground => color ? '${ansiEsc}39m' : '';
|
||||||
|
|
||||||
|
/// Defaults the terminal's background color without altering the foreground.
|
||||||
|
String get resetBackground => color ? '${ansiEsc}49m' : '';
|
||||||
|
|
||||||
|
static int grey(double level) => 232 + (level.clamp(0.0, 1.0) * 23).round();
|
||||||
|
}
|
||||||
|
|
||||||
|
final levelColors = {
|
||||||
|
Level.FINEST: AnsiColor.fg(AnsiColor.grey(0.5)),
|
||||||
|
Level.FINER: AnsiColor.fg(AnsiColor.grey(0.5)),
|
||||||
|
Level.FINE: AnsiColor.fg(AnsiColor.grey(0.5)),
|
||||||
|
Level.CONFIG: AnsiColor.fg(81),
|
||||||
|
Level.INFO: AnsiColor.fg(12),
|
||||||
|
Level.WARNING: AnsiColor.fg(208),
|
||||||
|
Level.SEVERE: AnsiColor.fg(196),
|
||||||
|
Level.SHOUT: AnsiColor.fg(199),
|
||||||
|
};
|
||||||
|
|
||||||
|
class LogData {
|
||||||
|
final String? message;
|
||||||
|
final Object? data;
|
||||||
|
|
||||||
|
const LogData(this.message, this.data);
|
||||||
|
}
|
||||||
|
|
||||||
|
String _format(
|
||||||
|
LogRecord event, {
|
||||||
|
bool color = false,
|
||||||
|
bool time = true,
|
||||||
|
bool level = true,
|
||||||
|
bool redact = true,
|
||||||
|
}) {
|
||||||
|
var message = '';
|
||||||
|
if (time) message += '${event.time.toIso8601String()} ';
|
||||||
|
if (level) message += '${event.level.name} ';
|
||||||
|
|
||||||
|
final object = event.object;
|
||||||
|
if (object is LogData) {
|
||||||
|
message += '${object.message}';
|
||||||
|
message += '\n${object.data}';
|
||||||
|
} else if (object != null) {
|
||||||
|
message += 'Object';
|
||||||
|
message += '\n$object';
|
||||||
|
} else {
|
||||||
|
message += event.message;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (event.error != null) {
|
||||||
|
message += '\n${event.error}';
|
||||||
|
}
|
||||||
|
|
||||||
|
if (redact) {
|
||||||
|
message = _redactUrl(message);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (event.stackTrace != null) {
|
||||||
|
message += '\n${event.stackTrace}';
|
||||||
|
}
|
||||||
|
|
||||||
|
return color
|
||||||
|
? message.split('\n').map((e) => levelColors[event.level]!(e)).join('\n')
|
||||||
|
: message;
|
||||||
|
}
|
||||||
|
|
||||||
|
String _redactUrl(String message) {
|
||||||
|
if (!_queryReplace('u').hasMatch(message)) {
|
||||||
|
return message;
|
||||||
|
}
|
||||||
|
|
||||||
|
message = _redactParam(message, 'u');
|
||||||
|
message = _redactParam(message, 'p');
|
||||||
|
message = _redactParam(message, 's');
|
||||||
|
message = _redactParam(message, 't');
|
||||||
|
|
||||||
|
return message;
|
||||||
|
}
|
||||||
|
|
||||||
|
RegExp _queryReplace(String key) => RegExp('$key=([^&|\\n|\\t\\s]+)');
|
||||||
|
|
||||||
|
String _redactParam(String url, String key) =>
|
||||||
|
url.replaceAll(_queryReplace(key), '$key=REDACTED');
|
||||||
|
|
||||||
|
Future<Directory> logDirectory() async {
|
||||||
|
return Directory(
|
||||||
|
p.join((await getApplicationDocumentsDirectory()).path, 'logs'),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
Future<List<File>> logFiles() async {
|
||||||
|
final dir = await logDirectory();
|
||||||
|
return dir.listSync().whereType<File>().toList()
|
||||||
|
..sort(
|
||||||
|
(a, b) => b.statSync().modified.compareTo(a.statSync().modified),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
File _currentLogFile(String logDir) {
|
||||||
|
final now = DateTime.now();
|
||||||
|
return File(p.join(logDir, '${now.year}-${now.month}-${now.day}.txt'));
|
||||||
|
}
|
||||||
|
|
||||||
|
Future<void> _printFile(String event, String logDir) async {
|
||||||
|
final file = _currentLogFile(logDir);
|
||||||
|
|
||||||
|
if (!event.endsWith('\n')) {
|
||||||
|
event += '\n';
|
||||||
|
}
|
||||||
|
|
||||||
|
await file.writeAsString(event, mode: FileMode.writeOnlyAppend, flush: true);
|
||||||
|
}
|
||||||
|
|
||||||
|
void _printDebug(LogRecord event) {
|
||||||
|
// ignore: avoid_print
|
||||||
|
print(_format(event, color: true, time: false, level: false, redact: false));
|
||||||
|
}
|
||||||
|
|
||||||
|
Future<void> _printRelease(LogRecord event, String logDir) async {
|
||||||
|
await _printFile(
|
||||||
|
_format(event, color: false, time: true, level: true, redact: true),
|
||||||
|
logDir,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
final log = Logger('default');
|
||||||
|
|
||||||
|
Future<void> initLogging() async {
|
||||||
|
final dir = (await logDirectory())..create();
|
||||||
|
|
||||||
|
final file = _currentLogFile(dir.path);
|
||||||
|
if (!(await file.exists())) {
|
||||||
|
await file.create();
|
||||||
|
}
|
||||||
|
|
||||||
|
final files = await logFiles();
|
||||||
|
if (files.length > 7) {
|
||||||
|
for (var file in files.slice(7)) {
|
||||||
|
await file.delete();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Logger.root.level = kDebugMode ? Level.ALL : Level.INFO;
|
||||||
|
Logger.root.onRecord.asyncMap((event) async {
|
||||||
|
if (kDebugMode) {
|
||||||
|
_printDebug(event);
|
||||||
|
} else {
|
||||||
|
await _printRelease(event, dir.path);
|
||||||
|
}
|
||||||
|
}).listen((_) {}, cancelOnError: false);
|
||||||
|
}
|
||||||
@ -4,6 +4,7 @@ import 'package:stack_trace/stack_trace.dart' as stack_trace;
|
|||||||
import 'package:worker_manager/worker_manager.dart';
|
import 'package:worker_manager/worker_manager.dart';
|
||||||
|
|
||||||
import 'app/app.dart';
|
import 'app/app.dart';
|
||||||
|
import 'log.dart';
|
||||||
|
|
||||||
void main() async {
|
void main() async {
|
||||||
// TOOD: probably remove before live
|
// TOOD: probably remove before live
|
||||||
@ -18,5 +19,8 @@ void main() async {
|
|||||||
await Executor().warmUp();
|
await Executor().warmUp();
|
||||||
|
|
||||||
WidgetsFlutterBinding.ensureInitialized();
|
WidgetsFlutterBinding.ensureInitialized();
|
||||||
|
|
||||||
|
await initLogging();
|
||||||
|
|
||||||
runApp(const ProviderScope(child: MyApp()));
|
runApp(const ProviderScope(child: MyApp()));
|
||||||
}
|
}
|
||||||
|
|||||||
@ -4,7 +4,6 @@ import 'dart:math';
|
|||||||
import 'package:audio_service/audio_service.dart';
|
import 'package:audio_service/audio_service.dart';
|
||||||
import 'package:collection/collection.dart';
|
import 'package:collection/collection.dart';
|
||||||
import 'package:drift/drift.dart' show Value;
|
import 'package:drift/drift.dart' show Value;
|
||||||
import 'package:flutter/foundation.dart';
|
|
||||||
import 'package:hooks_riverpod/hooks_riverpod.dart';
|
import 'package:hooks_riverpod/hooks_riverpod.dart';
|
||||||
import 'package:just_audio/just_audio.dart';
|
import 'package:just_audio/just_audio.dart';
|
||||||
import 'package:pool/pool.dart';
|
import 'package:pool/pool.dart';
|
||||||
@ -14,6 +13,7 @@ import 'package:synchronized/synchronized.dart';
|
|||||||
|
|
||||||
import '../cache/image_cache.dart';
|
import '../cache/image_cache.dart';
|
||||||
import '../database/database.dart';
|
import '../database/database.dart';
|
||||||
|
import '../log.dart';
|
||||||
import '../models/music.dart';
|
import '../models/music.dart';
|
||||||
import '../models/query.dart';
|
import '../models/query.dart';
|
||||||
import '../models/support.dart';
|
import '../models/support.dart';
|
||||||
@ -122,6 +122,10 @@ class AudioControl extends BaseAudioHandler with QueueHandler, SeekHandler {
|
|||||||
));
|
));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
_player.playbackEventStream.doOnError((e, st) async {
|
||||||
|
log.warning('playbackEventStream', e, st);
|
||||||
|
});
|
||||||
|
|
||||||
shuffleIndicies.listen((value) {
|
shuffleIndicies.listen((value) {
|
||||||
playbackState.add(playbackState.value.copyWith(
|
playbackState.add(playbackState.value.copyWith(
|
||||||
shuffleMode: value != null
|
shuffleMode: value != null
|
||||||
@ -137,7 +141,7 @@ class AudioControl extends BaseAudioHandler with QueueHandler, SeekHandler {
|
|||||||
_player.processingStateStream.listen((event) async {
|
_player.processingStateStream.listen((event) async {
|
||||||
if (event == ProcessingState.completed) {
|
if (event == ProcessingState.completed) {
|
||||||
if (_audioSource.length > 0) {
|
if (_audioSource.length > 0) {
|
||||||
yell('completed');
|
log.fine('completed');
|
||||||
await stop();
|
await stop();
|
||||||
await seek(Duration.zero);
|
await seek(Duration.zero);
|
||||||
}
|
}
|
||||||
@ -386,7 +390,7 @@ class AudioControl extends BaseAudioHandler with QueueHandler, SeekHandler {
|
|||||||
mediaItem.add(slice.current!.mediaItem);
|
mediaItem.add(slice.current!.mediaItem);
|
||||||
queue.add(list.map((e) => e.mediaItem).toList());
|
queue.add(list.map((e) => e.mediaItem).toList());
|
||||||
|
|
||||||
yell('addAll');
|
log.fine('addAll');
|
||||||
await _audioSource.addAll(list.map((e) => e.audioSource).toList());
|
await _audioSource.addAll(list.map((e) => e.audioSource).toList());
|
||||||
await _player.seek(Duration.zero, index: list.indexOf(slice.current!));
|
await _player.seek(Duration.zero, index: list.indexOf(slice.current!));
|
||||||
}
|
}
|
||||||
@ -410,7 +414,7 @@ class AudioControl extends BaseAudioHandler with QueueHandler, SeekHandler {
|
|||||||
final sourceNeedsPrev = sourceIndex == 0;
|
final sourceNeedsPrev = sourceIndex == 0;
|
||||||
|
|
||||||
if (sourceNeedsNext && slice.next != null) {
|
if (sourceNeedsNext && slice.next != null) {
|
||||||
yell('add');
|
log.fine('add');
|
||||||
await _audioSource.add(slice.next!.audioSource);
|
await _audioSource.add(slice.next!.audioSource);
|
||||||
}
|
}
|
||||||
if (sourceNeedsPrev && slice.prev != null) {
|
if (sourceNeedsPrev && slice.prev != null) {
|
||||||
@ -497,7 +501,7 @@ class AudioControl extends BaseAudioHandler with QueueHandler, SeekHandler {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Future<void> _insertFirstAudioSource(AudioSource source) {
|
Future<void> _insertFirstAudioSource(AudioSource source) {
|
||||||
yell('insert');
|
log.fine('insert');
|
||||||
final wait = _audioSource.insert(0, source);
|
final wait = _audioSource.insert(0, source);
|
||||||
_currentIndexIgnore.add(1);
|
_currentIndexIgnore.add(1);
|
||||||
return wait;
|
return wait;
|
||||||
@ -505,20 +509,20 @@ class AudioControl extends BaseAudioHandler with QueueHandler, SeekHandler {
|
|||||||
|
|
||||||
Future<void> _pruneAudioSources(int keepIndex) async {
|
Future<void> _pruneAudioSources(int keepIndex) async {
|
||||||
if (keepIndex > 0) {
|
if (keepIndex > 0) {
|
||||||
yell('removeRange 0');
|
log.fine('removeRange 0');
|
||||||
final wait = _audioSource.removeRange(0, keepIndex);
|
final wait = _audioSource.removeRange(0, keepIndex);
|
||||||
_currentIndexIgnore.add(0);
|
_currentIndexIgnore.add(0);
|
||||||
await wait;
|
await wait;
|
||||||
}
|
}
|
||||||
if (_audioSource.length > 1) {
|
if (_audioSource.length > 1) {
|
||||||
yell('removeRange 1');
|
log.fine('removeRange 1');
|
||||||
await _audioSource.removeRange(1, _audioSource.length);
|
await _audioSource.removeRange(1, _audioSource.length);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<void> _clearAudioSource([bool clearMetadata = false]) async {
|
Future<void> _clearAudioSource([bool clearMetadata = false]) async {
|
||||||
// await _player.stop();
|
// await _player.stop();
|
||||||
yell('_clearAudioSource');
|
log.fine('_clearAudioSource');
|
||||||
await _audioSource.clear();
|
await _audioSource.clear();
|
||||||
|
|
||||||
if (clearMetadata) {
|
if (clearMetadata) {
|
||||||
@ -697,11 +701,3 @@ class AudioControl extends BaseAudioHandler with QueueHandler, SeekHandler {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void yell(String msg) {
|
|
||||||
if (kDebugMode) {
|
|
||||||
print('=================================================================<');
|
|
||||||
print(msg);
|
|
||||||
print('=================================================================>');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|||||||
@ -46,13 +46,15 @@ class SettingsService extends _$SettingsService {
|
|||||||
features: IList(),
|
features: IList(),
|
||||||
username: subsonic.username.value,
|
username: subsonic.username.value,
|
||||||
password: subsonic.password.value,
|
password: subsonic.password.value,
|
||||||
useTokenAuth: true,
|
useTokenAuth: subsonic.useTokenAuth.value,
|
||||||
isActive: true,
|
isActive: true,
|
||||||
createdAt: DateTime.now(),
|
createdAt: DateTime.now(),
|
||||||
),
|
),
|
||||||
ref.read(httpClientProvider),
|
ref.read(httpClientProvider),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
await client.test();
|
||||||
|
|
||||||
final features = IList([
|
final features = IList([
|
||||||
if (await client.testFeature(SubsonicFeature.emptyQuerySearch))
|
if (await client.testFeature(SubsonicFeature.emptyQuerySearch))
|
||||||
SubsonicFeature.emptyQuerySearch,
|
SubsonicFeature.emptyQuerySearch,
|
||||||
@ -66,6 +68,10 @@ class SettingsService extends _$SettingsService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Future<void> updateSource(SubsonicSettings source) async {
|
Future<void> updateSource(SubsonicSettings source) async {
|
||||||
|
final client = SubsonicClient(source, ref.read(httpClientProvider));
|
||||||
|
|
||||||
|
await client.test();
|
||||||
|
|
||||||
await _db.updateSource(source);
|
await _db.updateSource(source);
|
||||||
await init();
|
await init();
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,6 +1,8 @@
|
|||||||
import 'package:hooks_riverpod/hooks_riverpod.dart';
|
import 'package:hooks_riverpod/hooks_riverpod.dart';
|
||||||
|
import 'package:rxdart/rxdart.dart';
|
||||||
|
|
||||||
import '../database/database.dart';
|
import '../database/database.dart';
|
||||||
|
import '../log.dart';
|
||||||
import '../state/settings.dart';
|
import '../state/settings.dart';
|
||||||
|
|
||||||
abstract class BaseMusicSource {
|
abstract class BaseMusicSource {
|
||||||
@ -40,25 +42,33 @@ class MusicSource implements BaseMusicSource {
|
|||||||
@override
|
@override
|
||||||
Stream<Iterable<AlbumsCompanion>> allAlbums() {
|
Stream<Iterable<AlbumsCompanion>> allAlbums() {
|
||||||
_testOnline();
|
_testOnline();
|
||||||
return _source.allAlbums();
|
return _source
|
||||||
|
.allAlbums()
|
||||||
|
.doOnError((e, st) => log.severe('allAlbums', e, st));
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Stream<Iterable<ArtistsCompanion>> allArtists() {
|
Stream<Iterable<ArtistsCompanion>> allArtists() {
|
||||||
_testOnline();
|
_testOnline();
|
||||||
return _source.allArtists();
|
return _source
|
||||||
|
.allArtists()
|
||||||
|
.doOnError((e, st) => log.severe('allArtists', e, st));
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Stream<Iterable<PlaylistWithSongsCompanion>> allPlaylists() {
|
Stream<Iterable<PlaylistWithSongsCompanion>> allPlaylists() {
|
||||||
_testOnline();
|
_testOnline();
|
||||||
return _source.allPlaylists();
|
return _source
|
||||||
|
.allPlaylists()
|
||||||
|
.doOnError((e, st) => log.severe('allPlaylists', e, st));
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Stream<Iterable<SongsCompanion>> allSongs() {
|
Stream<Iterable<SongsCompanion>> allSongs() {
|
||||||
_testOnline();
|
_testOnline();
|
||||||
return _source.allSongs();
|
return _source
|
||||||
|
.allSongs()
|
||||||
|
.doOnError((e, st) => log.severe('allSongs', e, st));
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
|
|||||||
@ -6,6 +6,7 @@ import 'package:crypto/crypto.dart';
|
|||||||
import 'package:http/http.dart';
|
import 'package:http/http.dart';
|
||||||
import 'package:xml/xml.dart';
|
import 'package:xml/xml.dart';
|
||||||
|
|
||||||
|
import '../../log.dart';
|
||||||
import '../../models/settings.dart';
|
import '../../models/settings.dart';
|
||||||
import 'xml.dart';
|
import 'xml.dart';
|
||||||
|
|
||||||
@ -89,12 +90,16 @@ class SubsonicClient {
|
|||||||
final subsonicResponse =
|
final subsonicResponse =
|
||||||
SubsonicResponse(XmlDocument.parse(utf8.decode(res.bodyBytes)));
|
SubsonicResponse(XmlDocument.parse(utf8.decode(res.bodyBytes)));
|
||||||
if (subsonicResponse.status == Status.failed) {
|
if (subsonicResponse.status == Status.failed) {
|
||||||
throw SubsonicException(subsonicResponse.xml);
|
final error = SubsonicException(subsonicResponse.xml);
|
||||||
|
log.severe('Subsonic error', error);
|
||||||
|
throw error;
|
||||||
}
|
}
|
||||||
|
|
||||||
return subsonicResponse;
|
return subsonicResponse;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Future<void> test() => get('ping');
|
||||||
|
|
||||||
Future<bool> testFeature(SubsonicFeature feature) async {
|
Future<bool> testFeature(SubsonicFeature feature) async {
|
||||||
switch (feature) {
|
switch (feature) {
|
||||||
case SubsonicFeature.emptyQuerySearch:
|
case SubsonicFeature.emptyQuerySearch:
|
||||||
|
|||||||
34
pubspec.lock
34
pubspec.lock
@ -290,6 +290,14 @@ packages:
|
|||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "1.6.3"
|
version: "1.6.3"
|
||||||
|
cross_file:
|
||||||
|
dependency: transitive
|
||||||
|
description:
|
||||||
|
name: cross_file
|
||||||
|
sha256: "0b0036e8cccbfbe0555fd83c1d31a6f30b77a96b598b35a5d36dd41f718695e9"
|
||||||
|
url: "https://pub.dev"
|
||||||
|
source: hosted
|
||||||
|
version: "0.3.3+4"
|
||||||
crypto:
|
crypto:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
@ -679,7 +687,7 @@ packages:
|
|||||||
source: hosted
|
source: hosted
|
||||||
version: "2.0.1"
|
version: "2.0.1"
|
||||||
logging:
|
logging:
|
||||||
dependency: transitive
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
name: logging
|
name: logging
|
||||||
sha256: "04094f2eb032cbb06c6f6e8d3607edcfcb0455e2bb6cbc010cb01171dcb64e6d"
|
sha256: "04094f2eb032cbb06c6f6e8d3607edcfcb0455e2bb6cbc010cb01171dcb64e6d"
|
||||||
@ -834,10 +842,10 @@ packages:
|
|||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
name: path_provider_windows
|
name: path_provider_windows
|
||||||
sha256: f53720498d5a543f9607db4b0e997c4b5438884de25b0f73098cc2671a51b130
|
sha256: d3f80b32e83ec208ac95253e0cd4d298e104fbc63cb29c5c69edaed43b0c69d6
|
||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "2.1.5"
|
version: "2.1.6"
|
||||||
pedantic:
|
pedantic:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
@ -950,6 +958,22 @@ packages:
|
|||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "0.27.7"
|
version: "0.27.7"
|
||||||
|
share_plus:
|
||||||
|
dependency: "direct main"
|
||||||
|
description:
|
||||||
|
name: share_plus
|
||||||
|
sha256: "322a1ec9d9fe07e2e2252c098ce93d12dbd06133cc4c00ffe6a4ef505c295c17"
|
||||||
|
url: "https://pub.dev"
|
||||||
|
source: hosted
|
||||||
|
version: "7.0.0"
|
||||||
|
share_plus_platform_interface:
|
||||||
|
dependency: transitive
|
||||||
|
description:
|
||||||
|
name: share_plus_platform_interface
|
||||||
|
sha256: "0c6e61471bd71b04a138b8b588fa388e66d8b005e6f2deda63371c5c505a0981"
|
||||||
|
url: "https://pub.dev"
|
||||||
|
source: hosted
|
||||||
|
version: "3.2.1"
|
||||||
shelf:
|
shelf:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
@ -1319,10 +1343,10 @@ packages:
|
|||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
name: win32
|
name: win32
|
||||||
sha256: a6f0236dbda0f63aa9a25ad1ff9a9d8a4eaaa5012da0dc59d21afdb1dc361ca4
|
sha256: "5a751eddf9db89b3e5f9d50c20ab8612296e4e8db69009788d6c8b060a84191c"
|
||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "3.1.4"
|
version: "4.1.4"
|
||||||
worker_manager:
|
worker_manager:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
|
|||||||
@ -4,7 +4,7 @@ homepage: https://github.com/austinried/subtracks
|
|||||||
repository: https://github.com/austinried/subtracks
|
repository: https://github.com/austinried/subtracks
|
||||||
issue_tracker: https://github.com/austinried/subtracks/issues
|
issue_tracker: https://github.com/austinried/subtracks/issues
|
||||||
publish_to: 'none'
|
publish_to: 'none'
|
||||||
version: 2.0.0-alpha.2+11
|
version: 2.0.0-alpha.3+12
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: '>=2.19.2 <3.0.0'
|
sdk: '>=2.19.2 <3.0.0'
|
||||||
@ -57,6 +57,8 @@ dependencies:
|
|||||||
connectivity_plus: ^3.0.4
|
connectivity_plus: ^3.0.4
|
||||||
package_info_plus: ^3.1.1
|
package_info_plus: ^3.1.1
|
||||||
url_launcher: ^6.1.10
|
url_launcher: ^6.1.10
|
||||||
|
logging: ^1.1.1
|
||||||
|
share_plus: ^7.0.0
|
||||||
|
|
||||||
# https://github.com/dart-lang/intl/issues/522#issuecomment-1469961807
|
# https://github.com/dart-lang/intl/issues/522#issuecomment-1469961807
|
||||||
dependency_overrides:
|
dependency_overrides:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user