diff options
author | Chocobozzz <me@florianbigard.com> | 2022-12-30 15:05:14 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-12-30 15:05:14 +0100 |
commit | 54db8e3d5c09fedc82d8421529c81255760a5ac2 (patch) | |
tree | 5fc316042884ff6ae9b31e51be61819acc5b42c3 /server/lib/live/live-manager.ts | |
parent | fc83f323a85112a0f71879b6936ecfbd34e7f2e6 (diff) | |
download | PeerTube-54db8e3d5c09fedc82d8421529c81255760a5ac2.tar.gz PeerTube-54db8e3d5c09fedc82d8421529c81255760a5ac2.tar.zst PeerTube-54db8e3d5c09fedc82d8421529c81255760a5ac2.zip |
Fix P2P with object storage
Diffstat (limited to 'server/lib/live/live-manager.ts')
-rw-r--r-- | server/lib/live/live-manager.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/lib/live/live-manager.ts b/server/lib/live/live-manager.ts index 5e459f3c3..9ea983119 100644 --- a/server/lib/live/live-manager.ts +++ b/server/lib/live/live-manager.ts | |||
@@ -483,12 +483,12 @@ class LiveManager { | |||
483 | playlist.p2pMediaLoaderPeerVersion = P2P_MEDIA_LOADER_PEER_VERSION | 483 | playlist.p2pMediaLoaderPeerVersion = P2P_MEDIA_LOADER_PEER_VERSION |
484 | playlist.type = VideoStreamingPlaylistType.HLS | 484 | playlist.type = VideoStreamingPlaylistType.HLS |
485 | 485 | ||
486 | playlist.assignP2PMediaLoaderInfoHashes(video, allResolutions) | ||
487 | |||
488 | playlist.storage = CONFIG.OBJECT_STORAGE.ENABLED | 486 | playlist.storage = CONFIG.OBJECT_STORAGE.ENABLED |
489 | ? VideoStorage.OBJECT_STORAGE | 487 | ? VideoStorage.OBJECT_STORAGE |
490 | : VideoStorage.FILE_SYSTEM | 488 | : VideoStorage.FILE_SYSTEM |
491 | 489 | ||
490 | playlist.assignP2PMediaLoaderInfoHashes(video, allResolutions) | ||
491 | |||
492 | return playlist.save() | 492 | return playlist.save() |
493 | } | 493 | } |
494 | 494 | ||