Skip to content

Commit 23b26d5

Browse files
committed
Fix: Unable to update yt-dlp
1 parent e4b3575 commit 23b26d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/src/main/java/com/yausername/youtubedl_android/YoutubeDLUpdater.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ internal object YoutubeDLUpdater {
5959

6060
@Throws(IOException::class)
6161
private fun checkForUpdate(appContext: Context, youtubeDLChannel: UpdateChannel): JsonNode? {
62-
val url = youtubeDLChannel.apiUrl
62+
val url = URL(youtubeDLChannel.apiUrl)
6363
val json = YoutubeDL.objectMapper.readTree(url)
6464
val newVersion = getTag(json)
6565
val oldVersion = SharedPrefsHelper[appContext, dlpVersionKey]

0 commit comments

Comments
 (0)