• 1
  • 51
  • 52
  • 53(current)
  • 54
  • 55
  • 57
[SUPPORT] Free Cable - US station aggregator
(2014-03-17, 02:00)slices Wrote: I'll try Unlocator tommorow if I have time, I've been using http://www.smartdnsproxy.com

Smartdnsproxy works like a charm...thanks Slices!
Reply
(2014-03-19, 02:48)killerkiwi2005 Wrote: nice Wink

I have a testing script to if you would like it, it loads all the modules from command line and checks for valid data from each one

Sure might be useful, I was using MyLibary to test but getting everything working with it was a lot of work.

If you're using the stable version I'm suprised anything works though. If you want to contribute ask moneymaker to add you to the new repo.
Reply
Anyone have any ideas on this one??


(2014-03-07, 00:00)dubwise Wrote: Hey guys, looks like something changed on Spike (TV) again. I can no longer watch Powerblock or PowerNation shows. I'm running the latest beta (plus the fix for Spike that was committed around 1/23/14). Here is the error for both shows. Should be pretty easy to duplicate. Thanks in advance.


Code:
start of FREE CABLE plugin
16:13:43 T:2767189056  NOTICE: _connection :: getURL :: url = http://www.spike.com/episodes/cs1lwr/powernation-detroit-muscle-tough-as-nails-trans-am-season-1-ep-006
16:13:55 T:2767189056  NOTICE: _connection :: getRedirect :: url = http://media.mtvnservices.com/mgid:arc:episode:spike.com:9596c9d8-1037-462e-a212-0dfa8ebe4e90
16:13:56 T:2767189056  NOTICE: _connection :: getURL :: url = http://media.mtvnservices.com/pmt/e1/players/mgid:arc:episode:spike.com:/context1/context2/config.xml?uri=mgid:arc:episode:spike.com:9596c9d8-1037-462e-a212-0dfa8ebe4e90&type=network&ref=www.spike.com&geo=US&group=entertainment&network=None&device=Other
16:13:57 T:2767189056  NOTICE: _connection :: getURL :: url =
                                            http://www.spike.com/feeds/mrss/?uri=mgid:arc:episode:spike.com:9596c9d8-1037-462e-a212-0dfa8ebe4e90&ref=www.spike.com
16:13:59 T:2767189056  NOTICE: _connection :: getURL :: url = http://www.spike.com/feeds/mediagen/?uri=mgid:arc:episode:spike.com:187b5a96-903a-47f5-9bc2-07583da3891e&episode=9596c9d8-1037-462e-a212-0dfa8ebe4e90&ref=www.spike.com&device={device}
16:14:01 T:2767189056   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.IndexError'>
                                            Error Contents: list index out of range
                                            Traceback (most recent call last):
                                              File "/home/pi/.xbmc/addons/plugin.video.free.cable-beta/default.py", line 63, in <module>
                                                modes()
                                              File "/home/pi/.xbmc/addons/plugin.video.free.cable-beta/default.py", line 60, in modes
                                                exec 'sitemodule.%s()' % _common.args.sitemode
                                              File "<string>", line 1, in <module>
                                              File "/home/pi/.xbmc/addons/plugin.video.free.cable-beta/resources/lib/spike.py", line 191, in play_video
                                                video_url8 = MP4URL + video_url7.split('mtvnorigin')[1]
                                            IndexError: list index out of range
                                            -->End of Python script error report<--
16:14:01 T:3041419904   DEBUG: ------ Window Init (DialogKaiToast.xml) ------
16:14:01 T:2767189056    INFO: Python script stopped


Code:
start of FREE CABLE plugin
16:16:28 T:2767189056  NOTICE: _connection :: getURL :: url = http://www.spike.com/episodes/pby6fz/powerblock-search-restore-fabulous-hudson-hornet-part-2-season-5-ep-048
16:16:40 T:2767189056  NOTICE: _connection :: getRedirect :: url = http://media.mtvnservices.com/mgid:arc:episode:spike.com:695a2c57-7817-4192-91b4-ee4f81e8764e
16:16:41 T:2767189056  NOTICE: _connection :: getURL :: url = http://media.mtvnservices.com/pmt/e1/players/mgid:arc:episode:spike.com:/context1/context2/config.xml?uri=mgid:arc:episode:spike.com:695a2c57-7817-4192-91b4-ee4f81e8764e&type=network&ref=www.spike.com&geo=US&group=entertainment&network=None&device=Other
16:16:42 T:2767189056  NOTICE: _connection :: getURL :: url =
                                            http://www.spike.com/feeds/mrss/?uri=mgid:arc:episode:spike.com:695a2c57-7817-4192-91b4-ee4f81e8764e&ref=www.spike.com
16:16:44 T:2767189056  NOTICE: _connection :: getURL :: url = http://www.spike.com/feeds/mediagen/?uri=mgid:arc:episode:spike.com:879d90fa-0bac-44fd-9636-1f7be95b30d2&episode=695a2c57-7817-4192-91b4-ee4f81e8764e&ref=www.spike.com&device={device}
16:16:45 T:2767189056   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.IndexError'>
                                            Error Contents: list index out of range
                                            Traceback (most recent call last):
                                              File "/home/pi/.xbmc/addons/plugin.video.free.cable-beta/default.py", line 63, in <module>
                                                modes()
                                              File "/home/pi/.xbmc/addons/plugin.video.free.cable-beta/default.py", line 60, in modes
                                                exec 'sitemodule.%s()' % _common.args.sitemode
                                              File "<string>", line 1, in <module>
                                              File "/home/pi/.xbmc/addons/plugin.video.free.cable-beta/resources/lib/spike.py", line 191, in play_video
                                                video_url8 = MP4URL + video_url7.split('mtvnorigin')[1]
                                            IndexError: list index out of range
                                            -->End of Python script error report<--
16:16:45 T:3041419904   DEBUG: ------ Window Init (DialogKaiToast.xml) ------
16:16:46 T:2767189056    INFO: Python script stopped
Reply
you repo is down
Reply
I have a patch for the Free Cable Addon for VH1. It appears that the VH1 website has poorly formatted HTML, and they changed some HTML on the Index Page. Without this patch, Free Cable (for VH1) will error out with a Script Error message because it can't parse the HTML correctly.

To apply the patch (on Linux) copy the patch code listed here into a file called vh1.py.patch. Then apply the patch with "patch ${HOME}/.xbmc/ addons/plugin.video.free.cable/resources/lib/vh1.py < vh1.py.patch.

Code:
--- vh1.py      2014-03-20 09:09:31.196657185 -0600
+++ vh1.py.orig 2014-03-16 08:30:41.175506055 -0600
@@ -68,11 +68,8 @@
def rootlist(db=False):
     url = 'http://www.vh1.com/shows/all_vh1_shows.jhtml'
     data = common.getURL(url)
-    data = data.replace('!- ','!--')
     tree=BeautifulSoup(data, convertEntities=BeautifulSoup.HTML_ENTITIES)
-    groups=tree.findAll('div',attrs={'id':re.compile('shows-[a-z]$|shows-no$')})
-    tree=BeautifulSoup(str(groups))
-    shows=tree('a')
+    shows=tree.find('div',attrs={'id':'azshows'}).findAll('a')
     db_shows=[]
     for show in shows:
         name = show.string.replace('Season','').strip()
@@ -109,7 +106,6 @@
        
def seasons(url=common.args.url):
     data = common.getURL(url)
-    data = data.replace('!- ','!--')
     tree=BeautifulSoup(data, convertEntities=BeautifulSoup.HTML_ENTITIES)
     seasonmenu=tree.find('select',attrs={'id':'videolist_id'})
     if seasonmenu:
@@ -131,7 +127,6 @@
def showsubcats(url=common.args.url):
     #Add season options
     data = common.getURL(url)
-    data = data.replace('!- ','!--')
     tree=BeautifulSoup(data, convertEntities=BeautifulSoup.HTML_ENTITIES)
     subs=tree.find(attrs={'class':'group-a'}).findAll('a')
     for sub in subs:
@@ -157,7 +152,6 @@

def videos(url=common.args.url):
     data = common.getURL(url)
-    data = data.replace('!- ','!--')
     tree=BeautifulSoup(data, convertEntities=BeautifulSoup.HTML_ENTITIES)
     subs=tree.find(attrs={'class':'group-b'})
     try:
@@ -225,7 +219,6 @@

def playurl(url = common.args.url):
     data = common.getURL(url)
-    data = data.replace('!- ','!--')
     tree=BeautifulStoneSoup(data, convertEntities=BeautifulStoneSoup.HTML_ENTITIES)
     uri = tree.find('link',attrs={'rel':'video_src'})['href'].split('/')[-1]
     playuri(uri,referer=url)
Reply
(2014-03-19, 23:12)dubwise Wrote: Anyone have any ideas on this one??


(2014-03-07, 00:00)dubwise Wrote: Hey guys, looks like something changed on Spike (TV) again. I can no longer watch Powerblock or PowerNation shows. I'm running the latest beta (plus the fix for Spike that was committed around 1/23/14). Here is the error for both shows. Should be pretty easy to duplicate. Thanks in advance.

Nope but I wish they would fix it! Most missed show for me is all the powerblock stuff since I cancelled cable ;(
Reply
The latest version of spike.py still works but waiting for the new release.

The more people that contribute the better, but if you do it would be much easier if you asked moneymaker to make a a contributer to the github, that way we are all working from the same code base.
Reply
Test scripts

It dosnt use a framework it just monkey patches in the calls to xbmc and then executes every module
https://dl.dropboxusercontent.com/u/208785/test.zip

Note it fails at the moment because "cartoon.py" is missing (why are modules listed in common any way....)

where on github https://github.com/moneymaker365 dosnt list freecable
Reply
I think I have a different version of Free Cable (I am on 0.7.6) than you (looks like you are running beta), but I think it is the same issue.

Try editing your spike.py file and replace the part "video_url7.split('mtvnorigin')[1]" in line 191 with "video_url7.split('viacomspikestrm')[2]

After I changed this in my spike.py (line 181), I can now get channels working on Spike again. This should work on the beta version as well.

(2014-03-19, 23:12)dubwise Wrote: Anyone have any ideas on this one??


(2014-03-07, 00:00)dubwise Wrote: Hey guys, looks like something changed on Spike (TV) again. I can no longer watch Powerblock or PowerNation shows. I'm running the latest beta (plus the fix for Spike that was committed around 1/23/14). Here is the error for both shows. Should be pretty easy to duplicate. Thanks in advance.


Code:
start of FREE CABLE plugin
16:13:43 T:2767189056  NOTICE: _connection :: getURL :: url = http://www.spike.com/episodes/cs1lwr/powernation-detroit-muscle-tough-as-nails-trans-am-season-1-ep-006
16:13:55 T:2767189056  NOTICE: _connection :: getRedirect :: url = http://media.mtvnservices.com/mgid:arc:episode:spike.com:9596c9d8-1037-462e-a212-0dfa8ebe4e90
16:13:56 T:2767189056  NOTICE: _connection :: getURL :: url = http://media.mtvnservices.com/pmt/e1/players/mgid:arc:episode:spike.com:/context1/context2/config.xml?uri=mgid:arc:episode:spike.com:9596c9d8-1037-462e-a212-0dfa8ebe4e90&type=network&ref=www.spike.com&geo=US&group=entertainment&network=None&device=Other
16:13:57 T:2767189056  NOTICE: _connection :: getURL :: url =
                                            http://www.spike.com/feeds/mrss/?uri=mgid:arc:episode:spike.com:9596c9d8-1037-462e-a212-0dfa8ebe4e90&ref=www.spike.com
16:13:59 T:2767189056  NOTICE: _connection :: getURL :: url = http://www.spike.com/feeds/mediagen/?uri=mgid:arc:episode:spike.com:187b5a96-903a-47f5-9bc2-07583da3891e&episode=9596c9d8-1037-462e-a212-0dfa8ebe4e90&ref=www.spike.com&device={device}
16:14:01 T:2767189056   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.IndexError'>
                                            Error Contents: list index out of range
                                            Traceback (most recent call last):
                                              File "/home/pi/.xbmc/addons/plugin.video.free.cable-beta/default.py", line 63, in <module>
                                                modes()
                                              File "/home/pi/.xbmc/addons/plugin.video.free.cable-beta/default.py", line 60, in modes
                                                exec 'sitemodule.%s()' % _common.args.sitemode
                                              File "<string>", line 1, in <module>
                                              File "/home/pi/.xbmc/addons/plugin.video.free.cable-beta/resources/lib/spike.py", line 191, in play_video
                                                video_url8 = MP4URL + video_url7.split('mtvnorigin')[1]
                                            IndexError: list index out of range
                                            -->End of Python script error report<--
16:14:01 T:3041419904   DEBUG: ------ Window Init (DialogKaiToast.xml) ------
16:14:01 T:2767189056    INFO: Python script stopped


Code:
start of FREE CABLE plugin
16:16:28 T:2767189056  NOTICE: _connection :: getURL :: url = http://www.spike.com/episodes/pby6fz/powerblock-search-restore-fabulous-hudson-hornet-part-2-season-5-ep-048
16:16:40 T:2767189056  NOTICE: _connection :: getRedirect :: url = http://media.mtvnservices.com/mgid:arc:episode:spike.com:695a2c57-7817-4192-91b4-ee4f81e8764e
16:16:41 T:2767189056  NOTICE: _connection :: getURL :: url = http://media.mtvnservices.com/pmt/e1/players/mgid:arc:episode:spike.com:/context1/context2/config.xml?uri=mgid:arc:episode:spike.com:695a2c57-7817-4192-91b4-ee4f81e8764e&type=network&ref=www.spike.com&geo=US&group=entertainment&network=None&device=Other
16:16:42 T:2767189056  NOTICE: _connection :: getURL :: url =
                                            http://www.spike.com/feeds/mrss/?uri=mgid:arc:episode:spike.com:695a2c57-7817-4192-91b4-ee4f81e8764e&ref=www.spike.com
16:16:44 T:2767189056  NOTICE: _connection :: getURL :: url = http://www.spike.com/feeds/mediagen/?uri=mgid:arc:episode:spike.com:879d90fa-0bac-44fd-9636-1f7be95b30d2&episode=695a2c57-7817-4192-91b4-ee4f81e8764e&ref=www.spike.com&device={device}
16:16:45 T:2767189056   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.IndexError'>
                                            Error Contents: list index out of range
                                            Traceback (most recent call last):
                                              File "/home/pi/.xbmc/addons/plugin.video.free.cable-beta/default.py", line 63, in <module>
                                                modes()
                                              File "/home/pi/.xbmc/addons/plugin.video.free.cable-beta/default.py", line 60, in modes
                                                exec 'sitemodule.%s()' % _common.args.sitemode
                                              File "<string>", line 1, in <module>
                                              File "/home/pi/.xbmc/addons/plugin.video.free.cable-beta/resources/lib/spike.py", line 191, in play_video
                                                video_url8 = MP4URL + video_url7.split('mtvnorigin')[1]
                                            IndexError: list index out of range
                                            -->End of Python script error report<--
16:16:45 T:3041419904   DEBUG: ------ Window Init (DialogKaiToast.xml) ------
16:16:46 T:2767189056    INFO: Python script stopped
Reply
I've been relying on this addon more, lately, because Hulu keeps changing their CDNs. However, I noticed yesterday that all the "Full Episode" listings I checked were 1 week/episode behind what's actually accessible via the networks' site. Am I the only one seeing this? Is there a known solution?

Edit: I figured out why it's doing this. When populating the episode list, at least for FOX, we run the following check:
Code:
if ((datetime.now() - datetime.strptime(episode_item['airdate'], '%Y-%m-%d')).days  >= 8)...
Thus, only episodes that are 8 days or older are displayed. Changing this to something like >=1 will show even the most recent show (just as you'd see on the site).
So, what is the reasoning behind only displaying episodes that are 8 days or older?

Edit 2: It looks like the reason for listing only 8+ day-old episodes is that there are several shows that only "unlock" the latest episode after 8 days. Some do it after 5 days, and some are never locked. The 8 day wait in the script is then a catch-all. I suppose a different way to do it would be to run checks on shows' names, knowing which should list the latest episode, which should wait 5 days, and which should wait 8 days. Of course, this would also require staying on top of things whenever new shows come on the air or new online deals are struck.
Reply
Yep that's the reason. I actually thought they were all locked until 8 days, with all other sites we can read an explicit flag as to whether an episode is locked. I'm not keen on hard coding show names, but I agree this needs looking at.
Reply
We may not need to look at show names. It looks like each episode_item has an 'authEndDate' value (in millisecond epoch time), which appears to be the date that the episode will be unlocked. So, we might be able to change that if statement to just compare episode_item['authEndDate'] to datetime.now().
Reply
(2014-03-21, 03:39)wnhtr Wrote: I think I have a different version of Free Cable (I am on 0.7.6) than you (looks like you are running beta), but I think it is the same issue.

Try editing your spike.py file and replace the part "video_url7.split('mtvnorigin')[1]" in line 191 with "video_url7.split('viacomspikestrm')[2]

After I changed this in my spike.py (line 181), I can now get channels working on Spike again. This should work on the beta version as well.

dont have that part anywhere in my spike.py file (not running beta)
Reply
If you are running 0.7.6 (like I am), then line 181 should look like this:
Code:
rtmpurl = mp4_url+rtmpdata.split('mtvorigin')[1]

Change it to this:
Code:
rtmpurl = mp4_url+rtmpdata.split('viacomspikestrm')[2]


(2014-03-21, 20:21)cloead Wrote:
(2014-03-21, 03:39)wnhtr Wrote: I think I have a different version of Free Cable (I am on 0.7.6) than you (looks like you are running beta), but I think it is the same issue.

Try editing your spike.py file and replace the part "video_url7.split('mtvnorigin')[1]" in line 191 with "video_url7.split('viacomspikestrm')[2]

After I changed this in my spike.py (line 181), I can now get channels working on Spike again. This should work on the beta version as well.

dont have that part anywhere in my spike.py file (not running beta)
Reply
(2014-03-21, 19:07)elmerohueso Wrote: We may not need to look at show names. It looks like each episode_item has an 'authEndDate' value (in millisecond epoch time), which appears to be the date that the episode will be unlocked. So, we might be able to change that if statement to just compare episode_item['authEndDate'] to datetime.now().

That works, will check it in once I've finished testing
Reply
  • 1
  • 51
  • 52
  • 53(current)
  • 54
  • 55
  • 57

Logout Mark Read Team Forum Stats Members Help
[SUPPORT] Free Cable - US station aggregator7