The branch, dharma has been updated
via 64dae9a9fd8569ecd573c871a8a7d45814d6f4ac (commit)
from bfc79030217067bf4a9f932e211a6c23ef0fa281 (commit)
- Log -----------------------------------------------------------------
http://xbmc.git.sourceforge.net/git/gitweb.cgi?p=xbmc/plugins;a=commit;h=64dae9a9fd8569ecd573c871a8a7d45814d6f4ac
commit 64dae9a9fd8569ecd573c871a8a7d45814d6f4ac
Author: spiff <[email protected]>
Date: Fri Apr 13 18:33:52 2012 +0200
[plugin.video.brt] updated to version 1.2.6
diff --git a/.gitignore b/.gitignore
index 1cf24e4..9083954 100644
--- a/.gitignore
+++ b/.gitignore
@@ -71,6 +71,8 @@ plugin.video.nos/.git
plugin.audio.groove/description.xml
plugin.video.brt/.git
plugin.video.brt/.project
+plugin.video.brt/.pydevproject
+plugin.video.brt/.settings
plugin.video.4players/.git
plugin.video.hockeystreams/.git
plugin.video.hockeystreams/.idea
diff --git a/plugin.video.brt/ClientService.py
b/plugin.video.brt/ClientService.py
index c144e64..3c22fc3 100644
--- a/plugin.video.brt/ClientService.py
+++ b/plugin.video.brt/ClientService.py
@@ -27,6 +27,45 @@ proxy =
'ivsmedia.iptv-distribution.net'#'ivsmedia.iptv-distribution.net'
port = 80
+def SetSett(sess):
+ try:
+ # new XBMC 10.05 addons:
+ import xbmcaddon
+ except ImportError:
+ # old XBMC - create fake xbmcaddon module with same interface as new
XBMC 10.05
+ class xbmcaddon:
+ """ fake xbmcaddon module """
+ __version__ = "(old XBMC)"
+ class Addon:
+ """ fake xbmcaddon.Addon class """
+ def __init__(self, id):
+ self.id = id
+
+ def getSetting(self, key):
+ return xbmcplugin.getSetting(key)
+
+ def openSettings(self):
+ xbmc.openSettings()
+ def setSetting(self, key, value):
+ return xbmcplugin.setSetting(key, value)
+
+ addon = xbmcaddon.Addon("plugin.video.brt")
+ quality = ['HQ', 'SQ']
+ q = int(addon.getSetting('quality'))
+ region = ['EU_RST', 'NA_PST', 'NA_EST','AU_EST']
+ r = int(addon.getSetting('region'))
+ server = ['1','7']
+ s = int(addon.getSetting('server'))
+ req = '<s:Envelope
xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body>' \
+ '<SetSettings
xmlns="http://ivsmedia.iptv-distribution.net"><sessionID>' + sess +
'</sessionID>' \
+ '<cs
xmlns:d4p1="http://schemas.datacontract.org/2004/07/IVS.Media.Client"
xmlns:i="http://www.w3.org/2001/XMLSchema-instance">' \
+ '<d4p1:adultEnabled>false</d4p1:adultEnabled><d4p1:clientServices
/><d4p1:language>rus</d4p1:language>' \
+ '<d4p1:playerType
xmlns:d5p1="http://schemas.datacontract.org/2004/07/IVS.Common" i:nil="true"
/><d4p1:streamPreference
xmlns:d5p1="http://schemas.datacontract.org/2004/07/IVS.Common.Server">' \
+ '<d5p1:balancingArea i:nil="true" /><d5p1:cdn><d5p1:id>' + server[s]
+ '</d5p1:id><d5p1:name i:nil="true" /></d5p1:cdn>' \
+ '<d5p1:qualityPreset>' + quality[q] +
'</d5p1:qualityPreset><d5p1:shiftTimeZoneName>' + region[r] +
'</d5p1:shiftTimeZoneName></d4p1:streamPreference>' \
+ '<d4p1:timeZoneName>' + region[r] +
'</d4p1:timeZoneName></cs></SetSettings></s:Body></s:Envelope>'
+ Request(req, 'SetSettings')
+
def Login(Username = '',Password = ''):
x = Content.Application().ClientAppSettings
x.clientCredential.UserLogin = Username
diff --git a/plugin.video.brt/addon.xml b/plugin.video.brt/addon.xml
index e7bb332..8e7ee20 100644
--- a/plugin.video.brt/addon.xml
+++ b/plugin.video.brt/addon.xml
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<addon id="plugin.video.brt"
- version="1.2.5"
+ version="1.2.6"
name="BestRussianTV"
provider-name="BestRussianTV.com">
<requires>
diff --git a/plugin.video.brt/brtv.py b/plugin.video.brt/brtv.py
index d333e84..07d27f2 100644
--- a/plugin.video.brt/brtv.py
+++ b/plugin.video.brt/brtv.py
@@ -21,7 +21,7 @@ import os
import sys, datetime, time, calendar, thread, threading
import xbmc, xbmcgui, xbmcplugin, urllib
import ClientService, ContentService, MediaService, Content, GetBest,
RusKeyboard, ArcSearch, VodSearch
-import archive, vod, asx, radio
+import archive, vod, asx, radio, livetv
from BeautifulSoup import BeautifulSoup
try:
@@ -217,27 +217,21 @@ try:
xbmcplugin 21 @@ try: eautifulSoup iaService, Content, GetBest,
RusKeyboard, ArcSearch,
VodSearch pe>' </d5p1:shiftTimeZoneName></d4p1:streamPreference>'
\ ract.org/2004/07/IVS.Common.Server">'
\ P_Y?ÿ °
B+ @TY?ÿ SY?ÿ k ÓB+ 6
è è! è! à^Y?ÿ P_Y?ÿ xTðB+ @UY?ÿ ÓB+ ÓB+ à^Y?ÿ `ÓB+ _Y?ÿ ÀOT
B+ uÓB+ @T
B+ ØDT
B+ ¨IT
B+ ªÔB+ xTðB+ @UY?ÿ TY?ÿ k ÓB+ à! à! à^Y?ÿ P_Y?ÿ HÐB+
VY?ÿ ÓB+ ÓB+ à^Y?ÿ `ÓB+ _Y?ÿ _Y?ÿ _Y?ÿ 8«ôB+ p P_Y?ÿ uÓB+ ªÔB+
VY?ÿ ðTY?ÿ k ÓB+ G H I J K M N O P à^Y?ÿ P_Y?ÿ HÕ¦B+ ÀWY?ÿ ÓB+ ÓB+ à^Y?ÿ 0OT
B+ uÓB+ `ðB+
B+ @T
B+ ØDT
B+ ¨IT
B+ ªÔB+ HÕ¦B+ ÀWY?ÿ VY?ÿ k ÓB+ 8Õ¦B+ ÀWY?ÿ 0VY?ÿ k ÓB+ (Õ¦B+ ÀWY?ÿ `VY?ÿ k ÓB+ Õ¦B+ ÀWY?ÿ VY?ÿ k ÓB+
¨NT
B+ uÓB+ ¨IT
B+ QY?ÿ XB+ eÓB+ ØDT
B+ 0WY?ÿ yXB+ eÓB+ @T
B+ `WY?ÿ ZXB+ eÓB+ ØB+ `ðB+
B+ @T
B+ ØdðB+ ØDT
B+ ¨IT
B+ ªÔB+ 8«ôB+ ÍOB+ P_Y?ÿ pB+ YY?ÿ àWY?ÿ k ÓB+ 5 6 7 8 : <