Updated test_parse_episode and TheBreakthrough xml feed file.
This commit is contained in:
@@ -8,7 +8,7 @@ CREATE TABLE `source` (
|
||||
CREATE TABLE `episode` (
|
||||
`id` INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT UNIQUE,
|
||||
`title` TEXT,
|
||||
`uri` TEXT,
|
||||
`uri` TEXT UNIQUE,
|
||||
`local_uri` TEXT,
|
||||
`description` TEXT,
|
||||
`published_date` TEXT ,
|
||||
|
||||
@@ -51,6 +51,7 @@ pub fn index_loop(db: SqliteConnection) -> Result<()> {
|
||||
let chan = feed.get_podcast_chan(&db)?;
|
||||
let pd = parse_feeds::parse_podcast(&chan, feed.id())?;
|
||||
|
||||
// TODO: Separate the insert/update logic
|
||||
diesel::insert_or_replace(&pd)
|
||||
.into(schema::podcast::table)
|
||||
.execute(&db)?;
|
||||
|
||||
+52
-4
File diff suppressed because one or more lines are too long
+532
-638
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user