Skip to content

Commit

Permalink
remove override of video play so users can use the share/queue buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
claytron committed Jul 3, 2010
1 parent aae02b0 commit 0aa816c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 20 deletions.
12 changes: 0 additions & 12 deletions vimcasts/helpers.py
@@ -1,17 +1,5 @@
import mc

def play_video():
"""Play the selected video directly instead of asking the user
if they want to play it.
"""
player = mc.GetPlayer()
feed_list = mc.GetWindow(14000).GetList(100)
focused_item = feed_list.GetFocusedItem()
episodes = feed_list.GetItems()
if player.IsPlaying():
player.Stop()
player.Play(episodes[focused_item])


def cleanse_feed():
"""Modify the feed to do two things.
Expand Down
9 changes: 1 addition & 8 deletions vimcasts/skin/Boxee Skin NG/720p/menu.xml
Expand Up @@ -67,14 +67,7 @@ helpers.cleanse_feed()
<wrapmultiline>true</wrapmultiline>
</control>
</focusedlayout>
<content type="url" url="rss://vimcasts.org/feeds/boxee-quicktime/">
<onclick lang="python">
<![CDATA[
import helpers
helpers.play_video()
]]>
</onclick>
</content>
<content type="url" url="rss://vimcasts.org/feeds/boxee-quicktime/"/>
</control>
</control>
<control type="group">
Expand Down

0 comments on commit 0aa816c

Please sign in to comment.