Jump to content


Photo

ChannelSelection modifications


  • Please log in to reply
229 replies to this topic

Re: ChannelSelection modifications #181 jpuigs

  • Senior Member
  • 1,143 posts

+32
Good

Posted 20 July 2014 - 19:40

Changing code on ChannelSelection.py file, I think it won't change what you want.

Deleting or modifying this part

if "FROM PROVIDER" in service.getPath():
        service_type = _("Providers")
       elif ("flags == %d" %(FLAG_SERVICE_NEW_FOUND)) in service.getPath():
        service_type = _("New")
       else:
        service_type = _("Services")

 

will make enigma crash.


Enigma is getting old....

 

Spoiler

Re: ChannelSelection modifications #182 el bandido

  • Senior Member
  • 392 posts

+15
Neutral

Posted 20 July 2014 - 22:18

Maybe the solution I am looking for is in or near the string you provided, but I do not know how to modify the python code to show only the "Services" folder.
All I am wanting is the "Services" folder to be displayed and to eliminate the "Providers" and "New" folders. Hopefully this is possible. Thanks. EB



Re: ChannelSelection modifications #183 jpuigs

  • Senior Member
  • 1,143 posts

+32
Good

Posted 20 July 2014 - 23:22

You want to show only the services folder, and I want (since years ago) to be able to show services in channel lists (not in favourites) UNSORTED (not alphabetically sorted), and nobody has ever been able to tell me how to do it....


Enigma is getting old....

 

Spoiler

Re: ChannelSelection modifications #184 el bandido

  • Senior Member
  • 392 posts

+15
Neutral

Posted 24 July 2014 - 14:57

Unsorted in what fashion?
In the channel selection file, looking at Line#1048: refstr = '%s ORDER BY name' % self.service_types


You may change that Line to:  refstr = '%s ORDER BY satellitePosition' % self.service_types
 

Making  that change will more or less cause the channels or services to be sorted by satellite rather than alphabetically.



Re: ChannelSelection modifications #185 jpuigs

  • Senior Member
  • 1,143 posts

+32
Good

Posted 24 July 2014 - 23:08

Thanks, but I'd like to have it ordered by frequency, but not in ALL channels (red), in each satellite (green).

 

'ORDER BY frequency' doesn't work.


Edited by jpuigs, 24 July 2014 - 23:10.

Enigma is getting old....

 

Spoiler

Re: ChannelSelection modifications #186 jpuigs

  • Senior Member
  • 1,143 posts

+32
Good

Posted 28 July 2014 - 20:24

Acoording to some tests and some info found across some forums, the ORDER BY command can only be followed by:

name

provider

type

bouquet

satellitePosition

channelID

flags

 

 

services in lamedb file are as follows:

 

6fef:00c00000:042a:0001:1:0
MTV Dance
p:MTV Networks Europe,c:000beb,c:010bec,c:031ffe,C:0000

 

Transponders are:

 

00c00000:042a:0001
s 11739000:27500000:1:0:192:2:0
/

 

So could anybody help me creating a function that inside each satellite sort channels by frequency instead of their name ?

Which files should I edit, in addition of channelSelection.py ?


Enigma is getting old....

 

Spoiler

Re: ChannelSelection modifications #187 jpuigs

  • Senior Member
  • 1,143 posts

+32
Good

Posted 30 November 2014 - 19:02

Maybe the solution I am looking for is in or near the string you provided, but I do not know how to modify the python code to show only the "Services" folder.
All I am wanting is the "Services" folder to be displayed and to eliminate the "Providers" and "New" folders. Hopefully this is possible. Thanks. EB

 

Are you still interested in ?

 

Attached File  ch-selection-mod.jpg   90.81KB   16 downloads


Enigma is getting old....

 

Spoiler

Re: ChannelSelection modifications #188 littlesat

  • PLi® Core member
  • 57,205 posts

+700
Excellent

Posted 30 November 2014 - 19:18

Do you have a patch where you also able to get the default?

Possible this should be,,,,

Edited by littlesat, 30 November 2014 - 19:18.

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


Re: ChannelSelection modifications #189 jpuigs

  • Senior Member
  • 1,143 posts

+32
Good

Posted 30 November 2014 - 22:54

It's easy to get default, just a simple variable.....

What I'm trying to do is to save and read this variable in \etc\enigma2\settings , but I *still* don't know how to do it....


Enigma is getting old....

 

Spoiler

Re: ChannelSelection modifications #190 jpuigs

  • Senior Member
  • 1,143 posts

+32
Good

Posted 1 December 2014 - 02:58

This is what I've changed in /usr/lib/enigma2/python/Screens/ChannelSelection.py

 

Added a variable ( show_fav_and_prov ) which has boolean values.

 

Attached File  ch-selection-mod-1.jpg   75.26KB   5 downloads

 

added another variable ( ) and a condition to show all or show only services.

(The confition applies only to the next 2 lines)

 

Attached File  ch-selection-mod-2.jpg   61.34KB   5 downloads

 

You just change show_fav_and_prov = False  or show_fav_and_prov = True, restart enigma and changes are applied.

 

 

I know it's a rudimentary way, because we have to edit a ..py file to change between True and False and then restart enigma , but I don't know how to read a stored value in (f.i.) /etc/enigma2/settings and change that stored value by using Menu - Setup - System - Customize.


Edited by jpuigs, 1 December 2014 - 03:03.

Enigma is getting old....

 

Spoiler

Re: ChannelSelection modifications #191 littlesat

  • PLi® Core member
  • 57,205 posts

+700
Excellent

Posted 1 December 2014 - 07:47

We can clean that up... And create a config for it...

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


Re: ChannelSelection modifications #192 jpuigs

  • Senior Member
  • 1,143 posts

+32
Good

Posted 1 December 2014 - 20:23

I almost get it.

I have added an entry on /usr/share/enigma2/setup.xml to be shown on menu - System - User Interface

 

Attached File  ch-selection-mod-3.jpg   87.74KB   7 downloads

 

I have modified /usr/lib/enigma2/phyton/Components/UsageConfig.py to have a config  (yes/no) value.

I'm now trying to adapt it to ChannelSelection.py to work.....

Let's continue.......

 

 

 


Enigma is getting old....

 

Spoiler

Re: ChannelSelection modifications #193 littlesat

  • PLi® Core member
  • 57,205 posts

+700
Excellent

Posted 1 December 2014 - 22:46

Sounds good!

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


Re: ChannelSelection modifications #194 jpuigs

  • Senior Member
  • 1,143 posts

+32
Good

Posted 1 December 2014 - 23:42

SoundED good!.....

 

Last changes I've just made sound stunning !.....

 

Look at the description on the left side.

 

Attached File  ch-selection-fin-1.jpg   100.83KB   6 downloads

 

 

..... and now all 4 modes.....

 

 

Attached File  ch-selection-fin-2.jpg   108.71KB   6 downloads    Attached File  ch-selection-fin-3.jpg   89.35KB   6 downloads    Attached File  ch-selection-fin-4.jpg   110.01KB   6 downloads    Attached File  ch-selection-fin-5.jpg   111.17KB   6 downloads  

 

 

 

No need to restart enigma to change mode.


Edited by jpuigs, 1 December 2014 - 23:44.

Enigma is getting old....

 

Spoiler

Re: ChannelSelection modifications #195 littlesat

  • PLi® Core member
  • 57,205 posts

+700
Excellent

Posted 2 December 2014 - 08:03

Thanks this looks good...
We're happy to see the sources/changes... Good work!

You can press 2 x menu and change the config...

Edited by littlesat, 2 December 2014 - 08:04.

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


Re: ChannelSelection modifications #196 jpuigs

  • Senior Member
  • 1,143 posts

+32
Good

Posted 2 December 2014 - 15:01

It's not still finished.

It works fine using the classic way =>, entering Menu - Setup - System - User Interface, and then changing value and saving (green OK key).

You press 4x Exit button, and then you can open channel list and you'll see what you've chosen.

 

But if you are in SAT lists and press 2x menu, you can change it, of course, but when exiting, list will have to be refreshed to get your desired result.

I do it by pressing yellow and green again, and I get the desired result.

I don't know how to refresh list when exiting if I'm in a SAT lists when pressing 2x Menu.....

I'll have to investigate.


Edited by jpuigs, 2 December 2014 - 15:01.

Enigma is getting old....

 

Spoiler

Re: ChannelSelection modifications #197 littlesat

  • PLi® Core member
  • 57,205 posts

+700
Excellent

Posted 2 December 2014 - 15:40


 entering Menu - Setup - System - User Interface, 

 

You can also click on 2 times menu when you are in the channelselection screen... I suggest a much easier way to change and test options for this topic...

The refreshment could also be arranged. See how this is done with e.g. the picon on/off.... The list should be rebuilded...
 


Edited by littlesat, 2 December 2014 - 15:41.

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


Re: ChannelSelection modifications #198 jpuigs

  • Senior Member
  • 1,143 posts

+32
Good

Posted 2 December 2014 - 19:05

The refreshment could also be arranged. See how this is done with e.g. the picon on/off.... The list should be rebuilded...

 

OK. I'll take a look.

Thanks.


Enigma is getting old....

 

Spoiler

Re: ChannelSelection modifications #199 jpuigs

  • Senior Member
  • 1,143 posts

+32
Good

Posted 2 December 2014 - 19:40

Correct me if I'm wrong , but I should look at ServiceList.py component file, isn't it ?

I can not download the py file from Sourceforge openpli project. Server is down.

 

The sourceforge.net website is temporarily in static offline mode.
Only a very limited set of project pages are available until the main website returns to service.

 

On my box, I have only the pyo file, from 17.nov.14.

Do you have any copy of the .py one ?


Edited by jpuigs, 2 December 2014 - 19:42.

Enigma is getting old....

 

Spoiler

Re: ChannelSelection modifications #200 athoik

  • PLi® Core member
  • 8,458 posts

+327
Excellent

Posted 2 December 2014 - 19:58

Do you have any copy of the .py one ?


opkg install enigma2-src
Wavefield T90: 0.8W - 1.9E - 4.8E - 13E - 16E - 19.2E - 23.5E - 26E - 33E - 39E - 42E - 45E on EMP Centauri DiseqC 16/1
Unamed: 13E Quattro - 9E Quattro on IKUSI MS-0916


4 user(s) are reading this topic

0 members, 4 guests, 0 anonymous users