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

FRANCE TV a free account is now requested to access replay and live TV ? #1285

Closed
jlb312 opened this issue Feb 29, 2024 · 36 comments · Fixed by #1317
Closed

FRANCE TV a free account is now requested to access replay and live TV ? #1285

jlb312 opened this issue Feb 29, 2024 · 36 comments · Fixed by #1317

Comments

@jlb312
Copy link

jlb312 commented Feb 29, 2024

It seems that a free account with login and password is requested in order to access FRANCE TV server.

Is anyone can confirm this ?

Regards

@sebmourlhou
Copy link
Contributor

I confirm !

@crocketear
Copy link

Je confirme également.
Comment fait-on pour intégrer notre compte dans CatchUpTV&More vu qu'il n'y a pas de compte france.tv dans les paramètres ?

@willow3411
Copy link

Bonsoir à tous,
pareil sous RPI4 Libreelec derniere version et KODI 20....

@IceFreak66
Copy link

resolver_proxy.py.txt

For the time being, I could only fix the live stream of FranceTV

@IceFreak66
Copy link

So I've been able to get as far as getting links ending in .dash for the replay videos, but I end up in an inputadaptive error when trying to stream it with a message no MOOV in stream

And that goes beyond what I know. So if someone comes by with an idea, I'd be happy to discuss it.

@IceFreak66
Copy link

So, perseverance was key.

I'm attaching a new version of the resolver_proxy.py file. Simply replace the one in the addon folder and it should repair both live and replay France TV. (remember to change the extension back to .py)
resolver_proxy.py.txt

@Olivier1967
Copy link

Olivier1967 commented Mar 2, 2024

Hello, thank you IceFreak66 for your file. Now a gift for easy use (stick and nvidiashiel...). I've modified addon and put in new resolver. Cadeau pour vous les gars fichier a ajouter dans kodi
plugin.video.catchuptvandmore-0.2.40~b1_modf2.zip

France TV marche a nouveau. All work perfectly..

@IceFreak66
Copy link

Just a FYI, it's not really a durable fix. I found out that if you make france tv think you use a safari browser, it returns only m3u8 feeds. So it works that way.
But dash-mpeg streams are still broken and need someone more knowledgable than me to adress.

@calvin4242
Copy link

calvin4242 commented Mar 3, 2024

Thank you, this fix works perfectly, just replaced "resolver_proxy.py" from catchup extension by the one in zip file.
Could someone consider the possibility of creating an account credentials in catchup account settings for a permanent fix pleas
e?

@IceFreak66
Copy link

Thank you, this fix works perfectly, just replaced "resolver_proxy.py" from catchup extension by the one in zip file. Could someone consider the possibility of creating an account credentials in catchup account settings for a permanent fix pleas e?

There's actually no need for that, the issue was a missing parameter in an http call (probably after a change in API from FranceTV) which I added. All feeds can be retrieved without the need for an account at all.

The one issue remaining is about the dash-mpeg so that we don't need to force the call to be made with the browser param set to safari

@wilfarte
Copy link

wilfarte commented Mar 3, 2024

Thank you. All is fine on my nvidia shield with the py file transfered.

@DavidC-75
Copy link

It seems that a free account with login and password is requested in order to access FRANCE TV server.

There's actually no need for that, the issue was a missing parameter in an http call (probably after a change in API from FranceTV) which I added. All feeds can be retrieved without the need for an account at all.

I'm not too sure if that's the very same issue or not, but something similar was reported and fixed (tried it myself) here :
melmorabity/plugin.video.francetv#9

The one issue remaining is about the dash-mpeg....

Again, no idea if the fix above already addresses that too or not...

@fonkdoctor
Copy link

fonkdoctor commented Mar 5, 2024

Hello all,
Merci @IceFreak66 pour le fichier resolver_proxy.py, ça marche impeccable sur windows ;)

Merci @Olivier1967 pour ton zip, j'ai bien installé ta version updatée dans kodi et ça fonctionne :)
Par contre j'ai un soucis de coupure de flux, ça charge à peu près toutes les 10secondes (pas de soucis sur windows)... ça parle à quelqu'un ?

Merci et très bonne journée à tous !

@sebmourlhou
Copy link
Contributor

This version works with the dash-mpeg streams :
resolver_proxy.txt

But sometimes the video doesn't start (infinite loading) when I switch between series or episodes.
I have to restart Kodi...
Launching the very first video works every time though.

I have exactly the same problem with the france.tv plugin (with the fix mentioned by DavidC-75), so maybe it's my computer (Windows).

Can anyone try?

@IceFreak66
Copy link

Hello @sebmourlhou

Do you mind if I take your file and take a look into making it more stable ?

@sebmourlhou
Copy link
Contributor

Sure you can

@IceFreak66
Copy link

IceFreak66 commented Mar 6, 2024

So, I found the error, but I don't know how to adress it.
Issue occurs in the libCurl library

When it works, it's because the curl command to retreive the manifest.md file is done with the proper user agent.

When it fails, it's because the request is done with the user agent : Kodi/20.4 (Windows NT 10.0.22631.3235; Win64; x64) App_Bitness/64 Version/20.4-(20.4.0)-Git:20240211-4868e9c709
That curl request returns 403

But I have no idea why curl would change the user-agent at random points. I'm gonna delve a little more into it

Edit : The issue is somewhere in inputstream.adaptive, I can't look into it any further

@IceFreak66
Copy link

From inputstream adaptive github :

Fix inputstream.adaptive.manifest_params which params was not applied to manifest request in 21.4.3-Omega

So I'm pretty sure that's the source of the problem.

@IceFreak66
Copy link

I can confirm it's working in Kodi 21 beta 3

@pols12
Copy link

pols12 commented Mar 8, 2024

Note: SebMourlhou’s patch requires nonfree Widevine DRM support, whereas I can watch movies without Widevine thanks to IceFreak66’s patch.

@joaopa00
Copy link
Contributor

@pols12 for the same program?

@IceFreak66
Copy link

@pols12 for the same program?

Yeah, that's normal. My patch is forcing the request to be made as a safari browser. When you do that, france tv servers only return hls streams for every program.
SebMourlhou’s made it so that it requests as firefox, but handles properly dash mpegs streams as well. Except for an issue in inputstream adaptive that was fixed in kodi 21

@joaopa00
Copy link
Contributor

joaopa00 commented Mar 13, 2024

With safari browser, only hls streams are available?
The advantage of hls stream is they are downloadable when there is no drm.

@IceFreak66
Copy link

With safari browser, only hls streams are available? The advantage of hls stream is they are downloadable when there is no drm.

I tested out a lot of programs, and I only ever got hls back when querying as safari. I cannot conclusively say safari browser will only ever get hls, but it seems that way at least.

@joaopa00
Copy link
Contributor

Can you try taxi driver in category - cinema -suspense
as well as with your patch and with Sebmourlhou's one. I would be surprised there is no drm in this stream.

@IceFreak66
Copy link

Running as chrome :

"video": {
"workflow": "token-akamai",
"token": "https://hdfauth.ftven.fr/esi/TA?format=json",
"duration": 6559,
"embed": false,
"format": "dash",
"is_live": false,
"drm": false,
"drm_type": null,
"license_type": null,
"spritesheets": [

Running as safari :

"video": {
"workflow": "token-akamai",
"token": "https://hdfauth.ftven.fr/esi/TA?format=json",
"duration": 6559,
"embed": false,
"format": "hls",
"is_live": false,
"drm": false,
"drm_type": null,
"license_type": null,
"spritesheets": [

No DRM in either

@joaopa00
Copy link
Contributor

And no I can't play by myself. I am geoblocked for several months....

@Barthorel
Copy link

Hello, thank you IceFreak66 for your file. Now a gift for easy use (stick and nvidiashiel...). I've modified addon and put in new resolver. Cadeau pour vous les gars fichier a ajouter dans kodi plugin.video.catchuptvandmore-0.2.40~b1_modf2.zip

France TV marche a nouveau. All work perfectly..

Hello, i'm new here and try to install the "@Olivier1967's gift" on myfirestick but Idk how to do that with Kodi.
I think I don't use the good method. Is there a tuto to help me or something?

@JazzyEADG
Copy link

JazzyEADG commented Mar 26, 2024

@Barthorel I don't have this kind of asset but you can try a ftp connection I guess

@enigma131
Copy link

Renaming and replacing resolver_proxy.py.txt in folder solve the problem for France TV except for France 5 (for it I have an infinite search). Thanks for the hard work ;)

@pols12
Copy link

pols12 commented Mar 30, 2024

Fire Stick

try to install the "Olivier1967's gift" on myfirestick but Idk how to do that with Kodi.

A general guideline is to avoid ugly and disrespectful Amazon products and services. However, I tried to get information from the web to provide those methods, hoping they can help you.

Method 1: From a command line interface shell

  1. Connect to an ADB shell https://developer.amazon.com/docs/fire-tv/connecting-adb-to-device.html
    You may use ADBLink for convenience.
  2. wget https://github.com/Catch-up-TV-and-More/plugin.video.catchuptvandmore/files/14466635/resolver_proxy.py.txt
    adb shell mv /sdcard/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.video.catchuptvandmore/resources/lib/resolver_proxy.py /sdcard/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.video.catchuptvandmore/resources/lib/resolver_proxy.py.bkp
    adb push resolver_proxy.py.txt /sdcard/Download
    adb shell mv /sdcard/Download/resolver_proxy.py.txt /sdcard/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.video.catchuptvandmore/resources/lib/resolver_proxy.py
    

I’m not sure about locations (/sdcard …). You can probably get current location thanks to adb shell pwd, and browse file system thanks to adb shell ls and adb shell cd to find data/org.wbmc.kodi directory.

Method 2: From Fire OS apps

  1. Download the patch (e.g. from Downloader or ES File Explorer)
  2. Rename/Remove origin Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.video.catchuptvandmore/resources/lib/resolver_proxy.py (e.g. to resolver_proxy.py.bkp. You can use ES File Explorer)
  3. Move the downloaded patch to Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.video.catchuptvandmore/resources/lib/ and rename it to resolver_proxy.py

Method 3: From Fire OS, then Kodi

  1. Download zip file from Fire Stick (e.g. using Downloader): https://github.com/Catch-up-TV-and-More/plugin.video.catchuptvandmore/files/14468617/plugin.video.catchuptvandmore-0.2.40.b1_modf2.zip
  2. Ensure unknown sources are allowed: Settings>System>Add-ons>Unknown Sources
  3. Add-ons>Install from zip file. Find and select the downloaded plugin.video.catchuptvandmore-0.2.40.b1_modf2.zip file; then install it.

@Olivier1967
Copy link

Olivier1967 commented Apr 3, 2024

Hello, an official patch is out i think : #1299
It's working for me.

@jeff2900
Copy link
Contributor

jeff2900 commented Apr 5, 2024

To fix "Download failed with error 403" when playing dash streams in francetv replays, you must modify the header provided to the inputstream.adaptive addon.

kodi.log
...
2024-04-05 09:41:47.646 T:10700   error <general>: AddOnLog: inputstream.adaptive: Download failed with error 403: https://cloudreplay.ftven.fr/ZXhwPTE....

Fix tested with kodi 20 et kodi 21:

resolver_proxy.py
476:    params = {
477:        'country_code': geoip_value,
478:        'domain': 'www.france.tv',
479:        'device_type': 'desktop',
480:        'browser': 'chrome',
481:    }
...
557:            item.path = location_url
558:            item.property['inputstream.adaptive.stream_headers'] = stream_headers
558:            item.property['inputstream.adaptive.manifest_headers'] = stream_headers

resolver_proxy.txt

@enigma131 enigma131 mentioned this issue Apr 7, 2024
5 tasks
@sebmourlhou
Copy link
Contributor

It works with the last version 0.2.40~beta03

@jeff2900
Copy link
Contributor

Sorry France.tv replay don't work for me under kodi 21, always error 403.

Fix by changing in file resolver_proxy.py line
241: if get_kodi_version() == 20:
By
241: if get_kodi_version() >= 20

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

Successfully merging a pull request may close this issue.

17 participants