###################################################################################################################################

wget -q "--no-check-certificate" https://raw.githubusercontent.com/ciefp/CiefpE2Converter/main/installer.sh -O - | /bin/sh


###################################################################################################################################
CiefpE2Converter 1.1
-----------------------------------------------------------------------------------------------------------
Opis rada sa pluginom

1.Pokrenete plugin
2.Pronađete i selektujete m3u ili m3u8 fajl
3.Kreiranje naziva buketa žuto dugme otvori se virtuelna tastatura upišite naziv sačuvate postavke
4.Plavo dugme selektujete Grupu kanala za konvertovanje ako je m3u fajl konfigurisan po grupama,
Ako nema group title onda se konvertuje ceo m3u fajl.
5.Zeleno dugme pokreće se konverter i konvertuje se selektovana grupa u buket kojem ste dali neko ime.
odmah se i registruje buket u fajlu bouquets.tv dodaje se linija na kraju za novo kreiarani buket.
6.Reload enigme ide automatski potrebno je samo potvrditi sa da nakon toga nije potreban restart.
-------------------------------------------------------------------------------------------------------------

Ovaj plugin je alat za IPTV uređaje (kao što su Enigma2 uređaji) koji omogućava konverziju M3U i M3U8 fajlova u Enigma2
kompatibilne "userbouquet" fajlove. Glavna funkcionalnost ovog plugina je sledeća:

Šta radi:
Selektovanje fajlova: 
Korisnik može da izabere M3U ili M3U8 fajl sa kanalima sa svog uređaja.

Grupisanje kanala: 
Plugin automatski analizira fajl i pokušava da grupiše kanale prema tagu group-title (ako je prisutan).
Ove grupe mogu biti različite kategorije kanala, kao što su sport, film, muzika, itd.

Konverzija u userbouquet format:
Nakon selektovanja fajla i grupa (ili svih kanala u slučaju da fajl nije grupisan),
plugin konvertuje ove informacije u Enigma2 "userbouquet" fajl format. 
Ovi fajlovi se mogu koristiti za organizaciju kanala u IPTV aplikacijama na Enigma2 uređajima.

Kreiranje novih bouquet-a: 
Plugin omogućava korisniku da unese ime za novi bouquet (kanalni paket) i konvertuje selektovane kanale u novi bouquet fajl.

Registrovanje u bouquets.tv fajl: 
Nakon konverzije, plugin može automatski registrovati novi bouquet u fajl bouquets.tv kako bi novi kanali bili vidljivi u IPTV aplikaciji na uređaju.

Podrška za celokupan fajl: 
Ako M3U fajl nije grupisan (nema group-title tagova), plugin automatski konvertuje ceo fajl kao jedan "All Channels" bouquet,
čime omogućava korisnicima da konvertuju ceo fajl u jednom potezu.

Za šta je namenjen:
Plugin je namenjen korisnicima Enigma2 IPTV uređaja koji žele da lako konvertuju i 
organizuju IPTV kanale sa M3U ili M3U8 fajlova u format koji uređaj može da prepozna. 
Ovo omogućava lakše kreiranje i upravljanje kanalnim paketima (bouquet-ima), 
kao i organizaciju kanala prema različitim temama ili kategorijama.

################################################################################################################
CiefpE2Converter 1.1
------------------------------------------------------------------------------------------------------
Description of working with the plugin

1.Start the plugin
2.Find and select the m3u or m3u8 file
3.Create a bouquet name yellow button opens a virtual keyboard enter the name save settings
4.Blue button selects the Channel Group to convert if the m3u file is configured by groups,
If there is no group title then the entire m3u file is converted.
5.Green button starts the converter and converts the selected group into a bouquet that you have given a name.
The bouquet is immediately registered in the bouquets.tv file a line is added at the end for the newly created bouquet.
6.Reload enigma goes automatically you just need to confirm that after that no restart is required.
---------------------------------------------------------------------------------------------------

This plugin is a tool for IPTV devices (such as Enigma2 devices) that allows converting M3U and M3U8 files into Enigma2
compatible "userbouquet" files. The main functionality of this plugin is as follows:

What it does:
Select files:
The user can select an M3U or M3U8 file with channels from their device.

Channel grouping:
The plugin automatically analyzes the file and tries to group the channels according to the group-title tag (if present).
These groups can be different channel categories, such as sports, movies, music, etc.

Conversion to userbouquet format:
After selecting the file and groups (or all channels in case the file is not grouped),
the plugin converts this information into Enigma2 "userbouquet" file format.
These files can be used to organize channels in IPTV applications on Enigma2 devices.

Creating new bouquets:
The plugin allows the user to enter a name for a new bouquet (channel package) and convert selected channels into a new bouquet file.

Registering in bouquets.tv file:
After conversion, the plugin can automatically register the new bouquet in the bouquets.tv file so that the new channels are visible in the IPTV application on the device.

Support for the entire file:
If the M3U file is not grouped (no group-title tags), the plugin automatically converts the entire file as one "All Channels" bouquet,
which allows users to convert the entire file in one go.

What it is for:
The plugin is intended for users of Enigma2 IPTV devices who want to easily convert and
organize IPTV channels from M3U or M3U8 files into a format that the device can recognize.
This allows for easier creation and management of channel packages (bouquets),
as well as organizing channels according to different topics or categories.