mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-09-13 07:55:18 +00:00
feat(settings): add cache music toggle
This commit is contained in:
parent
7fbb4bce78
commit
ccb18e81a9
5
Makefile
5
Makefile
@ -42,4 +42,7 @@ apk:
|
||||
mv build/app/outputs/apk/release/app-release.apk build/Spotube-android-all-arch.apk
|
||||
|
||||
gensums:
|
||||
sh -c scripts/gensums.sh
|
||||
sh -c scripts/gensums.sh
|
||||
|
||||
migrate:
|
||||
dart run drift_dev make-migrations
|
1
drift_schemas/app_db/drift_schema_v3.json
Normal file
1
drift_schemas/app_db/drift_schema_v3.json
Normal file
File diff suppressed because one or more lines are too long
@ -43,6 +43,7 @@ class $AssetsTutorialGen {
|
||||
class Assets {
|
||||
Assets._();
|
||||
|
||||
static const String license = 'LICENSE';
|
||||
static const AssetGenImage albumPlaceholder =
|
||||
AssetGenImage('assets/album-placeholder.png');
|
||||
static const AssetGenImage bengaliPatternsBg =
|
||||
@ -92,6 +93,7 @@ class Assets {
|
||||
|
||||
/// List of all assets
|
||||
static List<dynamic> get values => [
|
||||
license,
|
||||
albumPlaceholder,
|
||||
bengaliPatternsBg,
|
||||
branding,
|
||||
@ -122,10 +124,17 @@ class Assets {
|
||||
}
|
||||
|
||||
class AssetGenImage {
|
||||
const AssetGenImage(this._assetName);
|
||||
const AssetGenImage(
|
||||
this._assetName, {
|
||||
this.size,
|
||||
this.flavors = const {},
|
||||
});
|
||||
|
||||
final String _assetName;
|
||||
|
||||
final Size? size;
|
||||
final Set<String> flavors;
|
||||
|
||||
Image image({
|
||||
Key? key,
|
||||
AssetBundle? bundle,
|
||||
@ -144,7 +153,7 @@ class AssetGenImage {
|
||||
ImageRepeat repeat = ImageRepeat.noRepeat,
|
||||
Rect? centerSlice,
|
||||
bool matchTextDirection = false,
|
||||
bool gaplessPlayback = false,
|
||||
bool gaplessPlayback = true,
|
||||
bool isAntiAlias = false,
|
||||
String? package,
|
||||
FilterQuality filterQuality = FilterQuality.low,
|
||||
|
@ -128,9 +128,12 @@ final routerProvider = Provider((ref) {
|
||||
pageBuilder: (context, state) {
|
||||
assert(state.extra is String);
|
||||
return SpotubePage(
|
||||
child: LocalLibraryPage(state.extra as String,
|
||||
isDownloads:
|
||||
state.uri.queryParameters["downloads"] != null),
|
||||
child: LocalLibraryPage(
|
||||
state.extra as String,
|
||||
isDownloads:
|
||||
state.uri.queryParameters["downloads"] != null,
|
||||
isCache: state.uri.queryParameters["cache"] != null,
|
||||
),
|
||||
);
|
||||
},
|
||||
),
|
||||
|
@ -124,4 +124,5 @@ abstract class SpotubeIcons {
|
||||
static const chart = FeatherIcons.barChart2;
|
||||
static const folderAdd = FeatherIcons.folderPlus;
|
||||
static const folderRemove = FeatherIcons.folderMinus;
|
||||
static const cache = FeatherIcons.hardDrive;
|
||||
}
|
||||
|
@ -391,5 +391,8 @@
|
||||
"total_money": "Total {money}",
|
||||
"webview_not_found": "Webview not found",
|
||||
"webview_not_found_description": "No webview runtime is installed in your device.\nIf it's installed make sure it's in the Environment PATH\n\nAfter installing, restart the app",
|
||||
"unsupported_platform": "Unsupported platform"
|
||||
"unsupported_platform": "Unsupported platform",
|
||||
"cache_music": "Cache music",
|
||||
"open": "Open",
|
||||
"cache_folder": "Cache folder"
|
||||
}
|
@ -99,8 +99,13 @@ mixin _$WebSocketLoadEventData {
|
||||
required TResult orElse(),
|
||||
}) =>
|
||||
throw _privateConstructorUsedError;
|
||||
|
||||
/// Serializes this WebSocketLoadEventData to a JSON map.
|
||||
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
||||
@JsonKey(ignore: true)
|
||||
|
||||
/// Create a copy of WebSocketLoadEventData
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
$WebSocketLoadEventDataCopyWith<WebSocketLoadEventData> get copyWith =>
|
||||
throw _privateConstructorUsedError;
|
||||
}
|
||||
@ -127,6 +132,8 @@ class _$WebSocketLoadEventDataCopyWithImpl<$Res,
|
||||
// ignore: unused_field
|
||||
final $Res Function($Val) _then;
|
||||
|
||||
/// Create a copy of WebSocketLoadEventData
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@pragma('vm:prefer-inline')
|
||||
@override
|
||||
$Res call({
|
||||
@ -171,6 +178,8 @@ class __$$WebSocketLoadEventDataPlaylistImplCopyWithImpl<$Res>
|
||||
$Res Function(_$WebSocketLoadEventDataPlaylistImpl) _then)
|
||||
: super(_value, _then);
|
||||
|
||||
/// Create a copy of WebSocketLoadEventData
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@pragma('vm:prefer-inline')
|
||||
@override
|
||||
$Res call({
|
||||
@ -247,12 +256,14 @@ class _$WebSocketLoadEventDataPlaylistImpl
|
||||
other.initialIndex == initialIndex));
|
||||
}
|
||||
|
||||
@JsonKey(ignore: true)
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
@override
|
||||
int get hashCode => Object.hash(runtimeType,
|
||||
const DeepCollectionEquality().hash(_tracks), collection, initialIndex);
|
||||
|
||||
@JsonKey(ignore: true)
|
||||
/// Create a copy of WebSocketLoadEventData
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
@override
|
||||
@pragma('vm:prefer-inline')
|
||||
_$$WebSocketLoadEventDataPlaylistImplCopyWith<
|
||||
@ -372,8 +383,11 @@ abstract class WebSocketLoadEventDataPlaylist extends WebSocketLoadEventData {
|
||||
PlaylistSimple? get collection;
|
||||
@override
|
||||
int? get initialIndex;
|
||||
|
||||
/// Create a copy of WebSocketLoadEventData
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@override
|
||||
@JsonKey(ignore: true)
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
_$$WebSocketLoadEventDataPlaylistImplCopyWith<
|
||||
_$WebSocketLoadEventDataPlaylistImpl>
|
||||
get copyWith => throw _privateConstructorUsedError;
|
||||
@ -404,6 +418,8 @@ class __$$WebSocketLoadEventDataAlbumImplCopyWithImpl<$Res>
|
||||
$Res Function(_$WebSocketLoadEventDataAlbumImpl) _then)
|
||||
: super(_value, _then);
|
||||
|
||||
/// Create a copy of WebSocketLoadEventData
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@pragma('vm:prefer-inline')
|
||||
@override
|
||||
$Res call({
|
||||
@ -479,12 +495,14 @@ class _$WebSocketLoadEventDataAlbumImpl extends WebSocketLoadEventDataAlbum {
|
||||
other.initialIndex == initialIndex));
|
||||
}
|
||||
|
||||
@JsonKey(ignore: true)
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
@override
|
||||
int get hashCode => Object.hash(runtimeType,
|
||||
const DeepCollectionEquality().hash(_tracks), collection, initialIndex);
|
||||
|
||||
@JsonKey(ignore: true)
|
||||
/// Create a copy of WebSocketLoadEventData
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
@override
|
||||
@pragma('vm:prefer-inline')
|
||||
_$$WebSocketLoadEventDataAlbumImplCopyWith<_$WebSocketLoadEventDataAlbumImpl>
|
||||
@ -603,8 +621,11 @@ abstract class WebSocketLoadEventDataAlbum extends WebSocketLoadEventData {
|
||||
AlbumSimple? get collection;
|
||||
@override
|
||||
int? get initialIndex;
|
||||
|
||||
/// Create a copy of WebSocketLoadEventData
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@override
|
||||
@JsonKey(ignore: true)
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
_$$WebSocketLoadEventDataAlbumImplCopyWith<_$WebSocketLoadEventDataAlbumImpl>
|
||||
get copyWith => throw _privateConstructorUsedError;
|
||||
}
|
||||
|
@ -58,18 +58,26 @@ class AppDatabase extends _$AppDatabase {
|
||||
AppDatabase() : super(_openConnection());
|
||||
|
||||
@override
|
||||
int get schemaVersion => 2;
|
||||
int get schemaVersion => 3;
|
||||
|
||||
@override
|
||||
MigrationStrategy get migration {
|
||||
return MigrationStrategy(
|
||||
onUpgrade: stepByStep(from1To2: (m, schema) async {
|
||||
// Add invidiousInstance column to preferences table
|
||||
await m.addColumn(
|
||||
schema.preferencesTable,
|
||||
schema.preferencesTable.invidiousInstance,
|
||||
);
|
||||
}),
|
||||
onUpgrade: stepByStep(
|
||||
from1To2: (m, schema) async {
|
||||
// Add invidiousInstance column to preferences table
|
||||
await m.addColumn(
|
||||
schema.preferencesTable,
|
||||
schema.preferencesTable.invidiousInstance,
|
||||
);
|
||||
},
|
||||
from2To3: (m, schema) async {
|
||||
await m.addColumn(
|
||||
schema.preferencesTable,
|
||||
schema.preferencesTable.cacheMusic,
|
||||
);
|
||||
},
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
@ -812,6 +812,16 @@ class $PreferencesTableTable extends PreferencesTable
|
||||
defaultConstraints: GeneratedColumn.constraintIsAlways(
|
||||
'CHECK ("enable_connect" IN (0, 1))'),
|
||||
defaultValue: const Constant(false));
|
||||
static const VerificationMeta _cacheMusicMeta =
|
||||
const VerificationMeta('cacheMusic');
|
||||
@override
|
||||
late final GeneratedColumn<bool> cacheMusic = GeneratedColumn<bool>(
|
||||
'cache_music', aliasedName, false,
|
||||
type: DriftSqlType.bool,
|
||||
requiredDuringInsert: false,
|
||||
defaultConstraints:
|
||||
GeneratedColumn.constraintIsAlways('CHECK ("cache_music" IN (0, 1))'),
|
||||
defaultValue: const Constant(true));
|
||||
@override
|
||||
List<GeneratedColumn> get $columns => [
|
||||
id,
|
||||
@ -839,7 +849,8 @@ class $PreferencesTableTable extends PreferencesTable
|
||||
downloadMusicCodec,
|
||||
discordPresence,
|
||||
endlessPlayback,
|
||||
enableConnect
|
||||
enableConnect,
|
||||
cacheMusic
|
||||
];
|
||||
@override
|
||||
String get aliasedName => _alias ?? actualTableName;
|
||||
@ -946,6 +957,12 @@ class $PreferencesTableTable extends PreferencesTable
|
||||
enableConnect.isAcceptableOrUnknown(
|
||||
data['enable_connect']!, _enableConnectMeta));
|
||||
}
|
||||
if (data.containsKey('cache_music')) {
|
||||
context.handle(
|
||||
_cacheMusicMeta,
|
||||
cacheMusic.isAcceptableOrUnknown(
|
||||
data['cache_music']!, _cacheMusicMeta));
|
||||
}
|
||||
return context;
|
||||
}
|
||||
|
||||
@ -1020,6 +1037,8 @@ class $PreferencesTableTable extends PreferencesTable
|
||||
.read(DriftSqlType.bool, data['${effectivePrefix}endless_playback'])!,
|
||||
enableConnect: attachedDatabase.typeMapping
|
||||
.read(DriftSqlType.bool, data['${effectivePrefix}enable_connect'])!,
|
||||
cacheMusic: attachedDatabase.typeMapping
|
||||
.read(DriftSqlType.bool, data['${effectivePrefix}cache_music'])!,
|
||||
);
|
||||
}
|
||||
|
||||
@ -1086,6 +1105,7 @@ class PreferencesTableData extends DataClass
|
||||
final bool discordPresence;
|
||||
final bool endlessPlayback;
|
||||
final bool enableConnect;
|
||||
final bool cacheMusic;
|
||||
const PreferencesTableData(
|
||||
{required this.id,
|
||||
required this.audioQuality,
|
||||
@ -1112,7 +1132,8 @@ class PreferencesTableData extends DataClass
|
||||
required this.downloadMusicCodec,
|
||||
required this.discordPresence,
|
||||
required this.endlessPlayback,
|
||||
required this.enableConnect});
|
||||
required this.enableConnect,
|
||||
required this.cacheMusic});
|
||||
@override
|
||||
Map<String, Expression> toColumns(bool nullToAbsent) {
|
||||
final map = <String, Expression>{};
|
||||
@ -1182,6 +1203,7 @@ class PreferencesTableData extends DataClass
|
||||
map['discord_presence'] = Variable<bool>(discordPresence);
|
||||
map['endless_playback'] = Variable<bool>(endlessPlayback);
|
||||
map['enable_connect'] = Variable<bool>(enableConnect);
|
||||
map['cache_music'] = Variable<bool>(cacheMusic);
|
||||
return map;
|
||||
}
|
||||
|
||||
@ -1213,6 +1235,7 @@ class PreferencesTableData extends DataClass
|
||||
discordPresence: Value(discordPresence),
|
||||
endlessPlayback: Value(endlessPlayback),
|
||||
enableConnect: Value(enableConnect),
|
||||
cacheMusic: Value(cacheMusic),
|
||||
);
|
||||
}
|
||||
|
||||
@ -1257,6 +1280,7 @@ class PreferencesTableData extends DataClass
|
||||
discordPresence: serializer.fromJson<bool>(json['discordPresence']),
|
||||
endlessPlayback: serializer.fromJson<bool>(json['endlessPlayback']),
|
||||
enableConnect: serializer.fromJson<bool>(json['enableConnect']),
|
||||
cacheMusic: serializer.fromJson<bool>(json['cacheMusic']),
|
||||
);
|
||||
}
|
||||
@override
|
||||
@ -1301,6 +1325,7 @@ class PreferencesTableData extends DataClass
|
||||
'discordPresence': serializer.toJson<bool>(discordPresence),
|
||||
'endlessPlayback': serializer.toJson<bool>(endlessPlayback),
|
||||
'enableConnect': serializer.toJson<bool>(enableConnect),
|
||||
'cacheMusic': serializer.toJson<bool>(cacheMusic),
|
||||
};
|
||||
}
|
||||
|
||||
@ -1330,7 +1355,8 @@ class PreferencesTableData extends DataClass
|
||||
SourceCodecs? downloadMusicCodec,
|
||||
bool? discordPresence,
|
||||
bool? endlessPlayback,
|
||||
bool? enableConnect}) =>
|
||||
bool? enableConnect,
|
||||
bool? cacheMusic}) =>
|
||||
PreferencesTableData(
|
||||
id: id ?? this.id,
|
||||
audioQuality: audioQuality ?? this.audioQuality,
|
||||
@ -1358,6 +1384,7 @@ class PreferencesTableData extends DataClass
|
||||
discordPresence: discordPresence ?? this.discordPresence,
|
||||
endlessPlayback: endlessPlayback ?? this.endlessPlayback,
|
||||
enableConnect: enableConnect ?? this.enableConnect,
|
||||
cacheMusic: cacheMusic ?? this.cacheMusic,
|
||||
);
|
||||
PreferencesTableData copyWithCompanion(PreferencesTableCompanion data) {
|
||||
return PreferencesTableData(
|
||||
@ -1427,6 +1454,8 @@ class PreferencesTableData extends DataClass
|
||||
enableConnect: data.enableConnect.present
|
||||
? data.enableConnect.value
|
||||
: this.enableConnect,
|
||||
cacheMusic:
|
||||
data.cacheMusic.present ? data.cacheMusic.value : this.cacheMusic,
|
||||
);
|
||||
}
|
||||
|
||||
@ -1458,7 +1487,8 @@ class PreferencesTableData extends DataClass
|
||||
..write('downloadMusicCodec: $downloadMusicCodec, ')
|
||||
..write('discordPresence: $discordPresence, ')
|
||||
..write('endlessPlayback: $endlessPlayback, ')
|
||||
..write('enableConnect: $enableConnect')
|
||||
..write('enableConnect: $enableConnect, ')
|
||||
..write('cacheMusic: $cacheMusic')
|
||||
..write(')'))
|
||||
.toString();
|
||||
}
|
||||
@ -1490,7 +1520,8 @@ class PreferencesTableData extends DataClass
|
||||
downloadMusicCodec,
|
||||
discordPresence,
|
||||
endlessPlayback,
|
||||
enableConnect
|
||||
enableConnect,
|
||||
cacheMusic
|
||||
]);
|
||||
@override
|
||||
bool operator ==(Object other) =>
|
||||
@ -1521,7 +1552,8 @@ class PreferencesTableData extends DataClass
|
||||
other.downloadMusicCodec == this.downloadMusicCodec &&
|
||||
other.discordPresence == this.discordPresence &&
|
||||
other.endlessPlayback == this.endlessPlayback &&
|
||||
other.enableConnect == this.enableConnect);
|
||||
other.enableConnect == this.enableConnect &&
|
||||
other.cacheMusic == this.cacheMusic);
|
||||
}
|
||||
|
||||
class PreferencesTableCompanion extends UpdateCompanion<PreferencesTableData> {
|
||||
@ -1551,6 +1583,7 @@ class PreferencesTableCompanion extends UpdateCompanion<PreferencesTableData> {
|
||||
final Value<bool> discordPresence;
|
||||
final Value<bool> endlessPlayback;
|
||||
final Value<bool> enableConnect;
|
||||
final Value<bool> cacheMusic;
|
||||
const PreferencesTableCompanion({
|
||||
this.id = const Value.absent(),
|
||||
this.audioQuality = const Value.absent(),
|
||||
@ -1578,6 +1611,7 @@ class PreferencesTableCompanion extends UpdateCompanion<PreferencesTableData> {
|
||||
this.discordPresence = const Value.absent(),
|
||||
this.endlessPlayback = const Value.absent(),
|
||||
this.enableConnect = const Value.absent(),
|
||||
this.cacheMusic = const Value.absent(),
|
||||
});
|
||||
PreferencesTableCompanion.insert({
|
||||
this.id = const Value.absent(),
|
||||
@ -1606,6 +1640,7 @@ class PreferencesTableCompanion extends UpdateCompanion<PreferencesTableData> {
|
||||
this.discordPresence = const Value.absent(),
|
||||
this.endlessPlayback = const Value.absent(),
|
||||
this.enableConnect = const Value.absent(),
|
||||
this.cacheMusic = const Value.absent(),
|
||||
});
|
||||
static Insertable<PreferencesTableData> custom({
|
||||
Expression<int>? id,
|
||||
@ -1634,6 +1669,7 @@ class PreferencesTableCompanion extends UpdateCompanion<PreferencesTableData> {
|
||||
Expression<bool>? discordPresence,
|
||||
Expression<bool>? endlessPlayback,
|
||||
Expression<bool>? enableConnect,
|
||||
Expression<bool>? cacheMusic,
|
||||
}) {
|
||||
return RawValuesInsertable({
|
||||
if (id != null) 'id': id,
|
||||
@ -1665,6 +1701,7 @@ class PreferencesTableCompanion extends UpdateCompanion<PreferencesTableData> {
|
||||
if (discordPresence != null) 'discord_presence': discordPresence,
|
||||
if (endlessPlayback != null) 'endless_playback': endlessPlayback,
|
||||
if (enableConnect != null) 'enable_connect': enableConnect,
|
||||
if (cacheMusic != null) 'cache_music': cacheMusic,
|
||||
});
|
||||
}
|
||||
|
||||
@ -1694,7 +1731,8 @@ class PreferencesTableCompanion extends UpdateCompanion<PreferencesTableData> {
|
||||
Value<SourceCodecs>? downloadMusicCodec,
|
||||
Value<bool>? discordPresence,
|
||||
Value<bool>? endlessPlayback,
|
||||
Value<bool>? enableConnect}) {
|
||||
Value<bool>? enableConnect,
|
||||
Value<bool>? cacheMusic}) {
|
||||
return PreferencesTableCompanion(
|
||||
id: id ?? this.id,
|
||||
audioQuality: audioQuality ?? this.audioQuality,
|
||||
@ -1722,6 +1760,7 @@ class PreferencesTableCompanion extends UpdateCompanion<PreferencesTableData> {
|
||||
discordPresence: discordPresence ?? this.discordPresence,
|
||||
endlessPlayback: endlessPlayback ?? this.endlessPlayback,
|
||||
enableConnect: enableConnect ?? this.enableConnect,
|
||||
cacheMusic: cacheMusic ?? this.cacheMusic,
|
||||
);
|
||||
}
|
||||
|
||||
@ -1825,6 +1864,9 @@ class PreferencesTableCompanion extends UpdateCompanion<PreferencesTableData> {
|
||||
if (enableConnect.present) {
|
||||
map['enable_connect'] = Variable<bool>(enableConnect.value);
|
||||
}
|
||||
if (cacheMusic.present) {
|
||||
map['cache_music'] = Variable<bool>(cacheMusic.value);
|
||||
}
|
||||
return map;
|
||||
}
|
||||
|
||||
@ -1856,7 +1898,8 @@ class PreferencesTableCompanion extends UpdateCompanion<PreferencesTableData> {
|
||||
..write('downloadMusicCodec: $downloadMusicCodec, ')
|
||||
..write('discordPresence: $discordPresence, ')
|
||||
..write('endlessPlayback: $endlessPlayback, ')
|
||||
..write('enableConnect: $enableConnect')
|
||||
..write('enableConnect: $enableConnect, ')
|
||||
..write('cacheMusic: $cacheMusic')
|
||||
..write(')'))
|
||||
.toString();
|
||||
}
|
||||
@ -4527,6 +4570,7 @@ typedef $$PreferencesTableTableCreateCompanionBuilder
|
||||
Value<bool> discordPresence,
|
||||
Value<bool> endlessPlayback,
|
||||
Value<bool> enableConnect,
|
||||
Value<bool> cacheMusic,
|
||||
});
|
||||
typedef $$PreferencesTableTableUpdateCompanionBuilder
|
||||
= PreferencesTableCompanion Function({
|
||||
@ -4556,6 +4600,7 @@ typedef $$PreferencesTableTableUpdateCompanionBuilder
|
||||
Value<bool> discordPresence,
|
||||
Value<bool> endlessPlayback,
|
||||
Value<bool> enableConnect,
|
||||
Value<bool> cacheMusic,
|
||||
});
|
||||
|
||||
class $$PreferencesTableTableFilterComposer
|
||||
@ -4677,6 +4722,9 @@ class $$PreferencesTableTableFilterComposer
|
||||
|
||||
ColumnFilters<bool> get enableConnect => $composableBuilder(
|
||||
column: $table.enableConnect, builder: (column) => ColumnFilters(column));
|
||||
|
||||
ColumnFilters<bool> get cacheMusic => $composableBuilder(
|
||||
column: $table.cacheMusic, builder: (column) => ColumnFilters(column));
|
||||
}
|
||||
|
||||
class $$PreferencesTableTableOrderingComposer
|
||||
@ -4783,6 +4831,9 @@ class $$PreferencesTableTableOrderingComposer
|
||||
ColumnOrderings<bool> get enableConnect => $composableBuilder(
|
||||
column: $table.enableConnect,
|
||||
builder: (column) => ColumnOrderings(column));
|
||||
|
||||
ColumnOrderings<bool> get cacheMusic => $composableBuilder(
|
||||
column: $table.cacheMusic, builder: (column) => ColumnOrderings(column));
|
||||
}
|
||||
|
||||
class $$PreferencesTableTableAnnotationComposer
|
||||
@ -4880,6 +4931,9 @@ class $$PreferencesTableTableAnnotationComposer
|
||||
|
||||
GeneratedColumn<bool> get enableConnect => $composableBuilder(
|
||||
column: $table.enableConnect, builder: (column) => column);
|
||||
|
||||
GeneratedColumn<bool> get cacheMusic => $composableBuilder(
|
||||
column: $table.cacheMusic, builder: (column) => column);
|
||||
}
|
||||
|
||||
class $$PreferencesTableTableTableManager extends RootTableManager<
|
||||
@ -4936,6 +4990,7 @@ class $$PreferencesTableTableTableManager extends RootTableManager<
|
||||
Value<bool> discordPresence = const Value.absent(),
|
||||
Value<bool> endlessPlayback = const Value.absent(),
|
||||
Value<bool> enableConnect = const Value.absent(),
|
||||
Value<bool> cacheMusic = const Value.absent(),
|
||||
}) =>
|
||||
PreferencesTableCompanion(
|
||||
id: id,
|
||||
@ -4964,6 +5019,7 @@ class $$PreferencesTableTableTableManager extends RootTableManager<
|
||||
discordPresence: discordPresence,
|
||||
endlessPlayback: endlessPlayback,
|
||||
enableConnect: enableConnect,
|
||||
cacheMusic: cacheMusic,
|
||||
),
|
||||
createCompanionCallback: ({
|
||||
Value<int> id = const Value.absent(),
|
||||
@ -4992,6 +5048,7 @@ class $$PreferencesTableTableTableManager extends RootTableManager<
|
||||
Value<bool> discordPresence = const Value.absent(),
|
||||
Value<bool> endlessPlayback = const Value.absent(),
|
||||
Value<bool> enableConnect = const Value.absent(),
|
||||
Value<bool> cacheMusic = const Value.absent(),
|
||||
}) =>
|
||||
PreferencesTableCompanion.insert(
|
||||
id: id,
|
||||
@ -5020,6 +5077,7 @@ class $$PreferencesTableTableTableManager extends RootTableManager<
|
||||
discordPresence: discordPresence,
|
||||
endlessPlayback: endlessPlayback,
|
||||
enableConnect: enableConnect,
|
||||
cacheMusic: cacheMusic,
|
||||
),
|
||||
withReferenceMapper: (p0) => p0
|
||||
.map((e) => (e.readTable(table), BaseReferences(db, table, e)))
|
||||
@ -5829,8 +5887,7 @@ final class $$PlaylistTableTableReferences extends BaseReferences<_$AppDatabase,
|
||||
db.audioPlayerStateTable.createAlias($_aliasNameGenerator(
|
||||
db.playlistTable.audioPlayerStateId, db.audioPlayerStateTable.id));
|
||||
|
||||
$$AudioPlayerStateTableTableProcessedTableManager? get audioPlayerStateId {
|
||||
if ($_item.audioPlayerStateId == null) return null;
|
||||
$$AudioPlayerStateTableTableProcessedTableManager get audioPlayerStateId {
|
||||
final manager = $$AudioPlayerStateTableTableTableManager(
|
||||
$_db, $_db.audioPlayerStateTable)
|
||||
.filter((f) => f.id($_item.audioPlayerStateId!));
|
||||
@ -6156,8 +6213,7 @@ final class $$PlaylistMediaTableTableReferences extends BaseReferences<
|
||||
db.playlistTable.createAlias($_aliasNameGenerator(
|
||||
db.playlistMediaTable.playlistId, db.playlistTable.id));
|
||||
|
||||
$$PlaylistTableTableProcessedTableManager? get playlistId {
|
||||
if ($_item.playlistId == null) return null;
|
||||
$$PlaylistTableTableProcessedTableManager get playlistId {
|
||||
final manager = $$PlaylistTableTableTableManager($_db, $_db.playlistTable)
|
||||
.filter((f) => f.id($_item.playlistId!));
|
||||
final item = $_typedResult.readTableOrNull(_playlistIdTable($_db));
|
||||
|
@ -1,10 +1,11 @@
|
||||
// dart format width=80
|
||||
import 'package:drift/internal/versioned_schema.dart' as i0;
|
||||
import 'package:drift/drift.dart' as i1;
|
||||
import 'package:drift/drift.dart';
|
||||
import 'package:drift/drift.dart'; // ignore_for_file: type=lint,unused_import
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:spotify/spotify.dart';
|
||||
import 'package:spotube/services/sourced_track/enums.dart';
|
||||
import 'package:spotube/utils/migrations/adapters.dart'; // ignore_for_file: type=lint,unused_import
|
||||
import 'package:spotube/utils/migrations/adapters.dart';
|
||||
|
||||
// GENERATED BY drift_dev, DO NOT MODIFY.
|
||||
final class Schema2 extends i0.VersionedSchema {
|
||||
@ -627,8 +628,288 @@ class Shape10 extends i0.VersionedTable {
|
||||
columnsByName['data']! as i1.GeneratedColumn<String>;
|
||||
}
|
||||
|
||||
final class Schema3 extends i0.VersionedSchema {
|
||||
Schema3({required super.database}) : super(version: 3);
|
||||
@override
|
||||
late final List<i1.DatabaseSchemaEntity> entities = [
|
||||
authenticationTable,
|
||||
blacklistTable,
|
||||
preferencesTable,
|
||||
scrobblerTable,
|
||||
skipSegmentTable,
|
||||
sourceMatchTable,
|
||||
audioPlayerStateTable,
|
||||
playlistTable,
|
||||
playlistMediaTable,
|
||||
historyTable,
|
||||
lyricsTable,
|
||||
uniqueBlacklist,
|
||||
uniqTrackMatch,
|
||||
];
|
||||
late final Shape0 authenticationTable = Shape0(
|
||||
source: i0.VersionedTable(
|
||||
entityName: 'authentication_table',
|
||||
withoutRowId: false,
|
||||
isStrict: false,
|
||||
tableConstraints: [],
|
||||
columns: [
|
||||
_column_0,
|
||||
_column_1,
|
||||
_column_2,
|
||||
_column_3,
|
||||
],
|
||||
attachedDatabase: database,
|
||||
),
|
||||
alias: null);
|
||||
late final Shape1 blacklistTable = Shape1(
|
||||
source: i0.VersionedTable(
|
||||
entityName: 'blacklist_table',
|
||||
withoutRowId: false,
|
||||
isStrict: false,
|
||||
tableConstraints: [],
|
||||
columns: [
|
||||
_column_0,
|
||||
_column_4,
|
||||
_column_5,
|
||||
_column_6,
|
||||
],
|
||||
attachedDatabase: database,
|
||||
),
|
||||
alias: null);
|
||||
late final Shape11 preferencesTable = Shape11(
|
||||
source: i0.VersionedTable(
|
||||
entityName: 'preferences_table',
|
||||
withoutRowId: false,
|
||||
isStrict: false,
|
||||
tableConstraints: [],
|
||||
columns: [
|
||||
_column_0,
|
||||
_column_7,
|
||||
_column_8,
|
||||
_column_9,
|
||||
_column_10,
|
||||
_column_11,
|
||||
_column_12,
|
||||
_column_13,
|
||||
_column_14,
|
||||
_column_15,
|
||||
_column_16,
|
||||
_column_17,
|
||||
_column_18,
|
||||
_column_19,
|
||||
_column_20,
|
||||
_column_21,
|
||||
_column_22,
|
||||
_column_23,
|
||||
_column_24,
|
||||
_column_25,
|
||||
_column_26,
|
||||
_column_27,
|
||||
_column_28,
|
||||
_column_29,
|
||||
_column_30,
|
||||
_column_31,
|
||||
_column_53,
|
||||
],
|
||||
attachedDatabase: database,
|
||||
),
|
||||
alias: null);
|
||||
late final Shape3 scrobblerTable = Shape3(
|
||||
source: i0.VersionedTable(
|
||||
entityName: 'scrobbler_table',
|
||||
withoutRowId: false,
|
||||
isStrict: false,
|
||||
tableConstraints: [],
|
||||
columns: [
|
||||
_column_0,
|
||||
_column_32,
|
||||
_column_33,
|
||||
_column_34,
|
||||
],
|
||||
attachedDatabase: database,
|
||||
),
|
||||
alias: null);
|
||||
late final Shape4 skipSegmentTable = Shape4(
|
||||
source: i0.VersionedTable(
|
||||
entityName: 'skip_segment_table',
|
||||
withoutRowId: false,
|
||||
isStrict: false,
|
||||
tableConstraints: [],
|
||||
columns: [
|
||||
_column_0,
|
||||
_column_35,
|
||||
_column_36,
|
||||
_column_37,
|
||||
_column_32,
|
||||
],
|
||||
attachedDatabase: database,
|
||||
),
|
||||
alias: null);
|
||||
late final Shape5 sourceMatchTable = Shape5(
|
||||
source: i0.VersionedTable(
|
||||
entityName: 'source_match_table',
|
||||
withoutRowId: false,
|
||||
isStrict: false,
|
||||
tableConstraints: [],
|
||||
columns: [
|
||||
_column_0,
|
||||
_column_37,
|
||||
_column_38,
|
||||
_column_39,
|
||||
_column_32,
|
||||
],
|
||||
attachedDatabase: database,
|
||||
),
|
||||
alias: null);
|
||||
late final Shape6 audioPlayerStateTable = Shape6(
|
||||
source: i0.VersionedTable(
|
||||
entityName: 'audio_player_state_table',
|
||||
withoutRowId: false,
|
||||
isStrict: false,
|
||||
tableConstraints: [],
|
||||
columns: [
|
||||
_column_0,
|
||||
_column_40,
|
||||
_column_41,
|
||||
_column_42,
|
||||
_column_43,
|
||||
],
|
||||
attachedDatabase: database,
|
||||
),
|
||||
alias: null);
|
||||
late final Shape7 playlistTable = Shape7(
|
||||
source: i0.VersionedTable(
|
||||
entityName: 'playlist_table',
|
||||
withoutRowId: false,
|
||||
isStrict: false,
|
||||
tableConstraints: [],
|
||||
columns: [
|
||||
_column_0,
|
||||
_column_44,
|
||||
_column_45,
|
||||
],
|
||||
attachedDatabase: database,
|
||||
),
|
||||
alias: null);
|
||||
late final Shape8 playlistMediaTable = Shape8(
|
||||
source: i0.VersionedTable(
|
||||
entityName: 'playlist_media_table',
|
||||
withoutRowId: false,
|
||||
isStrict: false,
|
||||
tableConstraints: [],
|
||||
columns: [
|
||||
_column_0,
|
||||
_column_46,
|
||||
_column_47,
|
||||
_column_48,
|
||||
_column_49,
|
||||
],
|
||||
attachedDatabase: database,
|
||||
),
|
||||
alias: null);
|
||||
late final Shape9 historyTable = Shape9(
|
||||
source: i0.VersionedTable(
|
||||
entityName: 'history_table',
|
||||
withoutRowId: false,
|
||||
isStrict: false,
|
||||
tableConstraints: [],
|
||||
columns: [
|
||||
_column_0,
|
||||
_column_32,
|
||||
_column_50,
|
||||
_column_51,
|
||||
_column_52,
|
||||
],
|
||||
attachedDatabase: database,
|
||||
),
|
||||
alias: null);
|
||||
late final Shape10 lyricsTable = Shape10(
|
||||
source: i0.VersionedTable(
|
||||
entityName: 'lyrics_table',
|
||||
withoutRowId: false,
|
||||
isStrict: false,
|
||||
tableConstraints: [],
|
||||
columns: [
|
||||
_column_0,
|
||||
_column_37,
|
||||
_column_52,
|
||||
],
|
||||
attachedDatabase: database,
|
||||
),
|
||||
alias: null);
|
||||
final i1.Index uniqueBlacklist = i1.Index('unique_blacklist',
|
||||
'CREATE UNIQUE INDEX unique_blacklist ON blacklist_table (element_type, element_id)');
|
||||
final i1.Index uniqTrackMatch = i1.Index('uniq_track_match',
|
||||
'CREATE UNIQUE INDEX uniq_track_match ON source_match_table (track_id, source_id, source_type)');
|
||||
}
|
||||
|
||||
class Shape11 extends i0.VersionedTable {
|
||||
Shape11({required super.source, required super.alias}) : super.aliased();
|
||||
i1.GeneratedColumn<int> get id =>
|
||||
columnsByName['id']! as i1.GeneratedColumn<int>;
|
||||
i1.GeneratedColumn<String> get audioQuality =>
|
||||
columnsByName['audio_quality']! as i1.GeneratedColumn<String>;
|
||||
i1.GeneratedColumn<bool> get albumColorSync =>
|
||||
columnsByName['album_color_sync']! as i1.GeneratedColumn<bool>;
|
||||
i1.GeneratedColumn<bool> get amoledDarkTheme =>
|
||||
columnsByName['amoled_dark_theme']! as i1.GeneratedColumn<bool>;
|
||||
i1.GeneratedColumn<bool> get checkUpdate =>
|
||||
columnsByName['check_update']! as i1.GeneratedColumn<bool>;
|
||||
i1.GeneratedColumn<bool> get normalizeAudio =>
|
||||
columnsByName['normalize_audio']! as i1.GeneratedColumn<bool>;
|
||||
i1.GeneratedColumn<bool> get showSystemTrayIcon =>
|
||||
columnsByName['show_system_tray_icon']! as i1.GeneratedColumn<bool>;
|
||||
i1.GeneratedColumn<bool> get systemTitleBar =>
|
||||
columnsByName['system_title_bar']! as i1.GeneratedColumn<bool>;
|
||||
i1.GeneratedColumn<bool> get skipNonMusic =>
|
||||
columnsByName['skip_non_music']! as i1.GeneratedColumn<bool>;
|
||||
i1.GeneratedColumn<String> get closeBehavior =>
|
||||
columnsByName['close_behavior']! as i1.GeneratedColumn<String>;
|
||||
i1.GeneratedColumn<String> get accentColorScheme =>
|
||||
columnsByName['accent_color_scheme']! as i1.GeneratedColumn<String>;
|
||||
i1.GeneratedColumn<String> get layoutMode =>
|
||||
columnsByName['layout_mode']! as i1.GeneratedColumn<String>;
|
||||
i1.GeneratedColumn<String> get locale =>
|
||||
columnsByName['locale']! as i1.GeneratedColumn<String>;
|
||||
i1.GeneratedColumn<String> get market =>
|
||||
columnsByName['market']! as i1.GeneratedColumn<String>;
|
||||
i1.GeneratedColumn<String> get searchMode =>
|
||||
columnsByName['search_mode']! as i1.GeneratedColumn<String>;
|
||||
i1.GeneratedColumn<String> get downloadLocation =>
|
||||
columnsByName['download_location']! as i1.GeneratedColumn<String>;
|
||||
i1.GeneratedColumn<String> get localLibraryLocation =>
|
||||
columnsByName['local_library_location']! as i1.GeneratedColumn<String>;
|
||||
i1.GeneratedColumn<String> get pipedInstance =>
|
||||
columnsByName['piped_instance']! as i1.GeneratedColumn<String>;
|
||||
i1.GeneratedColumn<String> get invidiousInstance =>
|
||||
columnsByName['invidious_instance']! as i1.GeneratedColumn<String>;
|
||||
i1.GeneratedColumn<String> get themeMode =>
|
||||
columnsByName['theme_mode']! as i1.GeneratedColumn<String>;
|
||||
i1.GeneratedColumn<String> get audioSource =>
|
||||
columnsByName['audio_source']! as i1.GeneratedColumn<String>;
|
||||
i1.GeneratedColumn<String> get streamMusicCodec =>
|
||||
columnsByName['stream_music_codec']! as i1.GeneratedColumn<String>;
|
||||
i1.GeneratedColumn<String> get downloadMusicCodec =>
|
||||
columnsByName['download_music_codec']! as i1.GeneratedColumn<String>;
|
||||
i1.GeneratedColumn<bool> get discordPresence =>
|
||||
columnsByName['discord_presence']! as i1.GeneratedColumn<bool>;
|
||||
i1.GeneratedColumn<bool> get endlessPlayback =>
|
||||
columnsByName['endless_playback']! as i1.GeneratedColumn<bool>;
|
||||
i1.GeneratedColumn<bool> get enableConnect =>
|
||||
columnsByName['enable_connect']! as i1.GeneratedColumn<bool>;
|
||||
i1.GeneratedColumn<bool> get cacheMusic =>
|
||||
columnsByName['cache_music']! as i1.GeneratedColumn<bool>;
|
||||
}
|
||||
|
||||
i1.GeneratedColumn<bool> _column_53(String aliasedName) =>
|
||||
i1.GeneratedColumn<bool>('cache_music', aliasedName, false,
|
||||
type: i1.DriftSqlType.bool,
|
||||
defaultConstraints: i1.GeneratedColumn.constraintIsAlways(
|
||||
'CHECK ("cache_music" IN (0, 1))'),
|
||||
defaultValue: const Constant(true));
|
||||
i0.MigrationStepWithVersion migrationSteps({
|
||||
required Future<void> Function(i1.Migrator m, Schema2 schema) from1To2,
|
||||
required Future<void> Function(i1.Migrator m, Schema3 schema) from2To3,
|
||||
}) {
|
||||
return (currentVersion, database) async {
|
||||
switch (currentVersion) {
|
||||
@ -637,6 +918,11 @@ i0.MigrationStepWithVersion migrationSteps({
|
||||
final migrator = i1.Migrator(database, schema);
|
||||
await from1To2(migrator, schema);
|
||||
return 2;
|
||||
case 2:
|
||||
final schema = Schema3(database: database);
|
||||
final migrator = i1.Migrator(database, schema);
|
||||
await from2To3(migrator, schema);
|
||||
return 3;
|
||||
default:
|
||||
throw ArgumentError.value('Unknown migration from $currentVersion');
|
||||
}
|
||||
@ -645,8 +931,10 @@ i0.MigrationStepWithVersion migrationSteps({
|
||||
|
||||
i1.OnUpgrade stepByStep({
|
||||
required Future<void> Function(i1.Migrator m, Schema2 schema) from1To2,
|
||||
required Future<void> Function(i1.Migrator m, Schema3 schema) from2To3,
|
||||
}) =>
|
||||
i0.VersionedSchema.stepByStepHelper(
|
||||
step: migrationSteps(
|
||||
from1To2: from1To2,
|
||||
from2To3: from2To3,
|
||||
));
|
||||
|
@ -94,6 +94,7 @@ class PreferencesTable extends Table {
|
||||
boolean().withDefault(const Constant(true))();
|
||||
BoolColumn get enableConnect =>
|
||||
boolean().withDefault(const Constant(false))();
|
||||
BoolColumn get cacheMusic => boolean().withDefault(const Constant(true))();
|
||||
|
||||
// Default values as PreferencesTableData
|
||||
static PreferencesTableData defaults() {
|
||||
@ -124,6 +125,7 @@ class PreferencesTable extends Table {
|
||||
discordPresence: true,
|
||||
endlessPlayback: true,
|
||||
enableConnect: false,
|
||||
cacheMusic: true,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
@ -29,8 +29,12 @@ mixin _$SpotifySectionPlaylist {
|
||||
String get owner => throw _privateConstructorUsedError;
|
||||
String get uri => throw _privateConstructorUsedError;
|
||||
|
||||
/// Serializes this SpotifySectionPlaylist to a JSON map.
|
||||
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
||||
@JsonKey(ignore: true)
|
||||
|
||||
/// Create a copy of SpotifySectionPlaylist
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
$SpotifySectionPlaylistCopyWith<SpotifySectionPlaylist> get copyWith =>
|
||||
throw _privateConstructorUsedError;
|
||||
}
|
||||
@ -61,6 +65,8 @@ class _$SpotifySectionPlaylistCopyWithImpl<$Res,
|
||||
// ignore: unused_field
|
||||
final $Res Function($Val) _then;
|
||||
|
||||
/// Create a copy of SpotifySectionPlaylist
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@pragma('vm:prefer-inline')
|
||||
@override
|
||||
$Res call({
|
||||
@ -128,6 +134,8 @@ class __$$SpotifySectionPlaylistImplCopyWithImpl<$Res>
|
||||
$Res Function(_$SpotifySectionPlaylistImpl) _then)
|
||||
: super(_value, _then);
|
||||
|
||||
/// Create a copy of SpotifySectionPlaylist
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@pragma('vm:prefer-inline')
|
||||
@override
|
||||
$Res call({
|
||||
@ -221,12 +229,14 @@ class _$SpotifySectionPlaylistImpl extends _SpotifySectionPlaylist {
|
||||
(identical(other.uri, uri) || other.uri == uri));
|
||||
}
|
||||
|
||||
@JsonKey(ignore: true)
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
@override
|
||||
int get hashCode => Object.hash(runtimeType, description, format,
|
||||
const DeepCollectionEquality().hash(_images), name, owner, uri);
|
||||
|
||||
@JsonKey(ignore: true)
|
||||
/// Create a copy of SpotifySectionPlaylist
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
@override
|
||||
@pragma('vm:prefer-inline')
|
||||
_$$SpotifySectionPlaylistImplCopyWith<_$SpotifySectionPlaylistImpl>
|
||||
@ -266,8 +276,11 @@ abstract class _SpotifySectionPlaylist extends SpotifySectionPlaylist {
|
||||
String get owner;
|
||||
@override
|
||||
String get uri;
|
||||
|
||||
/// Create a copy of SpotifySectionPlaylist
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@override
|
||||
@JsonKey(ignore: true)
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
_$$SpotifySectionPlaylistImplCopyWith<_$SpotifySectionPlaylistImpl>
|
||||
get copyWith => throw _privateConstructorUsedError;
|
||||
}
|
||||
@ -283,8 +296,12 @@ mixin _$SpotifySectionArtist {
|
||||
List<SpotifySectionItemImage> get images =>
|
||||
throw _privateConstructorUsedError;
|
||||
|
||||
/// Serializes this SpotifySectionArtist to a JSON map.
|
||||
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
||||
@JsonKey(ignore: true)
|
||||
|
||||
/// Create a copy of SpotifySectionArtist
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
$SpotifySectionArtistCopyWith<SpotifySectionArtist> get copyWith =>
|
||||
throw _privateConstructorUsedError;
|
||||
}
|
||||
@ -309,6 +326,8 @@ class _$SpotifySectionArtistCopyWithImpl<$Res,
|
||||
// ignore: unused_field
|
||||
final $Res Function($Val) _then;
|
||||
|
||||
/// Create a copy of SpotifySectionArtist
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@pragma('vm:prefer-inline')
|
||||
@override
|
||||
$Res call({
|
||||
@ -352,6 +371,8 @@ class __$$SpotifySectionArtistImplCopyWithImpl<$Res>
|
||||
$Res Function(_$SpotifySectionArtistImpl) _then)
|
||||
: super(_value, _then);
|
||||
|
||||
/// Create a copy of SpotifySectionArtist
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@pragma('vm:prefer-inline')
|
||||
@override
|
||||
$Res call({
|
||||
@ -416,12 +437,14 @@ class _$SpotifySectionArtistImpl extends _SpotifySectionArtist {
|
||||
const DeepCollectionEquality().equals(other._images, _images));
|
||||
}
|
||||
|
||||
@JsonKey(ignore: true)
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
@override
|
||||
int get hashCode => Object.hash(
|
||||
runtimeType, name, uri, const DeepCollectionEquality().hash(_images));
|
||||
|
||||
@JsonKey(ignore: true)
|
||||
/// Create a copy of SpotifySectionArtist
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
@override
|
||||
@pragma('vm:prefer-inline')
|
||||
_$$SpotifySectionArtistImplCopyWith<_$SpotifySectionArtistImpl>
|
||||
@ -454,8 +477,11 @@ abstract class _SpotifySectionArtist extends SpotifySectionArtist {
|
||||
String get uri;
|
||||
@override
|
||||
List<SpotifySectionItemImage> get images;
|
||||
|
||||
/// Create a copy of SpotifySectionArtist
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@override
|
||||
@JsonKey(ignore: true)
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
_$$SpotifySectionArtistImplCopyWith<_$SpotifySectionArtistImpl>
|
||||
get copyWith => throw _privateConstructorUsedError;
|
||||
}
|
||||
@ -473,8 +499,12 @@ mixin _$SpotifySectionAlbum {
|
||||
String get name => throw _privateConstructorUsedError;
|
||||
String get uri => throw _privateConstructorUsedError;
|
||||
|
||||
/// Serializes this SpotifySectionAlbum to a JSON map.
|
||||
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
||||
@JsonKey(ignore: true)
|
||||
|
||||
/// Create a copy of SpotifySectionAlbum
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
$SpotifySectionAlbumCopyWith<SpotifySectionAlbum> get copyWith =>
|
||||
throw _privateConstructorUsedError;
|
||||
}
|
||||
@ -502,6 +532,8 @@ class _$SpotifySectionAlbumCopyWithImpl<$Res, $Val extends SpotifySectionAlbum>
|
||||
// ignore: unused_field
|
||||
final $Res Function($Val) _then;
|
||||
|
||||
/// Create a copy of SpotifySectionAlbum
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@pragma('vm:prefer-inline')
|
||||
@override
|
||||
$Res call({
|
||||
@ -554,6 +586,8 @@ class __$$SpotifySectionAlbumImplCopyWithImpl<$Res>
|
||||
$Res Function(_$SpotifySectionAlbumImpl) _then)
|
||||
: super(_value, _then);
|
||||
|
||||
/// Create a copy of SpotifySectionAlbum
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@pragma('vm:prefer-inline')
|
||||
@override
|
||||
$Res call({
|
||||
@ -635,7 +669,7 @@ class _$SpotifySectionAlbumImpl extends _SpotifySectionAlbum {
|
||||
(identical(other.uri, uri) || other.uri == uri));
|
||||
}
|
||||
|
||||
@JsonKey(ignore: true)
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
@override
|
||||
int get hashCode => Object.hash(
|
||||
runtimeType,
|
||||
@ -644,7 +678,9 @@ class _$SpotifySectionAlbumImpl extends _SpotifySectionAlbum {
|
||||
name,
|
||||
uri);
|
||||
|
||||
@JsonKey(ignore: true)
|
||||
/// Create a copy of SpotifySectionAlbum
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
@override
|
||||
@pragma('vm:prefer-inline')
|
||||
_$$SpotifySectionAlbumImplCopyWith<_$SpotifySectionAlbumImpl> get copyWith =>
|
||||
@ -678,8 +714,11 @@ abstract class _SpotifySectionAlbum extends SpotifySectionAlbum {
|
||||
String get name;
|
||||
@override
|
||||
String get uri;
|
||||
|
||||
/// Create a copy of SpotifySectionAlbum
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@override
|
||||
@JsonKey(ignore: true)
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
_$$SpotifySectionAlbumImplCopyWith<_$SpotifySectionAlbumImpl> get copyWith =>
|
||||
throw _privateConstructorUsedError;
|
||||
}
|
||||
@ -694,8 +733,12 @@ mixin _$SpotifySectionAlbumArtist {
|
||||
String get name => throw _privateConstructorUsedError;
|
||||
String get uri => throw _privateConstructorUsedError;
|
||||
|
||||
/// Serializes this SpotifySectionAlbumArtist to a JSON map.
|
||||
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
||||
@JsonKey(ignore: true)
|
||||
|
||||
/// Create a copy of SpotifySectionAlbumArtist
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
$SpotifySectionAlbumArtistCopyWith<SpotifySectionAlbumArtist> get copyWith =>
|
||||
throw _privateConstructorUsedError;
|
||||
}
|
||||
@ -720,6 +763,8 @@ class _$SpotifySectionAlbumArtistCopyWithImpl<$Res,
|
||||
// ignore: unused_field
|
||||
final $Res Function($Val) _then;
|
||||
|
||||
/// Create a copy of SpotifySectionAlbumArtist
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@pragma('vm:prefer-inline')
|
||||
@override
|
||||
$Res call({
|
||||
@ -761,6 +806,8 @@ class __$$SpotifySectionAlbumArtistImplCopyWithImpl<$Res>
|
||||
$Res Function(_$SpotifySectionAlbumArtistImpl) _then)
|
||||
: super(_value, _then);
|
||||
|
||||
/// Create a copy of SpotifySectionAlbumArtist
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@pragma('vm:prefer-inline')
|
||||
@override
|
||||
$Res call({
|
||||
@ -808,11 +855,13 @@ class _$SpotifySectionAlbumArtistImpl extends _SpotifySectionAlbumArtist {
|
||||
(identical(other.uri, uri) || other.uri == uri));
|
||||
}
|
||||
|
||||
@JsonKey(ignore: true)
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
@override
|
||||
int get hashCode => Object.hash(runtimeType, name, uri);
|
||||
|
||||
@JsonKey(ignore: true)
|
||||
/// Create a copy of SpotifySectionAlbumArtist
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
@override
|
||||
@pragma('vm:prefer-inline')
|
||||
_$$SpotifySectionAlbumArtistImplCopyWith<_$SpotifySectionAlbumArtistImpl>
|
||||
@ -840,8 +889,11 @@ abstract class _SpotifySectionAlbumArtist extends SpotifySectionAlbumArtist {
|
||||
String get name;
|
||||
@override
|
||||
String get uri;
|
||||
|
||||
/// Create a copy of SpotifySectionAlbumArtist
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@override
|
||||
@JsonKey(ignore: true)
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
_$$SpotifySectionAlbumArtistImplCopyWith<_$SpotifySectionAlbumArtistImpl>
|
||||
get copyWith => throw _privateConstructorUsedError;
|
||||
}
|
||||
@ -857,8 +909,12 @@ mixin _$SpotifySectionItemImage {
|
||||
String get url => throw _privateConstructorUsedError;
|
||||
num? get width => throw _privateConstructorUsedError;
|
||||
|
||||
/// Serializes this SpotifySectionItemImage to a JSON map.
|
||||
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
||||
@JsonKey(ignore: true)
|
||||
|
||||
/// Create a copy of SpotifySectionItemImage
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
$SpotifySectionItemImageCopyWith<SpotifySectionItemImage> get copyWith =>
|
||||
throw _privateConstructorUsedError;
|
||||
}
|
||||
@ -883,6 +939,8 @@ class _$SpotifySectionItemImageCopyWithImpl<$Res,
|
||||
// ignore: unused_field
|
||||
final $Res Function($Val) _then;
|
||||
|
||||
/// Create a copy of SpotifySectionItemImage
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@pragma('vm:prefer-inline')
|
||||
@override
|
||||
$Res call({
|
||||
@ -929,6 +987,8 @@ class __$$SpotifySectionItemImageImplCopyWithImpl<$Res>
|
||||
$Res Function(_$SpotifySectionItemImageImpl) _then)
|
||||
: super(_value, _then);
|
||||
|
||||
/// Create a copy of SpotifySectionItemImage
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@pragma('vm:prefer-inline')
|
||||
@override
|
||||
$Res call({
|
||||
@ -985,11 +1045,13 @@ class _$SpotifySectionItemImageImpl extends _SpotifySectionItemImage {
|
||||
(identical(other.width, width) || other.width == width));
|
||||
}
|
||||
|
||||
@JsonKey(ignore: true)
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
@override
|
||||
int get hashCode => Object.hash(runtimeType, height, url, width);
|
||||
|
||||
@JsonKey(ignore: true)
|
||||
/// Create a copy of SpotifySectionItemImage
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
@override
|
||||
@pragma('vm:prefer-inline')
|
||||
_$$SpotifySectionItemImageImplCopyWith<_$SpotifySectionItemImageImpl>
|
||||
@ -1020,8 +1082,11 @@ abstract class _SpotifySectionItemImage extends SpotifySectionItemImage {
|
||||
String get url;
|
||||
@override
|
||||
num? get width;
|
||||
|
||||
/// Create a copy of SpotifySectionItemImage
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@override
|
||||
@JsonKey(ignore: true)
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
_$$SpotifySectionItemImageImplCopyWith<_$SpotifySectionItemImageImpl>
|
||||
get copyWith => throw _privateConstructorUsedError;
|
||||
}
|
||||
@ -1038,8 +1103,12 @@ mixin _$SpotifyHomeFeedSectionItem {
|
||||
SpotifySectionArtist? get artist => throw _privateConstructorUsedError;
|
||||
SpotifySectionAlbum? get album => throw _privateConstructorUsedError;
|
||||
|
||||
/// Serializes this SpotifyHomeFeedSectionItem to a JSON map.
|
||||
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
||||
@JsonKey(ignore: true)
|
||||
|
||||
/// Create a copy of SpotifyHomeFeedSectionItem
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
$SpotifyHomeFeedSectionItemCopyWith<SpotifyHomeFeedSectionItem>
|
||||
get copyWith => throw _privateConstructorUsedError;
|
||||
}
|
||||
@ -1073,6 +1142,8 @@ class _$SpotifyHomeFeedSectionItemCopyWithImpl<$Res,
|
||||
// ignore: unused_field
|
||||
final $Res Function($Val) _then;
|
||||
|
||||
/// Create a copy of SpotifyHomeFeedSectionItem
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@pragma('vm:prefer-inline')
|
||||
@override
|
||||
$Res call({
|
||||
@ -1101,6 +1172,8 @@ class _$SpotifyHomeFeedSectionItemCopyWithImpl<$Res,
|
||||
) as $Val);
|
||||
}
|
||||
|
||||
/// Create a copy of SpotifyHomeFeedSectionItem
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@override
|
||||
@pragma('vm:prefer-inline')
|
||||
$SpotifySectionPlaylistCopyWith<$Res>? get playlist {
|
||||
@ -1113,6 +1186,8 @@ class _$SpotifyHomeFeedSectionItemCopyWithImpl<$Res,
|
||||
});
|
||||
}
|
||||
|
||||
/// Create a copy of SpotifyHomeFeedSectionItem
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@override
|
||||
@pragma('vm:prefer-inline')
|
||||
$SpotifySectionArtistCopyWith<$Res>? get artist {
|
||||
@ -1125,6 +1200,8 @@ class _$SpotifyHomeFeedSectionItemCopyWithImpl<$Res,
|
||||
});
|
||||
}
|
||||
|
||||
/// Create a copy of SpotifyHomeFeedSectionItem
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@override
|
||||
@pragma('vm:prefer-inline')
|
||||
$SpotifySectionAlbumCopyWith<$Res>? get album {
|
||||
@ -1171,6 +1248,8 @@ class __$$SpotifyHomeFeedSectionItemImplCopyWithImpl<$Res>
|
||||
$Res Function(_$SpotifyHomeFeedSectionItemImpl) _then)
|
||||
: super(_value, _then);
|
||||
|
||||
/// Create a copy of SpotifyHomeFeedSectionItem
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@pragma('vm:prefer-inline')
|
||||
@override
|
||||
$Res call({
|
||||
@ -1237,12 +1316,14 @@ class _$SpotifyHomeFeedSectionItemImpl implements _SpotifyHomeFeedSectionItem {
|
||||
(identical(other.album, album) || other.album == album));
|
||||
}
|
||||
|
||||
@JsonKey(ignore: true)
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
@override
|
||||
int get hashCode =>
|
||||
Object.hash(runtimeType, typename, playlist, artist, album);
|
||||
|
||||
@JsonKey(ignore: true)
|
||||
/// Create a copy of SpotifyHomeFeedSectionItem
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
@override
|
||||
@pragma('vm:prefer-inline')
|
||||
_$$SpotifyHomeFeedSectionItemImplCopyWith<_$SpotifyHomeFeedSectionItemImpl>
|
||||
@ -1276,8 +1357,11 @@ abstract class _SpotifyHomeFeedSectionItem
|
||||
SpotifySectionArtist? get artist;
|
||||
@override
|
||||
SpotifySectionAlbum? get album;
|
||||
|
||||
/// Create a copy of SpotifyHomeFeedSectionItem
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@override
|
||||
@JsonKey(ignore: true)
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
_$$SpotifyHomeFeedSectionItemImplCopyWith<_$SpotifyHomeFeedSectionItemImpl>
|
||||
get copyWith => throw _privateConstructorUsedError;
|
||||
}
|
||||
@ -1295,8 +1379,12 @@ mixin _$SpotifyHomeFeedSection {
|
||||
List<SpotifyHomeFeedSectionItem> get items =>
|
||||
throw _privateConstructorUsedError;
|
||||
|
||||
/// Serializes this SpotifyHomeFeedSection to a JSON map.
|
||||
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
||||
@JsonKey(ignore: true)
|
||||
|
||||
/// Create a copy of SpotifyHomeFeedSection
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
$SpotifyHomeFeedSectionCopyWith<SpotifyHomeFeedSection> get copyWith =>
|
||||
throw _privateConstructorUsedError;
|
||||
}
|
||||
@ -1325,6 +1413,8 @@ class _$SpotifyHomeFeedSectionCopyWithImpl<$Res,
|
||||
// ignore: unused_field
|
||||
final $Res Function($Val) _then;
|
||||
|
||||
/// Create a copy of SpotifyHomeFeedSection
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@pragma('vm:prefer-inline')
|
||||
@override
|
||||
$Res call({
|
||||
@ -1380,6 +1470,8 @@ class __$$SpotifyHomeFeedSectionImplCopyWithImpl<$Res>
|
||||
$Res Function(_$SpotifyHomeFeedSectionImpl) _then)
|
||||
: super(_value, _then);
|
||||
|
||||
/// Create a copy of SpotifyHomeFeedSection
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@pragma('vm:prefer-inline')
|
||||
@override
|
||||
$Res call({
|
||||
@ -1453,12 +1545,14 @@ class _$SpotifyHomeFeedSectionImpl implements _SpotifyHomeFeedSection {
|
||||
const DeepCollectionEquality().equals(other._items, _items));
|
||||
}
|
||||
|
||||
@JsonKey(ignore: true)
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
@override
|
||||
int get hashCode => Object.hash(runtimeType, typename, title, uri,
|
||||
const DeepCollectionEquality().hash(_items));
|
||||
|
||||
@JsonKey(ignore: true)
|
||||
/// Create a copy of SpotifyHomeFeedSection
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
@override
|
||||
@pragma('vm:prefer-inline')
|
||||
_$$SpotifyHomeFeedSectionImplCopyWith<_$SpotifyHomeFeedSectionImpl>
|
||||
@ -1492,8 +1586,11 @@ abstract class _SpotifyHomeFeedSection implements SpotifyHomeFeedSection {
|
||||
String get uri;
|
||||
@override
|
||||
List<SpotifyHomeFeedSectionItem> get items;
|
||||
|
||||
/// Create a copy of SpotifyHomeFeedSection
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@override
|
||||
@JsonKey(ignore: true)
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
_$$SpotifyHomeFeedSectionImplCopyWith<_$SpotifyHomeFeedSectionImpl>
|
||||
get copyWith => throw _privateConstructorUsedError;
|
||||
}
|
||||
@ -1508,8 +1605,12 @@ mixin _$SpotifyHomeFeed {
|
||||
List<SpotifyHomeFeedSection> get sections =>
|
||||
throw _privateConstructorUsedError;
|
||||
|
||||
/// Serializes this SpotifyHomeFeed to a JSON map.
|
||||
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
||||
@JsonKey(ignore: true)
|
||||
|
||||
/// Create a copy of SpotifyHomeFeed
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
$SpotifyHomeFeedCopyWith<SpotifyHomeFeed> get copyWith =>
|
||||
throw _privateConstructorUsedError;
|
||||
}
|
||||
@ -1533,6 +1634,8 @@ class _$SpotifyHomeFeedCopyWithImpl<$Res, $Val extends SpotifyHomeFeed>
|
||||
// ignore: unused_field
|
||||
final $Res Function($Val) _then;
|
||||
|
||||
/// Create a copy of SpotifyHomeFeed
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@pragma('vm:prefer-inline')
|
||||
@override
|
||||
$Res call({
|
||||
@ -1571,6 +1674,8 @@ class __$$SpotifyHomeFeedImplCopyWithImpl<$Res>
|
||||
_$SpotifyHomeFeedImpl _value, $Res Function(_$SpotifyHomeFeedImpl) _then)
|
||||
: super(_value, _then);
|
||||
|
||||
/// Create a copy of SpotifyHomeFeed
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@pragma('vm:prefer-inline')
|
||||
@override
|
||||
$Res call({
|
||||
@ -1626,12 +1731,14 @@ class _$SpotifyHomeFeedImpl implements _SpotifyHomeFeed {
|
||||
const DeepCollectionEquality().equals(other._sections, _sections));
|
||||
}
|
||||
|
||||
@JsonKey(ignore: true)
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
@override
|
||||
int get hashCode => Object.hash(
|
||||
runtimeType, greeting, const DeepCollectionEquality().hash(_sections));
|
||||
|
||||
@JsonKey(ignore: true)
|
||||
/// Create a copy of SpotifyHomeFeed
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
@override
|
||||
@pragma('vm:prefer-inline')
|
||||
_$$SpotifyHomeFeedImplCopyWith<_$SpotifyHomeFeedImpl> get copyWith =>
|
||||
@ -1659,8 +1766,11 @@ abstract class _SpotifyHomeFeed implements SpotifyHomeFeed {
|
||||
String get greeting;
|
||||
@override
|
||||
List<SpotifyHomeFeedSection> get sections;
|
||||
|
||||
/// Create a copy of SpotifyHomeFeed
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@override
|
||||
@JsonKey(ignore: true)
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
_$$SpotifyHomeFeedImplCopyWith<_$SpotifyHomeFeedImpl> get copyWith =>
|
||||
throw _privateConstructorUsedError;
|
||||
}
|
||||
|
@ -24,7 +24,9 @@ mixin _$GeneratePlaylistProviderInput {
|
||||
RecommendationSeeds? get min => throw _privateConstructorUsedError;
|
||||
RecommendationSeeds? get target => throw _privateConstructorUsedError;
|
||||
|
||||
@JsonKey(ignore: true)
|
||||
/// Create a copy of GeneratePlaylistProviderInput
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
$GeneratePlaylistProviderInputCopyWith<GeneratePlaylistProviderInput>
|
||||
get copyWith => throw _privateConstructorUsedError;
|
||||
}
|
||||
@ -62,6 +64,8 @@ class _$GeneratePlaylistProviderInputCopyWithImpl<$Res,
|
||||
// ignore: unused_field
|
||||
final $Res Function($Val) _then;
|
||||
|
||||
/// Create a copy of GeneratePlaylistProviderInput
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@pragma('vm:prefer-inline')
|
||||
@override
|
||||
$Res call({
|
||||
@ -105,6 +109,8 @@ class _$GeneratePlaylistProviderInputCopyWithImpl<$Res,
|
||||
) as $Val);
|
||||
}
|
||||
|
||||
/// Create a copy of GeneratePlaylistProviderInput
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@override
|
||||
@pragma('vm:prefer-inline')
|
||||
$RecommendationSeedsCopyWith<$Res>? get max {
|
||||
@ -117,6 +123,8 @@ class _$GeneratePlaylistProviderInputCopyWithImpl<$Res,
|
||||
});
|
||||
}
|
||||
|
||||
/// Create a copy of GeneratePlaylistProviderInput
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@override
|
||||
@pragma('vm:prefer-inline')
|
||||
$RecommendationSeedsCopyWith<$Res>? get min {
|
||||
@ -129,6 +137,8 @@ class _$GeneratePlaylistProviderInputCopyWithImpl<$Res,
|
||||
});
|
||||
}
|
||||
|
||||
/// Create a copy of GeneratePlaylistProviderInput
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@override
|
||||
@pragma('vm:prefer-inline')
|
||||
$RecommendationSeedsCopyWith<$Res>? get target {
|
||||
@ -178,6 +188,8 @@ class __$$GeneratePlaylistProviderInputImplCopyWithImpl<$Res>
|
||||
$Res Function(_$GeneratePlaylistProviderInputImpl) _then)
|
||||
: super(_value, _then);
|
||||
|
||||
/// Create a copy of GeneratePlaylistProviderInput
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@pragma('vm:prefer-inline')
|
||||
@override
|
||||
$Res call({
|
||||
@ -283,7 +295,9 @@ class _$GeneratePlaylistProviderInputImpl
|
||||
min,
|
||||
target);
|
||||
|
||||
@JsonKey(ignore: true)
|
||||
/// Create a copy of GeneratePlaylistProviderInput
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
@override
|
||||
@pragma('vm:prefer-inline')
|
||||
_$$GeneratePlaylistProviderInputImplCopyWith<
|
||||
@ -317,8 +331,11 @@ abstract class _GeneratePlaylistProviderInput
|
||||
RecommendationSeeds? get min;
|
||||
@override
|
||||
RecommendationSeeds? get target;
|
||||
|
||||
/// Create a copy of GeneratePlaylistProviderInput
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@override
|
||||
@JsonKey(ignore: true)
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
_$$GeneratePlaylistProviderInputImplCopyWith<
|
||||
_$GeneratePlaylistProviderInputImpl>
|
||||
get copyWith => throw _privateConstructorUsedError;
|
||||
@ -347,8 +364,12 @@ mixin _$RecommendationSeeds {
|
||||
num? get timeSignature => throw _privateConstructorUsedError;
|
||||
num? get valence => throw _privateConstructorUsedError;
|
||||
|
||||
/// Serializes this RecommendationSeeds to a JSON map.
|
||||
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
||||
@JsonKey(ignore: true)
|
||||
|
||||
/// Create a copy of RecommendationSeeds
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
$RecommendationSeedsCopyWith<RecommendationSeeds> get copyWith =>
|
||||
throw _privateConstructorUsedError;
|
||||
}
|
||||
@ -386,6 +407,8 @@ class _$RecommendationSeedsCopyWithImpl<$Res, $Val extends RecommendationSeeds>
|
||||
// ignore: unused_field
|
||||
final $Res Function($Val) _then;
|
||||
|
||||
/// Create a copy of RecommendationSeeds
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@pragma('vm:prefer-inline')
|
||||
@override
|
||||
$Res call({
|
||||
@ -498,6 +521,8 @@ class __$$RecommendationSeedsImplCopyWithImpl<$Res>
|
||||
$Res Function(_$RecommendationSeedsImpl) _then)
|
||||
: super(_value, _then);
|
||||
|
||||
/// Create a copy of RecommendationSeeds
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@pragma('vm:prefer-inline')
|
||||
@override
|
||||
$Res call({
|
||||
@ -665,7 +690,7 @@ class _$RecommendationSeedsImpl implements _RecommendationSeeds {
|
||||
(identical(other.valence, valence) || other.valence == valence));
|
||||
}
|
||||
|
||||
@JsonKey(ignore: true)
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
@override
|
||||
int get hashCode => Object.hash(
|
||||
runtimeType,
|
||||
@ -684,7 +709,9 @@ class _$RecommendationSeedsImpl implements _RecommendationSeeds {
|
||||
timeSignature,
|
||||
valence);
|
||||
|
||||
@JsonKey(ignore: true)
|
||||
/// Create a copy of RecommendationSeeds
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
@override
|
||||
@pragma('vm:prefer-inline')
|
||||
_$$RecommendationSeedsImplCopyWith<_$RecommendationSeedsImpl> get copyWith =>
|
||||
@ -749,8 +776,11 @@ abstract class _RecommendationSeeds implements RecommendationSeeds {
|
||||
num? get timeSignature;
|
||||
@override
|
||||
num? get valence;
|
||||
|
||||
/// Create a copy of RecommendationSeeds
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@override
|
||||
@JsonKey(ignore: true)
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
_$$RecommendationSeedsImplCopyWith<_$RecommendationSeedsImpl> get copyWith =>
|
||||
throw _privateConstructorUsedError;
|
||||
}
|
||||
|
@ -1,6 +1,7 @@
|
||||
import 'dart:math';
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_hooks/flutter_hooks.dart';
|
||||
import 'package:gap/gap.dart';
|
||||
import 'package:go_router/go_router.dart';
|
||||
import 'package:hooks_riverpod/hooks_riverpod.dart';
|
||||
@ -28,8 +29,10 @@ class LocalFolderItem extends HookConsumerWidget {
|
||||
|
||||
final downloadFolder =
|
||||
ref.watch(userPreferencesProvider.select((s) => s.downloadLocation));
|
||||
final cacheFolder = useFuture(UserPreferencesNotifier.getMusicCacheDir());
|
||||
|
||||
final isDownloadFolder = folder == downloadFolder;
|
||||
final isCacheFolder = folder == cacheFolder.data;
|
||||
|
||||
final Uri(:pathSegments) = Uri.parse(
|
||||
folder
|
||||
@ -62,6 +65,7 @@ class LocalFolderItem extends HookConsumerWidget {
|
||||
LocalLibraryPage.name,
|
||||
queryParameters: {
|
||||
if (isDownloadFolder) "downloads": "true",
|
||||
if (isCacheFolder) "cache": "true",
|
||||
},
|
||||
extra: folder,
|
||||
);
|
||||
|
@ -30,6 +30,7 @@ class UserLocalTracks extends HookConsumerWidget {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context, ref) {
|
||||
final cacheDir = useFuture(UserPreferencesNotifier.getMusicCacheDir());
|
||||
final preferencesNotifier = ref.watch(userPreferencesProvider.notifier);
|
||||
final preferences = ref.watch(userPreferencesProvider);
|
||||
|
||||
@ -83,12 +84,16 @@ class UserLocalTracks extends HookConsumerWidget {
|
||||
crossAxisSpacing: 10,
|
||||
mainAxisSpacing: 10,
|
||||
),
|
||||
itemCount: preferences.localLibraryLocation.length + 1,
|
||||
itemCount: preferences.localLibraryLocation.length +
|
||||
1 +
|
||||
(cacheDir.hasData ? 1 : 0),
|
||||
itemBuilder: (context, index) {
|
||||
return LocalFolderItem(
|
||||
folder: index == 0
|
||||
? preferences.downloadLocation
|
||||
: preferences.localLibraryLocation[index - 1],
|
||||
: index == 1 && cacheDir.hasData
|
||||
? cacheDir.data!
|
||||
: preferences.localLibraryLocation[index - 1],
|
||||
);
|
||||
},
|
||||
),
|
||||
|
@ -6,6 +6,7 @@ import 'package:hooks_riverpod/hooks_riverpod.dart';
|
||||
import 'package:skeletonizer/skeletonizer.dart';
|
||||
import 'package:spotube/collections/fake.dart';
|
||||
import 'package:spotube/collections/spotube_icons.dart';
|
||||
import 'package:spotube/extensions/string.dart';
|
||||
import 'package:spotube/modules/library/user_local_tracks.dart';
|
||||
import 'package:spotube/components/expandable_search/expandable_search.dart';
|
||||
import 'package:spotube/components/fallbacks/not_found.dart';
|
||||
@ -25,7 +26,13 @@ class LocalLibraryPage extends HookConsumerWidget {
|
||||
|
||||
final String location;
|
||||
final bool isDownloads;
|
||||
const LocalLibraryPage(this.location, {super.key, this.isDownloads = false});
|
||||
final bool isCache;
|
||||
const LocalLibraryPage(
|
||||
this.location, {
|
||||
super.key,
|
||||
this.isDownloads = false,
|
||||
this.isCache = false,
|
||||
});
|
||||
|
||||
Future<void> playLocalTracks(
|
||||
WidgetRef ref,
|
||||
@ -71,7 +78,13 @@ class LocalLibraryPage extends HookConsumerWidget {
|
||||
appBar: PageWindowTitleBar(
|
||||
leading: const BackButton(),
|
||||
centerTitle: true,
|
||||
title: Text(isDownloads ? context.l10n.downloads : location),
|
||||
title: Text(
|
||||
isDownloads
|
||||
? context.l10n.downloads
|
||||
: isCache
|
||||
? context.l10n.cache_folder.capitalize()
|
||||
: location,
|
||||
),
|
||||
backgroundColor: Colors.transparent,
|
||||
),
|
||||
body: Column(
|
||||
|
@ -1,4 +1,5 @@
|
||||
import 'package:collection/collection.dart';
|
||||
import 'package:flutter/gestures.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:gap/gap.dart';
|
||||
import 'package:go_router/go_router.dart';
|
||||
@ -239,6 +240,28 @@ class SettingsPlaybackSection extends HookConsumerWidget {
|
||||
)
|
||||
: const SizedBox.shrink(),
|
||||
),
|
||||
SwitchListTile(
|
||||
title: Text(context.l10n.cache_music),
|
||||
subtitle: Text.rich(
|
||||
TextSpan(
|
||||
children: [
|
||||
TextSpan(text: "${context.l10n.open} "),
|
||||
TextSpan(
|
||||
text: context.l10n.cache_folder.toLowerCase(),
|
||||
recognizer: TapGestureRecognizer()
|
||||
..onTap = preferencesNotifier.openCacheFolder,
|
||||
style: theme.textTheme.bodyMedium?.copyWith(
|
||||
color: theme.colorScheme.primary,
|
||||
decoration: TextDecoration.underline,
|
||||
),
|
||||
)
|
||||
],
|
||||
),
|
||||
),
|
||||
secondary: const Icon(SpotubeIcons.cache),
|
||||
value: preferences.cacheMusic,
|
||||
onChanged: preferencesNotifier.setCacheMusic,
|
||||
),
|
||||
ListTile(
|
||||
leading: const Icon(SpotubeIcons.playlistRemove),
|
||||
title: Text(context.l10n.blacklist),
|
||||
|
@ -74,6 +74,7 @@ class AudioPlayerStreamListeners {
|
||||
StreamSubscription subscribeToPlaylist() {
|
||||
return audioPlayer.playlistStream.listen((mpvPlaylist) {
|
||||
try {
|
||||
if (audioPlayerState.activeTrack == null) return;
|
||||
notificationService.addTrack(audioPlayerState.activeTrack!);
|
||||
discord.updatePresence(audioPlayerState.activeTrack!);
|
||||
updatePalette();
|
||||
|
@ -44,14 +44,23 @@ final localTracksProvider =
|
||||
userPreferencesProvider.select((s) => s.downloadLocation),
|
||||
);
|
||||
final downloadDir = Directory(downloadLocation);
|
||||
final cacheDir =
|
||||
Directory(await UserPreferencesNotifier.getMusicCacheDir());
|
||||
if (!await downloadDir.exists()) {
|
||||
await downloadDir.create(recursive: true);
|
||||
}
|
||||
if (!await cacheDir.exists()) {
|
||||
await cacheDir.create(recursive: true);
|
||||
}
|
||||
final localLibraryLocations = ref.watch(
|
||||
userPreferencesProvider.select((s) => s.localLibraryLocation),
|
||||
);
|
||||
|
||||
for (final location in [downloadLocation, ...localLibraryLocations]) {
|
||||
for (final location in [
|
||||
downloadLocation,
|
||||
cacheDir.path,
|
||||
...localLibraryLocations
|
||||
]) {
|
||||
if (location.isEmpty) continue;
|
||||
final entities = <File>[];
|
||||
if (await Directory(location).exists()) {
|
||||
|
@ -21,7 +21,6 @@ import 'package:spotube/services/audio_player/audio_player.dart';
|
||||
import 'package:spotube/services/logger/logger.dart';
|
||||
import 'package:spotube/services/sourced_track/enums.dart';
|
||||
import 'package:spotube/services/sourced_track/sourced_track.dart';
|
||||
import 'package:path_provider/path_provider.dart' as paths;
|
||||
import 'package:spotube/utils/service_utils.dart';
|
||||
|
||||
class ServerPlaybackRoutes {
|
||||
@ -39,8 +38,7 @@ class ServerPlaybackRoutes {
|
||||
) async {
|
||||
final trackCacheFile = File(
|
||||
join(
|
||||
await paths.getApplicationCacheDirectory().then((value) => value.path),
|
||||
'cached_tracks',
|
||||
await UserPreferencesNotifier.getMusicCacheDir(),
|
||||
'${track.name} - ${track.artists?.asString()} (${track.sourceInfo.id}).${track.codec.name}',
|
||||
),
|
||||
);
|
||||
@ -68,7 +66,7 @@ class ServerPlaybackRoutes {
|
||||
|
||||
final contentLength = headersRes?.headers.value("content-length");
|
||||
|
||||
if (await trackCacheFile.exists()) {
|
||||
if (await trackCacheFile.exists() && userPreferences.cacheMusic) {
|
||||
final bytes = await trackCacheFile.readAsBytes();
|
||||
final cachedFileLength = bytes.length;
|
||||
|
||||
@ -117,8 +115,8 @@ class ServerPlaybackRoutes {
|
||||
|
||||
final bytes = res.data;
|
||||
|
||||
if (bytes == null) {
|
||||
return (response: res, bytes: null);
|
||||
if (bytes == null || !userPreferences.cacheMusic) {
|
||||
return (response: res, bytes: bytes);
|
||||
}
|
||||
|
||||
final contentRange =
|
||||
|
@ -14,6 +14,7 @@ import 'package:spotube/services/logger/logger.dart';
|
||||
import 'package:spotube/services/sourced_track/enums.dart';
|
||||
import 'package:spotube/utils/platform.dart';
|
||||
import 'package:window_manager/window_manager.dart';
|
||||
import 'package:open_file/open_file.dart';
|
||||
|
||||
typedef UserPreferences = PreferencesTableData;
|
||||
|
||||
@ -95,6 +96,16 @@ class UserPreferencesNotifier extends Notifier<PreferencesTableData> {
|
||||
await query.replace(PreferencesTableCompanion.insert());
|
||||
}
|
||||
|
||||
static Future<String> getMusicCacheDir() async => join(
|
||||
await getApplicationCacheDirectory().then((value) => value.path),
|
||||
'cached_tracks',
|
||||
);
|
||||
|
||||
Future<void> openCacheFolder() async {
|
||||
final filePath = await getMusicCacheDir();
|
||||
await OpenFile.open(filePath);
|
||||
}
|
||||
|
||||
void setStreamMusicCodec(SourceCodecs codec) {
|
||||
setData(PreferencesTableCompanion(streamMusicCodec: Value(codec)));
|
||||
}
|
||||
@ -211,6 +222,10 @@ class UserPreferencesNotifier extends Notifier<PreferencesTableData> {
|
||||
void setEnableConnect(bool enable) {
|
||||
setData(PreferencesTableCompanion(enableConnect: Value(enable)));
|
||||
}
|
||||
|
||||
void setCacheMusic(bool cache) {
|
||||
setData(PreferencesTableCompanion(cacheMusic: Value(cache)));
|
||||
}
|
||||
}
|
||||
|
||||
final userPreferencesProvider =
|
||||
|
@ -30,8 +30,12 @@ mixin _$SongLink {
|
||||
String? get nativeAppUriMobile => throw _privateConstructorUsedError;
|
||||
String? get nativeAppUriDesktop => throw _privateConstructorUsedError;
|
||||
|
||||
/// Serializes this SongLink to a JSON map.
|
||||
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
||||
@JsonKey(ignore: true)
|
||||
|
||||
/// Create a copy of SongLink
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
$SongLinkCopyWith<SongLink> get copyWith =>
|
||||
throw _privateConstructorUsedError;
|
||||
}
|
||||
@ -63,6 +67,8 @@ class _$SongLinkCopyWithImpl<$Res, $Val extends SongLink>
|
||||
// ignore: unused_field
|
||||
final $Res Function($Val) _then;
|
||||
|
||||
/// Create a copy of SongLink
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@pragma('vm:prefer-inline')
|
||||
@override
|
||||
$Res call({
|
||||
@ -145,6 +151,8 @@ class __$$SongLinkImplCopyWithImpl<$Res>
|
||||
_$SongLinkImpl _value, $Res Function(_$SongLinkImpl) _then)
|
||||
: super(_value, _then);
|
||||
|
||||
/// Create a copy of SongLink
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@pragma('vm:prefer-inline')
|
||||
@override
|
||||
$Res call({
|
||||
@ -261,12 +269,14 @@ class _$SongLinkImpl implements _SongLink {
|
||||
other.nativeAppUriDesktop == nativeAppUriDesktop));
|
||||
}
|
||||
|
||||
@JsonKey(ignore: true)
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
@override
|
||||
int get hashCode => Object.hash(runtimeType, displayName, linkId, platform,
|
||||
show, uniqueId, country, url, nativeAppUriMobile, nativeAppUriDesktop);
|
||||
|
||||
@JsonKey(ignore: true)
|
||||
/// Create a copy of SongLink
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
@override
|
||||
@pragma('vm:prefer-inline')
|
||||
_$$SongLinkImplCopyWith<_$SongLinkImpl> get copyWith =>
|
||||
@ -313,8 +323,11 @@ abstract class _SongLink implements SongLink {
|
||||
String? get nativeAppUriMobile;
|
||||
@override
|
||||
String? get nativeAppUriDesktop;
|
||||
|
||||
/// Create a copy of SongLink
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@override
|
||||
@JsonKey(ignore: true)
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
_$$SongLinkImplCopyWith<_$SongLinkImpl> get copyWith =>
|
||||
throw _privateConstructorUsedError;
|
||||
}
|
||||
|
@ -53,8 +53,12 @@ mixin _$UserPreferences {
|
||||
bool get endlessPlayback => throw _privateConstructorUsedError;
|
||||
bool get enableConnect => throw _privateConstructorUsedError;
|
||||
|
||||
/// Serializes this UserPreferences to a JSON map.
|
||||
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
||||
@JsonKey(ignore: true)
|
||||
|
||||
/// Create a copy of UserPreferences
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
$UserPreferencesCopyWith<UserPreferences> get copyWith =>
|
||||
throw _privateConstructorUsedError;
|
||||
}
|
||||
@ -110,6 +114,8 @@ class _$UserPreferencesCopyWithImpl<$Res, $Val extends UserPreferences>
|
||||
// ignore: unused_field
|
||||
final $Res Function($Val) _then;
|
||||
|
||||
/// Create a copy of UserPreferences
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@pragma('vm:prefer-inline')
|
||||
@override
|
||||
$Res call({
|
||||
@ -290,6 +296,8 @@ class __$$UserPreferencesImplCopyWithImpl<$Res>
|
||||
_$UserPreferencesImpl _value, $Res Function(_$UserPreferencesImpl) _then)
|
||||
: super(_value, _then);
|
||||
|
||||
/// Create a copy of UserPreferences
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@pragma('vm:prefer-inline')
|
||||
@override
|
||||
$Res call({
|
||||
@ -605,7 +613,7 @@ class _$UserPreferencesImpl implements _UserPreferences {
|
||||
other.enableConnect == enableConnect));
|
||||
}
|
||||
|
||||
@JsonKey(ignore: true)
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
@override
|
||||
int get hashCode => Object.hashAll([
|
||||
runtimeType,
|
||||
@ -635,7 +643,9 @@ class _$UserPreferencesImpl implements _UserPreferences {
|
||||
enableConnect
|
||||
]);
|
||||
|
||||
@JsonKey(ignore: true)
|
||||
/// Create a copy of UserPreferences
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
@override
|
||||
@pragma('vm:prefer-inline')
|
||||
_$$UserPreferencesImplCopyWith<_$UserPreferencesImpl> get copyWith =>
|
||||
@ -744,8 +754,11 @@ abstract class _UserPreferences implements UserPreferences {
|
||||
bool get endlessPlayback;
|
||||
@override
|
||||
bool get enableConnect;
|
||||
|
||||
/// Create a copy of UserPreferences
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@override
|
||||
@JsonKey(ignore: true)
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
_$$UserPreferencesImplCopyWith<_$UserPreferencesImpl> get copyWith =>
|
||||
throw _privateConstructorUsedError;
|
||||
}
|
||||
@ -812,8 +825,13 @@ mixin _$PlaybackHistoryItem {
|
||||
required TResult orElse(),
|
||||
}) =>
|
||||
throw _privateConstructorUsedError;
|
||||
|
||||
/// Serializes this PlaybackHistoryItem to a JSON map.
|
||||
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
||||
@JsonKey(ignore: true)
|
||||
|
||||
/// Create a copy of PlaybackHistoryItem
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
$PlaybackHistoryItemCopyWith<PlaybackHistoryItem> get copyWith =>
|
||||
throw _privateConstructorUsedError;
|
||||
}
|
||||
@ -837,6 +855,8 @@ class _$PlaybackHistoryItemCopyWithImpl<$Res, $Val extends PlaybackHistoryItem>
|
||||
// ignore: unused_field
|
||||
final $Res Function($Val) _then;
|
||||
|
||||
/// Create a copy of PlaybackHistoryItem
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@pragma('vm:prefer-inline')
|
||||
@override
|
||||
$Res call({
|
||||
@ -873,6 +893,8 @@ class __$$PlaybackHistoryPlaylistImplCopyWithImpl<$Res>
|
||||
$Res Function(_$PlaybackHistoryPlaylistImpl) _then)
|
||||
: super(_value, _then);
|
||||
|
||||
/// Create a copy of PlaybackHistoryItem
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@pragma('vm:prefer-inline')
|
||||
@override
|
||||
$Res call({
|
||||
@ -925,11 +947,13 @@ class _$PlaybackHistoryPlaylistImpl implements PlaybackHistoryPlaylist {
|
||||
other.playlist == playlist));
|
||||
}
|
||||
|
||||
@JsonKey(ignore: true)
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
@override
|
||||
int get hashCode => Object.hash(runtimeType, date, playlist);
|
||||
|
||||
@JsonKey(ignore: true)
|
||||
/// Create a copy of PlaybackHistoryItem
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
@override
|
||||
@pragma('vm:prefer-inline')
|
||||
_$$PlaybackHistoryPlaylistImplCopyWith<_$PlaybackHistoryPlaylistImpl>
|
||||
@ -1023,8 +1047,11 @@ abstract class PlaybackHistoryPlaylist implements PlaybackHistoryItem {
|
||||
@override
|
||||
DateTime get date;
|
||||
PlaylistSimple get playlist;
|
||||
|
||||
/// Create a copy of PlaybackHistoryItem
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@override
|
||||
@JsonKey(ignore: true)
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
_$$PlaybackHistoryPlaylistImplCopyWith<_$PlaybackHistoryPlaylistImpl>
|
||||
get copyWith => throw _privateConstructorUsedError;
|
||||
}
|
||||
@ -1048,6 +1075,8 @@ class __$$PlaybackHistoryAlbumImplCopyWithImpl<$Res>
|
||||
$Res Function(_$PlaybackHistoryAlbumImpl) _then)
|
||||
: super(_value, _then);
|
||||
|
||||
/// Create a copy of PlaybackHistoryItem
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@pragma('vm:prefer-inline')
|
||||
@override
|
||||
$Res call({
|
||||
@ -1099,11 +1128,13 @@ class _$PlaybackHistoryAlbumImpl implements PlaybackHistoryAlbum {
|
||||
(identical(other.album, album) || other.album == album));
|
||||
}
|
||||
|
||||
@JsonKey(ignore: true)
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
@override
|
||||
int get hashCode => Object.hash(runtimeType, date, album);
|
||||
|
||||
@JsonKey(ignore: true)
|
||||
/// Create a copy of PlaybackHistoryItem
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
@override
|
||||
@pragma('vm:prefer-inline')
|
||||
_$$PlaybackHistoryAlbumImplCopyWith<_$PlaybackHistoryAlbumImpl>
|
||||
@ -1198,8 +1229,11 @@ abstract class PlaybackHistoryAlbum implements PlaybackHistoryItem {
|
||||
@override
|
||||
DateTime get date;
|
||||
AlbumSimple get album;
|
||||
|
||||
/// Create a copy of PlaybackHistoryItem
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@override
|
||||
@JsonKey(ignore: true)
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
_$$PlaybackHistoryAlbumImplCopyWith<_$PlaybackHistoryAlbumImpl>
|
||||
get copyWith => throw _privateConstructorUsedError;
|
||||
}
|
||||
@ -1223,6 +1257,8 @@ class __$$PlaybackHistoryTrackImplCopyWithImpl<$Res>
|
||||
$Res Function(_$PlaybackHistoryTrackImpl) _then)
|
||||
: super(_value, _then);
|
||||
|
||||
/// Create a copy of PlaybackHistoryItem
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@pragma('vm:prefer-inline')
|
||||
@override
|
||||
$Res call({
|
||||
@ -1274,11 +1310,13 @@ class _$PlaybackHistoryTrackImpl implements PlaybackHistoryTrack {
|
||||
(identical(other.track, track) || other.track == track));
|
||||
}
|
||||
|
||||
@JsonKey(ignore: true)
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
@override
|
||||
int get hashCode => Object.hash(runtimeType, date, track);
|
||||
|
||||
@JsonKey(ignore: true)
|
||||
/// Create a copy of PlaybackHistoryItem
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
@override
|
||||
@pragma('vm:prefer-inline')
|
||||
_$$PlaybackHistoryTrackImplCopyWith<_$PlaybackHistoryTrackImpl>
|
||||
@ -1373,8 +1411,11 @@ abstract class PlaybackHistoryTrack implements PlaybackHistoryItem {
|
||||
@override
|
||||
DateTime get date;
|
||||
Track get track;
|
||||
|
||||
/// Create a copy of PlaybackHistoryItem
|
||||
/// with the given fields replaced by the non-null parameter values.
|
||||
@override
|
||||
@JsonKey(ignore: true)
|
||||
@JsonKey(includeFromJson: false, includeToJson: false)
|
||||
_$$PlaybackHistoryTrackImplCopyWith<_$PlaybackHistoryTrackImpl>
|
||||
get copyWith => throw _privateConstructorUsedError;
|
||||
}
|
||||
|
@ -12,6 +12,7 @@
|
||||
#include <gtk/gtk_plugin.h>
|
||||
#include <local_notifier/local_notifier_plugin.h>
|
||||
#include <media_kit_libs_linux/media_kit_libs_linux_plugin.h>
|
||||
#include <open_file_linux/open_file_linux_plugin.h>
|
||||
#include <screen_retriever_linux/screen_retriever_linux_plugin.h>
|
||||
#include <sqlite3_flutter_libs/sqlite3_flutter_libs_plugin.h>
|
||||
#include <system_theme/system_theme_plugin.h>
|
||||
@ -38,6 +39,9 @@ void fl_register_plugins(FlPluginRegistry* registry) {
|
||||
g_autoptr(FlPluginRegistrar) media_kit_libs_linux_registrar =
|
||||
fl_plugin_registry_get_registrar_for_plugin(registry, "MediaKitLibsLinuxPlugin");
|
||||
media_kit_libs_linux_plugin_register_with_registrar(media_kit_libs_linux_registrar);
|
||||
g_autoptr(FlPluginRegistrar) open_file_linux_registrar =
|
||||
fl_plugin_registry_get_registrar_for_plugin(registry, "OpenFileLinuxPlugin");
|
||||
open_file_linux_plugin_register_with_registrar(open_file_linux_registrar);
|
||||
g_autoptr(FlPluginRegistrar) screen_retriever_linux_registrar =
|
||||
fl_plugin_registry_get_registrar_for_plugin(registry, "ScreenRetrieverLinuxPlugin");
|
||||
screen_retriever_linux_plugin_register_with_registrar(screen_retriever_linux_registrar);
|
||||
|
@ -9,6 +9,7 @@ list(APPEND FLUTTER_PLUGIN_LIST
|
||||
gtk
|
||||
local_notifier
|
||||
media_kit_libs_linux
|
||||
open_file_linux
|
||||
screen_retriever_linux
|
||||
sqlite3_flutter_libs
|
||||
system_theme
|
||||
|
@ -16,6 +16,7 @@ import flutter_inappwebview_macos
|
||||
import flutter_secure_storage_macos
|
||||
import local_notifier
|
||||
import media_kit_libs_macos_audio
|
||||
import open_file_mac
|
||||
import package_info_plus
|
||||
import path_provider_foundation
|
||||
import screen_retriever_macos
|
||||
@ -39,6 +40,7 @@ func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
|
||||
FlutterSecureStoragePlugin.register(with: registry.registrar(forPlugin: "FlutterSecureStoragePlugin"))
|
||||
LocalNotifierPlugin.register(with: registry.registrar(forPlugin: "LocalNotifierPlugin"))
|
||||
MediaKitLibsMacosAudioPlugin.register(with: registry.registrar(forPlugin: "MediaKitLibsMacosAudioPlugin"))
|
||||
OpenFilePlugin.register(with: registry.registrar(forPlugin: "OpenFilePlugin"))
|
||||
FPPPackageInfoPlusPlugin.register(with: registry.registrar(forPlugin: "FPPPackageInfoPlusPlugin"))
|
||||
PathProviderPlugin.register(with: registry.registrar(forPlugin: "PathProviderPlugin"))
|
||||
ScreenRetrieverMacosPlugin.register(with: registry.registrar(forPlugin: "ScreenRetrieverMacosPlugin"))
|
||||
|
@ -30,6 +30,8 @@ PODS:
|
||||
- FlutterMacOS
|
||||
- metadata_god (0.0.1):
|
||||
- FlutterMacOS
|
||||
- open_file_mac (0.0.1):
|
||||
- FlutterMacOS
|
||||
- OrderedSet (6.0.3)
|
||||
- package_info_plus (0.0.1):
|
||||
- FlutterMacOS
|
||||
@ -87,6 +89,7 @@ DEPENDENCIES:
|
||||
- media_kit_libs_macos_audio (from `Flutter/ephemeral/.symlinks/plugins/media_kit_libs_macos_audio/macos`)
|
||||
- media_kit_native_event_loop (from `Flutter/ephemeral/.symlinks/plugins/media_kit_native_event_loop/macos`)
|
||||
- metadata_god (from `Flutter/ephemeral/.symlinks/plugins/metadata_god/macos`)
|
||||
- open_file_mac (from `Flutter/ephemeral/.symlinks/plugins/open_file_mac/macos`)
|
||||
- package_info_plus (from `Flutter/ephemeral/.symlinks/plugins/package_info_plus/macos`)
|
||||
- path_provider_foundation (from `Flutter/ephemeral/.symlinks/plugins/path_provider_foundation/darwin`)
|
||||
- screen_retriever_macos (from `Flutter/ephemeral/.symlinks/plugins/screen_retriever_macos/macos`)
|
||||
@ -134,6 +137,8 @@ EXTERNAL SOURCES:
|
||||
:path: Flutter/ephemeral/.symlinks/plugins/media_kit_native_event_loop/macos
|
||||
metadata_god:
|
||||
:path: Flutter/ephemeral/.symlinks/plugins/metadata_god/macos
|
||||
open_file_mac:
|
||||
:path: Flutter/ephemeral/.symlinks/plugins/open_file_mac/macos
|
||||
package_info_plus:
|
||||
:path: Flutter/ephemeral/.symlinks/plugins/package_info_plus/macos
|
||||
path_provider_foundation:
|
||||
@ -171,6 +176,7 @@ SPEC CHECKSUMS:
|
||||
media_kit_libs_macos_audio: 3871782a4f3f84c77f04d7666c87800a781c24da
|
||||
media_kit_native_event_loop: 7321675377cb9ae8596a29bddf3a3d2b5e8792c5
|
||||
metadata_god: 829f61208b44ac1173e7cd32ab740d8776be5435
|
||||
open_file_mac: 0e554648e2a87ce59e9438e3e5ca3e552e90d89a
|
||||
OrderedSet: e539b66b644ff081c73a262d24ad552a69be3a94
|
||||
package_info_plus: fa739dd842b393193c5ca93c26798dff6e3d0e0c
|
||||
path_provider_foundation: 2b6b4c569c0fb62ec74538f866245ac84301af46
|
||||
|
64
pubspec.lock
64
pubspec.lock
@ -1555,6 +1555,70 @@ packages:
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "2.1.0"
|
||||
open_file:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
name: open_file
|
||||
sha256: d17e2bddf5b278cb2ae18393d0496aa4f162142ba97d1a9e0c30d476adf99c0e
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "3.5.10"
|
||||
open_file_android:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: open_file_android
|
||||
sha256: "58141fcaece2f453a9684509a7275f231ac0e3d6ceb9a5e6de310a7dff9084aa"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "1.0.6"
|
||||
open_file_ios:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: open_file_ios
|
||||
sha256: "02996f01e5f6863832068e97f8f3a5ef9b613516db6897f373b43b79849e4d07"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "1.0.3"
|
||||
open_file_linux:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: open_file_linux
|
||||
sha256: d189f799eecbb139c97f8bc7d303f9e720954fa4e0fa1b0b7294767e5f2d7550
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "0.0.5"
|
||||
open_file_mac:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: open_file_mac
|
||||
sha256: "1440b1e37ceb0642208cfeb2c659c6cda27b25187a90635c9d1acb7d0584d324"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "1.0.3"
|
||||
open_file_platform_interface:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: open_file_platform_interface
|
||||
sha256: "101b424ca359632699a7e1213e83d025722ab668b9fd1412338221bf9b0e5757"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "1.0.3"
|
||||
open_file_web:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: open_file_web
|
||||
sha256: e3dbc9584856283dcb30aef5720558b90f88036360bd078e494ab80a80130c4f
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "0.0.4"
|
||||
open_file_windows:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: open_file_windows
|
||||
sha256: d26c31ddf935a94a1a3aa43a23f4fff8a5ff4eea395fe7a8cb819cf55431c875
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "0.0.3"
|
||||
package_config:
|
||||
dependency: transitive
|
||||
description:
|
||||
|
@ -84,6 +84,7 @@ dependencies:
|
||||
media_kit_libs_audio: ^1.0.4
|
||||
metadata_god: ^1.0.0
|
||||
mime: ^1.0.2
|
||||
open_file: ^3.5.10
|
||||
package_info_plus: ^6.0.0
|
||||
palette_generator: ^0.3.3
|
||||
path: ^1.9.0
|
||||
|
@ -1,8 +1,9 @@
|
||||
// dart format width=80
|
||||
// GENERATED CODE, DO NOT EDIT BY HAND.
|
||||
// ignore_for_file: type=lint
|
||||
//@dart=2.12
|
||||
import 'package:drift/drift.dart';
|
||||
import 'package:drift/internal/migrations.dart';
|
||||
import 'schema_v3.dart' as v3;
|
||||
import 'schema_v2.dart' as v2;
|
||||
import 'schema_v1.dart' as v1;
|
||||
|
||||
@ -10,6 +11,8 @@ class GeneratedHelper implements SchemaInstantiationHelper {
|
||||
@override
|
||||
GeneratedDatabase databaseForVersion(QueryExecutor db, int version) {
|
||||
switch (version) {
|
||||
case 3:
|
||||
return v3.DatabaseAtV3(db);
|
||||
case 2:
|
||||
return v2.DatabaseAtV2(db);
|
||||
case 1:
|
||||
@ -19,5 +22,5 @@ class GeneratedHelper implements SchemaInstantiationHelper {
|
||||
}
|
||||
}
|
||||
|
||||
static const versions = const [1, 2];
|
||||
static const versions = const [1, 2, 3];
|
||||
}
|
||||
|
@ -1,11 +1,7 @@
|
||||
// dart format width=80
|
||||
// GENERATED CODE, DO NOT EDIT BY HAND.
|
||||
// ignore_for_file: type=lint
|
||||
//@dart=2.12
|
||||
import 'package:drift/drift.dart';
|
||||
import 'package:flutter/material.dart' hide Table;
|
||||
import 'package:spotify/spotify.dart';
|
||||
import 'package:spotube/services/sourced_track/enums.dart';
|
||||
import 'package:spotube/utils/migrations/adapters.dart';
|
||||
|
||||
class AuthenticationTable extends Table
|
||||
with TableInfo<AuthenticationTable, AuthenticationTableData> {
|
||||
|
@ -1,11 +1,7 @@
|
||||
// dart format width=80
|
||||
// GENERATED CODE, DO NOT EDIT BY HAND.
|
||||
// ignore_for_file: type=lint
|
||||
//@dart=2.12
|
||||
import 'package:drift/drift.dart';
|
||||
import 'package:flutter/material.dart' hide Table;
|
||||
import 'package:spotify/spotify.dart';
|
||||
import 'package:spotube/services/sourced_track/enums.dart';
|
||||
import 'package:spotube/utils/migrations/adapters.dart';
|
||||
|
||||
class AuthenticationTable extends Table
|
||||
with TableInfo<AuthenticationTable, AuthenticationTableData> {
|
||||
|
3396
test/drift/app_db/generated/schema_v3.dart
Normal file
3396
test/drift/app_db/generated/schema_v3.dart
Normal file
File diff suppressed because it is too large
Load Diff
@ -3,181 +3,259 @@
|
||||
"invidious_instance",
|
||||
"invidious_description",
|
||||
"invidious_warning",
|
||||
"invidious_source_description"
|
||||
"invidious_source_description",
|
||||
"cache_music",
|
||||
"open",
|
||||
"cache_folder"
|
||||
],
|
||||
|
||||
"bn": [
|
||||
"invidious_instance",
|
||||
"invidious_description",
|
||||
"invidious_warning",
|
||||
"invidious_source_description"
|
||||
"invidious_source_description",
|
||||
"cache_music",
|
||||
"open",
|
||||
"cache_folder"
|
||||
],
|
||||
|
||||
"ca": [
|
||||
"invidious_instance",
|
||||
"invidious_description",
|
||||
"invidious_warning",
|
||||
"invidious_source_description"
|
||||
"invidious_source_description",
|
||||
"cache_music",
|
||||
"open",
|
||||
"cache_folder"
|
||||
],
|
||||
|
||||
"cs": [
|
||||
"invidious_instance",
|
||||
"invidious_description",
|
||||
"invidious_warning",
|
||||
"invidious_source_description"
|
||||
"invidious_source_description",
|
||||
"cache_music",
|
||||
"open",
|
||||
"cache_folder"
|
||||
],
|
||||
|
||||
"de": [
|
||||
"invidious_instance",
|
||||
"invidious_description",
|
||||
"invidious_warning",
|
||||
"invidious_source_description"
|
||||
"invidious_source_description",
|
||||
"cache_music",
|
||||
"open",
|
||||
"cache_folder"
|
||||
],
|
||||
|
||||
"es": [
|
||||
"invidious_instance",
|
||||
"invidious_description",
|
||||
"invidious_warning",
|
||||
"invidious_source_description"
|
||||
"invidious_source_description",
|
||||
"cache_music",
|
||||
"open",
|
||||
"cache_folder"
|
||||
],
|
||||
|
||||
"eu": [
|
||||
"invidious_instance",
|
||||
"invidious_description",
|
||||
"invidious_warning",
|
||||
"invidious_source_description"
|
||||
"invidious_source_description",
|
||||
"cache_music",
|
||||
"open",
|
||||
"cache_folder"
|
||||
],
|
||||
|
||||
"fa": [
|
||||
"invidious_instance",
|
||||
"invidious_description",
|
||||
"invidious_warning",
|
||||
"invidious_source_description"
|
||||
"invidious_source_description",
|
||||
"cache_music",
|
||||
"open",
|
||||
"cache_folder"
|
||||
],
|
||||
|
||||
"fi": [
|
||||
"invidious_instance",
|
||||
"invidious_description",
|
||||
"invidious_warning",
|
||||
"invidious_source_description"
|
||||
"invidious_source_description",
|
||||
"cache_music",
|
||||
"open",
|
||||
"cache_folder"
|
||||
],
|
||||
|
||||
"fr": [
|
||||
"invidious_instance",
|
||||
"invidious_description",
|
||||
"invidious_warning",
|
||||
"invidious_source_description"
|
||||
"invidious_source_description",
|
||||
"cache_music",
|
||||
"open",
|
||||
"cache_folder"
|
||||
],
|
||||
|
||||
"hi": [
|
||||
"invidious_instance",
|
||||
"invidious_description",
|
||||
"invidious_warning",
|
||||
"invidious_source_description"
|
||||
"invidious_source_description",
|
||||
"cache_music",
|
||||
"open",
|
||||
"cache_folder"
|
||||
],
|
||||
|
||||
"id": [
|
||||
"invidious_instance",
|
||||
"invidious_description",
|
||||
"invidious_warning",
|
||||
"invidious_source_description"
|
||||
"invidious_source_description",
|
||||
"cache_music",
|
||||
"open",
|
||||
"cache_folder"
|
||||
],
|
||||
|
||||
"it": [
|
||||
"invidious_instance",
|
||||
"invidious_description",
|
||||
"invidious_warning",
|
||||
"invidious_source_description"
|
||||
"invidious_source_description",
|
||||
"cache_music",
|
||||
"open",
|
||||
"cache_folder"
|
||||
],
|
||||
|
||||
"ja": [
|
||||
"invidious_instance",
|
||||
"invidious_description",
|
||||
"invidious_warning",
|
||||
"invidious_source_description"
|
||||
"invidious_source_description",
|
||||
"cache_music",
|
||||
"open",
|
||||
"cache_folder"
|
||||
],
|
||||
|
||||
"ka": [
|
||||
"invidious_instance",
|
||||
"invidious_description",
|
||||
"invidious_warning",
|
||||
"invidious_source_description"
|
||||
"invidious_source_description",
|
||||
"cache_music",
|
||||
"open",
|
||||
"cache_folder"
|
||||
],
|
||||
|
||||
"ko": [
|
||||
"invidious_instance",
|
||||
"invidious_description",
|
||||
"invidious_warning",
|
||||
"invidious_source_description"
|
||||
"invidious_source_description",
|
||||
"cache_music",
|
||||
"open",
|
||||
"cache_folder"
|
||||
],
|
||||
|
||||
"ne": [
|
||||
"invidious_instance",
|
||||
"invidious_description",
|
||||
"invidious_warning",
|
||||
"invidious_source_description"
|
||||
"invidious_source_description",
|
||||
"cache_music",
|
||||
"open",
|
||||
"cache_folder"
|
||||
],
|
||||
|
||||
"nl": [
|
||||
"invidious_instance",
|
||||
"invidious_description",
|
||||
"invidious_warning",
|
||||
"invidious_source_description"
|
||||
"invidious_source_description",
|
||||
"cache_music",
|
||||
"open",
|
||||
"cache_folder"
|
||||
],
|
||||
|
||||
"pl": [
|
||||
"invidious_instance",
|
||||
"invidious_description",
|
||||
"invidious_warning",
|
||||
"invidious_source_description"
|
||||
"invidious_source_description",
|
||||
"cache_music",
|
||||
"open",
|
||||
"cache_folder"
|
||||
],
|
||||
|
||||
"pt": [
|
||||
"invidious_instance",
|
||||
"invidious_description",
|
||||
"invidious_warning",
|
||||
"invidious_source_description"
|
||||
"invidious_source_description",
|
||||
"cache_music",
|
||||
"open",
|
||||
"cache_folder"
|
||||
],
|
||||
|
||||
"ru": [
|
||||
"invidious_instance",
|
||||
"invidious_description",
|
||||
"invidious_warning",
|
||||
"invidious_source_description"
|
||||
"invidious_source_description",
|
||||
"cache_music",
|
||||
"open",
|
||||
"cache_folder"
|
||||
],
|
||||
|
||||
"th": [
|
||||
"invidious_instance",
|
||||
"invidious_description",
|
||||
"invidious_warning",
|
||||
"invidious_source_description"
|
||||
"invidious_source_description",
|
||||
"cache_music",
|
||||
"open",
|
||||
"cache_folder"
|
||||
],
|
||||
|
||||
"tr": [
|
||||
"invidious_instance",
|
||||
"invidious_description",
|
||||
"invidious_warning",
|
||||
"invidious_source_description"
|
||||
"invidious_source_description",
|
||||
"cache_music",
|
||||
"open",
|
||||
"cache_folder"
|
||||
],
|
||||
|
||||
"uk": [
|
||||
"invidious_instance",
|
||||
"invidious_description",
|
||||
"invidious_warning",
|
||||
"invidious_source_description"
|
||||
"invidious_source_description",
|
||||
"cache_music",
|
||||
"open",
|
||||
"cache_folder"
|
||||
],
|
||||
|
||||
"vi": [
|
||||
"invidious_instance",
|
||||
"invidious_description",
|
||||
"invidious_warning",
|
||||
"invidious_source_description"
|
||||
"invidious_source_description",
|
||||
"cache_music",
|
||||
"open",
|
||||
"cache_folder"
|
||||
],
|
||||
|
||||
"zh": [
|
||||
"invidious_instance",
|
||||
"invidious_description",
|
||||
"invidious_warning",
|
||||
"invidious_source_description"
|
||||
"invidious_source_description",
|
||||
"cache_music",
|
||||
"open",
|
||||
"cache_folder"
|
||||
]
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user