[RELEASE] The Escapist (Video) Plugin

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
Floppie Offline
Junior Member
Posts: 38
Joined: Dec 2010
Reputation: 0
Thumbs Up  [RELEASE] The Escapist (Video) Plugin
Post: #1
This plugin allows you to view videos on The Escapist's website, such as the popular Zero Punctuation series.

Current features include indexing each series, perusing multiple pages of a given series, and of course, playing the videos.

Planned features include an option to use a proxy rather than accessing The Escapist's website directly, and (optionally) downloading videos to your library in lieu of streaming them.

The plugin's latest stable build (currently 0.1.3) is available in the XBMC official repo. Development is at http://code.google.com/p/xbmc-plugin-escapist/ if you want to pull a copy from svn or contribute some code/graphics (I'm not a graphics guy).

Happy viewing Smile
find quote
Dimmuxx Offline
Junior Member
Posts: 20
Joined: Dec 2009
Reputation: 0
Post: #2
Nice work! Nod
find quote
YodaEXE Offline
Fan
Posts: 455
Joined: May 2010
Reputation: 0
Post: #3
Very cool! I'll definitely be downloading and installing this the next time I'm at my HTPC.
find quote
BlueCop Offline
Skilled Python Coder
Posts: 1,432
Joined: May 2004
Reputation: 73
Post: #4
thanks! zero punctuation is awesome.
find quote
HenrikDK Offline
Skilled Python Coder
Posts: 539
Joined: Jul 2007
Reputation: 18
Post: #5
Hi Great plugin, I'm enjoying it very much Nod. But I am missing one teeny tiny thing, Currently the plugin only seems to scrape the large list here:
http://www.escapistmagazine.com/videos/galleries

But on the bottom of the same page there's an entire section with "archived videos" that isn't available from the plugin and I desperately need my fix of "I hit it with my axe". Would it be possible to add this to the plugin?

/HenrikDK
find quote
Floppie Offline
Junior Member
Posts: 38
Joined: Dec 2010
Reputation: 0
Post: #6
Absolutely - I just missed that section of the page when I wrote the parser Smile

I whipped up a tentative fix remotely - I'll try to get it tested tonight when I get home so I can have it pushed live.
find quote
Floppie Offline
Junior Member
Posts: 38
Joined: Dec 2010
Reputation: 0
Post: #7
Fix successful, notified the XBMC team last night and as of ~0600 EST the update is live.

Happy viewing Smile
find quote
HenrikDK Offline
Skilled Python Coder
Posts: 539
Joined: Jul 2007
Reputation: 18
Post: #8
just got the update, thanks Smile

weeee
find quote
YodaEXE Offline
Fan
Posts: 455
Joined: May 2010
Reputation: 0
Post: #9
Any idea how I'd go about mapping this to a Favourite so that I can map it to a custom button on my home screen? I've got this, but it doesn't seem to work:

Code:
<favourites>
    <favourite name="The Escapist">RunPlugin(plugin.video.escapistmagazine)</favourite>
</favourites>

Also, I have a thought. Is there any way to program some sort of Random button once you're browsing? Like, I'd love to be able to go into Zero Punctuation, hit random, and enjoy a random episode.
(This post was last modified: 2011-01-04 23:45 by YodaEXE.)
find quote
StuartQF Offline
Junior Member
Posts: 9
Joined: Jan 2011
Reputation: 0
Post: #10
This is a great plugin!

One thing I noticed, it seems to be missing Loading Ready Run from the list.

Anyone else notice this?
find quote
Floppie Offline
Junior Member
Posts: 38
Joined: Dec 2010
Reputation: 0
Post: #11
Sorry YodaEXE, I must have missed the E-mail notification from the thread. I have no idea how you'd go about setting up a favorite for it - unfortunately I'm not all that familiar with XBMC configuration. I'd check out the wiki and maybe ask in one of the general help forums.

As far as a random button, I could probably do that. I'll see about it Smile

StuartQF, I'll look into the Loading Ready Run issue and see what I can do.
find quote
YodaEXE Offline
Fan
Posts: 455
Joined: May 2010
Reputation: 0
Post: #12
I got it figured out. Thanks though! I have a nice button on my home screen, and it even cycles through backgrounds that I made from clips of shows.

I hope you can do some sort of random function. Would be even better if you could have it play a certain number of shows in a row. So, I could do something like press Random, and it would play 5 random Zero Punctuation episodes or something. Would likely be a bit of a pain to do that though.

Regardless of whether or not you can do that, great plugin! I love being able to flip on my TV each Weds and watch Zero Punctuation on my TV!
find quote
overwheat Offline
Junior Member
Posts: 2
Joined: Feb 2011
Reputation: 0
Post: #13
Don't know about anyone else, but I'm getting a script error on any video I try and play.
find quote
Floppie Offline
Junior Member
Posts: 38
Joined: Dec 2010
Reputation: 0
Post: #14
I haven't seen the issue myself...post a copy of your xbmc.log after trying to play a video.
find quote
overwheat Offline
Junior Member
Posts: 2
Joined: Feb 2011
Reputation: 0
Post: #15
Code:
00:54:54 T:812 M:1681182720   DEBUG: XFILE::CPluginDirectory::StartScript - calling plugin The Escapist('plugin://plugin.video.escapistmagazine/','0','?url=http%3A%2F%2Fwww.escapistmagazine.com%2Fvideos%2Fview%2Fzero-punctuation%2F2737-Dead-Space-2&referer=http%3A%2F%2Fwww.escapistmagazine.com%2Fvideos%2Fview%2Fzero-punctuation&mode=3&name=Dead+Space+2')
00:54:54 T:812 M:1681182720    INFO: initializing python engine.
00:54:54 T:812 M:1681182720   DEBUG: new python thread created. id=5
00:54:54 T:812 M:1681182720   DEBUG: XFILE::CPluginDirectory::WaitOnScriptResult - waiting on the The Escapist plugin...
00:54:54 T:344 M:1681182720   DEBUG: thread start, auto delete: 0
00:54:54 T:344 M:1681182720   DEBUG: Python thread: start processing
00:54:54 T:344 M:1681104896   DEBUG:   msg: 'import site' failed; use -v for traceback
00:54:54 T:344 M:1681104896  NOTICE: -->Python Interpreter Initialized<--
00:54:54 T:344 M:1681104896   DEBUG: XBPyThread::Process - The source file to load is C:\Program Files (x86)\XBMC\portable_data\addons\plugin.video.escapistmagazine\default.py
00:54:54 T:344 M:1681104896   DEBUG: XBPyThread::Process - Setting the Python path to C:\Program Files (x86)\XBMC\portable_data\addons\plugin.video.escapistmagazine;C:\Program Files (x86)\XBMC\portable_data\addons\script.module.simplejson\lib;C:\Program Files (x86)\XBMC\portable_data\addons\script.module.beautifulsoup\lib;C:\Program Files (x86)\XBMC\addons\script.module.pil\lib;C:\Program Files (x86)\XBMC\portable_data\addons\script.module.elementtree\lib;C:\Program Files (x86)\XBMC\addons\script.module.pysqlite\lib;special://xbmc/system/python/DLLs;special://xbmc/system/python/Lib;special://xbmcbin/system/python/python24.zip;special://xbmc/system/python\DLLs;special://xbmc/system/python\lib;special://xbmc/system/python\lib\plat-win;special://xbmc/system/python\lib\lib-tk;C:\Program Files (x86)\XBMC
00:54:54 T:344 M:1681104896   DEBUG: XBPyThread::Process - Entering source directory C:\Program Files (x86)\XBMC\portable_data\addons\plugin.video.escapistmagazine
00:54:56 T:812 M:1681235968    INFO: Loading skin file: DialogProgress.xml
00:54:56 T:812 M:1681231872   DEBUG: ------ Window Init (DialogProgress.xml) ------
00:54:58 T:344 M:1681174528    INFO: -->Python script returned the following error<--
00:54:58 T:344 M:1681174528   ERROR: Error Type: httplib.BadStatusLine
00:54:58 T:344 M:1681174528   ERROR: Error Contents:
00:54:58 T:344 M:1681080320   ERROR: Traceback (most recent call last):
                                              File "C:\Program Files (x86)\XBMC\portable_data\addons\plugin.video.escapistmagazine\default.py", line 179, in ?
                                                PLAYVIDEO(url, referer)
                                              File "C:\Program Files (x86)\XBMC\portable_data\addons\plugin.video.escapistmagazine\default.py", line 109, in PLAYVIDEO
                                                json = retrieveUrl(config_url, "")
                                              File "C:\Program Files (x86)\XBMC\portable_data\addons\plugin.video.escapistmagazine\default.py", line 43, in retrieveUrl
                                                response = urllib2.urlopen(req)
                                              File "special://xbmc/system/python/Lib\urllib2.py", line 130, in urlopen
                                                return _opener.open(url, data)
                                              File "special://xbmc/system/python/Lib\urllib2.py", line 358, in open
                                                response = self._open(req, data)
                                              File "special://xbmc/system/python/Lib\urllib2.py", line 376, in _open
                                                '_open', req)
                                              File "special://xbmc/system/python/Lib\urllib2.py", line 337, in _call_chain
                                                result = func(*args)
                                              File "special://xbmc/system/python/Lib\urllib2.py", line 1021, in http_open
                                                return self.do_open(httplib.HTTPConnection, req)
                                              File "special://xbmc/system/python/Lib\urllib2.py", line 994, in do_open
                                                r = h.getresponse()
                                              File "special://xbmc/system/python/Lib\httplib.py", line 866, in getresponse
                                                response.begin()
                                              File "special://xbmc/system/python/Lib\httplib.py", line 336, in begin
                                                version, status, reason = self._read_status()
                                              File "special://xbmc/system/python/Lib\httplib.py", line 300, in _read_status
                                                raise BadStatusLine(line)
                                            BadStatusLine
00:54:58 T:344 M:1681080320    INFO: -->End of Python script error report<--
00:54:58 T:344 M:1681076224    INFO: Python script stopped
00:54:58 T:344 M:1681076224   DEBUG: Thread 344 terminating
00:54:58 T:812 M:1681076224   DEBUG:  XFILE::CPluginDirectory::WaitOnScriptResult - plugin exited prematurely - terminating
00:54:58 T:812 M:1681076224   ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.video.escapistmagazine/?url=http%3A%2F%2Fwww.escapistmagazine.com%2Fvideos%2Fview%2Fzero-punctuation%2F2737-Dead-Space-2&referer=http%3A%2F%2Fwww.escapistmagazine.com%2Fvideos%2Fview%2Fzero-punctuation&mode=3&name=Dead+Space+2]
00:54:58 T:812 M:1681076224   DEBUG: Playlist Player: no more playable items... aborting playback
00:54:58 T:3248 M:1681076224   DEBUG: thread start, auto delete: 0
00:54:58 T:812 M:1681076224   DEBUG: python thread 5 destructed
00:54:58 T:812 M:1681076224    INFO: Loading skin file: DialogKaiToast.xml
00:54:58 T:812 M:1681027072   DEBUG: ------ Window Init (DialogKaiToast.xml) ------
00:54:58 T:3248 M:1680994304   DEBUG: Thread 3248 terminating
00:54:58 T:812 M:1681022976   DEBUG: ------ Window Deinit (DialogProgress.xml) ------
00:55:02 T:812 M:1681149952   DEBUG: CGUIMediaWindow::GetDirectory (plugin://plugin.video.escapistmagazine/)
00:55:02 T:812 M:1681149952   DEBUG:   ParentPath = [addons://sources/video/]
00:55:02 T:812 M:1681149952   DEBUG: Loading fileitems [plugin://plugin.video.escapistmagazine/]
00:55:02 T:812 M:1681113088   DEBUG:   -- items: 37, directory: plugin://plugin.video.escapistmagazine/ sort method: 0, ascending: false
00:55:02 T:812 M:1681096704 WARNING: XFILE::CVideoDatabaseDirectory::GetLabel - Unknown nodetype requested 6
00:55:02 T:3900 M:1681096704   DEBUG: thread start, auto delete: 0
00:55:02 T:3900 M:1681141760   DEBUG: Thread 3900 terminating
00:55:03 T:812 M:1681178624   DEBUG: ------ Window Deinit (DialogKaiToast.xml) ------
00:55:04 T:812 M:1681170432   DEBUG: CApplication::ExecuteXBMCAction : Translating ActivateWindow(Home)
00:55:04 T:812 M:1681170432   DEBUG: CApplication::ExecuteXBMCAction : To ActivateWindow(Home)
find quote
Post Reply