
    V|hM                     >    S SK r SSKJr  SSKJrJr   " S S\5      rg)    N   )InfoExtractor   )strip_or_nonetraverse_objc            	       b    \ rS rSrSrSrSSSSSS	/ S
QS.S.SSSSSS	/ SQS.S./rSrSrS r	Sr
g)BlerpIE   blerpz=https?://(?:www\.)?blerp\.com/soundbites/(?P<id>[0-9a-zA-Z]+)z5https://blerp.com/soundbites/6320fe8745636cb4dd677a5a6320fe8745636cb4dd677a5az0Samsung Galaxy S8 Over the Horizon Ringtone 2016
luminousaj5fb81e51aa66ae000c395478mp3)samsunggalaxys8zover the horizon2016ringtone)idtitleuploaderuploader_idexttags)url	info_dictz5https://blerp.com/soundbites/5bc94ef4796001000498429f5bc94ef4796001000498429fYee1796173226783539205ba99cf71386730004552c42)YEEYEETzwo ha haah catchy tune yeeyeewebBitePageGetBiteai	  query webBitePageGetBite($_id: MongoID!) {
            web {
                biteById(_id: $_id) {
                    ...bitePageFrag
                    __typename
                }
                __typename
            }
        }

        fragment bitePageFrag on Bite {
            _id
            title
            userKeywords
            keywords
            color
            visibility
            isPremium
            owned
            price
            extraReview
            isAudioExists
            image {
                filename
                original {
                    url
                    __typename
                }
                __typename
            }
            userReactions {
                _id
                reactions
                createdAt
                __typename
            }
            topReactions
            totalSaveCount
            saved
            blerpLibraryType
            license
            licenseMetaData
            playCount
            totalShareCount
            totalFavoriteCount
            totalAddedToBoardCount
            userCategory
            userAudioQuality
            audioCreationState
            transcription
            userTranscription
            description
            createdAt
            updatedAt
            author
            listingType
            ownerObject {
                _id
                username
                profileImage {
                    filename
                    original {
                        url
                        __typename
                    }
                    __typename
                }
                __typename
            }
            transcription
            favorited
            visibility
            isCurated
            sourceUrl
            audienceRating
            strictAudienceRating
            ownerId
            reportObject {
                reportedContentStatus
                __typename
            }
            giphy {
                mp4
                gif
                __typename
            }
            audio {
                filename
                original {
                    url
                    __typename
                }
                mp3 {
                    url
                    __typename
                }
                __typename
            }
            __typename
        }

        c                    U R                  U5      nU R                  U R                  SU0S.nSS0nU R                  SU[        R
                  " U5      R                  5       US9nUS   S   S	   nUS   US
   S   S   US   [        US[        S9[        US[        S9S[        [        S [        [        [        US[        S9=(       d    / 5      5      =(       d    S 5      S.$ )N_id)operationNamequery	variableszContent-Typezapplication/jsonzhttps://api.blerp.com/graphql)dataheadersr*   webbiteByIdaudior   r   r   )ownerObjectusername)expected_type)r/   r&   userKeywords)r   r   r   r   r   r   r   )	_match_id_GRAPHQL_OPERATIONNAME_GRAPHQL_QUERY_download_jsonjsondumpsencoder   r   listfiltermap)selfr   audio_idr*   r+   json_result	bite_jsons          P/home/james-whalen/.local/lib/python3.13/site-packages/yt_dlp/extractor/blerp.py_real_extractBlerpIE._real_extract   s   >>#& "88((x
 .
 ))+XD!((*G * =  '.z:	 E"W%e,U3w'$Y0K[hi'	3IYfgc-,yR`pt:u:{y{&}~  G  CG  H
 	
     N)__name__
__module____qualname____firstlineno__IE_NAME
_VALID_URL_TESTSr4   r5   rB   __static_attributes__rE   rD   rA   r	   r	      sm    GQJF,G$5W

 G,,5H

F, 2e	 P
rD   r	   )r7   commonr   utilsr   r   r	   rE   rD   rA   <module>rP      s     ! /_
m _
rD   