mirror of
https://github.com/lizongying/my-tv.git
synced 2026-11-01 09:06:31 +08:00
fix ysp
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
<uses-permission android:name="android.permission.INTERNET" />
|
||||
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
|
||||
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
|
||||
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
|
||||
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
|
||||
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
|
||||
<uses-permission android:name="android.permission.REQUEST_INSTALL_PACKAGES" />
|
||||
|
||||
Binary file not shown.
Binary file not shown.
@@ -67,13 +67,13 @@ object Utils {
|
||||
}
|
||||
}
|
||||
|
||||
if (x != "") {
|
||||
try {
|
||||
getNothing3(x)
|
||||
} catch (e: Exception) {
|
||||
println("b ${e.message}")
|
||||
}
|
||||
}
|
||||
// if (x != "") {
|
||||
// try {
|
||||
// getNothing3(x)
|
||||
// } catch (e: Exception) {
|
||||
// println("b ${e.message}")
|
||||
// }
|
||||
// }
|
||||
|
||||
withContext(Dispatchers.Main) {
|
||||
listener?.onRequestFinished(null)
|
||||
|
||||
@@ -334,21 +334,8 @@ object Request {
|
||||
val liveInfo = response.body()
|
||||
|
||||
if (liveInfo?.data?.playurl != null) {
|
||||
val chanll = liveInfo.data.chanll
|
||||
val decodedBytes = Base64.decode(
|
||||
chanll.substring(9, chanll.length - 3),
|
||||
Base64.DEFAULT
|
||||
)
|
||||
val decodedString = String(decodedBytes)
|
||||
val matchResult = regex.find(decodedString)
|
||||
if (matchResult != null) {
|
||||
val (key, iv) = matchResult.destructured
|
||||
val keyBytes = Base64.decode(key, Base64.DEFAULT)
|
||||
val ivBytes = Base64.decode(iv, Base64.DEFAULT)
|
||||
val url = liveInfo.data.playurl + "&revoi=" + encryptTripleDES(
|
||||
keyBytes + byteArrayOf(0, 0, 0, 0, 0, 0, 0, 0),
|
||||
ivBytes
|
||||
).uppercase() + liveInfo.data.extended_param
|
||||
if (liveInfo.data.extended_param != null) {
|
||||
val url = liveInfo.data.playurl + "&revoi=" + liveInfo.data.extended_param
|
||||
Log.d(TAG, "$title url $url")
|
||||
tvModel.addVideoUrl(url)
|
||||
tvModel.allReady()
|
||||
|
||||
Reference in New Issue
Block a user