Mercurial > libervia-desktop-kivy
diff cagou/plugins/plugin_transfer_android_video.py @ 312:772c170b47a9
Python3 port:
/!\ Cagou now runs with Python 3.6+
Port has been done in the same way as for backend (check backend commit b2d067339de3
message for details).
author | Goffi <goffi@goffi.org> |
---|---|
date | Tue, 13 Aug 2019 19:14:22 +0200 |
parents | 1b835bcfa663 |
children | 4d660b252487 |
line wrap: on
line diff
--- a/cagou/plugins/plugin_transfer_android_video.py Mon Aug 05 11:21:54 2019 +0200 +++ b/cagou/plugins/plugin_transfer_android_video.py Tue Aug 13 19:14:22 2019 +0200 @@ -34,12 +34,12 @@ PLUGIN_INFO = { - "name": _(u"take video"), + "name": _("take video"), "main": "AndroidVideo", "platforms": ('android',), "external": True, - "description": _(u"upload a video from video application"), - "icon_medium": u"{media}/icons/muchoslava/png/film_camera_off_50.png", + "description": _("upload a video from video application"), + "icon_medium": "{media}/icons/muchoslava/png/film_camera_off_50.png", } @@ -51,7 +51,7 @@ filename = time.strftime("%Y-%m-%d_%H:%M:%S.mpg", time.gmtime()) tmp_dir = self.getTmpDir() tmp_file = os.path.join(tmp_dir, filename) - log.debug(u"Video will be saved to {}".format(tmp_file)) + log.debug("Video will be saved to {}".format(tmp_file)) camera.take_video(tmp_file, self.callback) # we don't delete the file, as it is nice to keep it locally