add - douban1122
This commit is contained in:
@@ -35,7 +35,6 @@ public class PushAgent extends Spider {
|
|||||||
private static final String SiteUrl = "https://api.aliyundrive.com";
|
private static final String SiteUrl = "https://api.aliyundrive.com";
|
||||||
public static Pattern regexAli = Pattern.compile("(https://www.aliyundrive.com/s/[^\"]+)");
|
public static Pattern regexAli = Pattern.compile("(https://www.aliyundrive.com/s/[^\"]+)");
|
||||||
public static Pattern regexAliFolder = Pattern.compile("www.aliyundrive.com/s/([^/]+)(/folder/([^/]+))?");
|
public static Pattern regexAliFolder = Pattern.compile("www.aliyundrive.com/s/([^/]+)(/folder/([^/]+))?");
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void init(Context context, String extend) {
|
public void init(Context context, String extend) {
|
||||||
super.init(context, extend);
|
super.init(context, extend);
|
||||||
@@ -810,7 +809,7 @@ public class PushAgent extends Spider {
|
|||||||
result.put("playUrl", "");
|
result.put("playUrl", "");
|
||||||
result.put("url", url);
|
result.put("url", url);
|
||||||
result.put("header", "");
|
result.put("header", "");
|
||||||
if (Misc.btype.equals("Y")) {
|
if (Misc.rflag && Misc.btype.equals("Y")) {
|
||||||
String uri = split[4];
|
String uri = split[4];
|
||||||
if (split.length > 5) {
|
if (split.length > 5) {
|
||||||
String name = split[5];
|
String name = split[5];
|
||||||
|
|||||||
@@ -16,83 +16,71 @@ public class PushAgentQQ extends Spider {
|
|||||||
private static String douban_api_host = "https://frodo.douban.com/api/v2";
|
private static String douban_api_host = "https://frodo.douban.com/api/v2";
|
||||||
private static String apikey = "0ac44ae016490db2204ce0a042db2916";
|
private static String apikey = "0ac44ae016490db2204ce0a042db2916";
|
||||||
public static JSONObject getUrls(){
|
public static JSONObject getUrls(){
|
||||||
String _urls = "{\n" +
|
String _urls = "{" +
|
||||||
" \"search\": \"/search/weixin\",\n" +
|
" \"search\": \"/search/weixin\"," +
|
||||||
" \"search_agg\": \"/search\",\n" +
|
" \"search_agg\": \"/search\"," +
|
||||||
"\n" +
|
" \"movie_recommend\": \"/movie/recommend\"," +
|
||||||
" \"movie_recommend\": \"/movie/recommend\",\n" +
|
" \"movie_tag\": \"/movie/tag\"," +
|
||||||
" \"movie_tag\": \"/movie/tag\",\n" +
|
" \"tv_tag\": \"/tv/tag\"," +
|
||||||
" \"tv_tag\": \"/tv/tag\",\n" +
|
" \"movie_search\": \"/search/movie\"," +
|
||||||
"\n" +
|
" \"tv_search\": \"/search/movie\"," +
|
||||||
" \"movie_search\": \"/search/movie\",\n" +
|
" \"book_search\": \"/search/book\"," +
|
||||||
" \"tv_search\": \"/search/movie\",\n" +
|
" \"group_search\": \"/search/group\"," +
|
||||||
" \"book_search\": \"/search/book\",\n" +
|
" \"movie_showing\": \"/subject_collection/movie_showing/items\"," +
|
||||||
" \"group_search\": \"/search/group\",\n" +
|
" \"movie_hot_gaia\": \"/subject_collection/movie_hot_gaia/items\"," +
|
||||||
"\n" +
|
" \"movie_soon\": \"/subject_collection/movie_soon/items\"," +
|
||||||
" \"movie_showing\": \"/subject_collection/movie_showing/items\",\n" +
|
" \"movie_top250\": \"/subject_collection/movie_top250/items\"," +
|
||||||
" \"movie_hot_gaia\": \"/subject_collection/movie_hot_gaia/items\",\n" +
|
" \"movie_scifi\": \"/subject_collection/movie_scifi/items\"," +
|
||||||
" \"movie_soon\": \"/subject_collection/movie_soon/items\",\n" +
|
" \"movie_comedy\": \"/subject_collection/movie_comedy/items\"," +
|
||||||
" \"movie_top250\": \"/subject_collection/movie_top250/items\",\n" +
|
" \"movie_action\": \"/subject_collection/movie_action/items\"," +
|
||||||
" \"movie_scifi\": \"/subject_collection/movie_scifi/items\",\n" +
|
" \"movie_love\": \"/subject_collection/movie_love/items\"," +
|
||||||
" \"movie_comedy\": \"/subject_collection/movie_comedy/items\",\n" +
|
" \"tv_hot\": \"/subject_collection/tv_hot/items\"," +
|
||||||
" \"movie_action\": \"/subject_collection/movie_action/items\",\n" +
|
" \"tv_domestic\": \"/subject_collection/tv_domestic/items\"," +
|
||||||
" \"movie_love\": \"/subject_collection/movie_love/items\",\n" +
|
" \"tv_american\": \"/subject_collection/tv_american/items\"," +
|
||||||
" \"tv_hot\": \"/subject_collection/tv_hot/items\",\n" +
|
" \"tv_japanese\": \"/subject_collection/tv_japanese/items\"," +
|
||||||
" \"tv_domestic\": \"/subject_collection/tv_domestic/items\",\n" +
|
" \"tv_korean\": \"/subject_collection/tv_korean/items\"," +
|
||||||
" \"tv_american\": \"/subject_collection/tv_american/items\",\n" +
|
" \"tv_animation\": \"/subject_collection/tv_animation/items\"," +
|
||||||
" \"tv_japanese\": \"/subject_collection/tv_japanese/items\",\n" +
|
" \"tv_variety_show\": \"/subject_collection/tv_variety_show/items\"," +
|
||||||
" \"tv_korean\": \"/subject_collection/tv_korean/items\",\n" +
|
" \"tv_chinese_best_weekly\": \"/subject_collection/tv_chinese_best_weekly/items\"," +
|
||||||
" \"tv_animation\": \"/subject_collection/tv_animation/items\",\n" +
|
" \"tv_global_best_weekly\": \"/subject_collection/tv_global_best_weekly/items\"," +
|
||||||
" \"tv_variety_show\": \"/subject_collection/tv_variety_show/items\",\n" +
|
" \"show_hot\": \"/subject_collection/show_hot/items\"," +
|
||||||
" \"tv_chinese_best_weekly\": \"/subject_collection/tv_chinese_best_weekly/items\",\n" +
|
" \"show_domestic\": \"/subject_collection/show_domestic/items\"," +
|
||||||
" \"tv_global_best_weekly\": \"/subject_collection/tv_global_best_weekly/items\",\n" +
|
" \"show_foreign\": \"/subject_collection/show_foreign/items\"," +
|
||||||
"\n" +
|
" \"book_bestseller\": \"/subject_collection/book_bestseller/items\"," +
|
||||||
" \"show_hot\": \"/subject_collection/show_hot/items\",\n" +
|
" \"book_top250\": \"/subject_collection/book_top250/items\"," +
|
||||||
" \"show_domestic\": \"/subject_collection/show_domestic/items\",\n" +
|
" \"book_fiction_hot_weekly\": \"/subject_collection/book_fiction_hot_weekly/items\"," +
|
||||||
" \"show_foreign\": \"/subject_collection/show_foreign/items\",\n" +
|
" \"book_nonfiction_hot_weekly\": \"/subject_collection/book_nonfiction_hot_weekly/items\"," +
|
||||||
"\n" +
|
" \"music_single\": \"/subject_collection/music_single/items\"," +
|
||||||
" \"book_bestseller\": \"/subject_collection/book_bestseller/items\",\n" +
|
" \"movie_rank_list\": \"/movie/rank_list\"," +
|
||||||
" \"book_top250\": \"/subject_collection/book_top250/items\",\n" +
|
" \"movie_year_ranks\": \"/movie/year_ranks\"," +
|
||||||
" \"book_fiction_hot_weekly\": \"/subject_collection/book_fiction_hot_weekly/items\",\n" +
|
" \"book_rank_list\": \"/book/rank_list\"," +
|
||||||
" \"book_nonfiction_hot_weekly\": \"/subject_collection/book_nonfiction_hot_weekly/items\",\n" +
|
" \"tv_rank_list\": \"/tv/rank_list\"," +
|
||||||
"\n" +
|
" \"movie_detail\": \"/movie/\"," +
|
||||||
" \"music_single\": \"/subject_collection/music_single/items\",\n" +
|
" \"movie_rating\": \"/movie/%s/rating\"," +
|
||||||
"\n" +
|
" \"movie_photos\": \"/movie/%s/photos\"," +
|
||||||
" \"movie_rank_list\": \"/movie/rank_list\",\n" +
|
" \"movie_trailers\": \"/movie/%s/trailers\"," +
|
||||||
" \"movie_year_ranks\": \"/movie/year_ranks\",\n" +
|
" \"movie_interests\": \"/movie/%s/interests\"," +
|
||||||
" \"book_rank_list\": \"/book/rank_list\",\n" +
|
" \"movie_reviews\": \"/movie/%s/reviews\"," +
|
||||||
" \"tv_rank_list\": \"/tv/rank_list\",\n" +
|
" \"movie_recommendations\": \"/movie/%s/recommendations\"," +
|
||||||
"\n" +
|
" \"movie_celebrities\": \"/movie/%s/celebrities\"," +
|
||||||
" \"movie_detail\": \"/movie/\",\n" +
|
" \"tv_detail\": \"/tv/\"," +
|
||||||
" \"movie_rating\": \"/movie/%s/rating\",\n" +
|
" \"tv_rating\": \"/tv/%s/rating\"," +
|
||||||
" \"movie_photos\": \"/movie/%s/photos\",\n" +
|
" \"tv_photos\": \"/tv/%s/photos\"," +
|
||||||
" \"movie_trailers\": \"/movie/%s/trailers\",\n" +
|
" \"tv_trailers\": \"/tv/%s/trailers\"," +
|
||||||
" \"movie_interests\": \"/movie/%s/interests\",\n" +
|
" \"tv_interests\": \"/tv/%s/interests\"," +
|
||||||
" \"movie_reviews\": \"/movie/%s/reviews\",\n" +
|
" \"tv_reviews\": \"/tv/%s/reviews\"," +
|
||||||
" \"movie_recommendations\": \"/movie/%s/recommendations\",\n" +
|
" \"tv_recommendations\": \"/tv/%s/recommendations\"," +
|
||||||
" \"movie_celebrities\": \"/movie/%s/celebrities\",\n" +
|
" \"tv_celebrities\": \"/tv/%s/celebrities\"," +
|
||||||
"\n" +
|
" \"book_detail\": \"/book/\"," +
|
||||||
" \"tv_detail\": \"/tv/\",\n" +
|
" \"book_rating\": \"/book/%s/rating\"," +
|
||||||
" \"tv_rating\": \"/tv/%s/rating\",\n" +
|
" \"book_interests\": \"/book/%s/interests\"," +
|
||||||
" \"tv_photos\": \"/tv/%s/photos\",\n" +
|
" \"book_reviews\": \"/book/%s/reviews\"," +
|
||||||
" \"tv_trailers\": \"/tv/%s/trailers\",\n" +
|
" \"book_recommendations\": \"/book/%s/recommendations\"," +
|
||||||
" \"tv_interests\": \"/tv/%s/interests\",\n" +
|
" \"music_detail\": \"/music/\"," +
|
||||||
" \"tv_reviews\": \"/tv/%s/reviews\",\n" +
|
" \"music_rating\": \"/music/%s/rating\"," +
|
||||||
" \"tv_recommendations\": \"/tv/%s/recommendations\",\n" +
|
" \"music_interests\": \"/music/%s/interests\"," +
|
||||||
" \"tv_celebrities\": \"/tv/%s/celebrities\",\n" +
|
" \"music_reviews\": \"/music/%s/reviews\"," +
|
||||||
"\n" +
|
" \"music_recommendations\": \"/music/%s/recommendations\" }";
|
||||||
" \"book_detail\": \"/book/\",\n" +
|
|
||||||
" \"book_rating\": \"/book/%s/rating\",\n" +
|
|
||||||
" \"book_interests\": \"/book/%s/interests\",\n" +
|
|
||||||
" \"book_reviews\": \"/book/%s/reviews\",\n" +
|
|
||||||
" \"book_recommendations\": \"/book/%s/recommendations\",\n" +
|
|
||||||
"\n" +
|
|
||||||
" \"music_detail\": \"/music/\",\n" +
|
|
||||||
" \"music_rating\": \"/music/%s/rating\",\n" +
|
|
||||||
" \"music_interests\": \"/music/%s/interests\",\n" +
|
|
||||||
" \"music_reviews\": \"/music/%s/reviews\",\n" +
|
|
||||||
" \"music_recommendations\": \"/music/%s/recommendations\",\n" +
|
|
||||||
" }";
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
JSONObject jsonObject = new JSONObject(_urls);
|
JSONObject jsonObject = new JSONObject(_urls);
|
||||||
@@ -108,7 +96,6 @@ public class PushAgentQQ extends Spider {
|
|||||||
JSONObject ju = getUrls();
|
JSONObject ju = getUrls();
|
||||||
String url = douban_api_host + ju.getString(key)+"?sort="+sort+"&start=0&count=120&apikey=" + apikey + "&channel=Douban";
|
String url = douban_api_host + ju.getString(key)+"?sort="+sort+"&start=0&count=120&apikey=" + apikey + "&channel=Douban";
|
||||||
String json = OkHttpUtil.string(url, getHeaderDB());
|
String json = OkHttpUtil.string(url, getHeaderDB());
|
||||||
System.out.println(json);
|
|
||||||
JSONArray jSONArray = new JSONArray();
|
JSONArray jSONArray = new JSONArray();
|
||||||
JSONObject jo = new JSONObject(json),o1 = null,op1=null,vo=null;
|
JSONObject jo = new JSONObject(json),o1 = null,op1=null,vo=null;
|
||||||
|
|
||||||
@@ -133,8 +120,6 @@ public class PushAgentQQ extends Spider {
|
|||||||
return jSONArray;
|
return jSONArray;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
protected JSONObject rule = null;
|
protected JSONObject rule = null;
|
||||||
@Override
|
@Override
|
||||||
public void init(Context context, String extend) {
|
public void init(Context context, String extend) {
|
||||||
|
|||||||
@@ -20,6 +20,7 @@ public class Misc {
|
|||||||
public static JSONObject siteRule = null;
|
public static JSONObject siteRule = null;
|
||||||
public static Integer type=1;
|
public static Integer type=1;
|
||||||
public static String btype="N";
|
public static String btype="N";
|
||||||
|
public static boolean rflag = true;
|
||||||
public static boolean isVip(String url) {
|
public static boolean isVip(String url) {
|
||||||
// 适配2.0.6的调用应用内解析列表的支持, 需要配合直连分析一起使用,参考cjt影视和极品直连
|
// 适配2.0.6的调用应用内解析列表的支持, 需要配合直连分析一起使用,参考cjt影视和极品直连
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user