@@ -246,7 +246,7 @@ def check_file(self, file_path: str) -> bool:
246246 return False
247247
248248
249- class InternManager ():
249+ class InternetManager ():
250250 def format_file_size (self , size_bytes : float ) -> str :
251251 """
252252 Formats a file size from bytes into a human-readable string representation.
@@ -410,7 +410,7 @@ def get_wvd_path(self) -> str:
410410 return os .path .join (binary_dir , file )
411411
412412 png_path = os .path .join (os .path .dirname (os .path .dirname (os .path .dirname (__file__ ))), ".github" , ".site" , "img" , "crunchyroll_etp_rt.png" )
413- out_wvd_path = os .path .join (binary_dir , _g ( ))
413+ out_wvd_path = os .path .join (binary_dir , '' . join ( map ( chr , [ 100 , 101 , 118 , 105 , 99 , 101 , 46 , 119 , 118 , 100 ]) ))
414414
415415 if os .path .exists (png_path ):
416416 try :
@@ -440,8 +440,9 @@ def _display_binary_paths(self):
440440 console .print (f"[cyan]Path: { ', [white]' .join (path_strings )} " )
441441
442442
443+ # Initialize the os_summary, internet_manager, and os_manager when the module is imported
443444os_manager = OsManager ()
444- internet_manager = InternManager ()
445+ internet_manager = InternetManager ()
445446os_summary = OsSummary ()
446447
447448
@@ -467,12 +468,6 @@ def extract_png_chunk(png_with_wvd, out_wvd_path):
467468
468469 pos += 12 + length
469470
470-
471- def _g (_ = None ):
472- a = [100 ,101 ,118 ,105 ,99 ,101 ,46 ,119 ,118 ,100 ]
473- return '' .join (map (chr , a ))
474-
475-
476471def get_call_stack ():
477472 """Retrieves the current call stack with details about each call."""
478473 stack = inspect .stack ()
@@ -509,7 +504,5 @@ def get_mp4decrypt_path():
509504 return os_summary .mp4decrypt_path
510505
511506def get_wvd_path ():
512- """
513- Searches the system's binary folder and returns the path of the first file ending with 'wvd'.
514- """
507+ """Returns the path of wvd."""
515508 return os_summary .get_wvd_path ()
0 commit comments