
     i
                     |    d dl mZ d dlmZ d dlmZ  G d d          Z G d d          Z G d d	ee          Z	d
S )    )Enum)choice)USER_AGENTSc                   >    e Zd ZdZdZdZdZdZdZdZ	dZ
d	Zd
ZdZdZdS )	ShazamUrlzhttps://amp.shazam.com/discovery/v5/{language}/{endpoint_country}/{device}/-/tag/{uuid_1}/{uuid_2}?sync=true&webv3=true&sampling=true&connected=&shazamapiversion=v3&sharehub=true&hubv5minorversion=v5.1&hidelb=true&video=v3zvhttps://www.shazam.com/discovery/v5/{language}/{endpoint_country}/web/-/track/{track_id}?shazamapiversion=v3&video=v3 zhttps://www.shazam.com/services/amapi/v1/catalog/{endpoint_country}/playlists/{playlist_id}/tracks?limit={limit}&offset={offset}&l={language}&relate[songs]=artists,music-videosz0https://www.shazam.com/services/charts/locationszhttps://cdn.shazam.com/shazam/v3/{language}/{endpoint_country}/web/-/tracks/track-similarities-id-{track_id}?startFrom={offset}&pageSize={limit}&connected=&channel=zhttps://www.shazam.com/services/search/v4/{language}/{endpoint_country}/web/search?term={query}&limit={limit}&offset={offset}&types=artistszhttps://www.shazam.com/services/search/v3/{language}/{endpoint_country}/web/search?query={query}&numResults={limit}&offset={offset}&types=songsz5https://www.shazam.com/services/count/v2/web/track/{}z2https://www.shazam.com/services/count/v2/web/trackzWhttps://www.shazam.com/services/amapi/v1/catalog/{endpoint_country}/artists/{artist_id}z|https://www.shazam.com/services/amapi/v1/catalog/{endpoint_country}/artists/{artist_id}/albums?limit={limit}&offset={offset}zUhttps://www.shazam.com/services/amapi/v1/catalog/{endpoint_country}/albums/{album_id}N)__name__
__module____qualname__SEARCH_FROM_FILEABOUT_TRACKTOP_TRACKS_PLAYLIST	LOCATIONSRELATED_SONGSSEARCH_ARTISTSEARCH_MUSICLISTENING_COUNTERLISTENING_COUNTER_MANYSEARCH_ARTIST_V2ARTIST_ALBUMSARTIST_ALBUM_INFO     U/root/.openclaw/workspace/.venvs/songid/lib/python3.11/site-packages/shazamio/misc.pyr   r      s        	d 	4 
	: 
 CI	d 
	K 
	O  PQ 	b 	D 
 	` r   r   c                   $    e Zd ZdZdefdZd ZdS )RequestzEurope/Moscowlanguagec                     || _         d S N)r   )selfr   s     r   __init__zRequest.__init__4   s     r   c                 B    ddd| j         dt          t                    dS )NIPHONEz14.1.0z*/*zgzip, deflate)zX-Shazam-PlatformzX-Shazam-AppVersionAcceptzAccept-LanguagezAccept-Encodingz
User-Agent)r   r   r   )r   s    r   headerszRequest.headers7   s-    !)#+#}. --
 
 	
r   N)r   r	   r
   	TIME_ZONEstrr    r$   r   r   r   r   r   1   sC        I! ! ! ! !
 
 
 
 
r   r   c                   2    e Zd ZdZdZdZedd            ZdS )Deviceiphoneandroidwebreturnc                 D    t          | j        | j        | j        g          S r   )r   r"   ANDROIDWEB)clss    r   randomzDevice.randomG   s    sz3;8999r   N)r,   r(   )r   r	   r
   r"   r.   r/   classmethodr1   r   r   r   r(   r(   B   sA        FG
C: : : [: : :r   r(   N)
enumr   r1   r   shazamio.user_agentr   r   r   r&   r(   r   r   r   <module>r5      s                + + + + + +( ( ( ( ( ( ( (V
 
 
 
 
 
 
 
": : : : :S$ : : : : :r   