fix empty string bug

pull/102/head v1.0.2
Li ZongYing 2 years ago
parent 3b01debf7f
commit 709cc2ccdf
  1. 2
      .github/workflows/build.yml
  2. 3
      app/src/main/java/com/lizongying/mytv/TVList.kt

@ -52,5 +52,5 @@ jobs:
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
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

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

Loading…
Cancel
Save