X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=library%2FWebLibrary.java;h=42f7ea5ccadd4eb40d6b86cfd1f6842abab0db50;hb=b063fe0a74fdf17f440a850bbb98a2de6233a679;hp=ac1349e7ac51b3015050a4725a28265ef13a211a;hpb=159e970c23d9634d39bb8cf2a194f7088f4d59ab;p=nikiroo-utils.git diff --git a/library/WebLibrary.java b/library/WebLibrary.java index ac1349e..42f7ea5 100644 --- a/library/WebLibrary.java +++ b/library/WebLibrary.java @@ -309,6 +309,9 @@ public class WebLibrary extends BasicLibrary { try { subPg = JsonIO.toProgress( new JSONObject(IOUtils.readSmallStream(in))); + pg.setName(subPg.getName()); + pg.setMinMax(subPg.getMin(), subPg.getMax()); + pg.setProgress(subPg.getProgress()); } catch (Exception e) { subPg = null; } finally { @@ -353,6 +356,11 @@ public class WebLibrary extends BasicLibrary { } } + @Override + public synchronized void delete(String luid) throws IOException { + post(WebLibraryUrls.getDeleteUrlStory(luid), null).close(); + } + @Override protected void updateInfo(MetaData meta) { // Will be taken care of directly server side