Skip to content

Commit

Permalink
fix #105, 修复douyin liver
Browse files Browse the repository at this point in the history
  • Loading branch information
nICEnnnnnnnLee committed Jan 7, 2023
1 parent a5616a0 commit d7faa9b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public class RoomDealerDouyin4User extends RoomDealer {

final public static String liver = "douyin";

final static Pattern pJson = Pattern.compile("<script id=\"RENDER_DATA\".*>(.*?%7D)</script>");
final static Pattern pJson = Pattern.compile("<script id=\"RENDER_DATA\".*?>(.*?%7D)</script>");
final static Pattern pShortId = Pattern.compile("live.douyin.com/([0-9]+)");
final static Pattern pWebcastId = Pattern.compile("webcast.amemv.com/webcast/reflow/([0-9]+)");

Expand Down Expand Up @@ -84,7 +84,7 @@ public RoomInfo getRoomInfo(String shortId) {
}
} catch (IOException e) {
System.err.println("不支持这种短链接的解析!!");
System.exit(-1);
throw new RuntimeException(e);
}
}

Expand Down

0 comments on commit d7faa9b

Please sign in to comment.