Skip to content

Commit

Permalink
add mpd url to debug output
Browse files Browse the repository at this point in the history
  • Loading branch information
Last-Order committed Dec 27, 2021
1 parent f1227d2 commit 66666f3
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "kkr",
"version": "1.2.9",
"version": "1.2.10",
"description": "",
"main": "index.js",
"scripts": {
Expand Down
1 change: 1 addition & 0 deletions src/core/downloader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ class Downloader extends EventEmitter {
if (!mpdUrl) {
throw new DownloadError("无法获得可用的直播地址 这可能不是一个直播视频");
}
this.logger.debug(`MPD URL: ${mpdUrl}`);
this.isLowLatencyLiveStream = isLowLatencyLiveStream;
this.isPremiumVideo = isPremiumVideo;
this.outputFilename = escapeFilename(`${title}.mp4`);
Expand Down
1 change: 1 addition & 0 deletions src/core/live_downloader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ class LiveDownloader {
this.logger.info(
`是否启用DVR: ${connectResult.isLiveDvrEnabled}; 低延迟视频: ${connectResult.isLowLatencyLiveStream}; 视频延迟模式: ${connectResult.latencyClass}; 是否为首播: ${connectResult.isPremiumVideo}`
);
this.logger.debug(`MPD URL: ${connectResult.mpdUrl}`);
this.isLiveDvrEnabled = connectResult.isLiveDvrEnabled;
this.isLowLatencyLiveStream = connectResult.isLowLatencyLiveStream;
this.latencyClass = connectResult.latencyClass;
Expand Down

0 comments on commit 66666f3

Please sign in to comment.