Hi everybody, I'm working on Emesene 2 using Papyon libs. I've found a bug regarding preview image during file transfers...Looking at the Papyon code I've found the problem in msnp2p.filetransfer.py. In this file the class FileTransferSession has this method to fetch the context def parse_context(self, context): try: info = struct.unpack("<5I", context[0:20]) self._size = info[2] self._has_preview = not bool(info[4]) self._filename = unicode(context[20:570], "utf-16-le").rstrip("\x00") except: raise FTParseError(context) but preview attribute is not set, and remains constantly None, even if has_preview attribute is True.. Bests
Created attachment 42352 [details] [review] Modification in papyon.msnp2p.filetransfer.py to show preview Hi all, I've modified file papyon.msnp2p.filetransfer.py to show previews...This patch has been tested successfully in Emesene 2 development. Please, modifiy this file...Regards..
Created attachment 42369 [details] [review] Added control whether preview is present in papyon.msnp2p.filetransfer.py to show preview Hi all, I missed to control if preview is present before catch it...Bests
Created attachment 42731 [details] [review] Added preview sending Sending and receiving preview now works well :)
Created attachment 43628 [details] [review] Preview fix in patch format I've transformed all my modifications in a patch format...
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.