Jump to content


janeCMD

Member Since 1 Feb 2014
Offline Last Active 14 Aug 2014 11:34
-----

Posts I've Made

In Topic: Media player exit protection not able to set

26 March 2014 - 13:49

I have finally resolved it - After checking decompiled Infobar.pyo file all looked OK there, and any setting in 'Allow Quit  Movieplayer With Exit' was ignored.

 

The problem was in MediaPlayer/plugin.py file, where the question upon exit was hardcoded, ignoring any settings.

 

The file in question: /usr/lib/enigma2/python/Plugins/Extensions/MediaPlayer/plugin.py

 

Function: def exit(self) - I have replaced else: section with content of  'exitCallback(self, answer)'

def exit(self):
		if self.mediaPlayerInfoBar.shown:
			self.timerHideMediaPlayerInfoBar()
		else:
			self.playlistIOInternal.clear()
			for x in self.playlist.list:
				self.playlistIOInternal.addService(ServiceReference(x[0]))
			if self.savePlaylistOnExit:
				try:
					self.playlistIOInternal.save(resolveFilename(SCOPE_CONFIG, "playlist.e2pls"))
				except IOError:
					print "couldn't save playlist.e2pls"
			if config.mediaplayer.saveDirOnExit.getValue():
				config.mediaplayer.defaultDir.setValue(self.filelist.getCurrentDirectory())
				config.mediaplayer.defaultDir.save()
			try:
				from Plugins.SystemPlugins.Hotplug.plugin import hotplugNotifier
				hotplugNotifier.remove(self.hotplugCB)
			except:
				pass
			del self["coverArt"].picload
			self.close()

Maybe its possible to call the callback function directly: exitCallback(self, true) to save the lines of code, but i am not python expert, so i don't know.

 

So my problem is resolved now, i guess this issue should be fixed, to take configuration into account in exit procedure.


In Topic: Media player exit protection not able to set

26 March 2014 - 11:51

OK so, after initial tryes, i am kind of confused, how to do this modification in mentioned py file. I found only pyo file with such name.

 

Should i decompile that file, modify, then compile back into pyo and replace ?


In Topic: Media player exit protection not able to set

26 March 2014 - 11:39

Yes, its true i didnt find this option in menu, because i was mainly looking in media player menu. I didnt think it would be in system menu.

 

Anyway, i have enabled the option 'without popup' and there is no change in behavior, it asks if i want to exit anyway, like the option is being ignored. I tryed to restart the box without success.

 

I guess i am going to try editing mentioned Infobar.py file, i will write later if that works.

 

Thank you a lot for insightful replies.


In Topic: dlna browser problem plugin gst-plugins-bad-neonhttpsrc

11 March 2014 - 11:01

I am trying today and have same problem....


In Topic: okpg: command not found

11 March 2014 - 10:53

Thank you, it helps. I just realized, how stupid typo i didnt saw, i was typing okpg, not opkg :D .....feel stupid now :wacko: