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

Addon not working #35

Closed
dan31130 opened this issue Feb 19, 2018 · 22 comments
Closed

Addon not working #35

dan31130 opened this issue Feb 19, 2018 · 22 comments

Comments

@dan31130
Copy link

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

@known-as-bmf
Copy link
Owner

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
Copy link
Author

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
Copy link

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
Copy link

jeannax commented Feb 21, 2018

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
Copy link
Owner

known-as-bmf commented Feb 21, 2018

@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
Copy link
Contributor

cifera commented Feb 23, 2018

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
Copy link
Contributor

cifera commented Feb 25, 2018

'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
Copy link
Owner

@cifera thank you very much for your time !

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

@koying
Copy link
Contributor

koying commented Feb 25, 2018

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

@u1735067
Copy link

Can

  • https://www.arte.tv/guide/api/api/pages/fr/web/TV_GUIDE/ (=today)
  • https://www.arte.tv/guide/api/api/pages/fr/web/TV_GUIDE/?day=18-02-24

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

@huchita
Copy link

huchita commented Feb 26, 2018

Fine fix !
the plugin is back, thanks

@esieke
Copy link

esieke commented Feb 26, 2018

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
Copy link
Owner

Issue resolved for now.

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

@eghetto
Copy link

eghetto commented Feb 26, 2018

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

@known-as-bmf
Copy link
Owner

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
Copy link
Owner

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

Try updating the plugin manually :)

@eghetto
Copy link

eghetto commented Feb 27, 2018

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

@known-as-bmf
Copy link
Owner

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
Copy link

esieke commented Mar 1, 2018

Hi,
did a small test 0506ed2, 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
Copy link

huchita commented Mar 1, 2018 via email

@FH59
Copy link

FH59 commented Mar 1, 2018

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
Copy link
Owner

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests