package xyz.stream.utils;

import androidx.media3.exoplayer.rtsp.RtspHeaders;
import java.io.IOException;
import okhttp3.Call;
import okhttp3.Callback;
import okhttp3.Request;
import okhttp3.Response;

/* JADX INFO: loaded from: classes3.dex */
public final class u implements Callback {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final /* synthetic */ Request f36175a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final /* synthetic */ y f36176b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final /* synthetic */ String f36177c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public final /* synthetic */ String f36178d = RtspHeaders.CONTENT_LENGTH;

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public final /* synthetic */ z f36179e;

    public u(z zVar, Request request, xyz.netfly.mobile.player.s sVar, String str) {
        this.f36179e = zVar;
        this.f36175a = request;
        this.f36176b = sVar;
        this.f36177c = str;
    }

    @Override // okhttp3.Callback
    public final void onFailure(Call call, IOException iOException) {
        this.f36179e.getClass();
        z.b(this.f36175a, iOException, this.f36176b);
        f.p().y("okhttp", "head failed | " + this.f36177c + " | " + iOException);
    }

    @Override // okhttp3.Callback
    public final void onResponse(Call call, Response response) {
        y yVar = this.f36176b;
        z zVar = this.f36179e;
        try {
            z.a(zVar, response.header(this.f36178d), yVar);
        } catch (Exception e10) {
            e10.printStackTrace();
            f.p().y("okhttp", "head error | " + this.f36177c + " | " + e10);
            zVar.getClass();
            z.b(this.f36175a, e10, yVar);
        }
    }
}
