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

server reports: {"code":100100,"message":"The request is invalid. Error while parsing: contentId. Parameter null not expected as an array"} #81

Open
cmoulliard opened this issue Oct 7, 2022 · 5 comments

Comments

@cmoulliard
Copy link

cmoulliard commented Oct 7, 2022

Issue

When I query the following license server https://rbm-rtbf.live.ott.irdeto.com/licenseServer/widevine/v1/rbm-rtbf/license, I got as response the following error messages

server reports: {"code":100100,"message":"The request is invalid. Error while parsing: contentId. Parameter null not expected as an array"}
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:

VIDEO URL: https://www.rtbf.be/auvio/detail_cobalt-l-envers-du-reve-electrique?id=2943776&t=649
MPD URL :  https://c9851ec-az-westeurope.fsly.cdn.ebsd.ericsson.net/rtbf/auvio/assets/2943776_6BA97Bb/materials/KaFVNUi0Gg_6BA97Bb/vod-idx-2.ism/.mpd?
License URL:  https://rbm-rtbf.live.ott.irdeto.com/licenseServer/widevine/v1/rbm-rtbf/license?contentId=2943776_6BA97Bb&keyId=7832df7f-bbd8-4082-9fb9-a1552efe6238&ls_session=eyJ0eXAiOiJKV1QiLCJraWQiOiIwOGIzODQwZS0wYThhLTQyYTItODNhNC03ZGM0Mzc0ZDJmYmEiLCJhbGciOiJIUzI1NiJ9.eyJhaWQiOiJyYm0tcnRiZiIsInN1YiI6IjhmZmZmNmYwMDI4ZTQ1ZmE5OTRmYTRlMDRiZTM0ZDJjXzZCQTk3QmIiLCJpYXQiOjE2NjUxNTk4MTksImV4cCI6MTY2NTE2MzQxOSwianRpIjoicE1abzlKd08wa2M4OFJyOFNjOU1vcWVMOUwxc1B3ZzVXS0lxUHVQbjVYVT0iLCJlbnQiOlt7ImVwaWQiOiJkZWZhdWx0IiwiYmlkIjoiYmVsZ2lhbl82QkE5N0JiIn1dLCJpc2UiOnRydWV9.T7NS1LasInS7QHczeOts6IfDpYqb2yFxZFNFo9mz4Ro

PSSH obtained: AAAAXHBzc2gAAAAA7e+LqXnWSs6jyCfc1R0h7QAAADwIARIQeDLff7vYQIKfuaFVLv5iOBoIdXNwLWNlbmMiGGVETGZmN3ZZUUlLZnVhRlZMdjVpT0E9PSoAMgA=

Headers.py file

import requests

headers = {
    'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Firefox/91.0',
    'Accept': '*/*',
    'Accept-Language': 'en-US,en;q=0.5',
    'Origin': 'https://www.rtbf.be',
    'Connection': 'keep-alive',
    'Referer': 'https://www.rtbf.be/',
    'Sec-Fetch-Dest': 'empty',
    'Sec-Fetch-Mode': 'cors',
    'Sec-Fetch-Site': 'cross-site',
    'Content-Type': 'application/x-www-form-urlencoded',
}

params = {
    'contentId': '2943776_6BA97Bb',
    'keyId': '7832df7f-bbd8-4082-9fb9-a1552efe6238',
    'ls_session': 'eyJ0eXAiOiJKV1QiLCJraWQiOiIwOGIzODQwZS0wYThhLTQyYTItODNhNC03ZGM0Mzc0ZDJmYmEiLCJhbGciOiJIUzI1NiJ9.eyJhaWQiOiJyYm0tcnRiZiIsInN1YiI6IjhmZmZmNmYwMDI4ZTQ1ZmE5OTRmYTRlMDRiZTM0ZDJjXzZCQTk3QmIiLCJpYXQiOjE2NjUxNTk4MTksImV4cCI6MTY2NTE2MzQxOSwianRpIjoicE1abzlKd08wa2M4OFJyOFNjOU1vcWVMOUwxc1B3ZzVXS0lxUHVQbjVYVT0iLCJlbnQiOlt7ImVwaWQiOiJkZWZhdWx0IiwiYmlkIjoiYmVsZ2lhbl82QkE5N0JiIn1dLCJpc2UiOnRydWV9.T7NS1LasInS7QHczeOts6IfDpYqb2yFxZFNFo9mz4Ro',
}

data = '\b��é+�T\nR\n<\b���x2ß�»Ø@��¹¡U.þb8�\busp-cenc"�eDLff7vYQIKfuaFVLv5iOA==*2\0����H�ÉjÌ|ì½:�,�:ò�ý�� �¥���0�8Ã�Ùª�B�+\n�license.widevine.com����¹�Ì�����3:/w*��À(¶5�\nJC�&()�ë�$Uõhýß´ÈèHÖh\0zoyô�Àô�TMßØø�Ö<�����W;qÌ�]ý´5L\bÊ�E«\xA0�òÓî\0H�ÁûnÈ�o/õ��sä½��!úÕMÈ �JíUÖÑÃkt�Ù��£�cøÀc9i¦¥ëÏ�ÀåÆ�6ÔÂV�y¬�<jÓRævÞ��¢�À�ëÈÂá[ÑSl\f�é¬Ý£¦(Ef&þË�}æ²éûëëf2Àÿ¼1�\fR|$*L§*®��¡Ì�Òá%?æ¯��Ó~%��n;á�m{é]�Zé����K�òyt\nF����´°�¼½ûòjgÇ\\»ð§õð��ìY�³;ÿ��­Ý@#ì6áÝL��½íÁö��}Ðt�ÐÚvSK�:�Mdì{°²/o�J)ó>må��`páÖo�aبR«9�Ëz)�C�æ°ï�`p­«QC�¬����zÔwmSz§��|=oýpC@Í.�¢ðAicýd6B*áà&�ÊL6noEÆ�ÜþNpZ�����X.]��¾��ÈÚÔ��zõñÑöl^|��Ø@õ.�5Ï!¨�Ö&ïÕ�h÷�,T{H�¦§jô�öiâÀ½��^*R_lè��ô�©�°uZh��÷A�«��óªõ"���zÙSñ�ôf=E�E\\p����Îc§\xA0=¯@�-Jkmú<��KG�\xA0�u��BÕ\'n�FüOóÌ÷æ"Ý-G�ºxìª�\f�/0©J©Ô�àhM+á�$óLäÏ¡»�9�Ó�Uì�dJò�\r\'��Iä?¸�Õj��_Íb§Ðý\\+Yp;÷raÞ7)}�qî�­D6ÞYüæ[iaØ*¡\'ç?�nç�.]×��@æQÙ�jeJÕZÝÍ�,QjY�Öî�.k�h�éîËtéåGìBô�èâ�é��ê�l��`��þ�\\�KÐd�í@{qàÑZÂÛ�n"©�´7ßïl¥hKé±�,�p�öç´:ÜôègMÀxq�.û\'�öóxçX�Q��ÇÜÿ¯s!§(�Ø[�Ûi1ëà��\0º�AèZû��=ò òó\\Ô?»��¢¤^D��5Rý5�\n¥°Bü=ãk\\ìglF�²ï�ÝÔ%ôØV�àë9�A��Û®;�s×Ã�Õóæ���ýâÙlá¦��IN�ÒMtëí:ÖY�T��\0�~N^^Ã�ì\xA0ÃïÍÂ%�§3>ýR|?w%r`\t¯yà³Ýt¹J9¡?ù{ë°ègþ�7\0;âÅ4Uû_exS�á�¸��åâ²Ë�ílÞl{±6Þ\rI´�]�Ãß�òÆ�<{�Ö��\tÎèÃ÷�/I�À�k�ò¬÷ݨIË�ü=��w�#Q�fv�6¤��§�ï��ñ¾É·¶ãYbþ��ïÝ¢/u�­è§zØÌ`�÷Iùê×<ne0��Ê¢ê��*�"�i£*!ÿ«wì�à±R0Î��£\baè25�¿F�´ÿ�DX�\n��á(�®®×fé��O\f-_�Ó5´´auÔÊG^�ÆW�GqªÁ�-���ÃÂ�¤.Ur�ÁQ:­�½1~ómË�´"¯o@µ­9¾�6x³¹Å¼�Ã�d|ãRþÕ2ËÄ4Ú­^N=�ýÖê��ó¢ÆßAï¿S�Ö«��§C�\nέÈLRérÿ0OÇwë¹Ìn�ÈÖüVÀz���ÍMÆím¯¬C�Ö�^\'ý»^I�am�;­�A¨$\fe��Nâ�ëfÖÏ��¨¢jq£/d¤=äÄC;г�cEÉ·y×���;Õ+�i½��r�Ö¢ÕªDºpø�¤R���Å!þÿÅ�)ÖÃ*Ì[¿©R�¥��ÝCØ¿sÕbÈ�Ϊº+5ÙpÖ´Øаc��¾\b�u1ZoÎ�¢�\\0+�Á�\bÖ´x�Ê4�d^1Ïù¢¸P�B¥ÍøÜ�RN®·¶ÅpýÍÜÌ�ʾf*pê>M# 6*÷à_î,�·��¡�6ê&ðÖ¦û�J��Á\'Y�Nø��ÉÛG-��dM��ü-��}�b�¥¸ôÒ.�Q\f+ÿ�F�ú�Jx�ƺª]ë�ÅÐ��Ü!R6Õg�;���Å�¼ù/ËÛ[^\tà;yèU"RÖªíh[`�#Ëm¤rÔÕa�`ÃØ��3¼��÷0+�vfá±mvªü��%%í�õg�\\Ù��s@xá�Él¶^25xt�xNÂcf¼ÝÆ´Û]�ëøÌ�hÑJßÞ2t2o:�EïX,ÖòÓ�Û0~:vuoq¤��£ÇL8�æ��2^��AR�*íò(|GUÿÿÇ�$íaýÔ«ØJµ}\xA0�\tZ�¼B� Ä,z÷â�âK�U�þNw���À¯ÄÏ��MÍ4�BIñ)¬\0\0*J�8¨J¾UT4Ubr,Õ´Ü­"þ/Ôù+&�oàä­d�ñ¹Ùñ$�¢aöùÙ!¡hÙh�.Q�`18«�A�cNO\b·¥k$�°�-<Ã\'�)À=_$Ùê��x]�`IÄÔðÉ 1µ\xA0\0��Ó;� l�S�CIàÜ«ïKºcj�µ�Ï5Þ�4n�­��.Jz�azðë5×é¨8W¹Èû�v(Ê)Új)"QÊ»õ­Ëíuh��·óí5�c8Þ�¡\\¼��¥ÙX�E\bÝPr���Ñ43iVM1Ì\tq>üHF®õsS���Ð<V����8;�øp¾¤´^W¯­Â\xA0Ñú1�¯BÈ6OW½�ÂaÌ%B^ÀìÃó�u�úà]¥hx*d�Rp?�^Zb¦�V*æÛz�N^.\0hh�hm\'n/õïÅ�®è��!�ðì�W�³³\0ùdíN!T�ä�LûO½Y�Y�ï\b¯X*_�ûW�<#�º�>(����Ç®�=��Õìg¨�k�.´Bxª9S�ûéZô7 Ó1&éd5{���Î5�|ä�[�bp\b�ü´�q"íY��@Q�ÏEx�£ë�æâk>ÀÈ©ýQ,b�Ï`��ÄO�sbÕpo�jßäsÅRáAÜ�ø\nm×iÓMç3Ûì��«U?ñÁà�éXðÉ\r"�±²\f�êd«ÿøVÑâc!D&�n+£§8vò´ñ#XÈ�Ji ÊÔߦù\b¾ú\b��Û�%ô��ûg2�#Ñaåô�½®�ÊQÍÊ��­�.�§`ªsc�\fRâ Dýf�O�}äzd�ß�¾×9ø|F��«�é�Á\rÍ-�ö]\n�Ù\fM©��§ì���¶Ñýê¡Q\0¶«ç¯]�"È�~ÿ�JÇat1ø�s°¦Õ¾}ºg-}½Êw�T�´¾õ¾�e\txã���!\r§�3�í�6�aº�Â?�P~}�© \r� %\t«XáC�È���>�ë/dùø¦Ð®éÿÞ\\¡3K�2Ö¹m×£)�ó8ɶøº��«N�w�¿m\\9ü\n[K�a¿g�ÖFgLu��¢a�æ9��":£1¯ZGcçÔýB¨^µL\b.$l¹líkG¯Ù�N[[YHEÎBܪË5C±/£ÆAÿù\t½l@­§�û@q¹�ÏM"\ròQ\0EÍ}6Þe²�,�-((�üDR��Q�ã�¦Ö�VJ@�\\ßñoÞ[ä)�3mf*�W±¼N@òª[�«G�ïì¿�×z�0¢���á7(\'âfãG��\'T�\t\\¡ýú¦±É�ï¿�:]0e�£�y¶c\t�²J¡2Ñu�ÓûF�aNÎÉ.*»�3�Õt¶�ÒK���[0á�_㣡�ÿ^z�ß¡R4�Yzß#Ç�ü´\':GìuÊ�ZA[w÷\bp~�N]Ò°ÅV�øZjî#�5�¤/Æû���<]J°VÉë!2=IÆ�j7�+¼�Ë�¾íùØ{û°óñÖàwpûòÙ®ì\xA0íÐJ´H¥u�Щ�L�Ç?Öù5#â4>i�Ýÿ*wy¥Å\r\xA0_à��¬�Þ]�ytÍî�d�©9º�Eâ�dÞ§wð¶�ï°û&�D�W5)�b¿à¾�\'½©]{��0�ûÇ�(¯ÛM-Ë@�wÿabBv\r��Áô�ÙGµ���t÷�]?\niÜ�jÜî8���KÁl�æTÇ;�unµ}©>Æ�ÿ~×~ø}��õãÖ±S�P=�/ÿ��+n³�¤1ó�Z�@¢Ó>HKX]o�ä�\fu`��H�²µç©¢��íQl¿1p��Ê°ûÒ#ÿ%÷=�§ Ï{�CF·Ñ¯Iù�"Y�pÒ#�9\0±É¹�D@_�±���#I�ZÂ<ÊÆn;®í¯·å�[.à÷C\r�º,e¤�~ìfjÝ!Û�x�R��-¯:�Ú\t�¡�aèA6��B4¬³Ð¹Ï´�Ô�Éø&ºNYß{«�Ív��3]wHlË�@ö==\ts7k�RWÝ�æ(ü<=\n&gms0ç\fÏB\b$�_jC÷fò´�Ý|J�wW��*ÇbÚ�[%Z´?�¥t�vÈA\\ï;���_Ñ[öö�ù9ÆéOËÔø@�â���ñWó@\0¯g3+Y�(ß °ï¼ë�Í�3áæ�ù\r�0�3ÂN1�8M\xA0o;-úÎ*è��é�u«9?�7��8\r­ÇR���$Ü!óÏ�¢¦îHÔ�(pTâ]6\\�¥0 ß�´r%¨xC»Ä�¢R\xA0ä�Ý�E��ÀÌ��üõ.&�$�äh§¾h®��î\0&{�¢«�X��µE�?��û1�N?��@ø##ofª5¤\xA0Û«�\0�è�Á^m�¶ü­pÁ��¦�.<É��{*\xA0ÛðÂÜ�\n:Å�¼¨çkÓ.ß�¯\r�È�A�ÿè\0���k¶\nø�ÕtXË�1:¹;å�ìa����öÒ�Pó�_�b¾p�÷§�}ÜÐ`á�ÖÁ��-��+;â¦�|&õ�Y�Ô©��*�g#DØá�ñJ�û�¦£ô3}��\xA0�nûË�FeÿÉC½ÏK/!ùZ¤eËZCó�Wþò\t��\bι+k�ji©1R�¾Q��Ý$�ðäàòãLCùÖE�SU9Ñ%���+¢â_õÿ^«P6�mfÖ��¼ïnl¹Ý6tm;8Xåã+�rëZ¼½3sÔóS\tî.!"5ÿé �ÂÏ;>�ð\n¨w9njï@Î[��p¿�nÌ�ð^;Iø/ùç+PÝ�àÅK-NZ¦!Ñ9ô©5_\b�©IULýK÷3�À¢¸Íÿq�¿MÙS�-b�F¨3 ò£¤�ìb7�fÃûßÃRò5ÐL°Ë\tm�e��uS�±·��Á��ú�®{ëóõï\n�*,>h�Cvk[�8�ÒÊ*\'wU:Òkªñ��½)=Y¨��²�ÿºeU�Ýx,�}­�\b^�ÈkºÞ�åª�iC�J��c-o*8xÀ»Ð�~93]È\f¦�Ôº.t6Üùi¼"ã[ïÐ�µz�N�Uü¡ÏÁ�Ví�GÙ1r¡}�(h�i��±î��Ó¦Uþ¯c/wbþÄm5�¿Q±�èñ\'o9�¡�¾Ì�ToÞÝÌñ�@È��1äuר/�#w�_�·:n�A�Î�qDÕ>àc7ã%#�Æ]³´¢��T�6k7_=t�/lë¢ë ajêfhøkp¢dWN�çËØ�N\'�ï�g­�^¾ô�\tlàð].Òü<�n=Go«ù��@�VjòX\f§ùewVp&ò�Ü�=�¬B3³��î\\�T× ^ÞS��å\xA0wÃ�83õ"m����ÆL,áVGþ�z��d@í�s$õþ�ó�À~\nº�òM\0&¾hk?�×ò����ßÇHÄg{N2RÔÈб7O;/Ov:Ó×\fÁ�;¯O¶ k!=Óø\f2­[~�#4�­<­Î¸��6#�ýþ��ñüX�×�\r��:\0�ìr×èr+TT��k<ß��£ûªV�¸LSxßÈA1»÷¾iR7¹JS¤\b�� ���tV�]YM\rÝÇ.â\bBR��Å{\t��áÆ®\'ËÆþyÊCtç�ð·\r Ï�óàâA\f­����à�ØO¤\\6Ã"�?ÃPKEh®Pôú÷BF¤K�*�?ÿü_¥ÚQ Gì�hf�8<��s<\bXÔ�9»À=\\BÙ�&¸¿�Áb�NV­0HË���i���â�m�sh`�%6ØË))3�Þ±lÒ�\tÈÀ��ÇÅó}��&���Õ�ØÑ\0\xA0�¤f\b*�?�xvKñ�úÎÍ�5A8fêÜÿ#ooâ Äö��<.R�&�âtðDuÎ�àpñ¬��H¿xíHTPÏ�����A-�Ñ�Æ7Ý�`β¤��ß��F�»6T��Ô¤��5#þ�H¥�¸«zt8gîD¡?Æ\0î½&ùã5��ª,»N�-�:�ÎåbÕ\b�V¨�Nû\f��P$m�NX��ÚQª�½��QKøû´¯"ç�Rð§/�å7Ð�®½ûVXeä��ÆlÈÒ��âÚÉ�à:=ú+øñ�ý�pTó�Ù¢Â2dÚK]÷_�Û\\§¼QíüCL~,n"�v�,�ûÄbÂu�Öì�ÄÏ=ÅJ&���l§tÆ¡þkÇrùè¡�Z-�¹�ëk#´a�w¹G\\GÄ\\õ��hf��®GÀ¹Ú×�·�Rs�=¤¾í½iúQ<>Ñ&�Õ�T§Ü\tl�æú@ë¸ãýH�^ç��Â�àl¯úWáÈPÚÿBfg�>Öú¨ÿCI7QõûÝ��ÙÛ�?´�®�P�b[ß\b�÷o½ÏLþüNí�ß�ív~ÞÜ�¿éQí��µ�K!Àí�E\0Çåy��Â6�/��n��W¶ü�Ô°�§�úXzu\xA0g�q,a\\�ó¦�¨��;Æ:4Ó�Ã2¤Qc�¥@�\'Ó�é4é@¦�­�RSw�ð\'iV"�aؽj��¼T��(�$�<g\'C�-Á��EÆ��5¬�¼ÿ^N¦°·à~õn,ÒnÀûm�ð{��Èë�ÑÒ¡ÓÙx�ÍòPÎ`? �ä1%ïòVÜt×�Ø?âKŬ¨öñ&v�@�DàZ×\'ÏÙL�¾�Îõ~ÜD±ïC³+?Q×��9��)ø�zn�tÖéTh�1àS�§¨üD*$Àâ�t�è��û�Ï��ÃÙv\0§\xA0�x��«ð�Z&�ÿ�ÿ-¢�:m°ø¶ûs\\ò(�ÖÉ/@\f��¬�¹hLÄ��تï¶%ÉZ3)GHºMÒ\0:�²\'(¡ºgYË��«Ý,}ê½�ôã&�w²¾æzÛå�çç�Û}luH"�$ñU�� ©K\r´WqßCý¼*��lÅÞæÃ�§�³���@nèîG��²ÇvÍ:dR�A���_Võ¼ßÅ[e�|�IYíp{d]�{%UbE¬â�P:�,\r(�aÃ�µX^ò���AúÛG£ì4HGn�Mµ�Gý#°¹\\Hà�~±¼´\fú\xA0éúcZj¬�\rWááßórQ��W�_�7C¶í)û3Z,[�Ì�¿vû���åôb: »`Ü�èïV�¿-�=òV�¤9Æ7�ßM"\n÷Éo|rB��ͳ�¬ß�7ëêk9¦�Ò�6nÂ@5¸DÖ¥ã<\r�×oIDfí�¶Í\0$`Ä�:°e©i���Þ�A�ð�m".®ß×óÌ�ÚZni®í[Å\f���A¼0-\fÓ\b \0ëc�FG��Íç"®2tM�!ôöÝi¥Q{J¦�mÄU�ÝùrlÆ�&\'µ|ºç4^Ê�Ý�£}#²aÛS[\n�*v~�X\b÷���7�ú�:�"3�Ǿ�w��=9SÛ\n¦P�]��ï¼\0�-4\f��Ç<d¼­P�38É�Â6×NQJ�\0\0\0�\0\0\0�\0�\0�5VJC-ýiS'

response = requests.post('https://rbm-rtbf.live.ott.irdeto.com/licenseServer/widevine/v1/rbm-rtbf/license', params=params, headers=headers, data=data)
# params inserted below will be passed to data-raw 

token = 'PFYtFSqWMYIROJYywBp0rbKvpD3z6N6E6UezNrZmCeKHkcJ5BiH4J8qwO0kfWOmrSsyFJMg9OqKKEwvuQiXL4qdDTa6ZYplNV9IQt6eEuveglDxjVlYd0vAecS5TZKn5mIs01YxcYNlTC7tu3BIk63JhMykMWEMmj1oEqaLa7N3ZrfU2VTlEPaWXBQV6PxnFeD022Yi298GOX/lDik7sXt5u4duT0aKIYbz0HPmjoh8b9Uy8bvzJUa0/SlgRcsW8RNTNjRJHM6N7BESCBGFEZcWoSXeDLEblEfRoBKro2iDGB1neLfRdY1fj7tJX1Rn9lj+OJwRTrBV4XoTQFuSsFwvYCeQfkAoRHXnze9njI5pY7sYgIGxuM4Zh3Wqaps6kxdO53QMm0jJ/L41X6r5CikSGKQ3Rcps8eQccZb9svEuyXMof2nm+eYL+AVPPrfmAf/BrmUHfiuF9CmNsF9pI7PjJfLeASmh3KDI/5gUuC4uJB7rjTzHVWNRz8MSvYjJ37/5V9+FTihpu04+0jFZ1AlGRks2dzk2IGvm5WcwUhsW2l/oQXlh7AgsksIl2DT0wH11WeG+h1/ijymMcG9AZzsxtkC53eLJ8bl55/Aag0TJfX4N6KvV7UhglXxkLifb06bLK/wlcGCfb01b4cnngcjPJEMxh2+Q7sJSnbyrtsfodzNah8JXITmx5kTkFFZkdtga1ha9jAb+Z40VMQfbrCLgh0GEe2G3VczcIt8QHAWAeS91TkzLbMRAugbgLvdbI8yQXtM15uo+TXrV4PNFprug33AnvnQu7IpNxlmgPMZhEn4Qqc/V++OFIpz/JYEMnLFvjYcXE2+sPc4uKnoE0xk33+IgZKtWtDhxRg2SJKyKOYxXucXybUuqPP/d+Nq1VNhD84Of+EfVvBjs1u75pNz/kmu5ms9ppRMkafq0/2311hbYi6VXmp6AeJweGJWkGKEFxw7xADuC8iM7xWnXW5aiNvhbsXBOwuTK8b2ioxjrg6OFhiMck+z9M5FHg+ktY7YB8iY+0V6B/Op2cQGtLaZ2E9lsomlQpxL+LiPI7UWEqmALEGH/Pk5tdLnlFRjEk2PPc8YURw+/nkP9tqJ/AXQwaXc9iwC5yxlYPCsp/Tc4='
provider = 'kakaotv'


releasePid = "_qVpiY31v_oU"
# response = requests.post('https://widevine-proxy.ott.yandex.ru/proxy', headers=headers, cookies=cookies, data=data)

# print(f'{chr(10)}widevine_license: {response.content}')
#NB. Original query string below. It seems impossible to parse and
#reproduce query strings 100% accurately so the one below is given
#in case the reproduced version is not "correct".
# response = requests.options('https://api.ott.kinopoisk.ru/v12/license-affected-content-metadata?contentIds=4b63db58ab27e92b90a457e533b00007&serviceId=25', headers=headers)
# dash-cenc/hdr10_uhd_hevc_ec3.mpd
# https://strm.yandex.ru/vh-ottenc-converted/vod-content/4315082489d87677b21f7c83593fcb73/8614535x1631802676x41611665-4e76-41ac-93a7-5070b77b5f3c/dash-cenc/sdr_uhd_hevc_ec3.mpd

# 'GET /certificate HTTP/1.1'
@medvm
Copy link
Owner

medvm commented Oct 9, 2022

Well, the error message you received very clearly points to a misconfiguration of the request. Make sure your script generated request has exactly the same fields, datatype, structure, etc. (I suggest using chrome devtools to do so)

@cmoulliard
Copy link
Author

I followed exactly the instructions:

  1. Opened Firefox browser and enabling dev tools console
  2. Got the video link https://www.rtbf.be/auvio/detail_cobalt-l-envers-du-reve-electrique?id=2943776&t=649 and starting to play it
  3. Filter the resources under network tab to get the mpd url https://c9851ec-az-westeurope.fsly.cdn.ebsd.ericsson.net/rtbf/auvio/assets/2943776_6BA97Bb/materials/KaFVNUi0Gg_6BA97Bb/vod-idx-2.ism/.mpd?
  4. Filter the resources (see screenshot) to get the Request URL from Headers of the license URL like the curl request
  5. Convert the curl request to Python using curlconverter.com web site
  6. Copy/paste the content within the headers.py before
token = 'PFYtFSqWMYIROJYywBp0rbKvpD3z6N6E6UezNrZmCeKHkcJ5BiH4J8qwO0kfWOmrSsyFJMg9OqKKEwvuQiXL4qdDTa6ZYplNV9IQt6eEuveglDxjVlYd0vAecS5TZKn5mIs01YxcYNlTC7tu3BIk63JhMykMWEMmj1oEqaLa7N3ZrfU2VTlEPaWXBQV6PxnFeD022Yi298GOX/lDik7sXt5u4duT0aKIYbz0HPmjoh8b9Uy8bvzJUa0/SlgRcsW8RNTNjRJHM6N7BESCBGFEZcWoSXeDLEblEfRoBKro2iDGB1neLfRdY1fj7tJX1Rn9lj+OJwRTrBV4XoTQFuSsFwvYCeQfkAoRHXnze9njI5pY7sYgIGxuM4Zh3Wqaps6kxdO53QMm0jJ/L41X6r5CikSGKQ3Rcps8eQccZb9svEuyXMof2nm+eYL+AVPPrfmAf/BrmUHfiuF9CmNsF9pI7PjJfLeASmh3KDI/5gUuC4uJB7rjTzHVWNRz8MSvYjJ37/5V9+FTihpu04+0jFZ1AlGRks2dzk2IGvm5WcwUhsW2l/oQXlh7AgsksIl2DT0wH11WeG+h1/ijymMcG9AZzsxtkC53eLJ8bl55/Aag0TJfX4N6KvV7UhglXxkLifb06bLK/wlcGCfb01b4cnngcjPJEMxh2+Q7sJSnbyrtsfodzNah8JXITmx5kTkFFZkdtga1ha9jAb+Z40VMQfbrCLgh0GEe2G3VczcIt8QHAWAeS91TkzLbMRAugbgLvdbI8yQXtM15uo+TXrV4PNFprug33AnvnQu7IpNxlmgPMZhEn4Qqc/V++OFIpz/JYEMnLFvjYcXE2+sPc4uKnoE0xk33+IgZKtWtDhxRg2SJKyKOYxXucXybUuqPP/d+Nq1VNhD84Of+EfVvBjs1u75pNz/kmu5ms9ppRMkafq0/2311hbYi6VXmp6AeJweGJWkGKEFxw7xADuC8iM7xWnXW5aiNvhbsXBOwuTK8b2ioxjrg6OFhiMck+z9M5FHg+ktY7YB8iY+0V6B/Op2cQGtLaZ2E9lsomlQpxL+LiPI7UWEqmALEGH/Pk5tdLnlFRjEk2PPc8YURw+/nkP9tqJ/AXQwaXc9iwC5yxlYPCsp/Tc4='
provider = 'kakaotv'
releasePid = "_qVpiY31v_oU"
  1. Launch python3 l3.py
  2. Pass the mpd url
  3. Pass the license url

Question: From where the tokenId, provider, releasePid are coming from and why do we need them ?

Screenshot 2022-10-10 at 12 39 13

@playerny
Copy link

I followed exactly the instructions:

  1. Opened Firefox browser and enabling dev tools console
  2. Got the video link https://www.rtbf.be/auvio/detail_cobalt-l-envers-du-reve-electrique?id=2943776&t=649 and starting to play it
  3. Filter the resources under network tab to get the mpd url https://c9851ec-az-westeurope.fsly.cdn.ebsd.ericsson.net/rtbf/auvio/assets/2943776_6BA97Bb/materials/KaFVNUi0Gg_6BA97Bb/vod-idx-2.ism/.mpd?
  4. Filter the resources (see screenshot) to get the Request URL from Headers of the license URL like the curl request
  5. Convert the curl request to Python using curlconverter.com web site
  6. Copy/paste the content within the headers.py before
token = 'PFYtFSqWMYIROJYywBp0rbKvpD3z6N6E6UezNrZmCeKHkcJ5BiH4J8qwO0kfWOmrSsyFJMg9OqKKEwvuQiXL4qdDTa6ZYplNV9IQt6eEuveglDxjVlYd0vAecS5TZKn5mIs01YxcYNlTC7tu3BIk63JhMykMWEMmj1oEqaLa7N3ZrfU2VTlEPaWXBQV6PxnFeD022Yi298GOX/lDik7sXt5u4duT0aKIYbz0HPmjoh8b9Uy8bvzJUa0/SlgRcsW8RNTNjRJHM6N7BESCBGFEZcWoSXeDLEblEfRoBKro2iDGB1neLfRdY1fj7tJX1Rn9lj+OJwRTrBV4XoTQFuSsFwvYCeQfkAoRHXnze9njI5pY7sYgIGxuM4Zh3Wqaps6kxdO53QMm0jJ/L41X6r5CikSGKQ3Rcps8eQccZb9svEuyXMof2nm+eYL+AVPPrfmAf/BrmUHfiuF9CmNsF9pI7PjJfLeASmh3KDI/5gUuC4uJB7rjTzHVWNRz8MSvYjJ37/5V9+FTihpu04+0jFZ1AlGRks2dzk2IGvm5WcwUhsW2l/oQXlh7AgsksIl2DT0wH11WeG+h1/ijymMcG9AZzsxtkC53eLJ8bl55/Aag0TJfX4N6KvV7UhglXxkLifb06bLK/wlcGCfb01b4cnngcjPJEMxh2+Q7sJSnbyrtsfodzNah8JXITmx5kTkFFZkdtga1ha9jAb+Z40VMQfbrCLgh0GEe2G3VczcIt8QHAWAeS91TkzLbMRAugbgLvdbI8yQXtM15uo+TXrV4PNFprug33AnvnQu7IpNxlmgPMZhEn4Qqc/V++OFIpz/JYEMnLFvjYcXE2+sPc4uKnoE0xk33+IgZKtWtDhxRg2SJKyKOYxXucXybUuqPP/d+Nq1VNhD84Of+EfVvBjs1u75pNz/kmu5ms9ppRMkafq0/2311hbYi6VXmp6AeJweGJWkGKEFxw7xADuC8iM7xWnXW5aiNvhbsXBOwuTK8b2ioxjrg6OFhiMck+z9M5FHg+ktY7YB8iY+0V6B/Op2cQGtLaZ2E9lsomlQpxL+LiPI7UWEqmALEGH/Pk5tdLnlFRjEk2PPc8YURw+/nkP9tqJ/AXQwaXc9iwC5yxlYPCsp/Tc4='
provider = 'kakaotv'
releasePid = "_qVpiY31v_oU"
  1. Launch python3 l3.py
  2. Pass the mpd url
  3. Pass the license url

Question: From where the tokenId, provider, releasePid are coming from and why do we need them ?

Screenshot 2022-10-10 at 12 39 13

I've a similar issue. Did you find a fix?

@cmoulliard
Copy link
Author

Did you find a fix?

Unfortunately no :-(

@thejackal2017
Copy link

Hi , I tried on another link and this message also appeared , to fix this

edit the script add a custom request to the array and try to remove the "params=params" from it and you will get the keys

responses.append(requests.post(url=lic_url, headers=headers.headers, data=raw_request))

don't forget to use fresh headers .

Regards

Repository owner deleted a comment from tegabom Oct 20, 2023
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

4 participants