Exemplo n.º 1
0
	def connectToStream2Dream(self):
		streamplayer.login()
		try:
			list = listdir("/tmp/mp")
		except:
			list = []
		if len(list) < 2:
			self.session.open(MessageBox, "Die Verbindung zu LT Stream2Dream konnte nicht hergestellt werden!", MessageBox.TYPE_ERROR)
			streamplayer.logout()
			self.transcodeServer = None
			self["serverName"].setText("Server")
Exemplo n.º 2
0
	def connectToStream2Dream(self):
		streamplayer.login()
		try:
			list = listdir("/tmp/mp")
		except:
			list = []
		if len(list) < 2:
			self.session.open(MessageBox, "Die Verbindung zu LT Stream2Dream konnte nicht hergestellt werden!", MessageBox.TYPE_ERROR)
			streamplayer.logout()
			self.transcodeServer = None
			self.setTitle("ORF.at IPTV - Server:")
Exemplo n.º 3
0
	def serverChosen(self, callback):
		if callback:
			server = callback[1]
			if server == "LT Stream2Dream":
				if not streamplayer.connected:
					self.transcodeServer = "LT Stream2Dream"
					self["serverName"].setText("LT Stream2Dream")
					self.connectToStream2Dream()
			else:
				if streamplayer:
					if streamplayer.connected:
						streamplayer.logout()
				self.transcodeServer = server
				self["serverName"].setText(server.getName())
Exemplo n.º 4
0
 def exit(self):
     if not self.working:
         if self.cacheDialog.isShown() == False:
             if streamplayer:
                 if streamplayer.connected:
                     streamplayer.logout()
             self.session.deleteDialog(self.cacheDialog)
             self.close()
         else:
             if streamplayer:
                 if streamplayer.connected:
                     streamplayer.stop()
                     sleep(4)
             self.deactivateCacheDialog()
Exemplo n.º 5
0
 def serverChosen(self, callback):
     if callback:
         server = callback[1]
         if server == "LT Stream2Dream":
             if not streamplayer.connected:
                 self.transcodeServer = "LT Stream2Dream"
                 self["serverName"].setText("LT Stream2Dream")
                 self.connectToStream2Dream()
         else:
             if streamplayer:
                 if streamplayer.connected:
                     streamplayer.logout()
             self.transcodeServer = server
             self["serverName"].setText(server.getName())
Exemplo n.º 6
0
	def serverChosen(self, callback):
		if callback:
			server = callback[1]
			if server == "LT Stream2Dream":
				if not streamplayer.connected:
					self.transcodeServer = "LT Stream2Dream"
					self.setTitle("ORF.at IPTV - Server: LT Stream2Dream")
					self.connectToStream2Dream()
			else:
				if streamplayer:
					if streamplayer.connected:
						streamplayer.logout()
				self.transcodeServer = server
				self.setTitle("ORF.at IPTV - Server: %s"%server.getName())
Exemplo n.º 7
0
	def exit(self):
		if not self.working:
			if self.cacheDialog.Shown:
				if streamplayer:
					if streamplayer.connected:
						streamplayer.stop()
						sleep(4)
				self.deactivateCacheDialog()
			else:
				if streamplayer:
					if streamplayer.connected:
						streamplayer.logout()
				self.session.deleteDialog(self.cacheDialog)
				self.close()
Exemplo n.º 8
0
	def exit(self):
		if not self.working:
			if self.currentList == LIST_LEFT:
				self.toggleList()
			elif self.currentList == LIST_RIGHT:
				if streamplayer:
					if streamplayer.connected:
						streamplayer.logout()
				self.session.deleteDialog(self.cacheDialog)
				self.close()
			else:
				if streamplayer:
					if streamplayer.connected:
						streamplayer.stop()
						sleep(4)
				self.deactivateCacheDialog()
Exemplo n.º 9
0
 def exit(self):
     if not self.working:
         if self.currentList == LIST_LEFT:
             self.toggleList()
         elif self.currentList == LIST_RIGHT:
             if streamplayer:
                 if streamplayer.connected:
                     streamplayer.logout()
             self.session.deleteDialog(self.cacheDialog)
             self.close()
         else:
             if streamplayer:
                 if streamplayer.connected:
                     streamplayer.stop()
                     sleep(4)
             self.deactivateCacheDialog()