Skip to content

Commit

Permalink
Fix HiMD track download
Browse files Browse the repository at this point in the history
  • Loading branch information
asivery committed Jul 13, 2023
1 parent e7cd73b commit 5dc8986
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wmd/translations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export class EWMDHiMD extends HiMDFullService {
async download(index: number, progressCallback: (progress: { read: number; total: number; }) => void): Promise<{ format: DiscFormat; data: Uint8Array; } | null> {
const trackNumber = this.himd!.trackIndexToTrackSlot(index);
const nodeWorker = await makeAsyncDecryptor(new Worker(
path.join(__dirname, '..', '..', 'node_modules', 'netmd-js', 'dist', 'node-encrypt-worker.js')
path.join(__dirname, '..', '..', 'node_modules', 'himd-js', 'dist', 'node-crypto-worker.js')
));
const info = dumpTrack(this.himd!, trackNumber, nodeWorker);
const blocks: Uint8Array[] = [];
Expand Down

0 comments on commit 5dc8986

Please sign in to comment.