ffmpeg-normalize 1.32.2__py2.py3-none-any.whl → 1.32.3__py2.py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -596,6 +596,10 @@ class MediaFile:
596
596
  yield 100
597
597
  return
598
598
 
599
+ # track temp_dir for cleanup
600
+ temp_dir = None
601
+ temp_file = None
602
+
599
603
  # special case: if output is a null device, write directly to it
600
604
  if self.output_file == os.devnull:
601
605
  cmd.append(self.output_file)
@@ -617,6 +621,10 @@ class MediaFile:
617
621
  f"Moving temporary file from {temp_file} to {self.output_file}"
618
622
  )
619
623
  move(temp_file, self.output_file)
624
+ finally:
625
+ # clean up temp directory if it was created
626
+ if temp_dir and os.path.exists(temp_dir):
627
+ rmtree(temp_dir, ignore_errors=True)
620
628
 
621
629
  output = cmd_runner.get_output()
622
630
  # in the second pass, we do not normalize stream-by-stream, so we set the stats based on the
@@ -1 +1 @@
1
- __version__ = "1.32.2"
1
+ __version__ = "1.32.3"
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
2
- Name: ffmpeg-normalize
3
- Version: 1.32.2
1
+ Metadata-Version: 2.4
2
+ Name: ffmpeg_normalize
3
+ Version: 1.32.3
4
4
  Summary: Normalize audio via ffmpeg
5
5
  Home-page: https://github.com/slhck/ffmpeg-normalize
6
6
  Author: Werner Robitza
@@ -24,10 +24,22 @@ Requires-Python: >=3.9
24
24
  Description-Content-Type: text/markdown
25
25
  License-File: LICENSE
26
26
  Requires-Dist: tqdm
27
+ Requires-Dist: colorama; platform_system == "Windows"
27
28
  Requires-Dist: ffmpeg-progress-yield
28
29
  Requires-Dist: colorlog
29
30
  Requires-Dist: mutagen
30
- Requires-Dist: colorama; platform_system == "Windows"
31
+ Dynamic: author
32
+ Dynamic: author-email
33
+ Dynamic: classifier
34
+ Dynamic: description
35
+ Dynamic: description-content-type
36
+ Dynamic: home-page
37
+ Dynamic: keywords
38
+ Dynamic: license
39
+ Dynamic: license-file
40
+ Dynamic: requires-dist
41
+ Dynamic: requires-python
42
+ Dynamic: summary
31
43
 
32
44
  # ffmpeg-normalize
33
45
 
@@ -119,6 +131,11 @@ The only reason this project exists in its current form is because [@benjaoming]
119
131
  # Changelog
120
132
 
121
133
 
134
+ ## v1.32.3 (2025-05-30)
135
+
136
+ * Fix temp dir cleanup, fixes #284.
137
+
138
+
122
139
  ## v1.32.2 (2025-05-08)
123
140
 
124
141
  * Docs: reference changelog.
@@ -4,13 +4,13 @@ ffmpeg_normalize/_cmd_utils.py,sha256=iGzO3iOylDUOnx-FCKd84BMxiIhmIthxU1tg7kvf4S
4
4
  ffmpeg_normalize/_errors.py,sha256=brTQ4osJ4fTA8wnyMPVVYfGwJ0wqeShRFydTEwi_VEY,48
5
5
  ffmpeg_normalize/_ffmpeg_normalize.py,sha256=79wzFR4ZOgy-Wn0ywi8PNJzsrxiDSMKtJ6_auHxiQvo,11762
6
6
  ffmpeg_normalize/_logger.py,sha256=3Ap4Fxg7xGrzz7h4IGuNEf0KKstx0Rq_eLbHPrHzcrI,1841
7
- ffmpeg_normalize/_media_file.py,sha256=E1PugUYf-SyOAbtPkJ3UHNfrJR3Ed5KaO8OOT9UHh8k,25737
7
+ ffmpeg_normalize/_media_file.py,sha256=Nq99uIWNzYEIJvqtMdLSTheCfPuEz9RUI2TmOj5JTeY,26004
8
8
  ffmpeg_normalize/_streams.py,sha256=w-gzAFUbnoLiRABckUgYqdhVgidtEATNd3di-jiP9fU,20599
9
- ffmpeg_normalize/_version.py,sha256=WdfJcWchCw6txwQmjH_WAwImubvfgUZlGyLcv7_k8f4,23
9
+ ffmpeg_normalize/_version.py,sha256=sJB5QegETJ0pJBZy1_Y8qTpWDV41DuNG3trAjwSVFas,23
10
10
  ffmpeg_normalize/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
11
- ffmpeg_normalize-1.32.2.dist-info/LICENSE,sha256=mw5RQE6v4UXG_d2gYIQw9rq6jYWQCtzIs3fSm5sBSrs,1076
12
- ffmpeg_normalize-1.32.2.dist-info/METADATA,sha256=mZweBzs3rrgkjaVbr3H3jzaU4H3bMUO8MN0COu15ZTM,32758
13
- ffmpeg_normalize-1.32.2.dist-info/WHEEL,sha256=fS9sRbCBHs7VFcwJLnLXN1MZRR0_TVTxvXKzOnaSFs8,110
14
- ffmpeg_normalize-1.32.2.dist-info/entry_points.txt,sha256=X0EC5ptb0iGOxrk3Aa65dVQtvUixngLd_2-iAtSixdc,68
15
- ffmpeg_normalize-1.32.2.dist-info/top_level.txt,sha256=wnUkr17ckPrrU1JsxZQiXbEBUnHKsC64yck-MemEBuI,17
16
- ffmpeg_normalize-1.32.2.dist-info/RECORD,,
11
+ ffmpeg_normalize-1.32.3.dist-info/licenses/LICENSE,sha256=mw5RQE6v4UXG_d2gYIQw9rq6jYWQCtzIs3fSm5sBSrs,1076
12
+ ffmpeg_normalize-1.32.3.dist-info/METADATA,sha256=bWM7-_Ni3SAZ_sw6Yve2EuKSBFsl96eoQPZWtLs8z9A,33075
13
+ ffmpeg_normalize-1.32.3.dist-info/WHEEL,sha256=JNWh1Fm1UdwIQV075glCn4MVuCRs0sotJIq-J6rbxCU,109
14
+ ffmpeg_normalize-1.32.3.dist-info/entry_points.txt,sha256=X0EC5ptb0iGOxrk3Aa65dVQtvUixngLd_2-iAtSixdc,68
15
+ ffmpeg_normalize-1.32.3.dist-info/top_level.txt,sha256=wnUkr17ckPrrU1JsxZQiXbEBUnHKsC64yck-MemEBuI,17
16
+ ffmpeg_normalize-1.32.3.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.44.0)
2
+ Generator: setuptools (80.9.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py2-none-any
5
5
  Tag: py3-none-any