From ce089617dfef77179537e66cf8f368d1f7353754 Mon Sep 17 00:00:00 2001 From: N07070 Date: Tue, 17 Mar 2015 15:16:10 +0100 Subject: [PATCH] Update snap.py Added possible fixe. --- snapchat_bots/snap.py | 1 + 1 file changed, 1 insertion(+) diff --git a/snapchat_bots/snap.py b/snapchat_bots/snap.py index df70511..2eb83ee 100755 --- a/snapchat_bots/snap.py +++ b/snapchat_bots/snap.py @@ -90,6 +90,7 @@ def __init__(self, **opts): self.file = create_temporary_file(suffix) if self.media_type is MEDIA_TYPE_VIDEO or self.media_type is MEDIA_TYPE_VIDEO_WITHOUT_AUDIO: + self.file = open(video_filename, 'r+') self.file.write(data) self.file.flush()