File tree 2 files changed +3
-14
lines changed
iMessage.indigoPlugin/Contents
2 files changed +3
-14
lines changed Original file line number Diff line number Diff line change 3
3
<plist version =" 1.0" >
4
4
<dict >
5
5
<key >PluginVersion </key >
6
- <string >0.4.5 </string >
6
+ <string >0.4.6 </string >
7
7
<key >ServerApiVersion </key >
8
8
<string >2.0.0 </string >
9
9
<key >IwsApiVersion </key >
Original file line number Diff line number Diff line change @@ -685,18 +685,7 @@ def process_getaudiofilepath(self): #also converts to mp3
685
685
file_touse = file_touse [- 1 ] # last item in list
686
686
file_touse = os .path .expanduser (file_touse )
687
687
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
700
689
701
690
#self.updateVar('AudioPath', mp4fileout)
702
691
@@ -728,7 +717,7 @@ def process_convert_audiofile(self):
728
717
self .logger .debug ('ffmpeg return code:' + unicode (p1 .returncode ) + ' output:' + unicode (
729
718
output ) + ' error:' + unicode (err ))
730
719
if self .saveVariables :
731
- self .updateVar ('AudioPath' , mp4fileout )
720
+ self .updateVar ('AudioPath' , file_touse )
732
721
733
722
except Exception as e :
734
723
self .logger .exception (u'Caught Exception within ffmpeg conversion' )
You can’t perform that action at this time.
0 commit comments