mirror of
https://github.com/stonega/tsacdop
synced 2025-02-18 04:20:37 +01:00
Save episdoe description after format.
This commit is contained in:
parent
46bf6fb4f2
commit
fda2c2266c
@ -704,6 +704,7 @@ class _ShowNote extends StatelessWidget {
|
||||
'<a rel="nofollow" href = "mailto:$address">$address</a>');
|
||||
}
|
||||
}
|
||||
await dbHelper.saveEpisodeDes(url, description: description);
|
||||
}
|
||||
return description;
|
||||
}
|
||||
|
@ -1058,7 +1058,7 @@ class DBHelper {
|
||||
return episodes;
|
||||
}
|
||||
|
||||
setLiked(String url) async {
|
||||
Future setLiked(String url) async {
|
||||
var dbClient = await database;
|
||||
var milliseconds = DateTime.now().millisecondsSinceEpoch;
|
||||
await dbClient.transaction((txn) async {
|
||||
@ -1068,7 +1068,7 @@ class DBHelper {
|
||||
});
|
||||
}
|
||||
|
||||
setUniked(String url) async {
|
||||
Future setUniked(String url) async {
|
||||
var dbClient = await database;
|
||||
await dbClient.transaction((txn) async {
|
||||
await txn.rawUpdate(
|
||||
@ -1139,6 +1139,15 @@ class DBHelper {
|
||||
return description;
|
||||
}
|
||||
|
||||
Future saveEpisodeDes(String url, {String description}) async {
|
||||
var dbClient = await database;
|
||||
await dbClient.transaction((txn) async {
|
||||
await txn.rawUpdate(
|
||||
"UPDATE Episodes SET description = ? WHERE enclosure_url = ?",
|
||||
[description, url]);
|
||||
});
|
||||
}
|
||||
|
||||
Future<String> getFeedDescription(String id) async {
|
||||
var dbClient = await database;
|
||||
List<Map> list = await dbClient
|
||||
|
Loading…
x
Reference in New Issue
Block a user