Do not show file info for our placeholder image in the UI

This commit is contained in:
Alberto Sottile 2020-10-18 23:21:02 +02:00
parent 0a7dfc5e40
commit 99f9813f8d

View File

@ -79,3 +79,10 @@ class IinaPlayer(MpvPlayer):
self._setProperty(key, value)
self._listener.sendLine(["load-script", findResourcePath("syncplayintf.lua")])
super()._preparePlayer()
def _onFileUpdate(self):
# do not show file info for our placeholder image in Syncplay UI
if self._filename == "iina-bkg.png":
return
else:
super()._onFileUpdate()