APK反编译源代码展示 - 南明离火平台提供

应用版本信息
应用名称:Music Player
版本号:1.0
包名称:music.downloader.mp3player.downloadmusic

MD5 校验值:61e58c10a11e4adec8760ee3854e996a

反编译源代码说明

SoundcloudSuggestionExtractor.java 文件包含反编译后的源代码,请注意,该内容仅供学习和参考使用,不得用于非法用途。


package org.schabi.newpipe.extractor.services.soundcloud.extractors;

import V1.z;
import a4.c;
import a4.d;
import f0.AbstractC1761a;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import org.schabi.newpipe.extractor.NewPipe;
import org.schabi.newpipe.extractor.StreamingService;
import org.schabi.newpipe.extractor.exceptions.ParsingException;
import org.schabi.newpipe.extractor.services.soundcloud.SoundcloudParsingHelper;
import org.schabi.newpipe.extractor.suggestion.SuggestionExtractor;
import org.schabi.newpipe.extractor.utils.Utils;

public class SoundcloudSuggestionExtractor extends SuggestionExtractor {
    public SoundcloudSuggestionExtractor(StreamingService streamingService) {
        super(streamingService);
    }

    @Override
    public List<String> suggestionList(String str) {
        ArrayList arrayList = new ArrayList();
        try {
            Iterator<E> it = ((c) z.h().H(NewPipe.getDownloader().get(AbstractC1761a.j("https://api-v2.soundcloud.com/search/queries?q=", Utils.encodeUrlUtf8(str), "&client_id=", SoundcloudParsingHelper.clientId(), "&limit=10"), getExtractorLocalization()).responseBody())).b("collection").iterator();
            while (it.hasNext()) {
                Object next = it.next();
                if (next instanceof c) {
                    arrayList.add(((c) next).h("query", null));
                }
            }
            return arrayList;
        } catch (d e) {
            throw new ParsingException("Could not parse json response", e);
        }
    }
}