mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
parent
62a0932deb
commit
61f2251336
@ -70,7 +70,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", ".vref")):
|
if filename.endswith((".mp4", ".vref")) or host.api.is_hub:
|
||||||
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