←  [EN] Third-Party Development

Forums

»

Update bouquets.tv inside /etc/enigma2

's foto microboi37 29 jun 2015

I have an issue with the file /etc/enigma2/bouquets.tv. I'm ftp-ing my bouquets inside /etc/enigma2 but when enigma2 restarts the old bouquets.tv returns.

 

How to reproduce:

 

replace your old bouquets.tv inside /etc/enigma2

 

init 4, init 3

 

or

 

reboot

 

the old bouquets.tv will return from nowhere. It's impossible to update this file through FTP. With dreamboxedit the bouquets are correctly updated. Some new OpenPli feature?

Citeren

's foto Bag58 29 jun 2015

No, incorrect order of actions:

init 4

replace bouquet file

init 3

 

Now it should work

Citeren

's foto microboi37 29 jun 2015

OK tried it but the old file still comes back.

Citeren

's foto microboi37 29 jun 2015

How does dreamboxedit do it without a enigma2 restart?

Citeren

's foto littlesat 29 jun 2015

Uninstall the settings via menu plugins red
Veranderd door littlesat, 29 juni 2015 - 21:33
Citeren

's foto microboi37 30 jun 2015

Uninstall the settings via menu plugins red

I don't have any settings installed via plugin manager, only manual files copy through FTP.

Citeren

's foto blzr 30 jun 2015

No, incorrect order of actions:
init 4
replace bouquet file
init 3
 
Now it should work

OK tried it but the old file still comes back.

quite not possible, if you're replacing your bouquets on stopped e2, no way they would come back...
(and these stubbornly returning bouquets are not empty by any chance? maybe you forgot to replace also bouquets.tv (or bouquets.radio) list of bouquets?
 

How does dreamboxedit do it without a enigma2 restart?


not sure, but probably using this webif command:

reload lamedb or Userbouquets
Requests:
http:// root:password@ip_of_your_box/web/servicelistreload?mode={mode}

Mode can be:
0, reloading lamedb and Userbouquets
1, reloading lamedb only
2, reloading Userbouquets only

Citeren

's foto microboi37 30 jun 2015

In the exact moment that I issue init 3 the old file comes back. And incredibly it comes back even if I reload bouquets and lamedb with http:// root:password@ip_of_your_box/web/servicelistreload?mode=0. I think dreamboxedit uses a native enigma2 command not webif based. For example if I copy a 4k bouquets.tv over a 20k big one after rebooting or enigma2 restarting the 20k file comes back like it was cached for some reason.

Citeren

's foto greatred 30 jun 2015

Does the bouquets.tv file you are importing contain following ?:

#SERVICE 1:7:1:0:0:0:0:0:0:0:FROM BOUQUET "userbouquet.favourites.tv" ORDER BY bouquet

Just a guess, based on experience where I`ve seen some strange behavior after importing boquets where the default userbouquet.favourites.tv was missing.

Citeren

's foto microboi37 1 jul 2015

I don't insert userbouquet.favourites.tv in bouquets.tv indeed but dreamboxedit does't use it neighter. Thanks for the hint I'll give it a try.

Citeren

's foto microboi37 2 jul 2015

Does the bouquets.tv file you are importing contain following ?:

#SERVICE 1:7:1:0:0:0:0:0:0:0:FROM BOUQUET "userbouquet.favourites.tv" ORDER BY bouquet

Just a guess, based on experience where I`ve seen some strange behavior after importing boquets where the default userbouquet.favourites.tv was missing.

 

Tested but it doesn't work with "userbouquet.favorites.tv". If you don't belive me just try it yourself. Edit your bouquets.tv with FTP or vi, save it, reboot enigma2 and the changes will undo. I bet 100€.

Citeren

's foto hemertje 2 jul 2015

stop enigma first

 

edit file

 

start enigma again

Citeren

's foto Rob van der Does 2 jul 2015

userbouquet.favourites.tv & userbouquet.favourites.radio are always (re)created by E2, but contain no services.
Citeren

's foto microboi37 3 jul 2015

Once again:

 

I stop enigma2 with init 4, next I manually modify bouquets.tv, I issue init 3 and voila.. the changes I have made are gone. The old bouquets.tv is back.

 

The other approch. I manually modify bouquets.tv then I issue wget -qO - "http://127.0.0.1/web...streload?mode=2" and guess what.. the old file returns with the following first lines that I've carefully previously deleted:

 

#SERVICE 1:7:1:0:0:0:0:0:0:0:FROM BOUQUET "userbouquet.asian.tv" ORDER BY bouquet
#SERVICE 1:7:1:0:0:0:0:0:0:0:FROM BOUQUET "userbouquet.telesat.tv" ORDER BY bouquet
#SERVICE 1:7:1:0:0:0:0:0:0:0:FROM BOUQUET "userbouquet.german.tv" ORDER BY bouquet
#SERVICE 1:7:1:0:0:0:0:0:0:0:FROM BOUQUET "userbouquet.favourites-sd.tv" ORDER BY bouquet
#SERVICE 1:7:1:0:0:0:0:0:0:0:FROM BOUQUET "userbouquet.music.tv" ORDER BY bouquet
#SERVICE 1:7:1:0:0:0:0:0:0:0:FROM BOUQUET "userbouquet.favourites.tv" ORDER BY bouquet
#SERVICE 1:7:1:0:0:0:0:0:0:0:FROM BOUQUET "userbouquet.french.tv" ORDER BY bouquet
#SERVICE 1:7:1:0:0:0:0:0:0:0:FROM BOUQUET "userbouquet.erotic.tv" ORDER BY bouquet
#SERVICE 1:7:1:0:0:0:0:0:0:0:FROM BOUQUET "userbouquet.docu.tv" ORDER BY bouquet
#SERVICE 1:7:1:0:0:0:0:0:0:0:FROM BOUQUET "userbouquet.allsats.tv" ORDER BY bouquet
#SERVICE 1:7:1:0:0:0:0:0:0:0:FROM BOUQUET "userbouquet.russian.tv" ORDER BY bouquet
#SERVICE 1:7:1:0:0:0:0:0:0:0:FROM BOUQUET "userbouquet.movie.tv" ORDER BY bouquet
#SERVICE 1:7:1:0:0:0:0:0:0:0:FROM BOUQUET "userbouquet.spanish.tv" ORDER BY bouquet
#SERVICE 1:7:1:0:0:0:0:0:0:0:FROM BOUQUET "userbouquet.belgique.tv" ORDER BY bouquet
#SERVICE 1:7:1:0:0:0:0:0:0:0:FROM BOUQUET "userbouquet.sport.tv" ORDER BY bouquet
#SERVICE 1:7:1:0:0:0:0:0:0:0:FROM BOUQUET "userbouquet.news.tv" ORDER BY bouquet
#SERVICE 1:7:1:0:0:0:0:0:0:0:FROM BOUQUET "userbouquet.dbe01.tv" ORDER BY bouquet
#SERVICE 1:7:1:0:0:0:0:0:0:0:FROM BOUQUET "userbouquet.sky-germany.tv" ORDER BY bouquet
#SERVICE 1:7:1:0:0:0:0:0:0:0:FROM BOUQUET "userbouquet.kids.tv" ORDER BY bouquet
#SERVICE 1:7:1:0:0:0:0:0:0:0:FROM BOUQUET "userbouquet.suisse-austria.tv" ORDER BY bouquet

 

I think this is a new behaviour of the latest enigma2 in Openpli because I have never experienced nothing similar in 7 years of using Openpli.

 

Citeren

's foto littlesat 4 jul 2015

when the userbouquet.favorites.tv/radio file is still in the setting then it will be reloaded as unlinked user bouquet. Only remove from userbouquet.tv is not enough indeed....it will be loaded on top!

The best way to remove it is remove it with your remote in enigma2... The userbouquet.favorite.tv/radio will then be renamed by adding a .del behind the filename, avoiding a reload...

When manually change the bouquets.tv/radio you also need te delete the referenced userbouquet... So you also need to remove the "ghost" file....

This is expected behavior as it allows you to download settings (hans, henk etc...) while keeping your own favorites on top...
Veranderd door littlesat, 4 juli 2015 - 07:38
Citeren

's foto microboi37 4 jul 2015

when the userbouquet.favorites.tv/radio file is still in the setting then it will be reloaded as unlinked user bouquet. Only remove from userbouquet.tv is not enough indeed....it will be loaded on top!

The best way to remove it is remove it with your remote in enigma2... The userbouquet.favorite.tv/radio will then be renamed by adding a .del behind the filename, avoiding a reload...

When manually change the bouquets.tv/radio you also need te delete the referenced userbouquet... So you also need to remove the "ghost" file....

This is expected behavior as it allows you to download settings (hans, henk etc...) while keeping your own favorites on top...

 

THANK YOU !!!!! That explanation solved my problem. Deleting the orphaned bouquet files is the solution. If I could upvote you post I would do it million times. One again thank you.

Citeren

's foto Pr2 4 jul 2015

Hi,

The decision to add automatically on top should be configurable.
This is really annoying because due to this "always on top" forced our own bouquets are shifted down and all TV channels numbers that we are used to are changed. This is really problematic for family using TV that are not used with all the bouquet stuff and still use the number to quickly jump to there favorite TV.

And you give a good explanation for this:

This is expected behavior as it allows you to download settings (hans, henk etc...) while keeping your own favorites on top...


But with the always on top forced for newly discovered userbouquet files this is the totally opposite that happens, newly discovered userbouquet are forced on top and so my own favorites are not kept on top and all numbering is changed. Forcing on top just gives the opposite of the expected behavior.

Pr2
Citeren

's foto littlesat 4 jul 2015

The decision to add automatically on top should be configurable.

 

-> It is configurable... but is is default ON.... As in fact when you don't manually "rubish" with your settings you really do not have an issue at all....

 

A nice site effect all your "ghost" not linked bouquets that fills your flash in your box for nothing are highlited.... And note is was intend to go on TOP.... When you want to get it somewhere down... arrange that in your userbouquet (include it). It are no new user bouquets... it are your own favorite bouquets usually... (and of course when you make rubish, the forgotton intend to remove bouquets)


Veranderd door littlesat, 4 juli 2015 - 11:00
Citeren