(self, media_type="image")
return api.http_get(
            self.sync.blink, url=url, stream=True, json=False, timeout=TIMEOUT_MEDIA,
        )
Download media (image or video).
Download media (image or video).
Download media ( image or video ) .
def get_media(self, media_type="image"):
        """Download media (image or video)."""
        url = self.thumbnail
        if media_type.lower() == "video":
            url = self.clip
        return api.http_get(
            self.sync.blink, url=url, stream=True, json=False, timeout=TIMEOUT_MEDIA,
        )
def get_media ( self , media_type = "image" ) : url = self . thumbnail if media_type . lower ( ) == "video" : url = self . clip return api . http_get ( self . sync . blink , url = url , stream = True , json = False , timeout = TIMEOUT_MEDIA , )