|
@@ -156,6 +156,7 @@ pub fn find_vod(html: &String) -> Result<Vec<VerseOfDay>> {
|
|
Ok(result)
|
|
Ok(result)
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+#[derive(Debug)]
|
|
pub struct BasicVerse {
|
|
pub struct BasicVerse {
|
|
pub book: String,
|
|
pub book: String,
|
|
pub chapter_verse: String,
|
|
pub chapter_verse: String,
|
|
@@ -183,8 +184,10 @@ pub fn extract_basic_verses(filename: &str) -> Result<Vec<BasicVerse>> {
|
|
// GEN, 1, 2
|
|
// GEN, 1, 2
|
|
// But, there's some books that don't have chapters. Beware!
|
|
// But, there's some books that don't have chapters. Beware!
|
|
let text_try = verse_element_text(span);
|
|
let text_try = verse_element_text(span);
|
|
|
|
+ // This looks good. ;)
|
|
println!("trying: {:?}", text_try);
|
|
println!("trying: {:?}", text_try);
|
|
|
|
|
|
|
|
+
|
|
// There can be multiples of these with matching values.
|
|
// There can be multiples of these with matching values.
|
|
let lines: String = span
|
|
let lines: String = span
|
|
.select(&span_class_selector)
|
|
.select(&span_class_selector)
|