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

changed json? #7

Closed
vader2014 opened this issue Sep 21, 2022 · 3 comments
Closed

changed json? #7

vader2014 opened this issue Sep 21, 2022 · 3 comments

Comments

@vader2014
Copy link

Hi!

When I choose "Sendung Verpasst" and navigate to a podcast I get an error:

ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
 NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.TypeError'>
Error Contents: 'NoneType' object has no attribute '__getitem__' Traceback (most recent call last):
File "/home/pi/.kodi/addons/plugin.audio.radiothek/default.py", line 7, in <module> Addon.main(handle)
File "/home/pi/.kodi/addons/plugin.audio.radiothek/resources/lib/Addon.py", line 308, in main broadcasts = pi.get_broadcast_details(link)
File "/home/pi/.kodi/addons/plugin.audio.radiothek/resources/lib/RadioThek.py", line 460, in get_broadcast_details stream_url = self.get_stream_url(broadcast_details)
File "/home/pi/.kodi/addons/plugin.audio.radiothek/resources/lib/RadioThek.py", line 138, in get_stream_url(host, host_channel, loopStreamId, offset) = self.get_stream_base(station, json_item['start'], json_item['streams'])
File "/home/pi/.kodi/addons/plugin.audio.radiothek/resources/lib/RadioThek.py", line 127, in get_stream_base channel_infos = api_reference['stations'][station]
TypeError: 'NoneType' object has no attribute '__getitem__'
 -->End of Python script error report<--

NOTICE: PulseAudio: Opened device Default in pcm mode with Buffersize 450 ms
ERROR: GetDirectory - Error getting plugin://plugin.audio.radiothek/?link=https%3a%2f2faudioapi.orf.at%2foe1%2fapi%2fjson%2f4.0%2fbroadcast%2f691479%2f20220921&mode=broadcast_detail
ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.audio.radiothek/?link=https%3a%2f2faudioapi.orf.at%2foe1%2fapi%2fjson%2f4.0%2fbroadcast%2f691479%2f20220921&mode=broadcast_detail) failed

unfortunately i have no older json at hand but i would assume that the host information was removed?
if i manually open

https://loopstream01.apa.at/?shoutcast=0&player=radiothek_v1&referer=radiothek.orf.at&offset=0&id=2022-09-21_0659_tl_51_7DaysWed6_1924633.mp3&channel=oe1

it works.

@lomion0815
Copy link
Contributor

They moved to https://sound.orf.at and changed the api there somehow. Is there any documentation about this api?

s0faking added a commit that referenced this issue Sep 22, 2022
s0faking added a commit that referenced this issue Sep 22, 2022
@s0faking
Copy link
Owner

lomion0815 added a commit to lomion0815/plugin.audio.radiothek that referenced this issue Sep 23, 2022
s0faking added a commit that referenced this issue Oct 29, 2022
Issue #7: Additional fix for the live channels list
@s0faking
Copy link
Owner

pushed 0.1.3 to the official repo

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