Greyh4t / m3u8-Downloader-Go

m3u8 downloader with golang
47 stars 25 forks source link

bugfix: set the default key for the segment #8

Closed elnx closed 6 months ago

elnx commented 6 months ago

decrypting a segment without a key usually fails, if the playlist has one

Greyh4t commented 6 months ago

In this case, github.com/grafov/m3u8 seems to set the playlist key to the segment. Have you encountered a case that cannot be decrypted?

elnx commented 6 months ago

In this case, github.com/grafov/m3u8 seems to set the playlist key to the segment. Have you encountered a case that cannot be decrypted?

Yes, I used the latest code and found that only the first segment of the video can be played normally. After debugging, I found that except for the first segment, the keys of subsequent segments are all nil.