2009-05-16, 15:33
Been lurking around this place for a long time so hello formally sorta.
Anyway. I saw this post on engadgethd about CBS serving up 1080p streaming and thought "hmm I wonder if it'll work in xbmc." Well, short answer was "sorta" for me, long answer was it wasn't really watchable because of constant skipping even with vdpau (if I wrote the long answer... why did I put the short one... dunno hahaah). Some of you may fair better. Until BlueCop adds it to the official plugin, here is what I did to make it go.
2 notes:
1 - I am not a python programmer.
2 - First time creating a patch.
The net is... try at your own risk.
Anyway. I saw this post on engadgethd about CBS serving up 1080p streaming and thought "hmm I wonder if it'll work in xbmc." Well, short answer was "sorta" for me, long answer was it wasn't really watchable because of constant skipping even with vdpau (if I wrote the long answer... why did I put the short one... dunno hahaah). Some of you may fair better. Until BlueCop adds it to the official plugin, here is what I did to make it go.
2 notes:
1 - I am not a python programmer.
2 - First time creating a patch.
The net is... try at your own risk.
Code:
diff -rupN CBS-SVN/resources/language/English/strings.xml CBS/resources/language/English/strings.xml
--- CBS-SVN/resources/language/English/strings.xml 2009-05-16 08:44:26.000000000 -0400
+++ CBS/resources/language/English/strings.xml 2009-05-16 09:17:53.000000000 -0400
@@ -5,6 +5,7 @@
<string id="30002">480p</string>
<string id="30003">720p</string>
<string id="30004">Default HD Quality</string>
+ <string id="30030">1080p</string>
<string id="30005">Ask</string>
<string id="30006">Play</string>
diff -rupN CBS-SVN/resources/language/Finnish/strings.xml CBS/resources/language/Finnish/strings.xml
--- CBS-SVN/resources/language/Finnish/strings.xml 2009-05-16 08:44:26.000000000 -0400
+++ CBS/resources/language/Finnish/strings.xml 2009-05-16 09:17:53.000000000 -0400
@@ -5,6 +5,7 @@
<string id="30002">480p</string>
<string id="30003">720p</string>
<string id="30004">Kuvanlaatu</string>
+ <string id="30030">1080p</string>
<string id="30005">Kysy</string>
<string id="30006">Toista</string>
diff -rupN CBS-SVN/resources/language/Swedish/strings.xml CBS/resources/language/Swedish/strings.xml
--- CBS-SVN/resources/language/Swedish/strings.xml 2009-05-16 08:44:26.000000000 -0400
+++ CBS/resources/language/Swedish/strings.xml 2009-05-16 09:19:22.000000000 -0400
@@ -10,6 +10,7 @@
<string id="30002">480p</string>
<string id="30003">720p</string>
<string id="30004">Standard HD kvalitet</string>
+ <string id="30030">1080p</string>
<string id="30005">Fråga</string>
<string id="30006">Spela</string>
<string id="30007">Ladda ner</string>
diff -rupN CBS-SVN/resources/lib/episodeplayer.py CBS/resources/lib/episodeplayer.py
--- CBS-SVN/resources/lib/episodeplayer.py 2009-05-16 08:44:25.000000000 -0400
+++ CBS/resources/lib/episodeplayer.py 2009-05-16 09:17:52.000000000 -0400
@@ -25,11 +25,14 @@ class Main:
elif (xbmcplugin.getSetting("hdquality") == '2'):
pid=breakpid[1]
name = '720p: ' + name
+ elif (xbmcplugin.getSetting("hdquality") == '3'):
+ pid=breakpid[2]
+ name = '1080p: ' + name
#Ask HD Quality
else:
breakpid = pid.split('<break>')
dia = xbmcgui.Dialog()
- ret = dia.select('What do you want to do?', ['Play 480p','Play 720p','Exit'])
+ ret = dia.select('What do you want to do?', ['Play 480p','Play 720p','Play 1080p','Exit'])
#480p selected
if (ret == 0):
pid=breakpid[0]
@@ -38,6 +41,9 @@ class Main:
elif (ret == 1):
pid=breakpid[1]
name = '720p: ' + name
+ elif (ret == 2):
+ pid=breakpid[2]
+ name = '1080p: ' + name
#Exit
else:
return
diff -rupN CBS-SVN/resources/lib/_videolist.py CBS/resources/lib/_videolist.py
--- CBS-SVN/resources/lib/_videolist.py 2009-05-16 08:44:25.000000000 -0400
+++ CBS/resources/lib/_videolist.py 2009-05-16 09:17:52.000000000 -0400
@@ -186,13 +186,14 @@ class Main:
breakurl[6] = "0" + breakurl[6]
#Standard Definition pid
breakurl[15] = breakurl[15].replace("')","")
+ breakurl[16] = breakurl[16].replace("')","")
if breakurl[15] == '':
pid = breakurl[10]
if HD == True:
continue
#480p and 720p pids
elif breakurl[15] <> '':
- pid = breakurl[10] + "<break>" + breakurl[15]
+ pid = breakurl[10] + "<break>" + breakurl[15] + "<break>" + breakurl[16]
if (xbmcplugin.getSetting('largethumbs') == 'true'):
thumbnail = breakurl[12]
elif (xbmcplugin.getSetting('largethumbs') == 'false'):
diff -rupN CBS-SVN/resources/settings.xml CBS/resources/settings.xml
--- CBS-SVN/resources/settings.xml 2009-05-16 08:44:25.000000000 -0400
+++ CBS/resources/settings.xml 2009-05-16 09:21:55.000000000 -0400
@@ -3,7 +3,7 @@
<setting id="largethumbs" type ="bool" label="30011" default="true"/>
<setting id="hdcat" type ="bool" label="30022" default="true"/>
<!-- 0.Ask 1. 480p 2. 720p -->
- <setting id="hdquality" type="enum" lvalues="30001|30002|30003" label="30004" default="0"/>
+ <setting id="hdquality" type="enum" lvalues="30001|30002|30003|30030" label="30004" default="0"/>
<!-- 0.Shows and All 1.Shows Only 2. All Only 3.Disabled-->
<setting id="recent" type="enum" lvalues="30015|30016|30017|30018" label="30013" default="0"/>
<!-- 0.Shows and All 1.Shows Only 2. All Only 3.Disabled-->