fix empty string bug

This commit is contained in:
Li ZongYing 2023-12-07 01:05:26 +08:00
parent 3b01debf7f
commit 709cc2ccdf
2 changed files with 4 additions and 1 deletions

View File

@ -52,5 +52,5 @@ jobs:
with: with:
upload_url: ${{ steps.create_release.outputs.upload_url }} upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ${{ steps.sign_app.outputs.signedReleaseFile }} asset_path: ${{ steps.sign_app.outputs.signedReleaseFile }}
asset_name: my-tv.apk asset_name: my-tv-{{ github.ref_name }}.apk
asset_content_type: application/vnd.android.package-archive asset_content_type: application/vnd.android.package-archive

View File

@ -107,6 +107,9 @@ object TVList {
val map: MutableMap<String, MutableMap<String, LinkedHashSet<String>>> = mutableMapOf() val map: MutableMap<String, MutableMap<String, LinkedHashSet<String>>> = mutableMapOf()
for (i in tvs.split("\n")) { for (i in tvs.split("\n")) {
if (!i.contains(",")) {
continue
}
val (channel, title, url) = i.split(",") val (channel, title, url) = i.split(",")
val titleMap = map[channel] ?: mutableMapOf() val titleMap = map[channel] ?: mutableMapOf()