na-- / ebook-tools

Shell scripts for organizing and managing ebook collections
GNU General Public License v3.0
727 stars 69 forks source link

curl link is not valid anymore? #20

Open VladimirTambovtsev opened 4 years ago

VladimirTambovtsev commented 4 years ago

Building the Docker image I found that running

RUN curl 'https://www.mobileread.com/forums/attachment.php?attachmentid=163537' > goodreads.zip

fetching link is not valid anymore. Website just returns html page with message: 'Invalid Attachment specified. If you followed a valid link, please notify the administrator'

Is there any workaround?

bpsommerville commented 4 years ago

Use RUN curl 'https://www.mobileread.com/forums/attachment.php?attachmentid=168584' > goodreads.zip && \ sha256sum 'goodreads.zip' | grep -q '04cc13ed59a698532b3565eb2dcda4a388744d5af9c7065a13c2a323a9fa1f9a' && \ calibre-customize --add-plugin goodreads.zip && \ rm goodreads.zip