[RELEASE] CBS (Video) Plugin for XBMC - Now with HD Support!
#85
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. Big Grin

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-->
Reply
 
Thread Rating:
  • 0 Vote(s) - 0 Average


Messages In This Thread
[No subject] - by Nuka1195 - 2009-01-10, 18:36
[No subject] - by Voinage - 2009-01-10, 18:39
[No subject] - by zslates - 2009-01-10, 21:52
[No subject] - by plankton88 - 2009-01-12, 04:36
[No subject] - by XBMCG33K - 2009-01-12, 19:01
[No subject] - by TheBurner - 2009-01-12, 19:33
[No subject] - by BlueCop - 2009-01-12, 20:20
[No subject] - by mr.b - 2009-01-13, 00:45
[No subject] - by CptKen - 2009-01-13, 03:29
[No subject] - by CrashX - 2009-01-13, 04:30
[No subject] - by pre1014 - 2009-01-13, 06:39
[No subject] - by CrashX - 2009-01-14, 23:48
[No subject] - by tim_wang - 2009-01-20, 17:51
[No subject] - by kizer - 2009-01-20, 18:26
[No subject] - by Cocophone - 2009-02-08, 02:57
[No subject] - by nicoli_k - 2009-02-10, 00:42
[No subject] - by nicoli_k - 2009-02-10, 19:23
[No subject] - by sion28 - 2009-03-01, 03:07
[No subject] - by BlueCop - 2009-03-04, 02:38
[No subject] - by BlueCop - 2009-03-04, 06:21
[No subject] - by nicoli_k - 2009-03-04, 06:51
[No subject] - by Nuka1195 - 2009-03-04, 07:53
[No subject] - by BlueCop - 2009-03-04, 08:49
[No subject] - by BlueCop - 2009-03-04, 10:52
Now in hd - by BlueCop - 2009-03-05, 02:25
[No subject] - by nicoli_k - 2009-03-05, 05:55
[No subject] - by BlueCop - 2009-03-05, 06:30
[No subject] - by nicoli_k - 2009-03-05, 06:37
[No subject] - by CrashX - 2009-03-05, 22:19
[No subject] - by BlueCop - 2009-03-05, 23:10
[No subject] - by BlueCop - 2009-03-06, 03:50
[No subject] - by CrashX - 2009-03-06, 04:09
[No subject] - by FivemagicS - 2009-03-06, 04:57
[No subject] - by BlueCop - 2009-03-06, 22:49
[No subject] - by BlueCop - 2009-03-07, 08:30
[No subject] - by BlueCop - 2009-03-07, 23:08
[No subject] - by sion28 - 2009-03-08, 03:41
[No subject] - by CrashX - 2009-03-08, 06:06
[No subject] - by BlueCop - 2009-03-08, 06:36
[No subject] - by CrashX - 2009-03-08, 07:00
[No subject] - by BlueCop - 2009-03-08, 07:04
[No subject] - by CrashX - 2009-03-08, 07:32
[No subject] - by BlueCop - 2009-03-08, 08:02
[No subject] - by rwparris2 - 2009-03-08, 08:12
[No subject] - by CrashX - 2009-03-08, 08:23
[No subject] - by BlueCop - 2009-03-08, 10:53
[No subject] - by BlueCop - 2009-03-09, 00:56
[No subject] - by BlueCop - 2009-03-10, 14:35
[No subject] - by CrashX - 2009-03-10, 15:24
[No subject] - by dbldown768 - 2009-03-11, 04:04
[No subject] - by BlueCop - 2009-03-11, 04:21
[No subject] - by dbldown768 - 2009-03-12, 03:16
CBS on ATV - by mtokio - 2009-03-14, 17:05
[No subject] - by BlueCop - 2009-03-14, 17:16
[No subject] - by Pantherboy - 2009-03-15, 01:30
[No subject] - by BlueCop - 2009-03-15, 01:42
[No subject] - by Pantherboy - 2009-03-15, 01:52
[No subject] - by BlueCop - 2009-03-15, 02:34
[No subject] - by lewis.donofrio - 2009-04-15, 17:22
[No subject] - by BlueCop - 2009-04-15, 17:52
[No subject] - by jonm42 - 2009-04-15, 19:00
[No subject] - by pajretX - 2009-04-15, 19:09
[No subject] - by BlueCop - 2009-04-15, 19:24
[No subject] - by unclepaulie - 2009-04-15, 19:48
[No subject] - by BlueCop - 2009-04-15, 19:53
[No subject] - by unclepaulie - 2009-04-15, 21:16
[No subject] - by lewis.donofrio - 2009-04-15, 21:52
[No subject] - by BlueCop - 2009-04-15, 22:31
[No subject] - by lewis.donofrio - 2009-04-15, 22:40
[No subject] - by snake - 2009-04-16, 03:17
[No subject] - by stonewall - 2009-04-16, 03:24
[No subject] - by BlueCop - 2009-04-16, 03:39
[No subject] - by snake - 2009-04-16, 03:47
[No subject] - by snake - 2009-04-16, 05:21
[No subject] - by nicoli_k - 2009-04-16, 05:51
[No subject] - by frosty - 2009-04-16, 09:52
[No subject] - by snake - 2009-04-16, 19:22
[No subject] - by BlueCop - 2009-04-16, 20:04
[No subject] - by BlueCop - 2009-04-18, 22:50
[No subject] - by cyrus_mc - 2009-04-20, 07:28
[No subject] - by BlueCop - 2009-04-20, 09:18
[No subject] - by nicoli_k - 2009-05-06, 19:03
[No subject] - by CrashX - 2009-05-15, 23:49
CBS 1080p - by mrthundercleese - 2009-05-16, 15:33
[No subject] - by itchytickles - 2009-05-19, 03:21
Is CBS HD working right yet - by chomlee - 2009-05-22, 02:47
[No subject] - by liquid64 - 2009-05-29, 18:19
[No subject] - by Icebeer - 2009-05-29, 22:33
[No subject] - by BlueCop - 2009-05-30, 00:58
[No subject] - by liquid64 - 2009-05-31, 02:43
[No subject] - by slacker666 - 2009-06-05, 22:26
[No subject] - by jonm42 - 2009-06-12, 00:23
[No subject] - by kschroll - 2009-06-12, 02:41
[No subject] - by kschroll - 2009-06-12, 14:12
[No subject] - by jonm42 - 2009-06-12, 17:14
[No subject] - by BrutalByte2 - 2009-06-13, 03:42
[No subject] - by nicoli_k - 2009-06-13, 04:12
oops! - by BrutalByte2 - 2009-06-14, 06:11
[No subject] - by nicoli_k - 2009-06-14, 06:15
[No subject] - by racksprt - 2009-06-18, 16:15
[No subject] - by nicoli_k - 2009-06-18, 16:56
Problem - by djremix71 - 2009-06-28, 21:27
[No subject] - by tmc701 - 2009-07-14, 15:46
[No subject] - by lkraav - 2009-08-04, 20:41
[No subject] - by hematite - 2009-10-13, 04:52
[No subject] - by Icebeer - 2009-10-13, 10:48
[No subject] - by rwparris2 - 2009-10-13, 10:50
[No subject] - by lkraav - 2009-10-13, 14:19
[No subject] - by rwparris2 - 2009-10-16, 02:58
[No subject] - by BlueCop - 2009-10-27, 09:28
[No subject] - by lkraav - 2009-10-27, 10:08
[No subject] - by BlueCop - 2009-10-27, 10:12
[No subject] - by CrashX - 2009-10-29, 03:38
[No subject] - by rwparris2 - 2009-10-29, 03:58
[No subject] - by BlueCop - 2009-10-29, 19:44
[No subject] - by lkraav - 2009-11-10, 13:54
[No subject] - by Superorb - 2009-11-17, 18:18
[No subject] - by mrthundercleese - 2009-11-28, 17:08
[No subject] - by lkraav - 2009-12-05, 12:07
[No subject] - by lkraav - 2009-12-08, 09:55
[No subject] - by DonnyX - 2009-12-09, 01:37
[No subject] - by billy_hoyle33 - 2010-01-05, 01:00
[No subject] - by Hitcher - 2010-01-05, 18:06
[No subject] - by philipacentaur - 2010-01-18, 01:54
[No subject] - by Superorb - 2010-01-18, 01:56
[No subject] - by philipacentaur - 2010-01-18, 01:58
[No subject] - by hohead - 2010-02-05, 06:14
[No subject] - by r3g10 - 2011-03-02, 22:19
[No subject] - by AJP69 - 2011-04-19, 14:57
[No subject] - by jadoogar - 2011-04-20, 17:37
[No subject] - by ksosez - 2011-04-20, 18:30
[No subject] - by jadoogar - 2011-04-20, 19:09
[No subject] - by AJP69 - 2011-04-20, 22:58
[No subject] - by BlueCop - 2011-05-11, 13:24
[No subject] - by blueseeka - 2011-05-12, 02:42
[No subject] - by BlueCop - 2011-05-12, 07:03
Working Great! - by chernics - 2011-05-13, 15:56
[No subject] - by Ferdnand - 2011-05-13, 18:24
[No subject] - by BlueCop - 2011-05-14, 00:09
[No subject] - by Eldorado - 2011-05-16, 19:30
[No subject] - by AJP69 - 2011-05-16, 19:31
[No subject] - by BlueCop - 2011-05-19, 01:30
[No subject] - by freakmonger - 2011-05-20, 22:17
[No subject] - by mrdally204 - 2011-05-24, 22:22
[No subject] - by Eldorado - 2011-05-24, 22:26
[No subject] - by mrdally204 - 2011-05-25, 22:14
[No subject] - by BlueCop - 2011-05-26, 17:39
[No subject] - by mrdally204 - 2011-05-26, 19:48
[No subject] - by themaster1 - 2011-08-21, 03:40
[No subject] - by BlueCop - 2011-08-21, 03:43
[No subject] - by themaster1 - 2011-08-23, 22:59
[No subject] - by BlueCop - 2011-08-23, 23:04
[No subject] - by mrdally204 - 2011-08-24, 09:29


Logout Mark Read Team Forum Stats Members Help
[RELEASE] CBS (Video) Plugin for XBMC - Now with HD Support!00
This forum uses Lukasz Tkacz MyBB addons.