mirror of
https://github.com/home-assistant/core.git
synced 2025-07-26 22:57:17 +00:00
Fix playback for encrypted Reolink files (#138852)
This commit is contained in:
parent
97c558b694
commit
1733f5d3fb
@ -71,7 +71,7 @@ class ReolinkVODMediaSource(MediaSource):
|
|||||||
host = get_host(self.hass, config_entry_id)
|
host = get_host(self.hass, config_entry_id)
|
||||||
|
|
||||||
def get_vod_type() -> VodRequestType:
|
def get_vod_type() -> VodRequestType:
|
||||||
if filename.endswith(".mp4"):
|
if filename.endswith((".mp4", ".vref")):
|
||||||
if host.api.is_nvr:
|
if host.api.is_nvr:
|
||||||
return VodRequestType.DOWNLOAD
|
return VodRequestType.DOWNLOAD
|
||||||
return VodRequestType.PLAYBACK
|
return VodRequestType.PLAYBACK
|
||||||
|
Loading…
x
Reference in New Issue
Block a user