You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using this library for future new function in my project FeedTV, and when I parse the M3U file, I get an exception with the error "Retrieving groups by name is not supported on this platform".
2022-01-06 00:53:17.341 7411-7411/org.juanro.feedtv E/AndroidRuntime: FATAL EXCEPTION: main Process: org.juanro.feedtv, PID: 7411 java.lang.UnsupportedOperationException: Retrieving groups by name is not supported on this platform. at kotlin.internal.PlatformImplementations.getMatchResultNamedGroup(PlatformImplementations.kt:42) at kotlin.text.MatcherMatchResult$groups$1.get(Regex.kt:372) at kotlin.text.jdk8.RegexExtensionsJDK8Kt.get(RegexExtensions.kt:34) at net.bjoernpetersen.m3u.M3uParser.parseExtended(M3uParser.kt:166) at net.bjoernpetersen.m3u.M3uParser.parse(M3uParser.kt:137) at net.bjoernpetersen.m3u.M3uParser.parse(M3uParser.kt:54) at net.bjoernpetersen.m3u.M3uParser.parse$default(M3uParser.kt:52) at net.bjoernpetersen.m3u.M3uParser.parse(Unknown Source:2) at org.juanro.feedtv.M3UParser$1.onResponse(M3UParser.java:150) at org.juanro.feedtv.M3UParser$1.onResponse(M3UParser.java:125) at org.juanro.feedtv.Http.InputStreamVolleyRequest.deliverResponse(InputStreamVolleyRequest.java:57) at org.juanro.feedtv.Http.InputStreamVolleyRequest.deliverResponse(InputStreamVolleyRequest.java:29) at com.android.volley.ExecutorDelivery$ResponseDeliveryRunnable.run(ExecutorDelivery.java:102) at android.os.Handler.handleCallback(Handler.java:938) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loopOnce(Looper.java:201) at android.os.Looper.loop(Looper.java:288) at android.app.ActivityThread.main(ActivityThread.java:7839) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003)
It seems to be because of using name groups in Regex (seconds and title)
private const val EXTENDED_INFO = """${COMMENT_START}EXTINF:(?<$SECONDS>[-]?\d+).*,(?<$TITLE>.+)"""
I'm using this version: implementation "com.github.bjoernpetersen:m3u-parser:1.1.0"
The text was updated successfully, but these errors were encountered:
Android's half-assed Regex implementation really is annoying sometimes. However, I'm glad someone else is getting a use out of this library, and thankfully this bug is easily fixed. Thanks for opening an issue!
I've released version 1.2.0 with the fix. That version also contains a compilation JDK change, so please notify me if the version doesn't work on Android!
I've released version 1.2.0 with the fix. That version also contains a compilation JDK change, so please notify me if the version doesn't work on Android!
Hi!
I'm using this library for future new function in my project FeedTV, and when I parse the M3U file, I get an exception with the error "Retrieving groups by name is not supported on this platform".
2022-01-06 00:53:17.341 7411-7411/org.juanro.feedtv E/AndroidRuntime: FATAL EXCEPTION: main Process: org.juanro.feedtv, PID: 7411 java.lang.UnsupportedOperationException: Retrieving groups by name is not supported on this platform. at kotlin.internal.PlatformImplementations.getMatchResultNamedGroup(PlatformImplementations.kt:42) at kotlin.text.MatcherMatchResult$groups$1.get(Regex.kt:372) at kotlin.text.jdk8.RegexExtensionsJDK8Kt.get(RegexExtensions.kt:34) at net.bjoernpetersen.m3u.M3uParser.parseExtended(M3uParser.kt:166) at net.bjoernpetersen.m3u.M3uParser.parse(M3uParser.kt:137) at net.bjoernpetersen.m3u.M3uParser.parse(M3uParser.kt:54) at net.bjoernpetersen.m3u.M3uParser.parse$default(M3uParser.kt:52) at net.bjoernpetersen.m3u.M3uParser.parse(Unknown Source:2) at org.juanro.feedtv.M3UParser$1.onResponse(M3UParser.java:150) at org.juanro.feedtv.M3UParser$1.onResponse(M3UParser.java:125) at org.juanro.feedtv.Http.InputStreamVolleyRequest.deliverResponse(InputStreamVolleyRequest.java:57) at org.juanro.feedtv.Http.InputStreamVolleyRequest.deliverResponse(InputStreamVolleyRequest.java:29) at com.android.volley.ExecutorDelivery$ResponseDeliveryRunnable.run(ExecutorDelivery.java:102) at android.os.Handler.handleCallback(Handler.java:938) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loopOnce(Looper.java:201) at android.os.Looper.loop(Looper.java:288) at android.app.ActivityThread.main(ActivityThread.java:7839) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003)
It seems to be because of using name groups in Regex (seconds and title)
private const val EXTENDED_INFO = """${COMMENT_START}EXTINF:(?<$SECONDS>[-]?\d+).*,(?<$TITLE>.+)"""
I'm using this version:
implementation "com.github.bjoernpetersen:m3u-parser:1.1.0"
The text was updated successfully, but these errors were encountered: