• 1
  • 6
  • 7
  • 8(current)
  • 9
  • 10
  • 11
[RELEASE] CBS (Video) Plugin for XBMC - Now with HD Support!
the daytime shows at least are working for me. also figured out how to get it working from outside US. thanks to the author for the hard work figuring out the scraping.

edit: ok seems like there are still various problems with the plugin, but Latest Videos of a daytime show subsection seems to play so i guess its "worksforme" for now until i have some energy to debug the rest of it.

i've also now patched the plugin to configure a US proxy server in the plugin settings GUI to be used for CBS connections. i guess it could be even more automated to go to some proxy list service and suggest one, instead of needing user input, but this currently "worksforme" also. is the plugin author interested in the patch to commit to trunk? i think its fairly useful for a lot of people.
Reply
I installed this plugin last night and really loved how well it works. Could the base code for this one also be used for Discover, History Channel, Science Channel and so on? If so is there any plans on adding them after you get NBC added?
Reply
@Ikraav: I really would appreciate the update that allows this plugin to work outside the US. I also think that a lot of people would welcome it! The feature of having a proxy list service sounds even more promising!
Reply
@lkraav BlueCop seems to have disappeared, please post a diff and I'll add it.
Always read the XBMC online-manual, FAQ and search and search the forum before posting.
For troubleshooting and bug reporting please read how to submit a proper bug report.

If you're interested in writing addons for xbmc, read docs and how-to for plugins and scripts ||| http://code.google.com/p/xbmc-addons/
Reply
enjoy:

Code:
media@htpc ~/.xbmc/plugins/video $ colordiff -wu -r -x .svn -x *.pyc -x *.pyo CBS-svn CBS |less
Only in CBS/resources/cache: hd.js
diff -wu -r -x .svn -x '*.pyc' -x '*.pyo' CBS-svn/resources/language/English/strings.xml CBS/resources/language/English/strings.xml
--- CBS-svn/resources/language/English/strings.xml      2009-10-13 14:58:23.000000000 +0300
+++ CBS/resources/language/English/strings.xml  2009-10-13 15:15:36.000000000 +0300
@@ -19,11 +19,13 @@
        <string id="30013">List 'Latest' Category</string>^M
        <string id="30014">List 'Popular' Category</string>^M
     <string id="30015">Shows and Home</string>^M
-    <string id="30016">Shows Only</string>^M
+    <string id="30015">Shows Only</string>^M
     <string id="30017">Home Only</string>^M
     <string id="30018">Disabled</string>^M
     <string id="30019">List 'Editor's Picks' Category (Shows Only)</string>^M
     <string id="30020">List 'Clips' Category (Shows Only)</string>^M
        <string id="30021">List 'All Videos' Category (Shows Only)</string>^M
^M
+    <string id="30040">U.S. Proxy IP</string>^M
+    <string id="30041">U.S. Proxy port</string>^M
</strings>^M
diff -wu -r -x .svn -x '*.pyc' -x '*.pyo' CBS-svn/resources/lib/common.py CBS/resources/lib/common.py
--- CBS-svn/resources/lib/common.py     2009-10-13 14:58:25.000000000 +0300
+++ CBS/resources/lib/common.py 2009-10-13 15:14:19.000000000 +0300
@@ -71,6 +71,14 @@
^M
def getHTML( url ):^M
     try:^M
+       us_proxy = 'http://' + xbmcplugin.getSetting('us_proxy') + ':' + xbmcplugin.getSetting('us_proxy_port')^M
+^M
+       if (xbmcplugin.getSetting('us_proxy')):^M
+               print 'Using proxy: ' + us_proxy^M
+               proxy_handler = urllib2.ProxyHandler({'http':us_proxy})^M
+               opener = urllib2.build_opener(proxy_handler)^M
+               urllib2.install_opener(opener)^M
+^M
         print 'CBS --> common :: getHTML :: url = '+url^M
         req = urllib2.Request(url)^M
         req.add_header('User-Agent', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3')^M
diff -wu -r -x .svn -x '*.pyc' -x '*.pyo' CBS-svn/resources/settings.xml CBS/resources/settings.xml
--- CBS-svn/resources/settings.xml      2009-10-13 14:58:25.000000000 +0300
+++ CBS/resources/settings.xml  2009-08-08 12:54:10.000000000 +0300
@@ -14,4 +14,6 @@
    <!-- 0.Ask 1.Play 2.  Download 3. Download and Play -->^M
    <setting id="download" type="enum" lvalues="30005|30006|30007|30008" label="30009" default="1"/>^M
    <setting id="download_path" type="folder" source="video" label="30010"  option="writeable" default="E:\"/>^M
+   <setting id="us_proxy" type="text" label="30040" default="208.100.40.34"/>^M
+   <setting id="us_proxy_port" type="text" label="30041" default="80"/>  ^M
</settings>^M
lines 1-47/47 (END)
xbmc-pvr-ppa-odk68, Gentoo x86 3.0.7-pf, xorg-server-1.11.2, mesa-7.11, nvidia-drivers-290.10
Reply
I cannot get this patch to apply.
Could you just give me a zip of the modified plugin so I can be lazy? Wink
Always read the XBMC online-manual, FAQ and search and search the forum before posting.
For troubleshooting and bug reporting please read how to submit a proper bug report.

If you're interested in writing addons for xbmc, read docs and how-to for plugins and scripts ||| http://code.google.com/p/xbmc-addons/
Reply
Again I apologize for slacking on maintenance. I just committed the 1080p patch to the SVN. I recently got an ASRock ION 330 running ubuntu with XBMC. It is really nice streaming 1080p video from CBS and still being able to offload the H264 video to the GPU. while it is a starved bitrate(~2.5mbit)

i will look into applying the proxy patch when someone can confirm its functional.

Thanks mrthundercleese and lkraav
Reply
the patch is fine, im using it every day. just havent gotten around to making proper diffs Smile when you look at the diffs i posted, its actually pretty simple code and small amount of code though, you can just copypaste it in and try it out.
xbmc-pvr-ppa-odk68, Gentoo x86 3.0.7-pf, xorg-server-1.11.2, mesa-7.11, nvidia-drivers-290.10
Reply
lkraav Wrote:the patch is fine, im using it every day. just havent gotten around to making proper diffs Smile when you look at the diffs i posted, its actually pretty simple code and small amount of code though, you can just copypaste it in and try it out.

I am testing it out now. I was just manually applying the patches as you suggest. I just didn't want to blindly commit without testing it.
Reply
Any updates on applying this patch to SVN ?
The normal XBMC log IS NOT a debug log, to enable debug logging you must toggle it on under XBMC Settings - System or in advancedsettings.xml. Use XBMC Debug Log Addon to retrieve it.
Reply
good to see you're back, bluecop
Always read the XBMC online-manual, FAQ and search and search the forum before posting.
For troubleshooting and bug reporting please read how to submit a proper bug report.

If you're interested in writing addons for xbmc, read docs and how-to for plugins and scripts ||| http://code.google.com/p/xbmc-addons/
Reply
The proxy patch is committed. I am having trouble with the sd videos currently which doesn't seem to be related to this patch though. on a good note the hd videos are still playing.

I am going to spend a few days working on bug fixes and try to get the plugin in better shape.

Update
It was a bug introduced with the 1080p patch that was causing the sd video problem. A fixed version is on the repo.

there are several problems i am aware of in the plugin. including if you select 1080p when there is not a 1080p pid the script fails. you can select 720p or 480p though. various things need fixing like to clean the names and bad show listings. plus a few errors because of weird episode numbers.

If you have problems please post them and I will try to fix them.

Also for international users using a proxy will need to enable the proxy in the plug-in settings. I left the default proxy provided with the patch. It worked when I tried it.

Update 2
fixed some issues with a regex picking up html tags
Reply
CBS svn r1401 seems to have a problem since today or perhaps few days ago. trying to play Bold & Beautiful errors out with:

Code:
1155 13:50:05 T:2606758800 M:2280226816  NOTICE: CBS--> common.args.mode -- > Play
   1156 13:50:06 T:2606758800 M:2280226816  NOTICE: CBS --> common :: getHTML :: url = http://release.theplatform.com/content.select?format=SMIL&Tracking=true&balance=true&pid=Fb3OdtoDqGlF5fgsxEbswPvbLjvKRcwhlast):
   1158 13:50:06 T:2606758800 M:2280267776  NOTICE:   File "/secure/home/media/.xbmc/plugins/video/CBS/default.py", line 68, in <module>13:50:06 T:2606758800 M:2280267776  NOTICE: modes ( )
   1160 13:50:06 T:2606758800 M:2280267776  NOTICE:   File "/secure/home/media/.xbmc/plugins/video/CBS/default.py", line 33, in modes61 13:50:06 T:2606758800 M:2280267776  NOTICE: episodeplayer.Main()
   1162 13:50:06 T:2606758800 M:2280267776  NOTICE:   File "/secure/home/media/.xbmc/plugins/video/CBS/resources/lib/episodeplayer.py", line 66, in __init__0 M:2280267776  NOTICE: finalurl = "http://" + stripurl[0]
   1164 13:50:06 T:2606758800 M:2280267776  NOTICE: IndexError
   1165 13:50:06 T:2606758800 M:2280267776  NOTICE: :
   1166 13:50:06 T:2606758800 M:2280267776  NOTICE: list index out of range
   1167 13:50:06 T:2606758800 M:2280267776   ERROR: Scriptresult: Error

using my own previous version without your latest updates plays the episodes OK. so perhaps something with these new regexps?
xbmc-pvr-ppa-odk68, Gentoo x86 3.0.7-pf, xorg-server-1.11.2, mesa-7.11, nvidia-drivers-290.10
Reply
I'm having trouble playing 1080p streaming. I can play VDPAU 1080p fine, but not this kind. I'm using live 9.04.1 r20654. I also noticed I can't play the Big Buck Bunny smoothly and it's also not VDPAU. Nvidia 8400gs 512mb. How can I figure out what the current gpu driver version is?

CBS removed all the CSI HD episodes I was watching Sad
Reply
BlueCop Wrote:Update
It was a bug introduced with the 1080p patch that was causing the sd video problem. A fixed version is on the repo.

Oops. Sorry about that. Hopefully it didn't give you too much grief. :o
Reply
  • 1
  • 6
  • 7
  • 8(current)
  • 9
  • 10
  • 11

Logout Mark Read Team Forum Stats Members Help
[RELEASE] CBS (Video) Plugin for XBMC - Now with HD Support!0