Skip to content

Commit

Permalink
chore: stop saving history thumbnails to cache
Browse files Browse the repository at this point in the history
  • Loading branch information
MSOB7YY committed May 10, 2024
1 parent 32a5c3a commit ae6c2c3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions lib/youtube/pages/yt_history_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ class _YoutubeHistoryPageState extends State<YoutubeHistoryPage> {
day: day,
playlistID: const PlaylistID(id: k_PLAYLIST_NAME_HISTORY),
playlistName: k_PLAYLIST_NAME_HISTORY,
isImportantInCache: false, // long old history is lowkey useless
);
},
),
Expand Down
4 changes: 3 additions & 1 deletion lib/youtube/widgets/yt_history_video_card.dart
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ class YTHistoryVideoCard extends StatelessWidget {
final Widget Function(Widget draggingTrigger)? draggingThumbnailBuilder;
final double cardColorOpacity;
final double fadeOpacity;
final bool isImportantInCache;

const YTHistoryVideoCard({
super.key,
Expand All @@ -61,6 +62,7 @@ class YTHistoryVideoCard extends StatelessWidget {
this.draggingThumbnailBuilder,
this.cardColorOpacity = 0.75,
this.fadeOpacity = 0,
this.isImportantInCache = true,
});

@override
Expand Down Expand Up @@ -130,7 +132,7 @@ class YTHistoryVideoCard extends StatelessWidget {
child: YoutubeThumbnail(
key: Key(video.id),
borderRadius: 8.0,
isImportantInCache: true,
isImportantInCache: isImportantInCache,
width: thumbWidth - 3.0,
height: thumbHeight - 3.0,
videoId: video.id,
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: namida
description: A Beautiful and Feature-rich Music Player, With YouTube & Video Support Built in Flutter
publish_to: "none"
version: 2.2.2-beta+240510198
version: 2.2.3-beta+240510198

environment:
sdk: ">=3.1.4 <4.0.0"
Expand Down

0 comments on commit ae6c2c3

Please sign in to comment.