lucattelli / get_lhc

Used this to retrieve pages from SAP Learning Hub and enable offline study
6 stars 10 forks source link

Script not working #1

Open alvespin opened 6 years ago

alvespin commented 6 years ago

Learning hub no longer offers flipbooks nor page number, Example of code

https://saplearninghub.plateau.com/icontent_e/CUSTOM_eu/sap/selfmanaged/ebook/BIT800_EN_Col16_R1.1/index.html?Course=CUSTOM_eu&url=/self-managed/ebook/BIT800_EN_Col16_R1.1/index.html#

I believe the problematic code is shown here:

for (i = 1; i<=$("#pages").val(); i++) { var pageId = "page" + pad(i, 4); linksHtml = linksHtml + "<a href='" + "https://saplearninghub.plateau.com/icontent_e/CUSTOM_eu/sap/self-managed/ebook/BIT800_EN_Col16_R1.1/index.html?Course=CUSTOM_eu&url=/self-managed/ebook/BIT800_EN_Col16_R1.1/index.html" + $("#course").val() + "/files/assets/flash/pages/" + pageId + ".swf" + "'>" + i + "</a>; "; scriptHtml = scriptHtml + '"' + $("#swftoolspath").val() + 'swfrender.exe" ' + pageId + '.swf -o ' + pageId + '.png\n'; } $("#links").html("<small>" + linksHtml + "</small>"); $("#script").html("<button onclick='downloadScript()'>Download Script</button>");

jasondude984 commented 4 years ago

Is there a possibility to get the updated script for downloading the books since they changes the format of links for pages?

nembonoid commented 4 years ago

Is there a possibility to get the updated script for downloading the books since they changes the format of links for pages?

What would be the issue with the current version? I've downloaded several books successfully using Firefox. I'm using it right now, that's what I ended here.

migiiiii commented 4 years ago

Hi there, the link is not working.. maybe the adress is already different?

picture

Thank you for reply.