
    y9>i                     &    d Z ddlmZmZ d Zd ZdS )z)Archive commands for the shorten program.   )fileutilutilc           	          t          j        |          g}t          j        || d          }|                    ddt          j        |          dt          j        |           g           |ddifS )z'Decompress a SHN archive to a WAV file.z.wav)	extensionz-x-<shellT)r   shell_quoter   get_single_outfileextend)archivecompressioncmd	verbosityinteractiveoutdircmdlistoutfiles           Y/var/www/html/auto_sub_bot/venv/lib/python3.11/site-packages/patoolib/programs/shorten.pyextract_shnr      sw    $$%G)&'VLLLGNN	sD$W--sD4DW4M4MN   gt_%%    c           	         t          |          dk    rt          j        d          t          j        |          g}|                    dt          j        |           dt          j        |d                   g           |ddifS )z%Compress a WAV file to a SHN archive.   z,multiple filenames for shorten not supportedr   r       r	   T)lenr   PatoolErrorr
   r   )r   r   r   r   r   	filenamesr   s          r   
create_shnr      s    
9~~MNNN$$%GNN	dw''d.>y|.L.LM   gt_%%r   N)__doc__ r   r   r   r    r   r   <module>r"      sM    0 /        & & && & & & &r   