Jump to content


Photo

File Commander OpenATV


  • Please log in to reply
111 replies to this topic

Re: File Commander OpenATV #101 WanWizard

  • PLi® Core member
  • 68,551 posts

+1,737
Excellent

Posted 29 August 2019 - 16:03

Thanks, merged.


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Pro (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: File Commander OpenATV #102 littlesat

  • PLi® Core member
  • 56,260 posts

+691
Excellent

Posted 29 August 2019 - 18:53

Thanks was my mistake


WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: File Commander OpenATV #103 Persian Prince

  • Senior Member
  • 1,982 posts

+247
Excellent

Posted 29 August 2019 - 19:39

Thanks was my mistake

 

No worries we all are losing our eyes :D

 

Thank you for your great new changes.


Open Vision sources: https://github.com/OpenVisionE2


Re: File Commander OpenATV #104 FRAP

  • Senior Member
  • 329 posts

+23
Neutral

Posted 29 August 2019 - 19:50

the person who does nothing is not mistaken  :)


Alcohol for wimps. Strong people enjoy depression.


Re: File Commander OpenATV #105 littlesat

  • PLi® Core member
  • 56,260 posts

+691
Excellent

Posted 29 August 2019 - 19:59

Yes it was indeed big and mutch... another mistake was that I adapt it in our hd ready skins without any complaint

Edited by littlesat, 29 August 2019 - 20:00.

WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: File Commander OpenATV #106 Pike_Bishop

  • Senior Member
  • 1,130 posts

+72
Good

Posted 7 November 2019 - 20:19

Hi,

 

Plugin works very good - thanks guys.

it is also skínned for full-hd but not complete i think, here a picture;

Attached File  msg-19795-0-72560700-1572991980.jpg   58.77KB   3 downloads

 

it's the screen in that you can install a *.ipk package

 

testet with PLI-7.2rc from date 05.11.2019

 

 

regards

Pike


Edited by Pike_Bishop, 7 November 2019 - 20:20.

Receiver: VU Ultimo 4K, Octagon SF8008 4K, Gigablue Quad 4K

Image: OpenPLI-8.3


Re: File Commander OpenATV #107 mrvica

  • Senior Member
  • 1,224 posts

+81
Good

Posted 6 September 2020 - 15:43

small improvement cause code already in Picture Player (preinstalled in all E2 images)

--- key_actions_old.py	Wed Sep 02 18:44:32 2020
+++ key_actions_new.py	Sun Sep 06 11:12:52 2020
@@ -708,14 +708,17 @@
 			self.session.openWithCallback(self.onFileActionCB, UnzipMenuScreen, self.SOURCELIST, self.TARGETLIST)
 		elif filetype in IMAGE_EXTENSIONS:
 			if self.SOURCELIST.getSelectionIndex() != 0:
-				self.session.openWithCallback(
-					self.cbShowPicture,
-					ImageViewer,
-					self.SOURCELIST.getFileList(),
-					self.SOURCELIST.getSelectionIndex(),
-					self.SOURCELIST.getCurrentDirectory(),
-					filename
-				)
+				try:                                                                                                                                                                                          
+					from Plugins.Extensions.PicturePlayer import ui                                                                                                                                       
+						self.session.openWithCallback(
+						self.cbShowPicture,
+						ui.Pic_Full_View,
+						self.SOURCELIST.getFileList(),
+						self.SOURCELIST.getSelectionIndex(),
+						self.SOURCELIST.getCurrentDirectory())
+				except Exception, ex:                                                                                                                                                                         
+					print "[File Commander] Pictue Player not installed", str(ex)
+				return
 		elif filetype in (".sh", ".py", ".pyo"):
 			self.run_script(self.SOURCELIST, self.TARGETLIST)
 		elif filetype == ".mvi":
@@ -776,7 +779,12 @@
 			self.show()
 			if os.path.isfile(self.tmp_file):
 				filename = self.tmp_file.split('/')[-1]
-				self.session.open(ImageViewer, [((filename,''),'')],0, self.tmp_file.replace(filename,''), filename)
+				try:                                                                                                                                                                                          
+					from Plugins.Extensions.PicturePlayer import ui                                                                                                                                       
+					self.session.open(ui.Pic_Full_View, [((filename,''),'')],0, self.tmp_file.replace(filename,''), filename)
+				except Exception, ex:                                                                                                                                                                         
+					print "[File Commander] Pictue Player not installed", str(ex)                                                                                                                                                  
+				return	
 			else:
 				self.session.open(MessageBox, _("File not found: %s") %self.tmp_file, type=MessageBox.TYPE_ERROR, simple=True)
 		else:

I tested the first replacement of ImageViewer in def onFileAction, works ok, regarding second replacement in def saveCB, I don´t know how to test it, well it compiles ok, class ImageViewer in type_utils is no longer needed, can be removed, as well def keyYellow, it is now on Info key as part of Pic_Full_View



Re: File Commander OpenATV #108 mrvica

  • Senior Member
  • 1,224 posts

+81
Good

Posted 6 May 2021 - 21:56

while playing movie files with FileCommander you can´t exit with "exit", the messagebox pops up without any effect, you can only exit with "stop" without any confirmition, this diff resolves the problem

--- type_utils.py	Thu Jul 23 14:23:44 2020
+++ type_utils.py	Thu May 06 19:09:08 2021
@@ -46,17 +46,18 @@
 
 	def leavePlayer(self):
 		self.is_closing = True
-		self.close()
+		self.session.openWithCallback(self.leavePlayerConfirmed, MessageBox, _("Exit movie player?"))
 
 	def leavePlayerConfirmed(self, answer):
-		pass
+		if answer:
+			self.close()
 
 	def doEofInternal(self, playing):
 		if not self.execing:
 			return
 		if not playing:
 			return
-		self.leavePlayer()
+		self.close()
 
 	def showMovies(self):
 		self.WithoutStopClose = True



Re: File Commander OpenATV #109 mrvica

  • Senior Member
  • 1,224 posts

+81
Good

Posted 4 October 2023 - 14:45

I made it both py2/py3 compatible, it is not the latest code from here

e2openplugin-FileCommander/plugin at master · E2OpenPlugins/e2openplugin-FileCommander · GitHub

some (private) version between, not extensively tested on py3

 

 

Attached Files



Re: File Commander OpenATV #110 mrvica

  • Senior Member
  • 1,224 posts

+81
Good

Posted 8 October 2023 - 20:21

I´ve updated the latest code from here to py3, the plugin is working fine except I get an error on watching inside archive and I don´t know how to fix it, any idea

e2openplugin-FileCommander/plugin at master · E2OpenPlugins/e2openplugin-FileCommander · GitHub

[ArchiverMenuScreen] unpackPopen ('unzip', '-l', '/tmp/wildcard.zip')
Traceback (most recent call last):
  File "/usr/lib/enigma2/python/Plugins/Extensions/FileCommander/addons/unarchiver.py", line 118, in ok
    self.unpackModus(self.selectId)
  File "/usr/lib/enigma2/python/Plugins/Extensions/FileCommander/addons/unzip.py", line 41, in unpackModus
    self.unpackPopen(cmd, UnpackInfoScreen)
  File "/usr/lib/enigma2/python/Plugins/Extensions/FileCommander/addons/unarchiver.py", line 147, in unpackPopen
    output = list(map(str.splitlines, p.communicate()))
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: descriptor 'splitlines' for 'str' objects doesn't apply to a 'bytes' object 

adapting this to OpenPLi

enigma2/lib/python/Plugins/Extensions/FileCommander at 7.3 · openatv/enigma2 · GitHub

could be challenging

 



Re: File Commander OpenATV #111 Trial

  • Senior Member
  • 1,127 posts

+34
Good

Posted 9 October 2023 - 07:37

Hi,

Python3 is a lot more strict than Python2 especially when it comes to strings.. I think I remember that Python2 als accepted arrays of byte in string operation whereas Python3 does not. So a parameter must be changed from byte to string.

 

Ralf



Re: File Commander OpenATV #112 mrvica

  • Senior Member
  • 1,224 posts

+81
Good

Posted 11 October 2023 - 17:49

I couldn´t fix the error, I can´t remember the last time I viewed the content of an archive, it is not that important, should be fixed anyway before putting on git, I made small changes, if deleting files choose first No then Yes, avoids accidentally deleting of files and I got rid of InputBox replacing it with VirtualKeyboard, I hope successfully

 

Attached Files




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users