Skip to content

Commit

Permalink
Merge pull request #51 from Udhayarajan/patch
Browse files Browse the repository at this point in the history
Patch
  • Loading branch information
Udhayarajan authored Aug 13, 2023
2 parents 472d5af + 4ea75e4 commit 746e459
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ plugins {
}

group = "io.github.udhayarajan"
version = "5.7.2"
version = "5.7.3"
// Version Naming incremented if "<NEW_FEATURE_ADDED>.<WORKED_ON_BUG>.<BETA_VERSION_COUNT_OR_PRE_RELEASE>"
// Priority on incrementing Feature > BugFix > Beta

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class Instagram internal constructor(url: String) : Extractor(url) {

private suspend fun isCookieValid(): Boolean {
if (cookies.isNullOrEmpty()) return false
val res = httpRequestService.headRawResponse(
val res = httpRequestService.getRawResponse(
"https://www.instagram.com/accounts/login/", headers, false
) ?: return false
logger.info("status code=${res.status.value} & http response=$res")
Expand Down Expand Up @@ -258,7 +258,7 @@ class Instagram internal constructor(url: String) : Extractor(url) {
directExtraction()
}

else -> tryWithQueryHash(res)
else -> extractInfoShared(res)
}
} else if (isHighlightsPost()) {
headers["User-Agent"] =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ class HttpRequestServiceImpl(private val client: HttpClient) : HttpRequestServic
cacheRedirect = followRedirects
followRedirects = false
}
client.head {
client.get {
url(url)
method = HttpMethod.Head
headers?.let {
Expand Down

0 comments on commit 746e459

Please sign in to comment.