- split out meta parser
[enigma2.git] / lib / python / Screens / MovieSelection.py
1 from Screen import Screen
2 from Components.Button import Button
3 from Components.ServiceList import ServiceList
4 from Components.ActionMap import ActionMap
5 from Components.MovieList import MovieList
6
7 from enigma import eServiceReference
8
9 class MovieSelection(Screen):
10         def __init__(self, session):
11                 Screen.__init__(self, session)
12                 
13                 self.movemode = False
14                 self.bouquet_mark_edit = False
15                 
16                 self["list"] = MovieList(eServiceReference("2:0:1:0:0:0:0:0:0:0:/hdd/movies/"))
17                 
18                 #self["okbutton"] = Button("ok", [self.channelSelected])
19                 
20                 self["actions"] = ActionMap(["OkCancelActions"], 
21                         {
22                                 "cancel": self.close,
23                                 "ok": self.movieSelected,
24                         })
25                 self["actions"].csel = self
26
27         def movieSelected(self):
28                 self.session.nav.playService(self["list"].getCurrent()[0])
29                 self.close()