The branch, gotham has been updated
       via  3b8daeb9c31e1b2da35dcc2b5e21101796fab00a (commit)
      from  eeb5979d2104c6f7026d5d7e0b79c06637a3eef2 (commit)

- Log -----------------------------------------------------------------
http://xbmc.git.sourceforge.net/git/gitweb.cgi?p=xbmc/plugins;a=commit;h=3b8daeb9c31e1b2da35dcc2b5e21101796fab00a

commit 3b8daeb9c31e1b2da35dcc2b5e21101796fab00a
Author: sphere <[email protected]>
Date:   Fri Jul 11 10:59:53 2014 +0200

    [plugin.video.svtplay] updated to version 4.0.5

diff --git a/plugin.video.svtplay/README.md b/plugin.video.svtplay/README.md
index 37f27fc..4df3b98 100644
--- a/plugin.video.svtplay/README.md
+++ b/plugin.video.svtplay/README.md
@@ -5,6 +5,8 @@ The plugin fetches the video URL from the SVT Play website and 
feeds it to the X
 
 It requires XBMC 13.0 (Gotham) to function.
 
+To open the **context menu**, press "c" on a keyboard or long press "Menu" on 
Apple TV 2 (ATV2).
+
 ## Using the Playlist
 The plugin includes a feature for adding videos to XBMC's playlist.
 
@@ -17,6 +19,13 @@ Open the playlist from the plugin's top menu. Highlight a 
video and then press o
 ### Start Playing the Playlist
 Open the playlist from the plugin's top menu. Click on "Play".
 
+## Favorites
+TV programs in the A-Ö and category listings can be added as favorites. To 
add a program as a favorite, open the context menu, when a program is 
highlighted in the menu, and then click on "Add to favorites".
+
+Favorites can be accessed from the top-level menu item "Favorites".
+
+To remove a favorite, open the context menu, when a favorite is highlighted in 
the "Favorites" menu, and then clock on "Remove from favorites".
+
 ## Explaination of Settings
 
 * (General) Show subtitles
@@ -29,3 +38,14 @@ Open the playlist from the plugin's top menu. Click on 
"Play".
   * Forces the addon to choose stream according to the set bandwidth. This 
option can be used to force lower resolution streams on devices with lower 
bandwidth capacity (i.e mobile devices). This option can only be used if "Don't 
use avc1.77.30 streams" is disabled.
 
 ## Known Issues
+### Live broadcasts does not work on iOS, ATV2, OSX and Android
+This is due to encrypted HLS streams not being supported. See this issue 
ticket for more info [#98](https://github.com/nilzen/xbmc-svtplay/issues/98).
+
+## Development
+
+### Running tests
+The module responsible for parsing the SVT Play website has a couple of tests 
that can be run to verify its functionality. To run these tests, execute the 
following commands from this repository's root folder:
+```
+cd tests
+python -m unittest testSvt
+```
diff --git a/plugin.video.svtplay/addon.xml b/plugin.video.svtplay/addon.xml
index ec2aed7..8ecef17 100644
--- a/plugin.video.svtplay/addon.xml
+++ b/plugin.video.svtplay/addon.xml
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
 <addon id="plugin.video.svtplay"
        name="SVT Play"
-       version="4.0.4"
+       version="4.0.5"
        provider-name="nilzen">
   <requires>
     <import addon="script.module.parsedom" version="1.2.0"/>
@@ -18,6 +18,7 @@
     <description lang="sv">Med denna addon kan du strömma innehåll från SVT 
Play (svtplay.se).</description>
     <disclaimer>This is an unofficial addon and it is not supported or 
maintained by SVT. Some parts of this addon may not be legal in your country of 
residence - please check with your local laws before installing.</disclaimer>
     <platform>all</platform>
+    <license> GNU GENERAL PUBLIC LICENSE. Version 3, 29 June 2007</license>
     <website>https://github.com/nilzen/xbmc-svtplay</website>
     <source>https://github.com/nilzen/xbmc-svtplay</source>
     <forum>http://forum.xbmc.org/showthread.php?tid=67110</forum>
diff --git a/plugin.video.svtplay/changelog.txt 
b/plugin.video.svtplay/changelog.txt
index edc716a..77ef623 100644
--- a/plugin.video.svtplay/changelog.txt
+++ b/plugin.video.svtplay/changelog.txt
@@ -1,3 +1,7 @@
+Version 4.0.5
+-------------
+- Fix broken favorites feature on Windows
+
 Version 4.0.4
 -------------
 - Add favorites feature
diff --git a/plugin.video.svtplay/resources/lib/FavoritesManager.py 
b/plugin.video.svtplay/resources/lib/FavoritesManager.py
index fe98859..e0d50fb 100644
--- a/plugin.video.svtplay/resources/lib/FavoritesManager.py
+++ b/plugin.video.svtplay/resources/lib/FavoritesManager.py
@@ -72,22 +72,16 @@ def get_all():
 
 def __load_from_disk():
   global FAVORITES
-  try:
-    file_handle = open(FILE_PATH, "r")
-    try:
-      FAVORITES = json.load(file_handle)
-    except IOError:
-      FAVORITES = {}
-    file_handle.close()
-  except IOError:
-    FAVORITES = {}
+  FAVORITES = {}
+  if os.path.exists(FILE_PATH) and os.stat(FILE_PATH).st_size != 0:
+    with open(FILE_PATH, "r") as file_handle:
+        FAVORITES = json.load(file_handle)
   log("Load from disk: "+str(FAVORITES))
 
 def __save_to_disk():
   log("Save to disk: "+str(FAVORITES))
-  file_handle = open(FILE_PATH, "w+")
-  file_handle.write(json.dumps(FAVORITES))
-  file_handle.close()
+  with open(FILE_PATH, "w") as file_handle:
+    file_handle.write(json.dumps(FAVORITES))
 
 # To support XBMC.RunScript
 if __name__ == "__main__":
diff --git a/plugin.video.svtplay/resources/lib/PlaylistManager.py 
b/plugin.video.svtplay/resources/lib/PlaylistManager.py
index 27bd6e5..6fbc0f3 100644
--- a/plugin.video.svtplay/resources/lib/PlaylistManager.py
+++ b/plugin.video.svtplay/resources/lib/PlaylistManager.py
@@ -3,9 +3,13 @@ import sys
 import xbmc
 import xbmcgui
 
+import CommonFunctions as common
+
 import svt
 import helper
 
+log = common.log
+
 __playlist = xbmc.PlayList(xbmc.PLAYLIST_VIDEO)
 
 def add(url, title, thumbnail):
@@ -64,9 +68,9 @@ def __get_video_url(url):
 
 # To support XBMC.RunScript
 if __name__ == "__main__":
-  print("PLM called as script!")
+  log("PLM called as script!")
   if len(sys.argv) < 2:
-    print "No argument given!"
+    log("No argument given!")
   else:
     if sys.argv[1] == "add" and len(sys.argv) > 4:
       add(sys.argv[2], sys.argv[3], sys.argv[4])

-----------------------------------------------------------------------

Summary of changes:
 plugin.video.svtplay/README.md                     |   20 ++++++++++++++++++++
 plugin.video.svtplay/addon.xml                     |    3 ++-
 plugin.video.svtplay/changelog.txt                 |    4 ++++
 .../resources/lib/FavoritesManager.py              |   18 ++++++------------
 .../resources/lib/PlaylistManager.py               |    8 ++++++--
 5 files changed, 38 insertions(+), 15 deletions(-)


hooks/post-receive
-- 
Plugins

------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
Xbmc-addons mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xbmc-addons

Reply via email to