Skip to content

Commit

Permalink
Merge pull request #109 from WatWowMap/fix-apk-text-extraction
Browse files Browse the repository at this point in the history
fix: apk translation extractions
  • Loading branch information
TurtIeSocks authored Sep 21, 2024
2 parents 296509a + 16a2171 commit bf5f331
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/classes/Apk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,10 @@ export default class ApkReader {
const response = await fetch(`https://mirror.unownhash.com/apks/${first}`)
const apk = await response.arrayBuffer()
const zip = new JSZip()
this.files = await zip.loadAsync(apk)
const raw = await zip.loadAsync(apk)
const file = raw.files['base.apk']
const buffer = await file.async('nodebuffer')
this.files = await zip.loadAsync(buffer)
} catch (e) {
console.warn(e, 'Issue with downloading APK')
}
Expand Down

0 comments on commit bf5f331

Please sign in to comment.