2011-10-24, 23:15
What about creating a switch where when calling Get_Meta
ie
meta = metaget.get_meta('movie', CleanHTML(name), year=sYear, Trailer=??)
?? could be Youtube or Plain etc.... Just an idea
Otherwise when adding meta to the Dir creating routine in our addon , we add the Trailer as another dict.
ie
meta = metaget.get_meta('movie', CleanHTML(name), year=sYear, Trailer=??)
?? could be Youtube or Plain etc.... Just an idea
Otherwise when adding meta to the Dir creating routine in our addon , we add the Trailer as another dict.
Code:
addon.add_Metadirectory({'mode' : 'GetMovieSource', 'url' : url }, meta ,total_items=len(match),title=CleanHTML(name) + ' (' + sYear + ')' , img=meta['cover_url'],trailer=resolvedYoutubeURL)
Eldorado Wrote:I was considering it, but then thought it's probably best that I don't do that in case things such as the youtube addon changes, or you just would like to play it differently for whatever reason eg. with the urlresolver
I guess this is up for debate, generally I like to pass back unmolested data which may force you to take certain directions unless there is a specific reason for touching it, this could be a case where I do.. but I'm very 50/50 on it
Anyone want to chime in on the topic?