mirror of
https://github.com/Xinrea/bili-shadowreplay.git
synced 2025-11-25 04:22:24 +08:00
feat: play as vod when paused (close #63)
This commit is contained in:
@@ -1033,7 +1033,7 @@ impl super::Recorder for BiliRecorder {
|
|||||||
|
|
||||||
/// timestamp is the id of live stream
|
/// timestamp is the id of live stream
|
||||||
async fn m3u8_content(&self, live_id: &str) -> String {
|
async fn m3u8_content(&self, live_id: &str) -> String {
|
||||||
if *self.live_id.read().await == live_id {
|
if *self.live_id.read().await == live_id && *self.current_record.read().await {
|
||||||
self.generate_live_m3u8().await
|
self.generate_live_m3u8().await
|
||||||
} else {
|
} else {
|
||||||
self.generate_archive_m3u8(live_id).await
|
self.generate_archive_m3u8(live_id).await
|
||||||
|
|||||||
Reference in New Issue
Block a user