Snaptube v4.40.0.4401610版本的 MD5 值为:ca2b95dcff63007195db02a6c93091b9

以下内容为反编译后的 cac.java 源代码,内容仅作参考


package o;

import android.content.Intent;
import android.net.Uri;
import android.text.TextUtils;
import com.mobi.sdk.Cboolean;
import com.mobvista.msdk.base.entity.VideoReportData;
import com.snaptube.exoplayer.impl.VideoDetailInfo;
public class cac {
    public static Intent m19745(VideoDetailInfo videoDetailInfo) {
        Intent intent = new Intent("android.intent.action.VIEW");
        Uri.Builder appendQueryParameter = Uri.parse("http://snaptubeapp.com/detail").buildUpon().appendQueryParameter("url", videoDetailInfo.f10064);
        if (!TextUtils.isEmpty(videoDetailInfo.f10057)) {
            appendQueryParameter.appendQueryParameter("videoId", videoDetailInfo.f10057);
        }
        if (!TextUtils.isEmpty(videoDetailInfo.f10060)) {
            appendQueryParameter.appendQueryParameter("snaplistId", videoDetailInfo.f10060);
            appendQueryParameter.appendQueryParameter("specialId", videoDetailInfo.f10060);
        }
        if (videoDetailInfo.f10061 != null) {
            appendQueryParameter.appendQueryParameter("creatorId", videoDetailInfo.f10061);
            intent.putExtra("creatorId", videoDetailInfo.f10061);
        }
        intent.setData(appendQueryParameter.build());
        intent.putExtra("video_title", videoDetailInfo.f10063);
        intent.putExtra("play_count", videoDetailInfo.f10059);
        intent.putExtra("author", videoDetailInfo.f10051);
        intent.putExtra("pos", videoDetailInfo.f10068);
        return intent;
    }

    public static Intent m19748(bfb bfbVar) {
        Intent intent = new Intent();
        intent.setData(Uri.parse("http://snaptubeapp.com/list/special/detail").buildUpon().appendQueryParameter("id", bfbVar.m17081()).build());
        intent.putExtra("title", bfbVar.m17066());
        intent.putExtra(Cboolean.f8762char, bfbVar.m17089());
        intent.putExtra("creatorId", bfbVar.m17070());
        intent.putExtra("pos", bfbVar.m17078());
        return intent;
    }

    public static Intent m19746(String str, String str2) {
        Intent intent = new Intent();
        intent.setData(Uri.parse("http://snaptubeapp.com/tab/creators"));
        intent.putExtra("title", str);
        intent.putExtra("pos", str2);
        return intent;
    }

    public static Intent m19747(String str, String str2, String str3, String str4) {
        Intent intent = new Intent();
        intent.setData(Uri.parse("http://snaptubeapp.com/tab/creator").buildUpon().appendPath(str).appendQueryParameter("serverTag", str3).appendQueryParameter("creatorId", str).build());
        intent.putExtra("title", str2);
        intent.putExtra("creatorId", str);
        intent.putExtra("pos", str4);
        return intent;
    }

    public static Intent m19750(String str, String str2) {
        Intent intent = new Intent();
        intent.setData(Uri.parse("http://snaptubeapp.com").buildUpon().path("/tab/creator").appendPath(str).appendQueryParameter("creatorId", str).build());
        intent.putExtra("pos", str2);
        return intent;
    }

    public static VideoDetailInfo m19749(Intent intent) {
        VideoDetailInfo videoDetailInfo = new VideoDetailInfo();
        videoDetailInfo.f10063 = intent.getStringExtra("video_title");
        videoDetailInfo.f10059 = intent.getLongExtra("play_count", 0L);
        videoDetailInfo.f10051 = intent.getStringExtra("author");
        videoDetailInfo.f10052 = intent.getStringExtra(VideoReportData.REPORT_DURATION);
        videoDetailInfo.f10053 = intent.getStringExtra(Cboolean.f8762char);
        videoDetailInfo.f10061 = intent.getStringExtra("creatorId");
        videoDetailInfo.f10068 = intent.getStringExtra("pos");
        Uri data = intent.getData();
        if (data != null) {
            videoDetailInfo.f10057 = data.getQueryParameter("videoId");
            videoDetailInfo.f10060 = data.getQueryParameter("snaplistId");
            videoDetailInfo.f10064 = data.getQueryParameter("url");
            videoDetailInfo.f10049 = data.getQueryParameter("serverTag");
        }
        return videoDetailInfo;
    }
}