Updated main controller

This commit is contained in:
Manuel Cortez 2019-02-03 18:55:14 -06:00
parent 21932dc329
commit 2496f19bee

View File

@ -340,7 +340,8 @@ class Controller(object):
params["hd"] = 1 params["hd"] = 1
params["adult"] = dlg.get_checkable("safe_search") params["adult"] = dlg.get_checkable("safe_search")
params["sort"] = dlg.get_sort_order() params["sort"] = dlg.get_sort_order()
params["filters"] = "youtube, vimeo, short, long" # params["filters"] = "youtube, vimeo, short, long, mp4"
print(params)
newbuff = buffers.videoBuffer(parent=self.window.tb, name="{0}_videosearch".format(params["q"],), session=self.session, composefunc="render_video", parent_endpoint="video", endpoint="search", **params) newbuff = buffers.videoBuffer(parent=self.window.tb, name="{0}_videosearch".format(params["q"],), session=self.session, composefunc="render_video", parent_endpoint="video", endpoint="search", **params)
self.buffers.append(newbuff) self.buffers.append(newbuff)
call_threaded(newbuff.get_items) call_threaded(newbuff.get_items)