Compare commits

...

6 Commits

Author SHA1 Message Date
Richard Hajek
2d4c33b94c
Merge 42e954428b into 0ac949dc1b 2026-02-12 11:49:43 +06:00
Kingkor Roy Tirtho
0ac949dc1b fix(android): build not working due to 2026-02-12 10:57:36 +06:00
Richard Hajek
42e954428b feat: added filtering duplicates in recent 2025-01-18 18:01:26 +01:00
Kingkor Roy Tirtho
8c1337d1fc
Merge pull request #2118 from KRTirtho/dev
chore: release 3.9.0
2024-12-09 00:04:29 +06:00
Kingkor Roy Tirtho
94e704087f Merge branch 'dev' 2024-10-09 16:38:23 +06:00
Kingkor Roy Tirtho
8e287ab1e5
Merge pull request #1981 from KRTirtho/dev
Release 3.8.3
2024-10-09 15:39:31 +06:00
4 changed files with 22 additions and 17 deletions

View File

@ -27,6 +27,7 @@
-keep class org.schabi.newpipe.extractor.timeago.patterns.** { *; } -keep class org.schabi.newpipe.extractor.timeago.patterns.** { *; }
-keep class org.mozilla.javascript.** { *; } -keep class org.mozilla.javascript.** { *; }
-keep class org.mozilla.classfile.ClassFileWriter -keep class org.mozilla.classfile.ClassFileWriter
-dontwarn com.google.re2j.**
-dontwarn org.mozilla.javascript.tools.** -dontwarn org.mozilla.javascript.tools.**
-dontwarn javax.script.AbstractScriptEngine -dontwarn javax.script.AbstractScriptEngine

View File

@ -9,7 +9,7 @@ import 'package:spotube/provider/history/recent.dart';
class HomeRecentlyPlayedSection extends HookConsumerWidget { class HomeRecentlyPlayedSection extends HookConsumerWidget {
const HomeRecentlyPlayedSection({super.key}); const HomeRecentlyPlayedSection({super.key});
@override @override
Widget build(BuildContext context, ref) { Widget build(BuildContext context, ref) {
final history = ref.watch(recentlyPlayedItems); final history = ref.watch(recentlyPlayedItems);
@ -20,17 +20,20 @@ class HomeRecentlyPlayedSection extends HookConsumerWidget {
return const SizedBox(); return const SizedBox();
} }
final uniqueItems = <dynamic>{};
final filteredItems = [
for (final item in historyData)
if (item.playlist != null && item.playlist?.id != null && uniqueItems.add(item.playlist!.id!))
item.playlist
else if (item.album != null && item.album?.id != null && uniqueItems.add(item.album?.id))
item.album
];
return Skeletonizer( return Skeletonizer(
enabled: history.isLoading, enabled: history.isLoading,
child: HorizontalPlaybuttonCardView( child: HorizontalPlaybuttonCardView(
title: Text(context.l10n.recently_played), title: Text(context.l10n.recently_played),
items: [ items: filteredItems,
for (final item in historyData)
if (item.playlist != null)
item.playlist
else if (item.album != null)
item.album
],
hasNextPage: false, hasNextPage: false,
isLoadingNextPage: false, isLoadingNextPage: false,
onFetchMore: () {}, onFetchMore: () {},

View File

@ -745,11 +745,11 @@ packages:
dependency: transitive dependency: transitive
description: description:
path: "." path: "."
ref: master ref: HEAD
resolved-ref: "922f9f9eafd8b501da83dca67d56b2887fa8f916" resolved-ref: "458046cd9a88924e5074d96ba45397219d53b230"
url: "https://github.com/TiffApps/fk_user_agent.git" url: "https://github.com/maeltoukap/fk_user_agent.git"
source: git source: git
version: "2.1.1" version: "2.1.0"
fluentui_system_icons: fluentui_system_icons:
dependency: "direct main" dependency: "direct main"
description: description:
@ -946,9 +946,9 @@ packages:
dependency: "direct main" dependency: "direct main"
description: description:
path: "." path: "."
ref: ab3ff415114b7b43593e6ee718ad3d760af18350 ref: HEAD
resolved-ref: ab3ff415114b7b43593e6ee718ad3d760af18350 resolved-ref: ab3ff415114b7b43593e6ee718ad3d760af18350
url: "https://github.com/KRTirtho/flutter_new_pipe_extractor.git" url: "https://github.com/KRTirtho/flutter_new_pipe_extractor"
source: git source: git
version: "0.1.0" version: "0.1.0"
flutter_plugin_android_lifecycle: flutter_plugin_android_lifecycle:
@ -1189,7 +1189,7 @@ packages:
description: description:
path: "." path: "."
ref: main ref: main
resolved-ref: "32828156bc111d147709f8d644804227bbdfe8f1" resolved-ref: d85dd429241d464a8b5b0c2b3d870143eeba8b46
url: "https://github.com/KRTirtho/hetu_spotube_plugin.git" url: "https://github.com/KRTirtho/hetu_spotube_plugin.git"
source: git source: git
version: "0.0.2" version: "0.0.2"

View File

@ -121,8 +121,7 @@ dependencies:
ref: 4e5310e14af74bdbb51e2a4766e66d6c6a2562a8 ref: 4e5310e14af74bdbb51e2a4766e66d6c6a2562a8
flutter_new_pipe_extractor: flutter_new_pipe_extractor:
git: git:
url: https://github.com/KRTirtho/flutter_new_pipe_extractor.git url: https://github.com/KRTirtho/flutter_new_pipe_extractor
ref: ab3ff415114b7b43593e6ee718ad3d760af18350
http_parser: ^4.1.2 http_parser: ^4.1.2
collection: any collection: any
archive: ^4.0.7 archive: ^4.0.7
@ -240,6 +239,8 @@ flutter:
- packages/hetu_std/assets/bytecode/std.out - packages/hetu_std/assets/bytecode/std.out
- packages/hetu_otp_util/assets/bytecode/otp_util.out - packages/hetu_otp_util/assets/bytecode/otp_util.out
- packages/hetu_spotube_plugin/assets/bytecode/spotube_plugin.out - packages/hetu_spotube_plugin/assets/bytecode/spotube_plugin.out
# NewPipe binaries (desktop only)
- packages/flutter_new_pipe_extractor/assets/
fonts: fonts:
- family: RadixIcons - family: RadixIcons
fonts: fonts: