@@ -7,13 +7,13 @@ import kotlinx.parcelize.IgnoredOnParcel
77import kotlinx.parcelize.Parcelize
88import org.schabi.newpipe.R
99import org.schabi.newpipe.extractor.Info
10- import org.schabi.newpipe.extractor.NewPipe
1110import org.schabi.newpipe.extractor.exceptions.AccountTerminatedException
1211import org.schabi.newpipe.extractor.exceptions.ContentNotAvailableException
1312import org.schabi.newpipe.extractor.exceptions.ContentNotSupportedException
1413import org.schabi.newpipe.extractor.exceptions.ExtractionException
1514import org.schabi.newpipe.extractor.services.youtube.extractors.YoutubeStreamExtractor.DeobfuscateException
1615import org.schabi.newpipe.ktx.isNetworkRelated
16+ import org.schabi.newpipe.util.ServiceHelper
1717import java.io.PrintWriter
1818import java.io.StringWriter
1919
@@ -65,15 +65,15 @@ class ErrorInfo(
6565 constructor (throwable: Throwable , userAction: UserAction , request: String ) :
6666 this (throwable, userAction, SERVICE_NONE , request)
6767 constructor (throwable: Throwable , userAction: UserAction , request: String , serviceId: Int ) :
68- this (throwable, userAction, NewPipe .getNameOfService (serviceId), request)
68+ this (throwable, userAction, ServiceHelper .getNameOfServiceById (serviceId), request)
6969 constructor (throwable: Throwable , userAction: UserAction , request: String , info: Info ? ) :
7070 this (throwable, userAction, getInfoServiceName(info), request)
7171
7272 // constructors with list of throwables
7373 constructor (throwable: List <Throwable >, userAction: UserAction , request: String ) :
7474 this (throwable, userAction, SERVICE_NONE , request)
7575 constructor (throwable: List <Throwable >, userAction: UserAction , request: String , serviceId: Int ) :
76- this (throwable, userAction, NewPipe .getNameOfService (serviceId), request)
76+ this (throwable, userAction, ServiceHelper .getNameOfServiceById (serviceId), request)
7777 constructor (throwable: List <Throwable >, userAction: UserAction , request: String , info: Info ? ) :
7878 this (throwable, userAction, getInfoServiceName(info), request)
7979
@@ -95,7 +95,7 @@ class ErrorInfo(
9595 Array (throwable.size) { i -> getStackTrace(throwable[i]) }
9696
9797 private fun getInfoServiceName (info : Info ? ) =
98- if (info == null ) SERVICE_NONE else NewPipe .getNameOfService (info.serviceId)
98+ if (info == null ) SERVICE_NONE else ServiceHelper .getNameOfServiceById (info.serviceId)
9999
100100 @StringRes
101101 private fun getMessageStringId (
0 commit comments