Giter Club home page Giter Club logo

plugin.video.nederland24's Issues

Regional stations

Is it possible to extend Nederland24 with regional stations (TV Drenthe, Omroep Brabant, ...)?

fout in script! Nederland24

Hello there,

I have installed Kodi(OSMC) on my Raspberry Pi2 and I was very pleased how slick it looks and feels.
I had frodo on a raspberry Pi model B. But that took ages to load and after a while my favorite video addon(Nederland 24, Yes, Iḿ Dutch) had a script error and I didn´t use it anymore. Now with Kodi and raspberry Pi 2, I decided to try it again and again I must admit that I´m impressed.
But again,after 2 weeks, I bumpe into that script error again on Nederland 24. I uninstalled the video addon and rebooted the Pi and installed the addon again but alas. Scipt error.
I had another sd card with Kodi(openelec) with Kodi, and thought that would help me out. But again; script error.
Than I installed Kodi on my Linux laptop and again; script error.
What could be wrong here. I googled for a solution but so far nothing helped. I really like Kodi on my Pi, with Kore as a remote device on my android phone. But the script error spoils the fun. Has someone a clou as to what to do to solve this script error?

Gijs
p.s. My log file is http://xbmclogs.com/p7fqmqknz

sgmllib deprecated gives error.

See: https://docs.python.org/2/library/sgmllib.html
So basically it is not a error related to the plugin, but related to the Python version.

It gives this error:

22:17:55 T:140025459050240   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.ImportError'>
                                            Error Contents: No module named sgmllib
                                            Traceback (most recent call last):
                                              File "/home/peter/.kodi/addons/plugin.video.nederland24/nederland24.py", line 24, in <module>
                                                from BeautifulSoup import BeautifulStoneSoup, SoupStrainer
                                              File "/home/peter/.kodi/addons/script.module.beautifulsoup/lib/BeautifulSoup.py", line 86, in <module>
                                                from sgmllib import SGMLParser, SGMLParseError
                                            ImportError: No module named sgmllib
                                            -->End of Python script error report<--
22:17:55 T:140026477856704   ERROR: GetDirectory - Error getting plugin://plugin.video.nederland24/
22:17:55 T:140026477856704   ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.nederland24/) failed

Livestreams haperen

Hey,

Just installed fresh libreelec on a pi 3. The video is stuttering a lot when watching the livestreams.
Can I change any settings to improve this? Can I increase the buffer? Decrease the video quality? Anything else I can change to improve liveatream playback?

Subtitle and Event IDs

Here's the codes for the subtitle/TTT and Event/mcr streams so you can reactivate them:

LI_NL1_824154 - NPO 1 TTT
LI_NL2_824153 - NPO 2 TTT
LI_NL3_824151 - NPO 3 TTT

LI_NEDERLAND1_221709 - MCR1
LI_NEDERLAND2_221711 - MCR2
LI_NEDERLAND3_221713 - MCR3

Marking livestreams as watched makes no sense

I noticed that after I watching Politiek24 or HollandDoc24, the item disappeared from the list of channels. This was mindboggling until I realised my skin's watched filter is set to "Unwatched". It seems that livestreams are also marked as Watched while one can never in reality watch the entire stream. Since the watched filter is semi-global for a skin (at least for the list view on addons), it is inconvenient in the case of Nederland24.

NPO Extra

NPO Cultura is now called NPO 2 Extra.
Would it be possible to add NPO 1 Extra and NPO 3 Extra?

NPO 1,2,3 stopped working

A few days ago these three streams stopped working in the kodi addon. Error log:

20:39:25.574 688418.500000 T:1921130560  NOTICE: VideoPlayer: Opening: http://pedgewarea21b.video.kpnstreaming.nl/session/ed8fb7f6-1287-11e8-9d07-9cb65498b840/fqimjj/b2b/live/npo/live/npo/tvlive/npo1cc/npo1cc.isml/npo1cc.m3u8?token=1c01fe76a2521a38e37d2698fa10df53_1518809964_1518809964
20:39:25.574 688418.500000 T:1921130560 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
20:39:25.829 688418.750000 T:976220928  NOTICE: Creating InputStream
20:39:26.135 688419.062500 T:976220928   ERROR: CCurlFile::Open failed with code 404 for http://pedgewarea21b.video.kpnstreaming.nl/session/ed8fb7f6-1287-11e8-9d07-9cb65498b840/fqimjj/b2b/live/npo/live/npo/tvlive/npo1cc/npo1cc.isml/npo1cc.m3u8?token=1c01fe76a2521a38e37d2698fa10df53_1518809964_1518809964
20:39:26.135 688419.062500 T:976220928  NOTICE: Creating Demuxer
20:39:26.288 688419.250000 T:976220928   ERROR: OpenDemuxStream - Error creating demuxer
20:39:26.288 688419.250000 T:976220928  NOTICE: CVideoPlayer::OnExit()
20:39:26.289 688419.250000 T:1921130560   ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.video.nederland24/?url=LI_NL1_824154&mode=playVideo]

https://www.npo.nl/live works fine in a browser, and the other NPO streams in kodi seem fine too.

Plugin stopped working

It seems the whole Nederland 24 web site/backend has changed. The plugin is unable to parse the XML, see for example the following error if "Journaal 24" is enabled.

21:45:26 T:140040782141184   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                         - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                        Error Type: <type 'exceptions.AttributeError'>
                                        Error Contents: 'NoneType' object has no attribute 'group'
                                        Traceback (most recent call last):
                                          File "/home/media/.xbmc/addons/plugin.video.nederland24/nederland24.py", line 72, in <module>
                                            nowTitle=((re.search(r'<span id="nowTitle">([^*]*?)</span>',HTML)).group(1)).strip()
                                        AttributeError: 'NoneType' object has no attribute 'group'
                                        -->End of Python script error report<--

If it is able (for example when only enabling "Politiek 24"), it doesn't play. E.g. I get the following error:

21:43:21 T:140040782141184   ERROR: Open - failed to open source <http://download.omroep.nl/nos/iphone-live-streaming/p24/p24_ipad.m3u8>

(which indeed doesn't exist).

See also this forum topic: http://forum.xbmc.org/showthread.php?tid=142163

Add-on fails to start 'script failed' due to missing BeautifulSoup

In Gotham, both on Mac and OpenELEC, the addon fails to start because it tries to import BeautifulSoup, which is not present on all systems.

From the log:
15:42:20 T:4609355776 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<-- - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS! Error Type: <type 'exceptions.ImportError'> Error Contents: No module named BeautifulSoup Traceback (most recent call last): File "/Users/hoekstra/Library/Application Support/XBMC/addons/plugin.video.nederland24/nederland24.py", line 24, in <module> from BeautifulSoup import BeautifulStoneSoup, SoupStrainer ImportError: No module named BeautifulSoup -->End of Python script error report<-- 15:42:20 T:140735099503376 ERROR: GetDirectory - Error getting plugin://plugin.video.nederland24/ 15:42:20 T:140735099503376 ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.nederland24/) failed

nederland24.py throws error

Hey bosel,

I like your addon! Used it a lot, but lately it has started to let me down...

I am using a RaspBMC install on a raspberry pi, whenever I start any of the nederland24 channels I get a Playback failed check the log files for details. So I did:

This is in the kodi logs:

18:35:04 T:2799293504  NOTICE: Thread LanguageInvoker start, auto delete: false
18:35:04 T:2799293504  NOTICE: -->Python Interpreter Initialized<--
18:35:05 T:2799293504  NOTICE: plugin.video.nederland24:: Starting Addon
18:35:05 T:2799293504   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.AttributeError'>
                                            Error Contents: 'NoneType' object has no attribute 'group'
                                            Traceback (most recent call last):
                                              File "/home/pi/.kodi/addons/plugin.video.nederland24/nederland24.py", line 187, in <module>
                                                playVideo(url)
                                              File "/home/pi/.kodi/addons/plugin.video.nederland24/nederland24.py", line 163, in playVideo
                                                videopre=re.search(r'http:(.*?)url',page).group()
                                            AttributeError: 'NoneType' object has no attribute 'group'
                                            -->End of Python script error report<--
18:35:05 T:3038814208   ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.video.nederland24/?url=tvlive%2Fned1%2Fned1.isml%2Fned1.m3u8&mode=playVideo]
18:35:05 T:2799293504  NOTICE: Thread BackgroundLoader start, auto delete: false

Do you have any thoughts?

Seems NPO streams return a 410 as of today

from kodi.log:

18:57:55 T:2623534144  NOTICE: -->Python Interpreter Initialized<--
18:57:56 T:2623534144  NOTICE: plugin.video.nederland24:: Starting Addon
18:57:56 T:2623534144  NOTICE: plugin.video.nederland24:: NPO Radio 1 not set
18:57:56 T:2623534144  NOTICE: plugin.video.nederland24:: NPO Radio 2 not set
18:57:56 T:2623534144  NOTICE: plugin.video.nederland24:: NPO 3FM not set
18:57:56 T:2623534144  NOTICE: plugin.video.nederland24:: NPO Radio 4 not set
18:57:56 T:2623534144  NOTICE: plugin.video.nederland24:: NPO Radio 6 not set
18:57:56 T:2623534144  NOTICE: plugin.video.nederland24:: NPO FunX not set
18:57:59 T:2623534144  NOTICE: plugin.video.nederland24:: No additional channels set
18:58:02 T:2623534144  NOTICE: Thread LanguageInvoker start, auto delete: false
18:58:02 T:2623534144  NOTICE: -->Python Interpreter Initialized<--
18:58:03 T:2623534144  NOTICE: plugin.video.nederland24:: Starting Addon
18:58:03 T:2623534144   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <class 'urllib2.HTTPError'>
                                            Error Contents: HTTP Error 410: Gone
                                            Traceback (most recent call last):
                                              File "/home/pi/.kodi/addons/plugin.video.nederland24/nederland24.py", line 246, in <module>
                                                playVideo(url)
                                              File "/home/pi/.kodi/addons/plugin.video.nederland24/nederland24.py", line 213, in playVideo
                                                URL = API_URL+BASE_URL+media+"&token=%s" % collect_token()
                                              File "/home/pi/.kodi/addons/plugin.video.nederland24/nederland24.py", line 146, in collect_token
                                                response = urllib2.urlopen(req)
                                              File "/usr/lib/python2.7/urllib2.py", line 127, in urlopen
                                                return _opener.open(url, data, timeout)
                                              File "/usr/lib/python2.7/urllib2.py", line 407, in open
                                                response = meth(req, response)
                                              File "/usr/lib/python2.7/urllib2.py", line 520, in http_response
                                                'http', request, response, code, msg, hdrs)
                                              File "/usr/lib/python2.7/urllib2.py", line 445, in error
                                                return self._call_chain(*args)
                                              File "/usr/lib/python2.7/urllib2.py", line 379, in _call_chain
                                                result = func(*args)
                                              File "/usr/lib/python2.7/urllib2.py", line 528, in http_error_default
                                                raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
                                            HTTPError: HTTP Error 410: Gone
                                            -->

Streams not working

The streams do not work anymore (alas). Error log will be posted after dinner :)

//

18:14:47.911 T:1807741856 WARNING: Previous line repeats 300 times.
18:14:47.911 T:1807741856 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <class 'urllib2.HTTPError'>
Error Contents: HTTP Error 410: Gone
Traceback (most recent call last):
File "/storage/.kodi/addons/plugin.video.nederland24/nederland24.py", line 247, in
playVideo(url)
File "/storage/.kodi/addons/plugin.video.nederland24/nederland24.py", line 213, in playVideo
URL = API_URL+BASE_URL+media+"&token=%s" % collect_token()
File "/storage/.kodi/addons/plugin.video.nederland24/nederland24.py", line 146, in collect_token
response = urllib2.urlopen(req)
File "/usr/lib/python2.7/urllib2.py", line 154, in urlopen
File "/usr/lib/python2.7/urllib2.py", line 435, in open
File "/usr/lib/python2.7/urllib2.py", line 548, in http_response
File "/usr/lib/python2.7/urllib2.py", line 473, in error
File "/usr/lib/python2.7/urllib2.py", line 407, in _call_chain
File "/usr/lib/python2.7/urllib2.py", line 556, in http_error_default
HTTPError: HTTP Error 410: Gone
-->End of Python script error report<--
18:14:47.968 T:1961964288 ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.video.nederland24/?url=LI_NL1_4188102&mode=playVideo]
18:14:48.731 T:1553986464 WARNING: CWebServer[8080]: invalid response data with range start at 1 and end at 0
18:14:49.244 T:1553986464 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <class 'urllib2.HTTPError'>
Error Contents: HTTP Error 410: Gone
Traceback (most recent call last):
File "/storage/.kodi/addons/plugin.video.nederland24/nederland24.py", line 247, in
playVideo(url)
File "/storage/.kodi/addons/plugin.video.nederland24/nederland24.py", line 213, in playVideo
URL = API_URL+BASE_URL+media+"&token=%s" % collect_token()
File "/storage/.kodi/addons/plugin.video.nederland24/nederland24.py", line 146, in collect_token
response = urllib2.urlopen(req)
File "/usr/lib/python2.7/urllib2.py", line 154, in urlopen
File "/usr/lib/python2.7/urllib2.py", line 435, in open
File "/usr/lib/python2.7/urllib2.py", line 548, in http_response
File "/usr/lib/python2.7/urllib2.py", line 473, in error
File "/usr/lib/python2.7/urllib2.py", line 407, in _call_chain
File "/usr/lib/python2.7/urllib2.py", line 556, in http_error_default
HTTPError: HTTP Error 410: Gone
-->End of Python script error report<--
18:14:49.312 T:1961964288 ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.video.nederland24/?url=LI_NL1_4188102&mode=playVideo]
18:14:50.721 T:1762055072 WARNING: CWebServer[8080]: invalid response data with range start at 1 and end at 0
18:22:36.631 T:1553986464 WARNING: Previous line repeats 290 times.

NPO streams changed

It seems that as of Oct 28, 2014, the Dutch Public Broadcasting changed the streams again, breaking this delicious plugin.

New Live Streams

There's a few additional live streams you might want to include

TTT (888 Subtitles):
NPO 1: tvlive/npo1cc/npo1cc.isml/npo1cc.m3u8
NPO 2: tvlive/npo2cc/npo2cc.isml/npo2cc.m3u8
NPO 3: tvlive/npo3cc/npo3cc.isml/npo3cc.m3u8

MCR (Event Streams):
MCR1: tvlive/mcr1/mcr1.isml/mcr1.m3u8
MCR2: tvlive/mcr2/mcr2.isml/mcr2.m3u8
MCR3: tvlive/mcr3/mcr3.isml/mcr3.m3u8

Visual Radio:
NPO Radio 4: visualradio/radio4/radio4.isml/radio4.m3u8
NPO Radio 6: visualradio/radio6/radio6.isml/radio6.m3u8
NPO FunX: visualradio/funx/funx.isml/funx.m3u8

3.0.0 no video on live streams, some do not work at al.

image
101 tv just audio
Best 24 just audio no video (just Grey screen)
Cultura24 idem
Familie 24 idem
Hollanddoc 24 idem
Humor 24 just audio
Journaal 24 idem
Laatste Nos journaal works
Nos jeugdjournaal works
Nos journaal 20:00 works
Politiek 24 just audio (like the rest)

Sorry for the bad picture (iPad) note the update database progress window in the upper right corner, this was not activeren During test. Just for the picture ...

This is on frodo on a raspberry pi.

Expand video list with other Regional Dutch TV channels

See: http://www.npo.nl/specials/regionale-omroepen

M3U list

#EXTM3U
#EXTINF:-1 group-title="Regionaal",Omrop Fryslân
http://live.wowza.kpnstreaming.nl/omropfryslanlive/OFstream04.smil/playlist.m3u8

#EXTINF:-1 group-title="Regionaal",TV Drenthe
rtmp://stream.rtvdrenthe.nl/tv/tvstream1

#EXTINF:-1 group-title="Regionaal",RTV Noord Holland
http://lb-rtvnh-live.streamgate.nl:1935/rtvnh/live/tvnh1/playlist.m3u8

#EXTINF:-1 group-title="Regionaal",Omroep West
http://omroepwest.stream.bbvms.com/live/omroepwest/tv-high/playlist.m3u8

#EXTINF:-1 group-title="Regionaal",Omroep Zeeland
http://livestream.zeelandnet.nl:1935/live/omroepzeeland_tv_1500k.sdp/playlist.m3u8

These TV streams are more difficult to get working due to restrictions (token, referer, user-agent).
Omroep Gelderland
L1
RTV Utrecht

Update knop niet bruikbaar

Ik heb versie 4.5.1. Deze doet het al een tijdje niet meer. Maar kan niet updaten naar de laatste versie want update knop blijft grijs (system > adons > videoadons > ned 24 onder knop 'configure').

Ook als ik in het repository kijk staat daar de oude versie.
system > adons > install from repository > video adons > kodi adon repository. staat nog 4.5.1 terwijl 4.5.6 al uit is. Wordt dat niet geupdate? Moet ik die uit een andere repository halen? Zo ja, welke is betrouwbaar?

Blijkt dat het met mij kodi versie te maken had. I was nog op kodi 15.2. Update naar 17.1 zorgde dat alles weer naar behoren werkt.

NPO live stream stopped working

Since a couple of days, the NPO [1,2,3] live streams no longer work. Possibly related to #33.

In the logs I found this exception:

18:54:07.424 T:1736041376   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--                                                                                                                                          
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!                                                                                                                                                                                    
                                            Error Type: <class 'urllib2.HTTPError'>                                                                                                                                                                                             
                                            Error Contents: HTTP Error 404: Not Found                                                                                                                                                                                           
                                            Traceback (most recent call last):                                                                                                                                                                                                  
                                              File "/storage/.kodi/addons/plugin.video.nederland24/nederland24.py", line 241, in <module>                                                                                                                                       
                                                playVideo(url)                                                                                                                                                                                                                  
                                              File "/storage/.kodi/addons/plugin.video.nederland24/nederland24.py", line 208, in playVideo                                                                                                                                      
                                                response = urllib2.urlopen(req)                                                                                                                                                                                                 
                                              File "/usr/lib/python2.7/urllib2.py", line 154, in urlopen                                                                                                                                                                        
                                              File "/usr/lib/python2.7/urllib2.py", line 435, in open                                                                                                                                                                           
                                              File "/usr/lib/python2.7/urllib2.py", line 548, in http_response                                                                                                                                                                  
                                              File "/usr/lib/python2.7/urllib2.py", line 473, in error                                                                                                                                                                          
                                              File "/usr/lib/python2.7/urllib2.py", line 407, in _call_chain                                                                                                                                                                    
                                              File "/usr/lib/python2.7/urllib2.py", line 556, in http_error_default                                                                                                                                                             
                                            HTTPError: HTTP Error 404: Not Found                                                                                                                                                                                                
                                            -->End of Python script error report<--                                                                                                                                                                                             
18:54:07.566 T:1947332624   ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.video.nederland24/?url=LI_NL2_824153&mode=playVideo]                                                                                                                     

So far I fail to come up with an explanation on why it fails.
If you can give any hints to help me debug this issue, please let me know!

I run the plugin on OpenELEC on a raspberry pi.

Again channels not working

Im on Kodi and plugin 4.3.0, but none of the channels are working. Tested it on 3 platforms and 5 devices

EOL

Misschien kun je deze repo beter op public archive zettten aangezien het niet meer bruikbaar is en je beter retrospect kunt gebruiken

Specific streams stopped working

For me Holland Doc 24, Journaal 24 and Politiek 24, so the live streams stopped working. I have the following things in the log:

18:00:03 T:140381946459904   ERROR: Open - error probing input format, http://livestreams.omroep.nl/nos/journaal24-bb
18:00:03 T:140381946459904   ERROR: OpenDemuxStream - Error creating demuxer
18:00:03 T:140381946459904  NOTICE: CDVDPlayer::OnExit()
18:00:03 T:140381946459904  NOTICE: CDVDPlayer::OnExit() deleting input stream
18:00:03 T:140382978176928   ERROR: Playlist Player: skipping 

Is this codec related (XBMC 12 on Debian/Ubuntu)? Or did they change something again.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.