2019-12-05, 14:43
Hi,
I would like to play an Amazon Prime video by using :
It works if the addon is already running (if for example I am in the home screen or any page of the addon).
However, it doesn't work when the addon is not running :
Do you have any idea ? Is it due to the fact that a service must running ? To a missing login call ?
I would like to play an Amazon Prime video by using :
Code:
xbmc.executebuiltin( "PlayMedia(plugin://plugin.video.amazon-test/?mode=PlayVideo&name=0NHGFE8V1R02H7IHVUI515V4XO&asin=amzn1.dv.gti.ccb02776-e09d-fd2b-d589-b3da45f13bd1)" )
It works if the addon is already running (if for example I am in the home screen or any page of the addon).
However, it doesn't work when the addon is not running :
Code:
2019-12-05 12:36:27.692 T:3766477616 NOTICE: [Amazon VOD] Using Host: Akamai
2019-12-05 12:36:27.693 T:3766477616 NOTICE: [Amazon VOD] checkURL: https://a99avoddashs3ww-a.akamaihd.net/d/2$cOy1JkfK4xr2wjZLf5Egw5_zu5k~/ondemand/ww_dub/97c8/5f85/fa9e/4181-a806-65db35789eb6/69eafe36-fcb8-401a-9fa5-054f1fe822b3_corrected.mpd
2019-12-05 12:36:28.485 T:3766477616 DEBUG: [Amazon VOD] http://127.0.0.1:39004/mpd/https%3A%2F%2...rected.mpd
2019-12-05 12:36:28.486 T:3766477616 NOTICE: [Amazon VOD] getURL: https://atv-ps-eu.primevideo.com/cdp/cat...7006d2cd02
2019-12-05 12:36:28.610 T:3766477616 ERROR: [Amazon VOD] Error reason: 500 error (TryAgain)
2019-12-05 12:36:28.611 T:3766477616 NOTICE: [Amazon VOD] Attempt #2
2019-12-05 12:36:28.612 T:3766477616 NOTICE: [Amazon VOD] getURL: https://atv-ps-eu.primevideo.com/cdp/cat...7006d2cd02
2019-12-05 12:36:28.820 T:3766477616 ERROR: [Amazon VOD] Error reason: 500 error (TryAgain)
2019-12-05 12:36:28.820 T:3766477616 NOTICE: [Amazon VOD] Attempt #3
2019-12-05 12:36:28.822 T:3766477616 NOTICE: [Amazon VOD] getURL: https://atv-ps-eu.primevideo.com/cdp/cat...7006d2cd02
2019-12-05 12:36:28.950 T:3766477616 ERROR: [Amazon VOD] Error reason: 500 error (TryAgain)
2019-12-05 12:36:28.951 T:3766477616 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.TypeError'>
Error Contents: 'bool' object has no attribute '__getitem__'
Traceback (most recent call last):
File "/storage/.kodi/addons/plugin.video.amazon-test/default.py", line 5, in <module>
EntryPoint()
File "/storage/.kodi/addons/plugin.video.amazon-test/resources/lib/startup.py", line 80, in EntryPoint
PlayVideo(args.get('name', ''), args.get('asin'), args.get('adult', '0'), int(args.get('trailer', '0')), int(args.get('selbitrate', '0')))
File "/storage/.kodi/addons/plugin.video.amazon-test/resources/lib/playback.py", line 476, in PlayVideo
playable = _IStreamPlayback(asin, name, streamtype, isAdult, extern)
File "/storage/.kodi/addons/plugin.video.amazon-test/resources/lib/playback.py", line 400, in _IStreamPlayback
content = getATVData('GetASINDetails', 'ASINList=' + asin)['titles'][0]
TypeError: 'bool' object has no attribute '__getitem__'
-->End of Python script error report<--
2019-12-05 12:36:28.954 T:3766477616 DEBUG: onExecutionDone(8, /storage/.kodi/addons/plugin.video.amazon-test/default.py)
Do you have any idea ? Is it due to the fact that a service must running ? To a missing login call ?