Skip to content

Commit

Permalink
fix tmp dir
Browse files Browse the repository at this point in the history
  • Loading branch information
yajrendrag committed Nov 14, 2024
1 parent 6e69386 commit 9cef96b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions source/subtitle_from_audio/changelog.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@

**<span style="color:#56adda">0.0.15</span>**
- fix tmp directory

**<span style="color:#56adda">0.0.14</span>**
- explicitly find audio stream
- write temp audio file to /tmp/unmanic
Expand Down
2 changes: 1 addition & 1 deletion source/subtitle_from_audio/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@
"on_worker_process": 2
},
"tags": "subtitle",
"version": "0.0.14"
"version": "0.0.15"
}
2 changes: 1 addition & 1 deletion source/subtitle_from_audio/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ def on_worker_process(data):
output_dir = os.path.dirname(original_file_path)
sfx = os.path.splitext(original_file_path)[1]
ffin = ffmpeg.input(original_file_path)
tmp_audio = '/tmp/subtitler/'+os.path.basename(original_file_path).replace(sfx,'.wav')
tmp_audio = '/tmp/unmanic/'+os.path.basename(original_file_path).replace(sfx,'.wav')
temp_audio_out = ffmpeg.output(ffin['a:'+str(astream)],tmp_audio,acodec="pcm_s16le",ar="44100",ac="2")
temp_audio_out.run(overwrite_output=True, quiet=True)

Expand Down

0 comments on commit 9cef96b

Please sign in to comment.