Save episdoe description after format.

This commit is contained in:
stonegate 2020-08-16 02:36:29 +08:00
parent 46bf6fb4f2
commit fda2c2266c
2 changed files with 12 additions and 2 deletions

View File

@ -704,6 +704,7 @@ class _ShowNote extends StatelessWidget {
'<a rel="nofollow" href = "mailto:$address">$address</a>');
}
}
await dbHelper.saveEpisodeDes(url, description: description);
}
return description;
}

View File

@ -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