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

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

MD5 校验值:61e58c10a11e4adec8760ee3854e996a

反编译源代码说明

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


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

import S5.l;
import V1.z;
import Z5.a;
import a4.c;
import a4.d;
import java.util.Collections;
import java.util.List;
import java.util.stream.Collectors;
import org.schabi.newpipe.extractor.NewPipe;
import org.schabi.newpipe.extractor.StreamingService;
import org.schabi.newpipe.extractor.downloader.Downloader;
import org.schabi.newpipe.extractor.suggestion.SuggestionExtractor;
import org.schabi.newpipe.extractor.utils.Utils;

public class BandcampSuggestionExtractor extends SuggestionExtractor {
    private static final String AUTOCOMPLETE_URL = "https://bandcamp.com/api/fuzzysearch/1/autocomplete?q=";

    public BandcampSuggestionExtractor(StreamingService streamingService) {
        super(streamingService);
    }

    @Override
    public List<String> suggestionList(String str) {
        Downloader downloader = NewPipe.getDownloader();
        try {
            return (List) ((c) z.h().H(downloader.get(AUTOCOMPLETE_URL + Utils.encodeUrlUtf8(str)).responseBody())).f("auto").b("results").stream().filter(new a(7)).map(new l(17)).map(new l(28)).distinct().collect(Collectors.toList());
        } catch (d unused) {
            return Collections.emptyList();
        }
    }
}