package com.tencent.mm.plugin.topstory.ui.video;

import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.plugin.topstory.a.c.j;
import com.tencent.mm.plugin.topstory.ui.video.n.1;
import com.tencent.mm.sdk.platformtools.ab;
import com.tencent.mm.sdk.platformtools.al;
import org.json.JSONArray;
import org.json.JSONObject;

class n$1$1 implements Runnable {
    final /* synthetic */ j sFf;
    final /* synthetic */ 1 sFg;

    n$1$1(1 1, j jVar) {
        this.sFg = 1;
        this.sFf = jVar;
    }

    public final void run() {
        AppMethodBeat.i(1756);
        try {
            JSONArray optJSONArray = new JSONObject(this.sFf.cFt().vOy).optJSONArray("data");
            if (optJSONArray == null || optJSONArray.length() <= 0) {
                ab.i("MicroMsg.TopStory.TopStoryVideoDataMgr", "Fail insert. code=json data error");
                AppMethodBeat.o(1756);
                return;
            }
            al.d(new 1(this, n.b(this.sFg.sFe.sDo.cGb(), optJSONArray)));
            AppMethodBeat.o(1756);
        } catch (Exception e) {
            ab.e("MicroMsg.TopStory.TopStoryVideoDataMgr", "Fail insert. code=" + e.getMessage());
            AppMethodBeat.o(1756);
        }
    }
}
