txa-m 2.0.1__py3-none-any.whl → 2.0.2__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: txa-m
3
- Version: 2.0.1
3
+ Version: 2.0.2
4
4
  Summary: A modern, high-speed downloader for MediaFire files and folders
5
5
  Author: TXA
6
6
  Classifier: Programming Language :: Python :: 3
@@ -0,0 +1,8 @@
1
+ txa_mediafire/__init__.py,sha256=vJfxJh8-WpzNM9GvoKORSBDfF1UdJb6sHUmP2KjAQ98,28
2
+ txa_mediafire/cli.py,sha256=s-67E9JqrfX5xiAhDxL9fTZV3mtl8-z7Buup0_TKQL0,28687
3
+ txa_mediafire/translations.json,sha256=WlSa55TS4AVN2P1ackM3-GVK5hOQFszxllGwFwvzG48,4242
4
+ txa_m-2.0.2.dist-info/METADATA,sha256=o5LwdqivT-0nEgGqXSg17OMni4FYYEaV4AWnq3vWe28,3674
5
+ txa_m-2.0.2.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
6
+ txa_m-2.0.2.dist-info/entry_points.txt,sha256=cDQgfUn0g87jECRW-pi0P4nAhZ5iWf7OUrkt3oklnyw,49
7
+ txa_m-2.0.2.dist-info/top_level.txt,sha256=-xUoP0BsB9fBFX_zBvgJ6vjkqMkoFCyG498DgBJCm6M,14
8
+ txa_m-2.0.2.dist-info/RECORD,,
txa_mediafire/cli.py CHANGED
@@ -41,7 +41,7 @@ from rich.theme import Theme
41
41
  from rich import box
42
42
 
43
43
  # --- Configuration ---
44
- APP_VERSION = "2.0.1"
44
+ APP_VERSION = "2.0.2"
45
45
 
46
46
  # Default ignore lists
47
47
  IGNORE_EXTENSIONS = {".pyc", ".pyo", ".pyd", ".DS_Store", "Thumbs.db"}
@@ -238,13 +238,44 @@ def perform_update():
238
238
  console.print(f"[bold green]{T['no_update']}[/bold green]")
239
239
  return
240
240
 
241
- console.print(f"[bold info]{T['updating']} {latest}...[/bold info]")
242
- subprocess.check_call([sys.executable, "-m", "pip", "install", "--upgrade", "txa-m"])
243
- console.print(f"[bold success]{T['update_success']}[/bold success]")
244
- sys.exit(0)
245
- except subprocess.CalledProcessError as e:
246
- console.print(f"[bold red]Update failed:[/bold red] {e}")
247
- sys.exit(1)
241
+ cmd = [sys.executable, "-m", "pip", "install", "--upgrade", "txa-m"]
242
+
243
+ with console.status(f"[bold info]{T['updating']} {latest}...[/bold info]", spinner="dots") as status:
244
+ process = subprocess.Popen(
245
+ cmd,
246
+ stdout=subprocess.PIPE,
247
+ stderr=subprocess.STDOUT,
248
+ text=True,
249
+ encoding='utf-8',
250
+ errors='replace'
251
+ )
252
+
253
+ while True:
254
+ line = process.stdout.readline()
255
+ if not line and process.poll() is not None:
256
+ break
257
+ if line:
258
+ line = line.strip()
259
+ if not line: continue
260
+
261
+ # Filter output for cleaner log
262
+ if "Requirement already satisfied" in line:
263
+ # Show as transient status (overwrites previous status)
264
+ status.update(f"[dim]{line}[/dim]")
265
+ elif "txa-m" in line.lower() or "successfully" in line.lower():
266
+ # Important info: Print strictly
267
+ console.print(f" [green]>> {line}[/green]")
268
+ else:
269
+ # Other intermediate steps
270
+ status.update(f"[dim]{line}[/dim]")
271
+
272
+ if process.returncode == 0:
273
+ console.print(f"[bold success]{T['update_success']}[/bold success]")
274
+ sys.exit(0)
275
+ else:
276
+ console.print(f"[bold red]Update failed with code {process.returncode}[/bold red]")
277
+ sys.exit(1)
278
+
248
279
  except Exception as e:
249
280
  console.print(f"[bold red]An error occurred:[/bold red] {e}")
250
281
  sys.exit(1)
@@ -1,8 +0,0 @@
1
- txa_mediafire/__init__.py,sha256=vJfxJh8-WpzNM9GvoKORSBDfF1UdJb6sHUmP2KjAQ98,28
2
- txa_mediafire/cli.py,sha256=hXcqFeC7z29XjUYMiiFMezIqZWlwQYNhRkpuJFB8gOc,27411
3
- txa_mediafire/translations.json,sha256=WlSa55TS4AVN2P1ackM3-GVK5hOQFszxllGwFwvzG48,4242
4
- txa_m-2.0.1.dist-info/METADATA,sha256=SPIosFkc-SGwN-jQpEhqvf80gmDf30_zUh7vQrIasTQ,3674
5
- txa_m-2.0.1.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
6
- txa_m-2.0.1.dist-info/entry_points.txt,sha256=cDQgfUn0g87jECRW-pi0P4nAhZ5iWf7OUrkt3oklnyw,49
7
- txa_m-2.0.1.dist-info/top_level.txt,sha256=-xUoP0BsB9fBFX_zBvgJ6vjkqMkoFCyG498DgBJCm6M,14
8
- txa_m-2.0.1.dist-info/RECORD,,
File without changes