Skip to content

Commit 746e459

Browse files
authored
Merge pull request #51 from Udhayarajan/patch
Patch
2 parents 472d5af + 4ea75e4 commit 746e459

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ plugins {
2828
}
2929

3030
group = "io.github.udhayarajan"
31-
version = "5.7.2"
31+
version = "5.7.3"
3232
// Version Naming incremented if "<NEW_FEATURE_ADDED>.<WORKED_ON_BUG>.<BETA_VERSION_COUNT_OR_PRE_RELEASE>"
3333
// Priority on incrementing Feature > BugFix > Beta
3434

src/commonMain/kotlin/com/mugames/vidsnapkit/extractor/Instagram.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ class Instagram internal constructor(url: String) : Extractor(url) {
6060

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

261-
else -> tryWithQueryHash(res)
261+
else -> extractInfoShared(res)
262262
}
263263
} else if (isHighlightsPost()) {
264264
headers["User-Agent"] =

src/commonMain/kotlin/com/mugames/vidsnapkit/network/HttpRequestServiceImpl.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ class HttpRequestServiceImpl(private val client: HttpClient) : HttpRequestServic
291291
cacheRedirect = followRedirects
292292
followRedirects = false
293293
}
294-
client.head {
294+
client.get {
295295
url(url)
296296
method = HttpMethod.Head
297297
headers?.let {

0 commit comments

Comments
 (0)