mirror of
https://github.com/stonega/tsacdop
synced 2025-02-07 15:18:40 +01:00
Fix bug mark listened not work.
Fix subscribe rcover have no group.
This commit is contained in:
parent
54a1b17499
commit
cab8b39a45
@ -10,8 +10,6 @@ Release date 2020/7/16
|
||||
* Add settings backup and restore.
|
||||
* Enable R8 and dart obfuscate.
|
||||
|
||||
|
||||
|
||||
## Bugs fixed
|
||||
|
||||
* OMPL import not shown in group.
|
||||
|
@ -34,6 +34,8 @@ class EpisodeDetail extends StatefulWidget {
|
||||
class _EpisodeDetailState extends State<EpisodeDetail> {
|
||||
final textstyle = TextStyle(fontSize: 15.0, color: Colors.black);
|
||||
double downloadProgress;
|
||||
|
||||
/// Load shownote.
|
||||
bool _loaddes;
|
||||
bool _showMenu;
|
||||
String path;
|
||||
@ -76,6 +78,7 @@ class _EpisodeDetailState extends State<EpisodeDetail> {
|
||||
_markListened(EpisodeBrief episode) async {
|
||||
DBHelper dbHelper = DBHelper();
|
||||
bool marked = await dbHelper.checkMarked(episode);
|
||||
print(marked);
|
||||
if (!marked) {
|
||||
final PlayHistory history =
|
||||
PlayHistory(episode.title, episode.enclosureUrl, 0, 1);
|
||||
@ -394,13 +397,13 @@ class _MenuBarState extends State<MenuBar> {
|
||||
saveLiked(String url) async {
|
||||
var dbHelper = DBHelper();
|
||||
await dbHelper.setLiked(url);
|
||||
setState(() {});
|
||||
if (mounted) setState(() {});
|
||||
}
|
||||
|
||||
setUnliked(String url) async {
|
||||
var dbHelper = DBHelper();
|
||||
await dbHelper.setUniked(url);
|
||||
setState(() {});
|
||||
if (mounted) setState(() {});
|
||||
}
|
||||
|
||||
Future<bool> _isLiked(EpisodeBrief episode) async {
|
||||
|
@ -6,7 +6,7 @@ import 'package:line_icons/line_icons.dart';
|
||||
|
||||
import '../util/context_extension.dart';
|
||||
|
||||
const String version = '0.4.5';
|
||||
const String version = '0.4.6';
|
||||
|
||||
class AboutApp extends StatelessWidget {
|
||||
_launchUrl(String url) async {
|
||||
|
@ -342,7 +342,7 @@ class DBHelper {
|
||||
"""SELECT title, enclosure_url, seconds, seek_value, add_date FROM PlayHistory
|
||||
WHERE enclosure_url = ? AND seek_value = 1 ORDER BY add_date DESC LIMIT 1""",
|
||||
[episodeBrief.enclosureUrl]);
|
||||
return list.isEmpty;
|
||||
return list.isNotEmpty;
|
||||
}
|
||||
|
||||
DateTime _parsePubDate(String pubDate) {
|
||||
|
@ -84,8 +84,8 @@ class _PlayedHistoryState extends State<PlayedHistory>
|
||||
publisher: p.author,
|
||||
description: p.description,
|
||||
image: p.itunes.image.href);
|
||||
SubscribeItem item =
|
||||
SubscribeItem(podcast.rss, podcast.title, imgUrl: podcast.image);
|
||||
SubscribeItem item = SubscribeItem(podcast.rss, podcast.title,
|
||||
imgUrl: podcast.image, group: 'Home');
|
||||
subscribeWorker.setSubscribeItem(item);
|
||||
} on DioError catch (e) {
|
||||
print(e);
|
||||
|
@ -1,7 +1,7 @@
|
||||
name: tsacdop
|
||||
description: An easy-use podacasts player.
|
||||
|
||||
version: 0.4.5+21
|
||||
version: 0.4.6+22
|
||||
|
||||
environment:
|
||||
sdk: ">=2.6.0 <3.0.0"
|
||||
|
Loading…
x
Reference in New Issue
Block a user