mirror of
https://github.com/home-assistant/core.git
synced 2025-07-30 18:58:04 +02:00
Fix playback for encrypted Reolink files (#138852)
This commit is contained in:
@ -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
|
||||||
|
Reference in New Issue
Block a user