Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

下载m3u8文件时 merge false和setMergeHandler有问题 #423

Open
w13159584927 opened this issue Jul 18, 2019 · 1 comment

Comments

@w13159584927
Copy link

commented Jul 18, 2019

Aria版本

3.6.5

什么问题

用3.6.5的demo手动替换为自己的m3u8下载的url出现以下问题:

1.setMergeHandler方法进不去,
2..merge(false)后看不到下载的文件,文件夹为空。

如何复现此问题

设置的url有三个码率,且存在key。所以代码如下。

Aria.download(M3U8VodDLoadActivity.this)
.load("https://www.ilingdai.com/hls/5277/playlist/41bc2b88a93211e9aca5d32802ef90bd.m3u8?rnad=0")
.useServerFileName(true)
.setFilePath("/sdcard/111/m3u8Downloader/index.ts", true)
.asM3U8()
.setBandWidthUrlConverter(new IBandWidthUrlConverter() {
@override public String convert(String bandWidthUrl) {
return bandWidthUrl;
}
})
.setTsUrlConvert(new IVodTsUrlConverter() {
@override public List convert(String m3u8Url, List tsUrls) {
return tsUrls;
}
})
.setMergeHandler(new ITsMergeHandler() {
@override public boolean merge(@nullable M3U8KeyInfo keyInfo, List tsPath) {
return false;
}
})
.merge(false)
.start();

控制台日志

@w13159584927 w13159584927 changed the title merge false和setMergeHandler有问题 下载m3u8文件时 merge false和setMergeHandler有问题 Jul 18, 2019

@AriaLyy AriaLyy added bug and removed bug labels Jul 19, 2019

@w13159584927

This comment has been minimized.

Copy link
Author

commented Jul 22, 2019

1.用我的url的时候,merge(false)文件夹还是空的,如果不加merge(false)会生成一完整的ts文件。
2. ITsMergeHandler方法两种情况都不进。
3.merge(false)加不加都是输出一样的,解析的m3u8和下载部分都打印了。
4.提供个新的url: https://www.ilingdai.com/hls/5277/playlist/c8075578ac3911e9803780fc789088f2.m3u8?rnad=0 ps:时间长可能会过期,无法解析。
5.截图上传不上来。。。

AriaLyy added a commit that referenced this issue Jul 22, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.