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

NRK Radio broken for me #19

Open
nurk39 opened this issue May 10, 2020 · 4 comments
Open

NRK Radio broken for me #19

nurk39 opened this issue May 10, 2020 · 4 comments

Comments

@nurk39
Copy link

nurk39 commented May 10, 2020

Describe the bug

When trying to download a episode of old "Stompa" show nrkdownload gives stacktrace.

To Reproduce
Steps to reproduce the behavior:

$ nrkdownload -d . https://radio.nrk.no/serie/stompa/MKTT60001160/27-08-1960
Traceback (most recent call last):
  File "/usr/local/bin/nrkdownload", line 11, in <module>
    sys.exit(main())
  File "/home/janl/.local/lib/python3.6/site-packages/nrkdownload/commandline_script.py", line 105, in main
    download_url(url, download_all=arguments.all, download_last=arguments.last)
  File "/home/janl/.local/lib/python3.6/site-packages/nrkdownload/commandline_script.py", line 121, in download_url
    programs = parse_nrk_url.parse_url(url)
  File "/home/janl/.local/lib/python3.6/site-packages/nrkdownload/parse_nrk_url.py", line 80, in parse_url
    episode = tv.new_program_from_mediaelement_id(media_id)
  File "/home/janl/.local/lib/python3.6/site-packages/nrkdownload/tv.py", line 298, in new_program_from_mediaelement_id
    episode_title=episode_title,
  File "/home/janl/.local/lib/python3.6/site-packages/nrkdownload/tv.py", line 69, in __init__
    self._series = series_from_series_id(self.series_id)
  File "/home/janl/.local/lib/python3.6/site-packages/nrkdownload/tv.py", line 310, in series_from_series_id
    json = nrkapi.get_series(series_id)
  File "/home/janl/.local/lib/python3.6/site-packages/nrkdownload/nrkapi.py", line 106, in get_series
    r.raise_for_status()
  File "/home/janl/.local/lib/python3.6/site-packages/requests/models.py", line 941, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://psapi.nrk.no/tv/catalog/series/stompa

$ host psapi.nrk.no
psapi.nrk.no is an alias for psapi3-prod.trafficmanager.net.
psapi3-prod.trafficmanager.net is an alias for gateway-prod-we1.westeurope.cloudapp.azure.com.
gateway-prod-we1.westeurope.cloudapp.azure.com has address 13.81.172.33

The psapi.nrk.no URL gives a 404.

Expected behavior
No exceptions thrown

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: Linux
  • Ubuntu 18.04.4 LTS

Additional context

  • Version nrkdownload version 2.1.2, running under Linux with Python 3.6.9
  • Works on TV shows
@marhoy
Copy link
Owner

marhoy commented May 11, 2020

Yes, I'm aware of the problem.
Radio content have not been working since NRK changed their API in April.
But I'll give it a second try :)

@arthoz
Copy link

arthoz commented Dec 3, 2020

Any updates to this issue?

@marhoy
Copy link
Owner

marhoy commented Dec 13, 2020

No, I'm sorry to say that I haven't had time to look at this for a long time.
Maybe I'll have some spare time during Christmas, we'll see :)

@tobixen
Copy link

tobixen commented Aug 30, 2023

Still an issue ...

$ nrkdownload https://radio.nrk.no/serie/i-trifidenes-dager/
Not able to parse URL

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

4 participants