Skip to content

Commit

Permalink
Merge pull request #61 from psuzn/fix-issue-with-new-google-play
Browse files Browse the repository at this point in the history
fix the scrap issue cause by google play
  • Loading branch information
psuzn authored Aug 6, 2024
2 parents 680ff68 + 5f874b1 commit 8a49108
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class AppDetailScrapper(
getAppDetail(packageName)
}.getOrElse {
repository.delete(packageName)
throw RuntimeException("AppDetailScrapper failed to scrap details ${it.message}")
throw RuntimeException("AppDetailScrapper failed to scrap details ${it.message}", it)
}

when {
Expand Down Expand Up @@ -164,7 +164,7 @@ class AppDetailScrapper(
companion object {
const val PRICE_MULTIPLIER = 1000_000f
val INIT_DATA_PATTERN: Pattern =
Pattern.compile("<script [A-Za-z-0-9=_\"]+>AF_initDataCallback\\((\\{.*?\\})\\);")
Pattern.compile("<script [A-Za-z-0-9=_\": ]+>AF_initDataCallback\\((\\{.*?\\})\\);")
}

data class Request(val packageName: String) : JobRequest {
Expand Down

0 comments on commit 8a49108

Please sign in to comment.