mirror of
https://github.com/sigma67/ytmusicapi.git
synced 2026-04-25 15:26:01 +03:00
[GH-ISSUE #278] getting invalid streaming URLs despite passing valid videoId and signatureTimestamp to get_song #215
Labels
No labels
a/b
bug
documentation
enhancement
good first issue
help wanted
invalid
pull-request
question
wontfix
yt-error
yt-update
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ytmusicapi#215
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @totallynotadi on GitHub (Jun 8, 2022).
Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/278
hello,
so i tried to fetch the stream URL for a video with id As_4JTmHuW4 and passed a signatureTimestamp derived from
ytmusic.get_signatureTimestamp(ytmusic.get_basejs_url())to get_songthe resulting streamign URLs however were invalid
this is the one-lines used for the get_song call
song = ytmusic.get_song(videoId='As_4JTmHuW4', signatureTimestamp=ytmusic.get_signatureTimestamp(ytmusic.get_basejs_url()))this was the string found in the signatureCipher property of the resulting song's streamingData
s=YOAQOAOq0QJ8wRPIhAOhjTPoVIw7oWjwD7VycYrCWpeAAnG-pIQZUyDqc45nZAiATmMQwUtzuh7Q4x0if1oGp0f8fePNz3LuGzqQXlpo8-Q%3D%3D&sp=sig&url=https://rr3---sn-ci5gup-cvhy.googlevideo.com/videoplayback%3Fexpire%3D1654723612%26ei%3DvL-gYoz_Fcaag8UPociIiAc%26ip%3D2401%253A4900%253A550c%253Aac40%253Ab55e%253Aef2f%253A1cec%253Aac8b%26id%3Do-ANbeNCegziqoO4NNOH7q1a-nQDOC4EyWsclryWV6F_pV%26itag%3D22%26source%3Dyoutube%26requiressl%3Dyes%26mh%3DXE%26mm%3D31%252C29%26mn%3Dsn-ci5gup-cvhy%252Csn-ci5gup-cvhr%26ms%3Dau%252Crdu%26mv%3Dm%26mvi%3D3%26pl%3D44%26gcr%3Din%26initcwndbps%3D188750%26spc%3D4ocVC4hhzjZIHPqPTq4FEzKHoptxgJ5ZqNasUQ2QoO6z%26vprv%3D1%26mime%3Dvideo%252Fmp4%26ns%3DeB8LI9HOLP8CjP600QsMr2IG%26cnr%3D14%26ratebypass%3Dyes%26dur%3D181.719%26lmt%3D1576954320212805%26mt%3D1654701663%26fvip%3D7%26fexp%3D24001373%252C24007246%26c%3DWEB_REMIX%26txp%3D5532432%26n%3Dd6XfckbLyCESze2QzMH0%26sparams%3Dexpire%252Cei%252Cip%252Cid%252Citag%252Csource%252Crequiressl%252Cgcr%252Cspc%252Cvprv%252Cmime%252Cns%252Ccnr%252Cratebypass%252Cdur%252Clmt%26lsparams%3Dmh%252Cmm%252Cmn%252Cms%252Cmv%252Cmvi%252Cpl%252Cinitcwndbps%26lsig%3DAG3C_xAwRAIgUQYGjXRSmyqhd99Hb1LoAxIBxuI9WfTMHPuG9M-8RSkCIF-7Z6fN5ibWviApOYMcCRkXfhDqckTGJequpDapCa39if i'm not missing something, the url part is supposed to be a valid streaming url, please let me know if something's wrong
@sigma67 commented on GitHub (Jun 13, 2022):
Unfortunately I don't know much about streaming URLs, tagging some people who might know more.
@KoljaWindeler @impliedchaos
@impliedchaos commented on GitHub (Jun 13, 2022):
@addyett - Those streaming URLs still need to be de-obfuscated before using. You can try youtube-dl or pytube to do this.
I do something like