|
|
|
|
@ -9,6 +9,7 @@ import com.fongmi.android.tv.event.PlayerEvent; |
|
|
|
|
import com.fongmi.android.tv.ui.custom.CustomWebView; |
|
|
|
|
import com.fongmi.android.tv.utils.Notify; |
|
|
|
|
import com.fongmi.android.tv.utils.ResUtil; |
|
|
|
|
import com.github.catvod.crawler.SpiderDebug; |
|
|
|
|
import com.google.android.exoplayer2.ExoPlayer; |
|
|
|
|
import com.google.android.exoplayer2.PlaybackException; |
|
|
|
|
import com.google.android.exoplayer2.Player; |
|
|
|
|
@ -182,6 +183,7 @@ public class Players implements Player.Listener, ParseTask.Callback { |
|
|
|
|
public void onParseSuccess(Map<String, String> headers, String url, String from) { |
|
|
|
|
if (from.length() > 0) Notify.show(ResUtil.getString(R.string.parse_from, from)); |
|
|
|
|
setMediaSource(headers, url); |
|
|
|
|
SpiderDebug.log(url); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
|