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

RTBF Auvio : list of videos is wrong (not filter by the chosen categories) #1414

Open
1 of 7 tasks
xaviermiller opened this issue Oct 23, 2024 · 11 comments
Open
1 of 7 tasks

Comments

@xaviermiller
Copy link
Contributor

⚠️ Please try the last beta version and check existing issues before issuing a bug. ⚠️

Describe the bug

A clear and concise description of what the bug is:

version 0.2.40-beta10
Kodi 21.1 on linux (arm64)

Since some weeks, impossible to get for example a movie. If I chose "Films", then the type of movie (e.g. "Comédie"), the resulting list is not what expected, this is as this the 200 first recents all items of RTBF Auvio, mostly the last recorded Radio and TV items.
The movies are sometimes mixed into this list

The player is working fine (I can play any presented item), the live section is OK

To Reproduce

Steps to reproduce the behaviour:

  1. go to "replay / Belgium / RTBF Auvio"
  2. chose any category "eg: Films"
  3. chose any subcategory "eg: Action"
  4. the list of videos is not what expected and is always the same

Expected behaviour

A clear and concise description of what you expected to happen: get the filtererd list of video items by category / subcategory

Actual behaviour

Tell us what happens instead:

Screenshots

If applicable, add screenshots to help explain your problem:

Your environment

  • Android

  • iOS

  • Linux

  • OSX

  • Raspberry-Pi

  • Windows

  • Other

  • Operating system version/name: Gentoo Linux (intel 64 bits)

  • Kodi version: 21.1

  • Catch-up TV & More version: 0.2.40-beta10

  • Installation method: using the beta channel, automatic updates

Additional context

Add any other context about the problem here:

Debug log

If you can, please add your debug log information (Tutorial available here: https://kodi.wiki/view/Log_file/Easy):
WhatsApp Image 2024-10-23 at 21 10 40

@xaviermiller
Copy link
Contributor Author

log:
`2024-10-23 21:17:45.265 T:3577 info : Skipped 4 duplicate messages..
2024-10-23 21:17:45.265 T:3577 warning : Setting most video properties through ListItem.setInfo() is deprecated and might be removed in future Kodi versions. Please use the respective setter in InfoTagVideo.
2024-10-23 21:17:51.882 T:3641 info : Skipped 25 duplicate messages..
2024-10-23 21:17:51.882 T:3641 error : DoWork - Direct texture file loading failed for resource://resource.images.catchuptvandmore/channels/be/brf_fanart.jpg
2024-10-23 21:17:52.515 T:3643 error : DoWork - Direct texture file loading failed for resource://resource.images.catchuptvandmore/channels/be/vrt_fanart.jpg
2024-10-23 21:17:52.814 T:3641 error : DoWork - Direct texture file loading failed for resource://resource.images.catchuptvandmore/channels/be/telemb_fanart.jpg
2024-10-23 21:17:53.231 T:3641 error : DoWork - Direct texture file loading failed for resource://resource.images.catchuptvandmore/channels/be/rtc_fanart.jpg
2024-10-23 21:17:54.652 T:3577 warning : Setting most video properties through ListItem.setInfo() is deprecated and might be removed in future Kodi versions. Please use the respective setter in InfoTagVideo.
2024-10-23 21:18:19.883 T:3577 info : Skipped 42 duplicate messages..
2024-10-23 21:18:19.883 T:3577 warning : ListItem.addStreamInfo() is deprecated and might be removed in future Kodi versions. Please use InfoTagVideo.addVideoStream(), InfoTagVideo.addAudioStream() and InfoTagVideo.addSubtitleStream().
2024-10-23 21:18:19.884 T:3577 warning : Setting most video properties through ListItem.setInfo() is deprecated and might be removed in future Kodi versions. Please use the respective setter in InfoTagVideo.
2024-10-23 21:18:19.884 T:3577 warning : ListItem.addStreamInfo() is deprecated and might be removed in future Kodi versions. Please use InfoTagVideo.addVideoStream(), InfoTagVideo.addAudioStream() and InfoTagVideo.addSubtitleStream().
2024-10-23 21:18:19.885 T:3577 warning : Setting most video properties through ListItem.setInfo() is deprecated and might be removed in future Kodi versions. Please use the respective setter in InfoTagVideo.
2024-10-23 21:18:19.885 T:3577 warning : ListItem.addStreamInfo() is deprecated and might be removed in future Kodi versions. Please use InfoTagVideo.addVideoStream(), InfoTagVideo.addAudioStream() and InfoTagVideo.addSubtitleStream().
2024-10-23 21:18:19.885 T:3577 warning : Setting most video properties through ListItem.setInfo() is deprecated and might be removed in future Kodi versions. Please use the respective setter in InfoTagVideo.
2024-10-23 21:18:19.885 T:3577 warning : ListItem.addStreamInfo() is deprecated and might be removed in future Kodi versions. Please use InfoTagVideo.addVideoStream(), InfoTagVideo.addAudioStream() and InfoTagVideo.addSubtitleStream().
2024-10-23 21:18:19.886 T:3577 warning : Setting most video properties through ListItem.setInfo() is deprecated and might be removed in future Kodi versions. Please use the respective setter in InfoTagVideo.
2024-10-23 21:18:19.886 T:3577 warning : ListItem.addStreamInfo() is deprecated and might be removed in future Kodi versions. Please use InfoTagVideo.addVideoStream(), InfoTagVideo.addAudioStream() and InfoTagVideo.addSubtitleStream().
[...]

`

@joaopa00
Copy link
Contributor

I don't have a Belgian vpn. Only Belgian people may have a look at this.

@xaviermiller
Copy link
Contributor Author

How can I help? I am software developer

@joaopa00
Copy link
Contributor

The best way to help this project is to send patches.

For RTBF Auvio, you could have a look at the file resource/lib/channels/be/rtbf.py

@xaviermiller
Copy link
Contributor Author

Sure will do. I've looked at this code file, I will check the parameters and URL's

@xaviermiller
Copy link
Contributor Author

xaviermiller commented Oct 29, 2024

It seems the APIs are changed (_next), the search API is now 1.23. This will be complicated for me to understand how it woked before and how it should work. Will still try...

seems based on red bee media

@cvandeplas
Copy link

cvandeplas commented Nov 10, 2024

The list of videos is provided by the list_videos_category() function, which uses URL_VIDEOS_BY_CAT_ID.
That variable is using v8 of the API.

The RTBF API documentation mentions v9 is the official version and previous v7, v8 are deprecated.
The documentation however does not give more details on how to use v9.

Filtering using the program_id works fine, it's just the category_id that's broken in API v8.

@xaviermiller
Copy link
Contributor Author

xaviermiller commented Nov 13, 2024

yes, seems categoryid is the problem...

list of categories : https://www.rtbf.be/api/partner/generic/embed/category?method=getTree&v=1&partnerID=
gives for example "Films / comédie" = >id=105

and the list by category, as documented in V8 gives wrong results:
https://www.rtbf.be/api/partner/generic/media/objectlist?v=9&category_id=105&target_site=mediaz&offset=0&limit=10&partner_key=

@xaviermiller
Copy link
Contributor Author

meanwhile seems I've fixed the search function, and can then pick the video I want to watch...

@joaopa00
Copy link
Contributor

Maybe you could share your work for interested people.

xaviermiller added a commit to xaviermiller/plugin.video.catchuptvandmore that referenced this issue Dec 1, 2024
The lists by category/subcategory are no more working, see Catch-up-TV-and-More#1414
The updated search API is working, then we can play the from the results list.
@xaviermiller
Copy link
Contributor Author

Maybe you could share your work for interested people.

Hi, I made a PR #1438

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

No branches or pull requests

3 participants