known-as-bmf / plugin.video.arteplussept

Plugin Kodi (ex XBMC) permettant de voir les vidéos disponibles sur Arte +7
GNU General Public License v2.0
44 stars 23 forks source link

Addon not working #35

Closed dan31130 closed 6 years ago

dan31130 commented 6 years ago

It seems that the plug in doesn't work. Maybe a server change by Arte

known-as-bmf commented 6 years ago

Yeah, looks like they changed their backend

I started looking into it but i'm not sure i'll have the time to push a patch soon

If a dev comes by, here are some urls to pull data from their new SI

http://www.arte.tv/hbbtvv2/conf/apps/apps.json
http://www.arte.tv/hbbtvv2/services/web/index.php/EMAC/teasers/home/fr
http://www.arte.tv/hbbtvv2/services/web/index.php/EMAC/teasers/category/ACT/fr

http://www.arte.tv/hbbtvv2/services/web/index.php/OPA/v3/videos/lastChance/page/1/limit/20/fr
http://www.arte.tv/hbbtvv2/services/web/index.php/OPA/v3/videos/mostViewed/page/1/limit/20/fr

http://www.arte.tv/hbbtvv2/services/web/index.php/OPA/v3/streams/075144-000-A/SHOW/fr
dan31130 commented 6 years ago

My son is doing well enough and should be able to do something. If we modify the plug -in, we pass it to you?

ChaosAlpha commented 6 years ago

May I ask you how you found those URLs for their back-end API? We're trying to get a list of the most recently added videos sorted, and I tried all combinations of "airdate" and the like I could think of, to no avail. As this feature is not even present on the new website interface, I fear it might not even be implemented on the back-end, which would be a shame, as that was the way a lot of people used to browse their catalog.

jeannax commented 6 years ago

great to know this issue will be fixed cause I use this addon almost every day !

In the meantime if you could add the possibilty to watch videos from arte concert and arte creative that would be awesome !

Thanks a lot !

known-as-bmf commented 6 years ago

@dan31130 Every PR is welcome

@ChaosAlpha I looked up the http calls from their hbbtv app

for now, the only way I found to fetch most recent / by day is with an url like

http://www.arte.tv/hbbtvv2/services/web/index.php/OPA/v3/programs/{date}/fr

for example:
http://www.arte.tv/hbbtvv2/services/web/index.php/OPA/v3/programs/2018-2-19/fr

apparently, possible formats for date are YYYY-MM-DD, tomorrow, yesterday, +1 day, ...

@jeannax I can't give you an ETA for the fix, I'm unfortunately quite busy right now :/

cifera commented 6 years ago

Hello,

once we know the programId of a video we can get the new json format from https://api.arte.tv/api/player/v1/config/de/{id}? (e.g. id = 063945-019-A) So this - slightly modified code - should give the right url:

def create_video(vid, downloading=False):
    chosen_protocol = protocol if not downloading else 'HBBTV'
    chosen_quality = quality if not downloading else download_quality

    #data = load_json(video_json.format(id=vid, lang=language[0].upper(), protocol=chosen_protocol))
    data = load_json(video_json.format(id=vid, lang=language.lower()))
    filtered = []
    video = None

    # we try every quality (starting from the preferred one)
    # if it is not found, try every other from highest to lowest
    for q in [quality_map[chosen_quality]] + [i for i in ['SQ', 'EQ', 'HQ', 'MQ'] if i is not quality_map[chosen_quality]]:
        # lan = "DE" is German lan="DE-ANG" is German with English subtitles  etc.
        filtered = [item for item in data['videoJsonPlayer']['VSR'].values() if match2(item,q,language)]
        if len(filtered) == 1:
            video = filtered[0]
            break
    return {
        'label': data['videoJsonPlayer']['VST']['VNA'] if downloading else None, #data['videoJsonPlayer']['VTI'],
        'path': video['url'],
        'thumbnail': data['videoJsonPlayer']['VTU']['IUR']
    }
def match2(item, quality, lan):
    return (item['quality'] == quality) and (item['versionShortLibelle'] == lan)

I have no idea about the listing. Maybe someone who knows xbmcswift2 could help me along to get a listing of videos by date/most recent from the url found by known-as-bmf? Or from the program of the day at https://api.arte.tv/api/player/v1/illico/de?

Thanks! :)

cifera commented 6 years ago

'allo 'allo!

I've used the above mentioned to have "All the videos" get the videos of the last 7 days in playable the usual list! Its a quick and dirty fix, a bit slow to fetch the list on my pi, but better then not working at all. Live and other functionality is still broken. Which are in use Download/Categories?

Call it version 0.5.8 maybe with better support of this api we could call it 0.6. Help me to make it better and cleaner!

Bye :)

known-as-bmf commented 6 years ago

@cifera thank you very much for your time !

I will review that tomorrow and hopefully merge / push a hotfix version to the repo !

koying commented 6 years ago

Looks like we get the previews as well with current master...

u1735067 commented 6 years ago

Can

from https://www.arte.tv/guide/ be useful too ?

huchita commented 6 years ago

Fine fix ! the plugin is back, thanks

esieke commented 6 years ago

Thank you so much! It works great!

Linux LibreELEC 4.9.59 #1 Sun Jan 21 03:26:40 GMT 2018 armv6l GNU/Linux

known-as-bmf commented 6 years ago

Issue resolved for now.

A lot of features were removed, I think I will start working on a rewrite on the branch rewrite.

eghetto commented 6 years ago

Thanks! Will there be no release (0.5.8) for the repo? For us noobs... :)

known-as-bmf commented 6 years ago

I pushed the update on the official repo on Sunday.

I don't know how long it will take for the update to be pushed to the clients.

Try "force-updating" via the plugin information page in Kodi.

known-as-bmf commented 6 years ago

The new version seems to be available on the official repo !

Try updating the plugin manually :)

eghetto commented 6 years ago

Awesome! Auto-update from the official repo worked well. Thanks!

known-as-bmf commented 6 years ago

Hello everyone,

I would love testers for the rewrite to find what's missing and what could be improved.

If you're up to it, you can download the code here and install it following the instructions here.

Keep in mind that this is still a "beta" version.

You can create issues for this version with the "rewrite" tag so I can see them more easily.

Thank you very much !

esieke commented 6 years ago

Hi, did a small test 0506ed29069cddc4b299ed96244d010afa21abc0, everything works well. Also the speed on my PI1 is good enough. The new version is awesome!

Thanks again for your outstanding work

LibreELEC (official): 8.2.3 (RPi.arm) Linux LibreELEC 4.9.59 #1 Sun Jan 21 03:26:40 GMT 2018 armv6l GNU/Linux

huchita commented 6 years ago

Everythings seems to work well, a lot of options as Arte like to propose, and we can enjoy a far larger history ! but I missing the simple list in order of difusion time... Sometime it's dificult to name the category of a documentary :)

Anyway thanks a lot to make it posible !!

2018-03-01 20:41 GMT+01:00 EPS notifications@github.com:

Hi, did a small test 0506ed2 https://github.com/known-as-bmf/plugin.video.arteplussept/commit/0506ed29069cddc4b299ed96244d010afa21abc0, everything works well. Also the speed on my PI1 is good enough. The new version is awesome!

Thanks again for your outstanding work

LibreELEC (official): 8.2.3 (RPi.arm) Linux LibreELEC 4.9.59 #1 https://github.com/known-as-bmf/plugin.video.arteplussept/issues/1 Sun Jan 21 03:26:40 GMT 2018 armv6l GNU/Linux

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/known-as-bmf/plugin.video.arteplussept/issues/35#issuecomment-369707054, or mute the thread https://github.com/notifications/unsubscribe-auth/AbTpVhB669vBsvP4ZPdUdIS0a8eVntbJks5taE78gaJpZM4SK94I .

-- 06 06 66 23 80 - 486 572 699 http://www.biproc.com 石 - πR

FH59 commented 6 years ago

Bonsoir, presque tout semble fonctionner excepté: Accueil > les plus vues Accueil > dernière chance La selection créative > Toutes les vidéos

testé avec mac osx 10.9.5 Kodi 17.6

merci

known-as-bmf commented 6 years ago

I will add a function similar to the currently available "all videos" in the future. Most viewed and last chance are in the pipe too.

Thank you a lot for your time!