v1.0.2: TvmonScraper 소스 적용 (카테고리 정렬 파라미터 제거)
This commit is contained in:
@@ -13,8 +13,8 @@ android {
|
||||
applicationId "com.example.tvmon"
|
||||
minSdk 28
|
||||
targetSdk 34
|
||||
versionCode 2
|
||||
versionName "1.0.1"
|
||||
versionCode 3
|
||||
versionName "1.0.2"
|
||||
|
||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||
}
|
||||
|
||||
@@ -142,19 +142,17 @@ private fun extractSeriesUrl(url: String): String {
|
||||
result
|
||||
}
|
||||
|
||||
suspend fun getCategory(categoryKey: String, page: Int = 1): CategoryResult = withContext(Dispatchers.IO) {
|
||||
val catInfo = CATEGORIES[categoryKey] ?: return@withContext CategoryResult(
|
||||
success = false,
|
||||
category = "Unknown",
|
||||
items = emptyList(),
|
||||
page = page,
|
||||
pagination = Pagination(1, 1)
|
||||
)
|
||||
suspend fun getCategory(categoryKey: String, page: Int = 1): CategoryResult = withContext(Dispatchers.IO) {
|
||||
val catInfo = CATEGORIES[categoryKey] ?: return@withContext CategoryResult(
|
||||
success = false,
|
||||
category = "Unknown",
|
||||
items = emptyList(),
|
||||
page = page,
|
||||
pagination = Pagination(1, 1)
|
||||
)
|
||||
|
||||
// Sort by wr_datetime (latest first) - same as website default sorting
|
||||
val sortParam = "sst=wr_datetime&sod=desc"
|
||||
val url = if (page == 1) "$BASE_URL${catInfo.path}?$sortParam" else "$BASE_URL${catInfo.path}?$sortParam&page=$page"
|
||||
val html = get(url) ?: return@withContext CategoryResult(
|
||||
val url = if (page == 1) "$BASE_URL${catInfo.path}" else "$BASE_URL${catInfo.path}?page=$page"
|
||||
val html = get(url) ?: return@withContext CategoryResult(
|
||||
success = false,
|
||||
category = catInfo.name,
|
||||
items = emptyList(),
|
||||
@@ -390,7 +388,7 @@ suspend fun getCategory(categoryKey: String, page: Int = 1): CategoryResult = wi
|
||||
|
||||
val patterns = listOf(
|
||||
"출연[^:]*[:\\s]*(.+?)(?:\\n|$)",
|
||||
"출演[^:]*[:\\s]*(.+?)(?:\\n|$)",
|
||||
"출연[^:]*[:\\s]*(.+?)(?:\\n|$)",
|
||||
"배우[^:]*[:\\s]*(.+?)(?:\\n|$)",
|
||||
"Cast[^:]*[:\\s]*(.+?)(?:\\n|$)"
|
||||
)
|
||||
@@ -615,4 +613,4 @@ val allLinks = doc.select("a.poster[href*='/movie/'], a.poster[href*='/drama/'],
|
||||
}
|
||||
return "unknown"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"versionCode": 2,
|
||||
"versionName": "1.0.1",
|
||||
"apkUrl": "https://git.webpluss.net/sanjeok77/tvmon_release/releases/download/v1.0.1/app-release.apk",
|
||||
"updateMessage": "v1.0.1 업데이트\n\n- 정렬 순서 wr_datetime DESC로 변경\n- 런처 아이콘 개선 (Netflix 스타일)\n- 웹뷰 동영상 재생 최적화\n- 설정 버튼 카테고리 하단 배치"
|
||||
}
|
||||
"versionCode": 3,
|
||||
"versionName": "1.0.2",
|
||||
"apkUrl": "https://git.webpluss.net/sanjeok77/tvmon_release/releases/download/v1.0.2/app-release.apk",
|
||||
"updateMessage": "v1.0.2 업데이트\n\n- TvmonScraper 소스 적용 (카테고리 정렬 파라미터 제거)"
|
||||
}
|
||||
Reference in New Issue
Block a user