can i add a video item as non playable ?

gbzygil

New member
Nov 29, 2013
12
0
0
I'm adding a video items using this :
Code:
addon.add_video_item({'host': mediaHost, 'media_id': media_id},{'title': mediaHost + ' (' +media_id+')'})
Also, my play module has this code:
Code:
if play:
    url = addon.queries.get('url', '')
    host = addon.queries.get('host', '')
    media_id = addon.queries.get('media_id', '')
    if host == 'youku':
        addon.show_small_popup(host,"please wait...", 2000, logo)
        GbcYoukuResolver(media_id)
GbcYoukuResolver module does a
Code:
xbmc.Player().play(stackurl)
So whats happening is that the video is attempted to play twice. The default resolver fails and my custom url resolver works.

How can i add a video item as non playable ?
 

Eldorado

Moderator
Staff member
May 7, 2012
990
0
16
What is the code in your GgcYoukuResolver?

When you use add_video_item() it is assumed that it is a playable item, is there more code in your 'if play:' method?