jdf76 / plugin.video.youtube

Kodi's Youtube Plugin -- Please Check the forums before submitting an issue
https://ytaddon.page.link/forum
394 stars 118 forks source link

Cannot watch purchased videos #837

Open freisatz opened 4 years ago

freisatz commented 4 years ago

I logged in following the instructions using an api key.

Everything seems okay:

However, when selecting a purchased video for playback, I immediately run into an error:

2020-06-17 20:28:25.812 T:3455443824 ERROR: Previous line rep /mh/h0/mm/31%2C29/mn/sn-iu2-i5we%2Csn-4g5e6nsk/ms/au%2Crdu/mv/m /mvi/1/pcm2cms/yes/pl/16/ctier/A/as/fmp4_audio_cenc%2Cfmp4_sd_h yes/pl/16/ctier/A/as/fmp4_audio_cenc%2Cfmp4_sd_hd_cenc/pfa/5/gcd setting type 2020-06-17 20:59:00.416 T:3455443824 ERROR: Previous line repeats 1 times. 2020-06-17 20:59:00.416 T:3455443824 NOTICE: [script.module.inputstreamhelper] Widevine update check was made on 2020-06-17T18:49:01 2020-06-17 20:59:00.461 T:4091682832 NOTICE: VideoPlayer::OpenFile: plugin://plugin.video.youtub/play/?video_id=_axysFHsn8M 2020-06-17 20:59:00.462 T:3447051120 NOTICE: Creating InputStream 2020-06-17 20:59:00.488 T:3447051120 ERROR: GetDirectory - Error getting /usr/lib/kodi/addons/inputstream.adaptive/ 2020-06-17 20:59:00.905 T:3447051120 ERROR: CCurlFile::Open failed with code 404 for https://manifest.googlevideo.com/api/manifest/dash/expire/1592441937/ei/8WfqXprrBpqt1wL-rJiQCg/ip/89.1 82.109.69/id/fdac72b051ec9fc3/source/youtube/requiressl/yes/playback_host/r2---sn-iu2-i5we.googlevideo.com/mh/h0/mm/31%2C29/mn /sn-iu2-i5we%2Csn-4g5edned/ms/au%2Crdu/mv/m/mvi/1/pl/16/ctier/A/as/fmp4_audio_cenc%2Cfmp4_sd_hd_cenc/pfa/5/gcr/de/initcwndbps/1041250/hightc/yes/vprv/1/mt/1592420253/fvip/2/keepalive/yes/itag/0/sparams/expire%2Cei%2Cip%2Cid%2Csource%2Crequiressl%2Cctier%2Cas%2Cpfa%2Cgcr%2Chightc%2Cvprv%2Citag/sig/AOq0QJ8wRgIhAIEr5zMPCxZ8wVlP-JOwaSPuLLURbeAee-3cn5AmAed4AiEA21ikuk7zoQIE31-X5ETL 6TeMvXIx8HHw_FJT9kMCXCk%3D/lsparams/playback_host%2Cmh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps/lsig/AG3C_xAwRQIgEX4EiF2piMJchg8y_FjyQYso2BPdTzijDXlrsb1h0HACIQD4FkG9Pn7QY9yHeF_tlouFjLm7a4G97fEfe_xtjWabhg%3D%3D: 2020-06-17 20:59:00.905 T:3447051120 ERROR: AddOnLog: InputStream Adaptive: Cannot download https://manifest.googlevideo.com /api/manifest/dash/expire/1592441937/ei/8WfqXprrBpqt1wL-rJiQCg/ip/89.182.109.69/id/fdac72b051ec9fc3/source/youtube/requiressl/yes/playback_host/r2---sn-iu2-i5we.googlevideo.com/mh/h0/mm/31% 2C29/mn/sn-iu2-i5we%2Csn-4g5edned/ms/au%2Crdu/mv/m/mvi/1/pl/16/ctier/A/as/fmp4_audio_cenc%2Cfmp4_sd_hd_cenc/pfa/5/gcr/de/initcwndbps/1041250/hightc/yes/vprv/1/mt/1592420253/fvip/2/keepalive/yes/itag/0/sparams/expire%2Cei%2Cip%2Cid%2Csource%2Crequiressl %2Cctier%2Cas%2Cpfa%2Cgcr%2Chightc%2Cvprv%2Citag/sig/AOq0QJ8wRgIhAIEr5zMPCxZ8wVlP-JOwaSPuLLURbeAee-3cn5AmAed4AiEA21ikuk7zoQIE3 1-X5ETL6TeMvXIx8HHw_FJT9kMCXCk%3D/lsparams/playback_host%2Cmh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps/lsig/AG3C_xAwRQIgEX4EiF2piMJchg8y_FjyQYso2BPdTzijDXlrsb1h0HACIQD4FkG9Pn7QY9yHeF_tlouFjLm7a4G97fEfe_xtjWabhg%3D%3D 2020-06-17 20:59:00.906 T:3447051120 ERROR: AddOnLog: InputStream Adaptive: Could not open / parse mpdURL (https://manifest.googlevideo.com/api/manifest/dash/expire/1592441937/ei/8WfqXprrBpqt1wL-rJiQCg/ip/89.182.109.69/id/fdac72b051ec9fc3/source/youtube/requiressl/yes/playback_host/r2---sn-iu2-i5we.googlevideo.com/mh/h0/mm/31%2C29/mn/sn-iu2-i5we%2Csn-4g5edned/ms/au%2Crdu/mv /m/mvi/1/pl/16/ctie/A/as/fmp4_audio_cenc%2Cfmp4_sd_hd_cenc/pfa /5/gcr/de/initcwndbps/1041250/hightc/yes/vprv/1/mt/1592420253/fvip/2/keepalive/yes/itag/0/sparams/expire%2Cei%2Cip%2Cid%2Csource%2Crequiressl%2Cctier%2Cas%2Cpfa%2Cgcr%2Chightc%2Cvprv%2Citag/sig/AOq0QJ8wRgIhAIEr5zMPCxZ8wVlP-JOwaSPuLLURbeAee-3cn5AmAed4AiEA21ikuk7zoQIE31-X5ETL6TeMvXIx8HHw_FJT9kMCXCk%3D/lsparas/playback_host%2Cmh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps/lsig/AG3C_xAwRQIgEX4EiF2piMJchg8y_FjyQYso2BPdTzijDXlrsb1h0HACIQD4Fk G9Pn7QY9yHeF_tlouFjLm7a4G97fEfe_xtjWabhg%3D%3D) 2020-06-17 20:59:00.907 T:3447051120 ERROR: CVideoPlayer::OpenInputStream - error opening [plugin://plugin.video.youtube/play/?video_id=_axysFHsn8M] 2020-06-17 20:59:00.907 T:3447051120 NOTICE: CVideoPlayer::OnExit() 2020-06-17 20:59:00.921 T:3463836528 ERROR: EXCEPTION: XBMC is not playing any file 2020-06-17 20:59:00.986 T:4091682832 NOTICE: CVideoPlayer::CloseFile() 2020-06-17 20:59:01.032 T:4091682832 NOTICE: VideoPlayer: waiting for threads to exit 2020-06-17 20:59:01.033 T:4091682832 NOTICE: VideoPlayer: finished waiting

What further info do you need to understand whats going on?

Thanks in advance!

freisatz commented 3 years ago

I dug a bit deeper and found tried a few different setups to see if I can isolate the issue. However, regardless of what I tried, I did NOT find a setup where I could watch a purchased video.


For all the testing, I used the Youtube Addon from the kodi repository, version 6.8.3. I tested the movies

https://www.youtube.com/watch?v=_axysFHsn8M https://www.youtube.com/watch?v=7ZRWBkaNwMo


I tested different systems and, particularly, different versions of Kodi and InputStream Adaptive

LibreELEC 9.0.2 running on a Wetek Play 2 (Amlogic S905) Kodi 18.1 InputStream Adaptive 2.3.23 (or something)

CoreELEC 9.2.3 running on a Wetek Play 2 (Amlogic S905) Kodi 18.7 InputStream Adaptive 2.4.5.1

Ubuntu 20.04 running on a x86 machine Kodi 18.6 InputStream Adaptive 2.4.5

The latter two I tested directly after a fresh install.

Furthermore, I tried different Youtube accounts. I did create a new API on one of those accounts.

See the full log of the Ubuntu run at https://pastebin.com/ddu1ZEhN.

Any help with this would be greatly appreciated!

MisterD81 commented 3 years ago

I have the same problem with some of my purchased movies. Some play, some not.

In all cases, where the playback is not possible, Kodi/IAS is not able to download the MPD like in your log file. It seems that they are not available, even if this URL was provided.

I have patched the addon to generate the MPD on its own like it is done in other cases already in the addon. There were only some extensions for the encryption and language handling required. Now all movies are playing for me. I will provide a patch/PR hopefully in a couple of days, as I need to clean up the modifications first.

freisatz commented 3 years ago

Thats great news. Looking forward to try that patch myself. Thank you very much for your efforts and making them public!

anxdpanic commented 3 years ago

Look forward to it @MisterD81 , I have a very limited selection of purchases for testing. Please submit the PR to the new repository, https://github.com/anxdpanic/plugin.video.youtube code in that area should be the same, so the changes should apply with no issues.

MisterD81 commented 3 years ago

@anxdpanic : For sure I use the new repository and was looking also there for this issue, but could not find it. I have created the pull request accordingly here: https://github.com/anxdpanic/plugin.video.youtube/pull/23 and referenced to this issue to have the linkage clear.

freisatz commented 3 years ago

Tested it today and it solves the issue for me for both my mentioned videos that wouldnt play. Thank you so much, that really makes my kodi instance so much more useful for me!