mirror of
https://github.com/gnosygnu/xowa.git
synced 2026-03-02 03:49:30 +00:00
Score: Check for missing src for score generated images [#577]
This commit is contained in:
@@ -100,7 +100,7 @@ public class Xow_hdump_mgr__load implements Gfo_invk {
|
||||
}
|
||||
return src;
|
||||
}
|
||||
private void Fill_page(Xoae_page wpg, Xoh_page hpg) {
|
||||
public void Fill_page(Xoae_page wpg, Xoh_page hpg) {
|
||||
Xopg_html_data html_data = wpg.Html_data();
|
||||
html_data.Display_ttl_(tmp_hpg.Display_ttl());
|
||||
html_data.Content_sub_(tmp_hpg.Content_sub());
|
||||
@@ -127,8 +127,9 @@ public class Xow_hdump_mgr__load implements Gfo_invk {
|
||||
int len = src_imgs.Len();
|
||||
for (int i = 0; i < len; ++i) {
|
||||
gplx.xowa.files.Xof_fsdb_itm itm = src_imgs.Get_at(i);
|
||||
if (itm.Orig_ttl() == null) continue; // skip any images without a src; occurs for <score> when lilypond not available; ISSUE#:577 DATE:2019-09-30
|
||||
wpg.Hdump_mgr().Imgs().Add(itm);
|
||||
if (!Io_mgr.Instance.ExistsFil(itm.Html_view_url())) // if exists, don't add to file_queue; needed for packed; PAGE:en.w:Mexico; DATE:2016-08-14
|
||||
if (!Io_mgr.Instance.ExistsFil(itm.Html_view_url()))// if exists, don't add to file_queue; needed for packed; PAGE:en.w:Mexico; DATE:2016-08-14
|
||||
wpg.File_queue().Add(itm); // add to file_queue for http_server
|
||||
}
|
||||
|
||||
|
||||
@@ -22,6 +22,7 @@ public class Xoh_make_fxt {
|
||||
private final Xowe_wiki wiki;
|
||||
private final Xoh_make_mgr make_mgr;
|
||||
private final Gfo_test_list_base expd_redlinks = new Gfo_test_list_base();
|
||||
private Xoh_page actl;
|
||||
public Xoh_make_fxt() {
|
||||
// set member reference
|
||||
this.wiki = parser_fxt.Wiki();
|
||||
@@ -75,7 +76,7 @@ public class Xoh_make_fxt {
|
||||
html = String_.Replace(html, "'", "\"");
|
||||
|
||||
// init hpg
|
||||
Xoh_page actl = new Xoh_page();
|
||||
actl = new Xoh_page();
|
||||
actl.Ctor_by_hview(parser_fxt.Wiki(), Xoa_url.blank(), parser_fxt.Wiki().Ttl_parse(Xoa_page_.Main_page_bry), 1);
|
||||
|
||||
// run make
|
||||
@@ -92,4 +93,7 @@ public class Xoh_make_fxt {
|
||||
// check redlinks
|
||||
expd_redlinks.Test(wiki.Html__hdump_mgr().Load_mgr().Make_mgr().Hctx().Page().Html_data().Redlink_list());
|
||||
}
|
||||
public void Exec__Fill_page() {
|
||||
wiki.Html__hdump_mgr().Load_mgr().Fill_page(parser_fxt.Page(), actl);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user