def video_docs(params):
    """This function list the Documentary videos showed by the main page website."""
    p.log("ltl.video_docs " + repr(params))

    video_list = api.get_video_docs()
    action = 'play_video'

    video_items = [{
        'thumbnail':
        video_entry.get('thumbnail') or '',
        'info': {
            'title': video_entry.get('title'),
            'plot': video_entry.get('plot') or '',
            'studio': video_entry.get('credits') or '',
            'genre': video_entry.get('genre') or '',
            'year': video_entry.get('year') or '',
            'rating': video_entry.get('rating') or '',
        },
        'path':
        p.get_plugin_path(
            url=video_entry['url'],
            action=action,
        ),
        'IsPlayable':
        video_entry['IsPlayable'],
    } for video_entry in video_list]

    p.add_items(video_items)
def video_docs(params):
    """This function list the Documentary videos showed by the main page website."""
    p.log("ltl.video_docs "+repr(params))

    video_list = api.get_video_docs()
    action     = 'play_video'

    video_items = [ {
        'thumbnail'  : video_entry.get('thumbnail') or '',
        'info': {
            'title'  : video_entry.get('title'),
            'plot'   : video_entry.get('plot')      or '',
            'studio' : video_entry.get('credits')   or '',
            'genre'  : video_entry.get('genre')     or '',
            'year'   : video_entry.get('year')      or '',
            'rating' : video_entry.get('rating')    or '',
        },
        'path'       : p.get_plugin_path(
            url      = video_entry['url'],
            action   = action,
        ),
        'IsPlayable' : video_entry['IsPlayable'],
        }  for video_entry in video_list]

    p.add_items(video_items)
 def test_2_video_docs(self):
     doc_list = api.get_video_docs()
     self.assertTrue(doc_list is not None and len(doc_list) > 10)
Esempio n. 4
0
 def test_2_video_docs(self):
     doc_list = api.get_video_docs()
     self.assertTrue(doc_list is not None and len(doc_list) > 10)