Skip to content

Commit 34e1079

Browse files
author
ghawken
committed
0.4.6
AudioPath returns caf file without any conversion
1 parent f1c2914 commit 34e1079

File tree

2 files changed

+3
-14
lines changed

2 files changed

+3
-14
lines changed

iMessage.indigoPlugin/Contents/Info.plist

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<plist version="1.0">
44
<dict>
55
<key>PluginVersion</key>
6-
<string>0.4.5</string>
6+
<string>0.4.6</string>
77
<key>ServerApiVersion</key>
88
<string>2.0.0</string>
99
<key>IwsApiVersion</key>

iMessage.indigoPlugin/Contents/Server Plugin/plugin.py

+2-13
Original file line numberDiff line numberDiff line change
@@ -685,18 +685,7 @@ def process_getaudiofilepath(self): #also converts to mp3
685685
file_touse = file_touse[-1] # last item in list
686686
file_touse = os.path.expanduser(file_touse)
687687
self.logger.debug(u'Expanded FilePath:' + unicode(file_touse))
688-
689-
ffmpegpath = self.pathtoPlugin + '/ffmpeg/ffmpeg'
690-
mp4fileout = file_touse[:-3] + 'mp3'
691-
692-
argstopass = '"' + ffmpegpath + '"' + ' -i "' + str(file_touse) + '" -q:a 0 "' + str(mp4fileout) + '"'
693-
p1 = subprocess.Popen([argstopass], shell=True)
694-
695-
output, err = p1.communicate()
696-
self.logger.debug(unicode(argstopass))
697-
self.logger.debug('ffmpeg return code:' + unicode(p1.returncode) + ' output:' + unicode(
698-
output) + ' error:' + unicode(err))
699-
return mp4fileout
688+
return file_touse
700689

701690
#self.updateVar('AudioPath', mp4fileout)
702691

@@ -728,7 +717,7 @@ def process_convert_audiofile(self):
728717
self.logger.debug('ffmpeg return code:' + unicode(p1.returncode) + ' output:' + unicode(
729718
output) + ' error:' + unicode(err))
730719
if self.saveVariables:
731-
self.updateVar('AudioPath', mp4fileout)
720+
self.updateVar('AudioPath', file_touse)
732721

733722
except Exception as e:
734723
self.logger.exception(u'Caught Exception within ffmpeg conversion')

0 commit comments

Comments
 (0)