From b89dfb6ece936486563734818ed62488a59e5897 Mon Sep 17 00:00:00 2001 From: Niki Roo Date: Thu, 23 Nov 2017 20:01:17 +0100 Subject: [PATCH] Update nikiroo-utils (Progress) + GuiReader perf --- ...es.jar => nikiroo-utils-2.2.1-sources.jar} | Bin 259324 -> 259994 bytes .../nikiroo/fanfix/library/BasicLibrary.java | 35 ++++++++++++ .../nikiroo/fanfix/library/LocalLibrary.java | 53 ++++++++++++++++++ src/be/nikiroo/fanfix/reader/GuiReader.java | 15 +---- 4 files changed, 89 insertions(+), 14 deletions(-) rename libs/{nikiroo-utils-2.2.0-sources.jar => nikiroo-utils-2.2.1-sources.jar} (84%) diff --git a/libs/nikiroo-utils-2.2.0-sources.jar b/libs/nikiroo-utils-2.2.1-sources.jar similarity index 84% rename from libs/nikiroo-utils-2.2.0-sources.jar rename to libs/nikiroo-utils-2.2.1-sources.jar index 3dde5dd5d89e47a3806b8498329932c59f0fe120..199beb397df2393d81a4d924bcff803426fab7e3 100644 GIT binary patch delta 14216 zcmZX51z1!~`~L18y1Tnu8U#hUK|+v{mJmUd&IM6IL6ADMw170|(p?GyB8{XpNSBEE zKP%t&e!jo|xvsr-_kLoYnR#Y*;@*o5;dA!C*KrSY+Tj=!5`7Aa!j7Fi~uHhl^38#8tp!q7AE;gfb7O~j@LJ(=;$fQ)!ZU3d}~`kSDSXrC@I0hu%i9N z{Rr>$vw25uI2n%T4;Y8f?%ZL`keXtcBOUA6y8FpMK8bFLX(>aDCUKgMq}G$sy@bJH zC97HwKKsZ=%E+kEe5o2~werjad9n706TchwU5TnMs!I+xkww%!>}v<&V`h5_t~<~3 z#VjUV1%I18Q_nRB%ZyAclYc!b#H#T#1(T%f7B5dhi+&`6R$PDQD+l(M z_jM&6kK9UMQtNRhs9GT9NsR76@gzO;_jpLuJIqKpP8scD&9zRqp_+5&jpnp*(Mv;+ zWFdV>#66H#O#>NFi5bo@4U4Ce!ZJHHd4OLkOmgkXB!lIb&5#**MN2KpsN_|Oh4H(x z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`9Dt4e1qs;4F69D%DNJQHs1gO7W6Uv z&wQWYzj!I9FKy6?SsnnL0Bkyf{NI}SAJgFxK+6K<0X4HI2Sw(fgrNfw4952_5{>!) zsMCV@=suwopk}jsSDFkK4CX@(gE9U~9l7$S&tFUc!R6@x=X6Ks6q(TDhuHd~0p%9S z@c$!)NWnYbAgTHHKhm6U0K?^9EQ3ve9-fB{-M z;1&d8U|i}`gZ*0oB`cJX)YRQo*7pWruv$_W462R#$4?0+0K#{mUH)JTT9r_e64dz$ zb?J`#m%_CkK?o*%1qfK7w54VV4VYvNWq+Qq!eHG0V1dDuh%OCyK!I(50CMEnSICh= z^1m!lYLgg@-nx{;q5bBh{VRd;oFtbLR`hI|;hpp-K)j03ufV_fl^OpUeA)!qApS)( z%Qyr=&Pzk>J#>HU%zu@joG7W_KbIhs9@YG3`by+qJ+SpKD3 z%@2S*1_0~7RycHx(X5d+l70*QcK}AV|GO#ea z1VGkJfb+kL0=oNv@;lI6B&Y$P$P9w<|J%+3XsKp20Om?T=L6m@G)d6CNYk~CacmX3 zY2AYy;s2NKPyVAzvUj;!ruU#hd!PE3fO;RGL|>gi&s~T&AoDL=vJ3E|?@^%eJ_L6^ z`wK%9_@LiDzyu9G^)AFSlzS;*1I>2<=;j0pqRG2o{#A#rSB&V36&SS#v0N#*gt@`~ zJ;-VF%*VzLV=O^=dm(5W{(B!6)B_-&Cm{6yJ^nlNj#+E~ZBL=&dJo#1P^T|W(1%gu zA8h0Vph4fwz`YYlQ?%s|%61BQ0^QRZ4w6$RW4^&)6uK)l5 diff --git a/src/be/nikiroo/fanfix/library/BasicLibrary.java b/src/be/nikiroo/fanfix/library/BasicLibrary.java index 63ffdb6..cf17a2b 100644 --- a/src/be/nikiroo/fanfix/library/BasicLibrary.java +++ b/src/be/nikiroo/fanfix/library/BasicLibrary.java @@ -340,6 +340,41 @@ abstract public class BasicLibrary { return save(support.process(url, pg), null); } + /** + * Import the story from one library to another, and keep the same LUID. + * + * @param other + * the other library to import from + * @param luid + * the Library UID + * @param pg + * the optional progress reporter + * + * @throws IOException + * in case of I/O error + */ + public void imprt(BasicLibrary other, String luid, Progress pg) + throws IOException { + Progress pgGetStory = new Progress(); + Progress pgSave = new Progress(); + if (pg == null) { + pg = new Progress(); + } + + pg.setMinMax(0, 2); + pg.addProgress(pgGetStory, 1); + pg.addProgress(pgSave, 1); + + Story story = other.getStory(luid, pgGetStory); + if (story != null) { + story = this.save(story, luid, pgSave); + pg.done(); + } else { + pg.done(); + throw new IOException("Cannot find story in Library: " + luid); + } + } + /** * Export the {@link Story} to the given target in the given format. * diff --git a/src/be/nikiroo/fanfix/library/LocalLibrary.java b/src/be/nikiroo/fanfix/library/LocalLibrary.java index bc41157..ab5a82b 100644 --- a/src/be/nikiroo/fanfix/library/LocalLibrary.java +++ b/src/be/nikiroo/fanfix/library/LocalLibrary.java @@ -181,6 +181,59 @@ public class LocalLibrary extends BasicLibrary { } } + @Override + public void imprt(BasicLibrary other, String luid, Progress pg) + throws IOException { + if (pg == null) { + pg = new Progress(); + } + + // Check if we can simply copy the files instead of the whole process + if (other instanceof LocalLibrary) { + LocalLibrary otherLibrary = (LocalLibrary) other; + MetaData meta = otherLibrary.getInfo(luid); + String expectedType = "" + (meta.isImageDocument() ? image : text); + if (meta.getType().equals(expectedType)) { + File from = otherLibrary.getExpectedDir(meta.getSource()); + File to = this.getExpectedDir(meta.getSource()); + List sources = otherLibrary.getRelatedFiles(luid); + if (!sources.isEmpty()) { + pg.setMinMax(0, sources.size()); + } + + for (File source : sources) { + File target = new File(source.getAbsolutePath().replace( + from.getAbsolutePath(), to.getAbsolutePath())); + if (!source.equals(target)) { + InputStream in = null; + try { + in = new FileInputStream(source); + IOUtils.write(in, target); + } catch (IOException e) { + if (in != null) { + try { + in.close(); + } catch (Exception ee) { + } + } + + pg.done(); + throw e; + } + } + + pg.add(1); + } + + clearCache(); + pg.done(); + return; + } + } + + super.imprt(other, luid, pg); + } + /** * Return the {@link OutputType} for this {@link Story}. * diff --git a/src/be/nikiroo/fanfix/reader/GuiReader.java b/src/be/nikiroo/fanfix/reader/GuiReader.java index 73df7fb..8559cf1 100644 --- a/src/be/nikiroo/fanfix/reader/GuiReader.java +++ b/src/be/nikiroo/fanfix/reader/GuiReader.java @@ -93,21 +93,8 @@ class GuiReader extends BasicReader { * in case of I/O error */ public void imprt(String luid, Progress pg) throws IOException { - Progress pgGetStory = new Progress(); - Progress pgSave = new Progress(); - if (pg != null) { - pg.setMax(2); - pg.addProgress(pgGetStory, 1); - pg.addProgress(pgSave, 1); - } - try { - Story story = getLibrary().getStory(luid, pgGetStory); - if (story != null) { - story = localLibrary.save(story, luid, pgSave); - } else { - throw new IOException("Cannot find story in Library: " + luid); - } + localLibrary.imprt(getLibrary(), luid, pg); } catch (IOException e) { throw new IOException( "Cannot import story from library to LocalReader library: " -- 2.27.0