Fix Reolink Home Hub Pro playback (#142871)

Fix Home Hub Pro playback
This commit is contained in:
starkillerOG 2025-04-14 09:39:41 +02:00 committed by Franck Nijhof
parent c341b86520
commit 389297155d
No known key found for this signature in database
GPG Key ID: AB33ADACE7101952

View File

@ -70,7 +70,7 @@ class ReolinkVODMediaSource(MediaSource):
host = get_host(self.hass, config_entry_id)
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:
return VodRequestType.DOWNLOAD
return VodRequestType.PLAYBACK