maxbambi / plugin.video.raitv

Kodi plugin for RAI
GNU General Public License v3.0
35 stars 9 forks source link

live tv channels Rai1 and Rai2 no longer work #71

Closed fritzzjan closed 7 months ago

fritzzjan commented 1 year ago

I am using your app on a raspberry pi with Libreelec. But since last week the live tv channels Rai-1 and Rai-2 no longer work. On the display there comes a message "Playback failed: one or more items failed to play. Check the log for more info"

In the attached file the messages can be found.

Can you please give me advise what to do, to fix it.

errors16sep.txt

maxbambi commented 1 year ago

@fritzzjan What version of kodi do you use?

fritzzjan commented 1 year ago

@fritzzjan What version of kodi do you use?

I am using Kodi 20.2

maxbambi commented 1 year ago

@fritzzjan In this moment I have tried the plugin and it's working: it got the direct link from the relinker: Media URL: https://raiuno1-live.akamaized.net/hls/live/598308/raiuno1/raiuno1/playlist_ma.m3u8?hdnea=st=1694851390~exp=1694851540~acl=/*~hmac=801ea53dd19e9ce88e1796a50a13935e58df0f5546939960c2f8b4f7b36c1837 and played it. In your experience the plugin got an error Failed with code 400 Are you abroad from Italy? There is a problem with User-agent? (plugin should simulate the behavior of a standard Chrome browser) If you cut and paste this link in a browser (in a short time, because timeout comes early), it plays? The stream seems not to be protected because key url is empty (and also in my experience is empty)

fritzzjan commented 1 year ago

Hello Max,

Thank you for your prompt answer. I’ve tested the URL but this gives an 403 forbidden error. Possibly because of validation issues hmac (hash) and the unix timestamps.

I am abroad and use your app with NordVPN All other streams are working, except RAI1 and RAI2.

maxbambi commented 1 year ago

I tried to use my plugin through my VPN... with a foreign exit, I got this alternative stream Schermata del 2023-09-18 17-00-38 (it is logic!) with a VPN with italian exit, live streams of Rai1 and Rai2 play... But no error went out... why in your situation you get 40x error? I don't know... Could you try to use my plugin in a pc with the same vpn service?

fritzzjan commented 1 year ago

What do you mean with VPN with Italian exit? I am in The Netherlands and always watched RAI1 without problems with the plugin and VPN until one week ago.

My pc is an Apple Macbook, how can I install your plugin?

maxbambi commented 1 year ago

What do you mean with VPN with Italian exit? In your example Rai channel are streamed by different servers RAI 1
https://raiuno1-live.akamaized.net/.... RAI 2 https://raiuno2-live.akamaized.net/.... RAI 3 https://8e7439fdb1694c8da3a0fd63e4dda518.msvdn.net/.... I have tried Raisport and it is the same server of Rai3 https://8e7439fdb1694c8da3a0fd63e4dda518.msvdn.net/raisportuno1/hls/playlist_mo.m3u8...

So in your experience the working streams are from this third server. In my experience in Italy I don't realize any difference I want to know if first server can detect if you are using a VPN or if you are out of Italy. So I try to use a VPN with an Italian exit (I simulated to be in Rome instead of Florence) and a VPN with German exit.... And the result is what I have written in the previous post

I am in The Netherlands and always watched RAI1 without problems with the plugin and VPN until one week ago.

My pc is an Apple Macbook, how can I install your plugin?

I think a Kodi version for Apple exists https://kodi.tv/download/ios/ So you can install Kodi and then install my add-on

fritzzjan commented 1 year ago

Then it is not possible to use vpn and watch rai1 and 2 anymore if you are not in Italy.

I can not install you app on my phone or laptop, because they are not jailbraked.

maxbambi commented 1 year ago

Then it is not possible to use vpn and watch rai1 and 2 anymore if you are not in Italy.

I can not install you app on my phone or laptop, because they are not jailbraked.

Can you try to stream rai1 from raiplay.it website with a browser and VPN? If you can see stream with a browser, there will be the possibility to make plugin to work It can be useful to know this infos from developer settings of browser

GET /hls/live/598308/raiuno1/raiuno1/itarai1_160/exp=1695321062~acl=%2fhls%2flive%2f598308%2fraiuno1%2f*!%2fhls%2flive%2f598308-b%2fraiuno1%2f*!%2f*.key~data=hdntl~hmac=6a4467bbc316075f921a8d148220f68ae2322b39082c62198348b33acd326e8b/chunklist_ao.m3u8?aka_me_session_id=AAAAAAAAAADmiwxlAAAAANZ9TZFbGja0oxKmZpL8QtueYe3YnIOFIhLdt6BYh695wdCb4Le0hEXhLka4mW5E%2fWOFvg+ImI4D&aka_media_format_type=hls HTTP/1.1 Accept: */* Accept-Encoding: gzip, deflate, br Accept-Language: it-IT,it;q=0.9,en-US;q=0.8,en;q=0.7,es;q=0.6,de;q=0.5 Connection: keep-alive Host: raiuno1-live.akamaized.net Origin: https://www.raiplay.it Referer: https://www.raiplay.it/ Sec-Fetch-Dest: empty Sec-Fetch-Mode: cors Sec-Fetch-Site: cross-site User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36 sec-ch-ua: "Google Chrome";v="117", "Not;A=Brand";v="8", "Chromium";v="117" sec-ch-ua-mobile: ?0 sec-ch-ua-platform: "Linux"

fritzzjan commented 1 year ago

I am sorry Max, today I started a short holliday, so I am not at home and only have an Iphone with me.

My experience is that all Rai streams work with the official Raiplay app. This app is only available for iphone and ipad. and for Android.

mgrezak commented 7 months ago

Bumping this thread, RAI 1 and 2 aren't working with the RAI PLAY video add-on for Kodi on a Firestick 4K or 4K Max. I tried both. All other RAI live streams and on-demand work.

Also using NordVPN connected to Italian server

maxbambi commented 7 months ago

@mgrezak what version of kodi?

mgrezak commented 7 months ago

20.3

On Sun, Feb 11, 2024, 12:39 Max @.***> wrote:

@mgrezak https://github.com/mgrezak what version of kodi?

— Reply to this email directly, view it on GitHub https://github.com/maxbambi/plugin.video.raitv/issues/71#issuecomment-1937818980, or unsubscribe https://github.com/notifications/unsubscribe-auth/A2RGKNKEGW5UTDSUMRFUWUTYTD64TAVCNFSM6AAAAAA43WSVCOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMZXHAYTQOJYGA . You are receiving this because you were mentioned.Message ID: @.***>

maxbambi commented 7 months ago

@mgrezak With your VPN can you watch Rai1 streaming with a chrome or firefox browser? Plugin should simulate the behavior of a standard Chrome browser

mgrezak commented 7 months ago

Yes I can Max, just tested it right now by connecting to an Italian server via NordVPN and started watching RAI 1 on https://www.raiplay.it/dirette/rai1 without any issues!

On Sun, Feb 11, 2024 at 12:56 PM Max @.***> wrote:

@mgrezak https://github.com/mgrezak With your VPN can you watch Rai1 streaming with a chrome or firefox browser? Plugin should simulate the behavior of a standard Chrome browser

— Reply to this email directly, view it on GitHub https://github.com/maxbambi/plugin.video.raitv/issues/71#issuecomment-1937822776, or unsubscribe https://github.com/notifications/unsubscribe-auth/A2RGKNLAFMXU6TLCX2ASUM3YTEA3NAVCNFSM6AAAAAA43WSVCOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMZXHAZDENZXGY . You are receiving this because you were mentioned.Message ID: @.***>

-- -Martin

maxbambi commented 7 months ago

@mgrezak I've changed user-agent and headers. Try to download the new version and check if your device works as a browser

mgrezak commented 7 months ago

I forced a download of the RAIplay plugin from inside Kodi Add-on repository despite the plugin not showing there's an update. The version still shows 3.9.5 as before.

I tested Rai 1 and 2 but its still the same error :(

On Sun, Feb 11, 2024, 14:43 Max @.***> wrote:

@mgrezak https://github.com/mgrezak I've changed user-agent and headers. Try to download the new version and check if your device works as a browser

— Reply to this email directly, view it on GitHub https://github.com/maxbambi/plugin.video.raitv/issues/71#issuecomment-1937849509, or unsubscribe https://github.com/notifications/unsubscribe-auth/A2RGKNNAH4J5ENZRMOJI3MLYTENM5AVCNFSM6AAAAAA43WSVCOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMZXHA2DSNJQHE . You are receiving this because you were mentioned.Message ID: @.***>

maxbambi commented 7 months ago

@mgrezak download zip from https://github.com/maxbambi/plugin.video.raitv/archive/matrix.zip

mgrezak commented 7 months ago

20240211_170512.jpg

When I try to save it as a folder location in Kodi I get an error message: Unable to connect - couldn't retrieve directory information 😞

20240211_170809.jpg

maxbambi commented 7 months ago

@mgrezak The simplest way to install through zip file is to download it from github and save it in a local folder (internal or usb storage). Update plugin in kodi repository is a long process, because I have to wait admin's authorization.

mgrezak commented 7 months ago

Hi Max,

Your updates to the user-agent and headers did the trick. I downloaded the zip file and updated the add-on in Kodi and RAI 1 and 2 now works same as RAI 3 !!

On Mon, Feb 12, 2024, 06:48 Max @.***> wrote:

@mgrezak https://github.com/mgrezak The simplest way to install through zip file is to download it from github and save it in a local folder (internal or usb storage).

— Reply to this email directly, view it on GitHub https://github.com/maxbambi/plugin.video.raitv/issues/71#issuecomment-1938526319, or unsubscribe https://github.com/notifications/unsubscribe-auth/A2RGKNIYVIL5H3QE3YU4RULYTH6PPAVCNFSM6AAAAAA43WSVCOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMZYGUZDMMZRHE . You are receiving this because you were mentioned.Message ID: @.***>