GithubHelp home page GithubHelp logo

goggle / script.module.srgssr Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 7.0 341 KB

Kodi script for SRG SSR related Kodi plugins.

License: GNU General Public License v3.0

Python 100.00%
kodi kodi-addon srg rsi rts srf srgssr swi

script.module.srgssr's Introduction

script.module.srgssr's People

Contributors

denthebarde avatar dependabot[bot] avatar fabwu avatar goggle avatar tobiaswaldvogel avatar vszakats avatar

Watchers

 avatar  avatar  avatar

script.module.srgssr's Issues

Requested settings not found

From the logs:

2022-05-25 04:51:14.821 T:4456    DEBUG <CSettingsManager>: requested setting (Enable_Segments_Topics) was not found.
2022-05-25 04:51:14.821 T:4456    DEBUG <CSettingsManager>: requested setting (Enable_Show_Segments) was not found.
2022-05-25 04:51:14.821 T:4456    DEBUG <CSettingsManager>: requested setting (Most_Clicked_Shows) was not found.
2022-05-25 04:51:14.821 T:4456    DEBUG <CSettingsManager>: requested setting (Newest_Shows) was not found.
2022-05-25 04:51:14.821 T:4456    DEBUG <CSettingsManager>: requested setting (Recommendations) was not found.
2022-05-25 04:51:14.821 T:4456    DEBUG <CSettingsManager>: requested setting (SRF_Live) was not found.
2022-05-25 04:51:14.821 T:4456    DEBUG <CSettingsManager>: requested setting (Soon_Offline) was not found.

Topics navigation broken

Hello, all SRF addons no longer allow to navigate through the "Topics" entry. "Show by date" and "All shows" still work fine from what I checked.

Without the "Topics" section it's impossible to find the livesport streaming events. I believe you can still stream them if you grab the event number from the website and create an strm file from it yourself.

edit: forgot to mention this is happening on Nexus, did not test against Kodi Matrix anymore.

Error getting show list from SRF (ValueError)

Hi goggle
Thanks for your work!
Since yesterday I do have problems with the SRF Play TV addon - always when I want to list concrete shows (not only show names - e.g. menu point "Newest favorite shows"), I get an error - it says "ValueError: No JSON object could be decoded".

Looking at the log, I found the following problem (in this example, there is only one show in favorites, "Babylon Berlin"):

2020-05-13 14:14:50.109 T:1799328640   DEBUG: CAddonSettings[plugin.video.srfplaytv]: loading setting definitions  
2020-05-13 14:14:50.110 T:1799328640   DEBUG: CAddonSettings[plugin.video.srfplaytv]: trying to load setting definitions from old format...  
2020-05-13 14:14:50.111 T:1799328640   DEBUG: CAddonSettings[plugin.video.srfplaytv]: loading setting values  
2020-05-13 14:14:50.112 T:1799328640   DEBUG: script.module.srgssr-1.7.0-build_newest_favourite_menu  
2020-05-13 14:14:50.113 T:1799328640   DEBUG: script.module.srgssr-1.7.0-build_newest_favourite_menu. Open URL https://www.srf.ch/play/tv/show/d12a798e-c300-4816-b627-68e075823549/latestEpisodes?numberOfEpisodes=30&tillMonth=05-2020.  
2020-05-13 14:14:50.113 T:1799328640   DEBUG: script.module.srgssr-1.7.0-open_url, url = https://www.srf.ch/play/tv/show/d12a798e-c300-4816-b627-68e075823549/latestEpisodes?numberOfEpisodes=30&tillMonth=05-2020  
2020-05-13 14:14:50.126 T:1799328640   DEBUG: Skin Helper Simplecache --> Closed  
2020-05-13 14:14:50.126 T:1799328640   ERROR: EXCEPTION Thrown (PythonToCppException)  : -->Python callback/script returned the following error<--  
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!  
                                            Error Type: <type 'exceptions.ValueError'>  
                                            Error Contents: No JSON object could be decoded  
                                            Traceback (most recent call last):  
                                              File "/storage/.kodi/addons/plugin.video.srfplaytv/addon.py", line 23, in <module>  
                                                srfplaytv.run()  
                                              File "/storage/.kodi/addons/plugin.video.srfplaytv/resources/lib/srfplaytv.py", line 120, in run  
                                                SRFPlayTV().build_newest_favourite_menu(page=page)  
                                              File "/storage/.kodi/addons/script.module.srgssr/lib/srgssr.py", line 534, in build_newest_favourite_menu  
                                                response = json.loads(self.open_url(json_url))  
                                              File "/usr/lib/python2.7/json/__init__.py", line 339, in loads  
                                              File "/usr/lib/python2.7/json/decoder.py", line 364, in decode  
                                              File "/usr/lib/python2.7/json/decoder.py", line 382, in raw_decode  
                                            ValueError: No JSON object could be decoded  
                                            -->End of Python script error report<--  
2020-05-13 14:14:50.126 T:1799328640   DEBUG: onExecutionDone(27, /storage/.kodi/addons/plugin.video.srfplaytv/addon.py)  
2020-05-13 14:14:50.200 T:1937465360   DEBUG: ------ Window Init (DialogNotification.xml) ------  
2020-05-13 14:14:50.386 T:1799328640    INFO: Python interpreter stopped  
2020-05-13 14:14:50.386 T:1799328640   DEBUG: Thread LanguageInvoker 1799328640 terminating  
2020-05-13 14:14:50.387 T:1627059072   DEBUG: Skin Helper Widgets --> Kodi_Monitor: sender plugin.video.youtube - method: Other.check_settings  - data: ["%7B%22httpd_address%22%3A%20%220.0.0.0%22%2C%20%22use_httpd%22%3A%20false%2C%20%22whitelist%22%3A%20%22%22%2C%20%22httpd_port%22%3A%2050152%7D"]  
2020-05-13 14:14:50.398 T:1543132032   ERROR: GetDirectory - Error getting plugin://plugin.video.srfplaytv/?mode=12&name=Newest_Favourite_Shows  
2020-05-13 14:14:50.399 T:1543132032   DEBUG: Thread waiting 1543132032 terminating  

I'm running SRF Play TV 1.6.0 with script.module.srgssr 1.7.0 on LibreELEC 9.2.1.

Any idea how to fix this? Did SRF change something in their URL-structure?
Thanks and e gruess

Some segment entries play the whole episode instead of the segment

When trying to play a segment of a video episode, some play the whole episode instead of only the segment.

Edit: Now it doesn't seem to work for any video anymore...

Live TV does not work anymore because of DRM protection

Since December 2018, it is not possible to play live TV on any SRG SSR related Kodi plugins (e.g. plugin.video.srfplaytv). This is due to recently added DRM protection of the live streams:

Kodi 18 (Leia) has received some sort of DRM support (have a look at the Kodi's Python documentation here: https://codedocs.xyz/AlwinEsch/kodi/group__python__xbmcdrm.html). So I guess it might be possible to bring Live TV playback back to my plugins (definitely not for Kodi 17, but possibly for Kodi 18).

Can someone with knowledge in this topic approve this?
How exactly can this be done? If someone can help, please let me know.

The protected streams which I'm talking about, can be found here: https://www.srf.ch/play/tv/live/

browsing the main menu no longer works with all the play addons

I believe it happend two days ago? Now kodi throws out
errors in the build_main_menu function.

creating a strm playlist file with
plugin://plugin.video.srfplaytv/?mode=50&name=urn:swisstxt:video:srf:$id
syntax still works

I checked it against all the play addons the error is the same.

Show by date empty

Hello guys!
I'm running on Linux Mint 21 amd64 with kodi 20.2 and addon v. 2.2.3
Section show by date is empty, maybe something in chamged on web site structure
If necessary for you debug, I'll upload a log file

Thamks for your job!

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.