Permalink
Browse files

add vimeo videos

  • Loading branch information...
1 parent 6216c5c commit 711c2f24970e2d0f1be9cdf7c60967843970b682 @dersphere committed Nov 6, 2012
Showing with 7 additions and 3 deletions.
  1. +7 −3 addon.py
View
@@ -131,9 +131,13 @@ def play(docu_id):
playback_url = ('plugin://plugin.video.youtube/'
'?action=play_all&playlist=%s' % media.get('id'))
return plugin.set_resolved_url(playback_url)
- else:
- plugin.log.warning(repr(media))
- plugin.notify(msg=_('Not Implemented yet'))
+ elif source == 'vimeo.com':
+ if media_type == 'video':
+ playback_url = ('plugin://plugin.video.vimeo/'
+ '?action=play_video&videoid=%s' % media.get('id'))
+ return plugin.set_resolved_url(playback_url)
+ plugin.log.warning(repr(media))
+ plugin.notify(msg=_('Not Implemented yet'))
def __add_docus(docus):

0 comments on commit 711c2f2

Please sign in to comment.