Preview failing with ViewerJS (or with SIMSSA?)
Posted: Sat Jul 03, 2021 9:13 am
For a couple of weeks at least now, I've found several pieces where there's a Peachnote preview that works (e.g. of the Score), but ViewerJS previews that fail (e.g. of the Parts). I've confirmed this in Chrome, Edge and Firefox.
Looking into the source, it seems the ViewerJS bits are trying to pull in files via URLs such as https://imslp.org/extensions/common/vie ... e_op79.pdf
Trying to visit the imslp.simssa.ca link directly (https://imslp.simssa.ca/files/imglnks/u ... e_op79.pdf) also fails.
Hence, it's unclear (to me) whether it's ViewerJS itself that's failing, or if it's simply getting stuck trying to retrieve a file on SIMSAA that is no longer there (but it's shame no error message is displayed). Did SIMSAA use to host lots of IMSLP files that have now been deleted/moved, perhaps?
Given that the download files are still available on non-SIMSAA servers (e.g. in the case above, https://ks4.imslp.net/files/imglnks/usi ... e_op79.pdf), could all preview links to "/extensions/common/viewerjs/index.nofs.html#https://imslp.simssa.ca/..." simply be rewritten to "/extensions/common/viewerjs/index.nofs.html#https://ks4.imslp.net/ ..."?
Alternatively, could the inoperative viewer buttons not be rewritten to use Peachnote and/or grab the files via https://www.peachnote.com/rest/api/v1/image?sid= + IMSLP no.?
Looking into the source, it seems the ViewerJS bits are trying to pull in files via URLs such as https://imslp.org/extensions/common/vie ... e_op79.pdf
Trying to visit the imslp.simssa.ca link directly (https://imslp.simssa.ca/files/imglnks/u ... e_op79.pdf) also fails.
Hence, it's unclear (to me) whether it's ViewerJS itself that's failing, or if it's simply getting stuck trying to retrieve a file on SIMSAA that is no longer there (but it's shame no error message is displayed). Did SIMSAA use to host lots of IMSLP files that have now been deleted/moved, perhaps?
Given that the download files are still available on non-SIMSAA servers (e.g. in the case above, https://ks4.imslp.net/files/imglnks/usi ... e_op79.pdf), could all preview links to "/extensions/common/viewerjs/index.nofs.html#https://imslp.simssa.ca/..." simply be rewritten to "/extensions/common/viewerjs/index.nofs.html#https://ks4.imslp.net/ ..."?
Alternatively, could the inoperative viewer buttons not be rewritten to use Peachnote and/or grab the files via https://www.peachnote.com/rest/api/v1/image?sid= + IMSLP no.?