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

license response status: <Response [406]> #86

Open
hatnaa1 opened this issue May 17, 2023 · 0 comments
Open

license response status: <Response [406]> #86

hatnaa1 opened this issue May 17, 2023 · 0 comments
Labels
add site support New feature request

Comments

@hatnaa1
Copy link

hatnaa1 commented May 17, 2023

When I query the following license server https://looktv.mn/api/wbe/v2/consumer/licenses
I got as response the following error messages
license response status: <Response [406]>

license response status: <Response [406]>
server reports: Not Acceptable
server did not issue license, make sure you have correctly pasted all the required headers in the headers.py. Also check json/raw params of POST request.

URL used:

MPD URL :https://p1-edge1.looktv.mn/session/768ff2aa-f46e-11ed-ba35-000c29500727/e8k4to/__cl/s:storage2/__c/v/2/c/3/v_erelhegguravs01_2c3e742fa8d0757f22a444867a90c5d4/__op/dash-default/__dci/ErelhegGuravS01E24/__f/manifest.mpd
License URL:https://looktv.mn/api/wbe/v2/consumer/licenses

Headers

import requests

headers = {
    'authority': 'looktv.mn',
    'accept': 'application/vnd.beenius+json',
    'accept-language': 'en,ru;q=0.9,en-US;q=0.8',
    'authorization': 'Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6InB1YmxpYzowODYxZTUwYS1jN2Y2LTRjMjgtOGU5My1hODc2MzM0NjU5MTUiLCJ0eXAiOiJKV1QifQ.eyJhdWQiOltdLCJjbGllbnRfaWQiOiJwdWJsaWMtY2xpZW50IiwiZXhwIjoxNjg0MzE1NDcxLCJleHQiOnsicmVnaW9uSWRzIjpbIjQxIl0sInJvbGVzIjpbIkNPTlNVTUVSIl0sInR5cGUiOiJTVUJTQ1JJQkVSIiwidXNlcklkIjoiOTY2ZTgwOTktMmFjOC00YTkxLTg3YmUtMDBmY2MxYzBkYzEwIn0sImlhdCI6MTY4NDMxMTg3MSwiaXNzIjoiaHR0cDovL2JzLWh5ZHJhLXB1YmxpYy5pbmZyYS1wcm9kLyIsImp0aSI6IjllMmI1ODc4LTAxODctNDhlYy1iNmY3LThkZDVlMzFkZmY2MSIsIm5iZiI6MTY4NDMxMTg3MSwic2NwIjpbIm9mZmxpbmUiXSwic3ViIjoiYzRiYjMzODAtZDg1Mi00ODIyLTg3ZWItNDNlY2MwOTZlN2QwIn0.bMCesBHKz9N7IP_8qT7m0fEhvWRZt1PEZzSQi2VJHM5AHEtMhBGitjgpKBfsR0673_oS-R_M6s2mLeEsBWMc1bfwhGU4QAJNJVdedYjes8tzBahK-b3Kl8r3sTdAT2z0-MN6kXMZOvlAUN6_BxJOzqegpAdRD7eyNS4ByeGMB0e4QbMW4DonDGk1PafH1AfUbW1JQQWAnx1Oe7T_l5IxZkOEtWnPcDYTc8ubKpOU0EAekr1t9pi2YXGmr0Tj6cMya5xwI1fuKsxzTS0_EafTFmWZ9milNIIMTK4hxiLwAwlBI3Mxn_0Y36D5VYcxSNZFOYyEJjH_e40l5UdK_MlyYO878Lq9DtizCYvGtFQV7UyZ7whntOWsDm6J_lp5P_-TuXbH9RHZ3nr92n4Je9MXDROx4BWkwdN7Tp8o3Eq-Bj1n4uN_rcT1Ckpvn9qpqWyGktWiKCXil3pQVdXqGSj6DhwmYiwciSB9Z-LIJjiLmjdK2Hznhb9tuZua7p7g8UPt16A8A5eN4cuCDXQoAcpMzx0VfdgtaBmZABkz9e-XbMu8UZB-sJc_igWU-MBU_wvz2gZ9EVjBQlNUsVw9xcmoImrNhi70TRRlt2NFor1xs_jv0ukmxM70YS8KuTM4j24xhkYgo8NJWOVEztppijgoIf4X-2NMvt1F3R7weFvYYWs',
    'beenius-device-uid': 'ac0f18b9-856d-4b53-9f6f-84a7d1f614d0',
    'beenius-device-uuid': 'ac0f18b9-856d-4b53-9f6f-84a7d1f614d0',
    'beenius-geo-hash': 'e66a2532618cbaec38dc0b8ce32133fd',
    'beenius-profile-id': '2347601',
    'beenius-profile-uid': '4f581724-ed9f-49e9-94f9-3679b9427b77',
    'beenius-region-id': '41',
    'beenius-subscriber-id': '966e8099-2ac8-4a91-87be-00fcc1c0dc10',
    'referer': 'https://looktv.mn/vod/playout/default_vod_library_region_41/cm-c2253515-f781-4935-b612-48c378334dca&mc2253515-f781-4935-b612-48c378334dca/play',
    'sec-ch-ua': '"Google Chrome";v="113", "Chromium";v="113", "Not-A.Brand";v="24"',
    'sec-ch-ua-mobile': '?0',
    'sec-ch-ua-platform': '"Windows"',
    'sec-fetch-dest': 'empty',
    'sec-fetch-mode': 'cors',
    'sec-fetch-site': 'same-origin',
    'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36',
}

response = requests.get('https://looktv.mn/api/wbe/v2/consumer/licenses', headers=headers)

<cenc:pssh>AAAAdXBzc2gAAAAA7e+LqXnWSs6jyCfc1R0h7QAAAFUIARIQWqOzN8rVPwa+R0iPyMlNFBoIY2FzdGxhYnMiLGV5SmhjM05sZEVsa0lqb2lSWEpsYkdobFowZDFjbUYyVXpBeFJUSTBJbjA9MgdkZWZhdWx0</cenc:pssh>

@hatnaa1 hatnaa1 added the add site support New feature request label May 17, 2023
@hatnaa1 hatnaa1 changed the title Add [site_name] support license response status: <Response [406]> May 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
add site support New feature request
Projects
None yet
Development

No branches or pull requests

1 participant