Jump to content


Photo

ChannelSelection modifications


  • Please log in to reply
229 replies to this topic

Re: ChannelSelection modifications #41 littlesat

  • PLi® Core member
  • 57,199 posts

+700
Excellent

Posted 24 March 2012 - 10:41

as i wrote only speed was the reason make folders where count selective
now you have choice select none folders where count services,
my choice is count '..New' only in case several tausant services in lamedb

I think this is too tricky to accept.... :(

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


Re: ChannelSelection modifications #42 blzr

  • PLi® Core member
  • 2,270 posts

+118
Excellent

Posted 24 March 2012 - 11:29


and you probably forgot
...
bar left+% right
% left+ bar right
etc...

//sorry, couldn't resist ;)

sounds sweet, your suggestions would make users go nuts ;)

hmm, I think I should consider using green font next time /?/ :P
I just simply don't get this whole '% progress indicator' hype at all...
('added value' of it is none imho, and additionaly, to create zillion settings for it? well...)
//but probably it's just me (and of course opinions vary ;))
True sarcasm doesn't need green font...

Re: ChannelSelection modifications #43 needz

  • Senior Member
  • 214 posts

0
Neutral

Posted 25 March 2012 - 22:37

Sorry for asking for simple stuff, but here's my problem: I am using OpenPLI in Azbox Premium HD and I tried to use the skin I used earlier for another Enigma2 project.
I noticed that the text in Channel selection window and in Infobar and everywhere else is somehow vertically aligned to top (but not middle), so that when you place a selection on some channel with event name, the text seems to be stuck to the top of the text field it's in. In another version enigma, the text was always in the middle, so I guess the source of this alignment is in the compiled code, not the skin.xml, because every skin behaves the same way in OpenPLI.

Is this a general setting of OpenPLI or maybe it's a problem of specific build of OpenPLI for Azbox (which is OpenRSI)? If latter, where could I change this option, because I tried everything for skin.xml, but the text just sticks to the top anyway. Thanks!

Re: ChannelSelection modifications #44 korsan

  • Senior Member
  • 404 posts

+5
Neutral

Posted 2 April 2012 - 15:22

I saw another thing when in channelselection.
In the Title at the top you get; channelselection-user bouquets-(bouqetname) , the text channelselection is not necessary. I think it makes the Title too long.
Or is this skin dependent?

H9.Twin  :::  H9.2H :::  H9.S ::: HD1265 ::: H2H :::::::::: WaveFrontier T90: 1W, 3, 7, 13, 16, 19, 23, 28, 42E ::::::::::


Re: ChannelSelection modifications #45 MartiniB

  • Senior Member
  • 49 posts

0
Neutral

Posted 5 April 2012 - 12:06

@korsan
thanks for idea, me also think better see where we are than static "Channel selection ("....
tree changes in /usr/lib/enigma2/python/Screens/ChannelSelection.py
1. separator
2. combine last two folders titles
3. cut beginig when lenght > 60 characters
.
..
...
def buildTitleString(self):
  titleStr = self.getTitle()
  pos = titleStr.find(']')
  if pos == -1:
# +
   if titleStr[0:11] != "Channel Sel":
	titleStr = "Channel Selection"
	if self.mode == MODE_TV:
	 titleStr += " (TV)"
	else:
	 titleStr += " (Radio)"
# + END
   pos = titleStr.find(')')
  if pos != -1:
   titleStr = titleStr[:pos+1]
   Len = len(self.servicePath)
   if Len > 0:
	base_ref = self.servicePath[0]
# +
	if Len > 2:
	 end2_ref = self.servicePath[Len-2]
	else:
	 end2_ref = None
# + END
	if Len > 1:
	 end_ref = self.servicePath[Len-1]
	else:
	 end_ref = None
	nameStr = self.getServiceName(base_ref)
	titleStr += ' ' + nameStr
	if end_ref is not None:
	 if Len > 2:
# -	  titleStr += '/../'
# +
	  if end2_ref is not None:
	   nameStr = self.getServiceName(end2_ref)
	   titleStr = nameStr + ' \xbb '
	  else:
	   titleStr += ' \xbb..\xbb '
# + END
	 else:
# -	  titleStr += '/'
# +
	  titleStr += ' \xbb '
# + END
	 nameStr = self.getServiceName(end_ref)
# +
	 if len(nameStr) > 55:
	  titleStr = ""
# + END
	 titleStr += nameStr
# +
	if len(titleStr) > 60:
	 titleStr = "%s%s" %('..', titleStr[-59:])
# + END
	self.setTitle(titleStr)
 
...
..
.

Attached File  120405_services_list_title.png   54.53KB   216 downloads

Re: ChannelSelection modifications #46 littlesat

  • PLi® Core member
  • 57,199 posts

+700
Excellent

Posted 5 April 2012 - 12:22

Please note that there are skins that have the room for more....

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


Re: ChannelSelection modifications #47 adi22

  • Senior Member
  • 59 posts

+2
Neutral

Posted 24 April 2012 - 20:07

hi, great work! many thanks.

as already mentioned: could you make a version with channelselection with
on the top just the bouget-name
and in the selection:
number progressbar channel name-of-programm

that would great :-)

thanks

Re: ChannelSelection modifications #48 Dreambox_user

  • Member
  • 22 posts

0
Neutral

Posted 16 May 2012 - 12:55

Hey,
does anybody know how to grab channel number in ChannelSelection.py ? I know how to grab channel name but I can't find where is channel number stored :(

Re: ChannelSelection modifications #49 littlesat

  • PLi® Core member
  • 57,199 posts

+700
Excellent

Posted 16 May 2012 - 13:02

The number is not stored... principally E2 does not have channel numbers.

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


Re: ChannelSelection modifications #50 pieterg

  • PLi® Core member
  • 32,766 posts

+245
Excellent

Posted 16 May 2012 - 13:28

the number is calculated (or counted)

Re: ChannelSelection modifications #51 Dreambox_user

  • Member
  • 22 posts

0
Neutral

Posted 16 May 2012 - 13:28

I mean how to read channel numbers on the screen below:

Posted Image

Re: ChannelSelection modifications #52 littlesat

  • PLi® Core member
  • 57,199 posts

+700
Excellent

Posted 16 May 2012 - 13:35

By counting them....

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


Re: ChannelSelection modifications #53 Dreambox_user

  • Member
  • 22 posts

0
Neutral

Posted 16 May 2012 - 13:43

Ok, but how to read actual selected channel number?

Re: ChannelSelection modifications #54 littlesat

  • PLi® Core member
  • 57,199 posts

+700
Excellent

Posted 16 May 2012 - 13:51

FYI...

http://openpli.git.s...0525b23;hb=HEAD

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


Re: ChannelSelection modifications #55 pieterg

  • PLi® Core member
  • 32,766 posts

+245
Excellent

Posted 16 May 2012 - 13:52

By using the ChannelNumber renderer

Re: ChannelSelection modifications #56 Dimitrij

  • PLi® Core member
  • 10,334 posts

+351
Excellent

Posted 16 December 2012 - 12:38

For information...
Change bouquets over the previous service in history.
Maybe this is who will be interested.

ChannelSelection.py
class ChannelSelectionBase
def changeBouquet
def changeBouquet(self, direction):
  if not self.pathChangeDisabled:
   if len(self.servicePath) > 1:
    #when enter satellite root list we must do some magic stuff..
    ref = eServiceReference('%s FROM SATELLITES ORDER BY satellitePosition'%(self.service_types))
    if self.isBasePathEqual(ref):
	 self.showSatellites()
    else:
	 self.pathUp()
    if direction < 0:
	 self.moveUp()
    else:
	 self.moveDown()
    ref = self.getCurrentSelection()
    self.enterPath(ref)
    prev = None
    root = self.getRoot()
    for path in self.history:
	 if len(path) > 2 and path[1] == root:
	  prev = path[2]
    if not prev is None:
	 self.setCurrentSelection(prev)

Edited by Dima73, 16 December 2012 - 12:39.

GigaBlue UHD Quad 4K /Lunix3-4K/Duo 4K


Re: ChannelSelection modifications #57 littlesat

  • PLi® Core member
  • 57,199 posts

+700
Excellent

Posted 16 December 2012 - 13:14

We are always interested.... but what does it fix and what exactly is changed?.... that is not clear to me... (could you at least mark changes with +/- or so... for me it is just guessing...)

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


Re: ChannelSelection modifications #58 littlesat

  • PLi® Core member
  • 57,199 posts

+700
Excellent

Posted 16 December 2012 - 13:27

Why going through the compete history..... Sorry I just do not understand what it exactly does??

Edited by littlesat, 16 December 2012 - 13:30.

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


Re: ChannelSelection modifications #59 Dimitrij

  • PLi® Core member
  • 10,334 posts

+351
Excellent

Posted 16 December 2012 - 13:48

bouquet 1, bouquet 2 and etc
bouquet 1->zap to service №5
bouquet 2->zap to service №3
Change bouquets(bouquet 2->bouquet 1=cursor is at the service №5)
Add in def changeBouquet(self, direction):
    prev = None
    root = self.getRoot()
    for path in self.history:
		 if len(path) > 2 and path[1] == root:
		  prev = path[2]
    if not prev is None:
		 self.setCurrentSelection(prev)

Edited by Dima73, 16 December 2012 - 13:50.

GigaBlue UHD Quad 4K /Lunix3-4K/Duo 4K


Re: ChannelSelection modifications #60 littlesat

  • PLi® Core member
  • 57,199 posts

+700
Excellent

Posted 16 December 2012 - 14:18

But why do you have to go though the complete history... That is wat i do not understand? I suggest just take the last onze should be ok....

Sorry for bothering... I need to understand...

Edited by littlesat, 16 December 2012 - 14:21.

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



4 user(s) are reading this topic

0 members, 4 guests, 0 anonymous users