Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Access to stream-cdn.gaana.com was denied #8

Open
kavinduraisamy opened this issue Jan 15, 2021 · 0 comments
Open

Access to stream-cdn.gaana.com was denied #8

kavinduraisamy opened this issue Jan 15, 2021 · 0 comments

Comments

@kavinduraisamy
Copy link

kavinduraisamy commented Jan 15, 2021

Hi @cyberboysumanjay,

I tried to get the stream URL for https://gaana.com/song/piriyadha-enna but the streaming url which i got from this api throws the access denied exception.

So I checekd 'Gaana' html source. It has a past exipry time. This behaviour is observed for few songs. I checekd it for few more songs, some of them are having the future time in the 'expiry time' field (those URLs working fine). So I assume that the encrypted message (Stream URL) which is avaiable in the gaana html source is already expired for few songs.

I don't have a proper understanding about that encrypted message, what purpose gaana having this value and why it is already expired for few songs and few are not expired. So could you please help me to understand further about this encrypted message ? or How to get the non expired stream URL ?

Request URL: http://127.0.0.1:5000/result/?url=https://gaana.com/song/piriyadha-enna

Response: (Modified the python program to return the complete object of 'enc_message' to verify the expiry time
[ { "album": "Pattas", "artist": "Vijay Yesudas, Niranjana", "bitrate": "128", "code": { "bitRate": "128", "expiryTime": 1610659472, "message": "ROSHjXMk9zcCishvbC4sQYnxXvbrmWDWyyuN3mr9w98yn9qyW98gfPEkHDMbhtAeGkgZ3DkutSn7WXkxnDLYMB3W45gEeBt+6oFxbnRxgewCsff7MGsUCGpQfidj9Qt/pVTU0eYxyM7pFF3saff02mmGf5uaz7msAOzWppvLjYxkxL+3mXX86Mx50yNPewPMKf5l/FMc2rcpxgn5HhlVww==" }, "duration": "3min 40sec", "gaana_url": "https://gaana.com/song/piriyadha-enna", "language": "Tamil", "link": "https://stream-cdn.gaana.com/songs/45/2930945/29180691/29180691_128.mp4.xvod/master.m3u8?sign=1610623472-Ag2VTw0E6i-0-eae8268cf26e46891ab059f3b0841d2b", "released": "Dec 28, 2020", "status": true, "thumb": "https://a10.gaanacdn.com/images/albums/45/2930945/crop_640x640_1577536722_2930945.jpg", "title": "Piriyadha Enna" } ]

Response from the stream URL:

Access to stream-cdn.gaana.com was deniedYou don't have authorisation to view this page.
HTTP ERROR 403

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant