azhurb / stalker_portal

A project that can provide quick and effectively organized access to the video services based on IP networks.
http://www.infomir.eu/eng/products/free-middleware-stalker/
175 stars 151 forks source link

Malformed ivi.ru call #89

Open vladimirbright opened 9 years ago

vladimirbright commented 9 years ago

When you do call 'da.content.get' first arg is int content id, second is actually dict. Investigation of logs reveled to me, that your software is do it wrong, second params is int :(

Should be something like this

curl -d'{"id": 13213, "version": "2.0", "method": "da.content.get", "params": [7029, {"site": "s{you subsite here}", "app_version": {you app_version here}}]}' 'http://api.digitalaccess.ru/api/json/'

Your args:

 [118214, 247318, {'content': 118214, 'adv_video_id': yadayada, 'uid': 'yadayada', 'site': yadayada, 'watchid': 'yadayada'}]

Just remove second arg 247318

azhurb commented 9 years ago

Thank you. I forwarded this problem to the application developer. He will try to fix it.