[Plugin] Archimede-M3UConverter

There are 108 replies in this Thread which was already clicked 31,232 times. The last Post () by rizzle100.

    • Official Post

    My parse code. for json



    Well, it depends on how the JSON is formatted.

    I created a particular format in the plugin. So,

    from m3u to JSON and then from JSON to M3U.

    It seems to work.

    • Official Post



    The code now handles large files (100,000+ channels) more efficiently and includes performance optimizations to ensure faster conversion times while maintaining all the original functionality.

    EDIT:

    RE DOWNLOAD FILE ATTACHED

    • Official Post

    Update here to 2.1 version

    ONLY FOR PYTHON3

    wget -q --no-check-certificate https://raw.githubusercontent.com/Belfagor2005/Archimede-M3UConverter/main/installer.sh -O - | /bin/sh

    • Official Post

    I think I'll ultimately select a single conversion method; in fact, I'm trying them all.

    I needed feedback; maybe it's not relevant anymore.

    But from the log, it seems like any conversion could work now.

    I've converted an M3U file to a bouquet many times, but always without an EPG. Now I've had this inspiration. I hope to finish it soon.

    The online version has a lot of bugs right now.


    eg:
    i find Rai 1 (on loop cycle CHANNEL LIST) for epg and channel list


    • Official Post

    ok.. 3th step
    wget -q --no-check-certificate https://raw.githubusercontent.com/Belfagor2005/Archimede-M3UConverter/main/installer.sh -O - | /bin/sh


    coperture 70%



    pasted-from-clipboard.png


    pasted-from-clipboard.png


    pasted-from-clipboard.png



    pasted-from-clipboard.png

    • Official Post

    in to next version ;)

    After the conversion, a screen automatically opens (or not, depending on how you set the configuration ;)) where you assign

    the converted channels with reporting (no EPG) to the left. If you press OK on that channel, you go to the window on the right and assign the correct match.

    Press green to update/assign that EPG to the left.

    Everything perfect :)

    ch+/ch+ to scroll through the list (the lists are long).



    1.jpg 2.jpg


    3.jpg

    • Official Post

    in next versione (append)


    MANUAL DATABASE SYSTEM


    WHAT IT IS:

    An intelligent database that stores your manual corrections and automatically reuses them in future conversions.

    HOW IT WORKS:


    1. Automatic Reuse

    When you make a manual correction (e.g., "Rai 1" → correct DVB reference),

    The system saves the correction in an internal database.

    In future conversions, it automatically finds the saved corrections.

    Save time - you don't have to redo the same corrections.


    2. Advanced Statistics

    Shows how many matches were "saved" from the manual database.

    Indicator: "Manual DB matches: X" in the conversion statistics.

    Improved EPG coverage thanks to reused corrections.


    3. Database Management

    In the Tools → Manual Database Management menu:

    View Manual Corrections - View all saved corrections.

    Clean Manual Database - Delete the entire database.

    Export Manual Database - Export backups of the manual database. Corrections


    ADVANTAGES:

    Less manual work - Corrections are reused

    More precise matching - Your corrections have priority

    Progressive learning - The system improves with use

    Secure backup - You don't lose your work


    CONFIGURATION:

    Enabled by default - Works automatically

    Limit 1000 corrections - Automatically cleans up old entries

    File location: /etc/enigma2/archimede_manual_mappings.json


    For the Normal User:

    Perform conversions normally

    Use the Manual Editor to correct incorrect matches

    The system will automatically remember your corrections

    In future conversions, it will use saved corrections


    For the Advanced User:

    Tools → Manual Database Management

    View - Review all saved corrections

    Delete - Remove specific corrections if necessary

    Export - Backup your corrections



    :face screaming in fear:

    • Official Post

    well.


    2.5 version on top of topic


    • requires EpgImporter


    or command from telnet


    wget -q --no-check-certificate https://raw.githubusercontent.com/Belfagor2005/Archimede-M3UConverter/main/installer.sh -O - | /bin/sh

    • Official Post

    2.6 version on top of topic


    • requires EpgImporter


    or command from telnet


    wget -q --no-check-certificate https://raw.githubusercontent.com/Belfagor2005/Archimede-M3UConverter/main/installer.sh -O - | /bin/sh

    • Official Post

    Add in 2.7 version:

    • Similarity Settings - New section dedicated to similarity thresholds
    • Database Management - Advanced manual database management
    • Tools Menu - Complete list of tools menu features
    • EPG Sources - Details on supported EPG sources
    • Storage Options - Reorganized storage options
    • Performance Features - More detailed performance features

    A tip:

    If you have a .tv file that doesn't have an EPG, you can convert it to .m3u and then convert it back to a .tv file with an EPG.



    Info


    In this case have moved db json. Why?
    - **Manual Database**: `/usr/lib/enigma2/python/Plugins/Extensions/M3UConverter/archimede_manual_mappings.json`


    It seems more useful to have a database that can be updated from a specific screen; you can edit or delete calls.

    The database automatically updates with new maps.

    You can control it; it's up to you to manage it.

    In configuration, you'll find new entries for similarity.

    In percentages.

    Manage the match as you like, lowering or increasing the percentages.

    Of course, if you find a better feature, let us know here. It will help everyone.

    • Official Post

    -ops i'm sorry...


    In the previous version, the process is really slow. I really have to release an update. Here it is.

    But!!!

    I really need a good test this time because I think I'm done, that's it... done, done...

    I forgot to enable the self-managed and self-updating database match ;)

    In fact, if you do the same conversion twice, the second time should be faster.


    I'm just adding the ability to exclude/modify/delete duplicates in the database manager ;)


    Blue button... see the options :)

    • Official Post

    1-0-19-BBD-3-A2-110-EEEE0000-0-0-0-20251026001020.jpg

    1-0-19-BBD-3-A2-110-EEEE0000-0-0-0-20251026000911.jpg



    After the conversion, you can use the yellow button.

    You can do the match edit ;)

    Assign the EPGs to those who don't have them, save them for the next scan, then redo the conversion and see if they'll be in the original .TV file.


    Don't exit the conversion if you press the blue tools button.


    1-0-19-BBD-3-A2-110-EEEE0000-0-0-0-20251026001425.jpg


    Friends, I need feedback. Without feedback, I can't continue.

    • Official Post

    -all epgshare in config and match
    -fixed match editor ;) for affinity at end of conversion.
    -increase speed

    -Similarity Threshold

    -enable debug if you want Major Statistic on log (folder ->> archimede_converter/M3U_CONVERTER.log)
    -enchanced type of m3u..
    -major fix on batch and macth find..

    - try the match editor, please :) it's much faster now and has more matches: results ;)

    - in config there are other options for affinity matches: 2 options (you can enter the limit of channels to search in the DB ;) so the higher it is, the more it searches, but it's slower, obviously)

    -- Rytec search limit (Match Edit)" description="Max Rytec entries scanned during automatic Match Edit (Slow down scanning)

    default=1000, stepwidth=500, min=500, max=10000

    -- DVB search limit (Match Edit)" description="Max DVB entries scanned during automatic Match Edit (Slow down scanning)

    default=1000, stepwidth=500, min=500, max=10000


    - try 2 consecutive conversions of the same file.


    Code
    wget -q --no-check-certificate https://raw.githubusercontent.com/Belfagor2005/Archimede-M3UConverter/main/installer.sh -O - | /bin/sh



    please feedback.. for help



    Stat fixed


    1_0_19_BCC_3A2_110_EEEE0000_0_0_0_20251029150736.jpg



    Recoded Class Duplicates



    1-0-19-BBD-3-A2-110-EEEE0000-0-0-0-20251030163054.jpg

    1-0-19-BBD-3-A2-110-EEEE0000-0-0-0-20251030163110.jpg

    1-0-19-BBD-3-A2-110-EEEE0000-0-0-0-20251030163132.jpg



    major match

    • Official Post

    New version and helpers in first page



    pasted-from-clipboard.png



    pasted-from-clipboard.png


    pasted-from-clipboard.png


    pasted-from-clipboard.png


    pasted-from-clipboard.png



    ADD AND FIXED IN THIS VERSION


    ## 🔍 Duplicates Management


    ### 🎯 Smart Duplicates Detection

    - **Automatic Detection**: Find duplicate channels based on clean names

    - **Grouped Display**: Organize duplicates by channel groups

    - **Selection Mode**: Safe multi-select with checkbox interface

    - **Bulk Operations**: Delete multiple duplicates at once


    ### 🎮 Duplicates Interface Controls


    | Button | Action in Duplicates View |

    |--------|---------------------------|

    | **🔵 BLUE** | Toggle between All Mappings and Duplicates view |

    | **🟢 GREEN** | Enter/Exit Selection Mode (shows/hides checkboxes) |

    | **🟡 YELLOW** | Delete selected duplicates |

    | **⏺️ OK** | Select/Deselect individual items |

    | **🔴 RED** | Return to normal view/Close |


    ### 📋 Duplicates Workflow


    #### Step 1: Access Duplicates View

    - Press **BLUE** → "Duplicates" to enter duplicates management

    - View all duplicate channel groups with counts


    #### Step 2: Activate Selection Mode

    - Press **GREEN** → "Select" to enter selection mode

    - Checkboxes `[ ]` appear next to each channel

    - Status: "Selection mode active. Select items with OK"


    #### Step 3: Select Duplicates to Remove

    - Press **OK** on each duplicate you want to remove

    - Checkboxes change to `[X]` for selected items

    - Keep only the correct version of each channel


    #### Step 4: Delete Selected Items

    - Press **YELLOW** → "Delete" to remove selected duplicates

    - Confirm deletion in the popup dialog

    - **Remain in selection mode** for continued operations


    #### Step 5: Continue or Exit

    - **Stay in selection mode** - select more items if needed

    - Press **GREEN** again → "Done" to exit selection mode

    - Press **BLUE** → "All Mappings" to return to normal view


    ### 💡 Duplicates Management Tips

    - **Keep**: Exact matches and manually corrected versions

    - **Remove**: Fuzzy matches and incorrectly capitalized versions

    - **Verify**: Check service references before deletion

    - **Batch Process**: Handle multiple groups without leaving selection mode


    ## 🎮 How to Use


    ### Main Interface Controls


    | Button | Action |

    |--------|--------|

    | 🔴 **RED** | Close current screen |

    | 🟢 **GREEN** | Select/Start conversion |

    | 🟡 **YELLOW** | Remove M3U Bouquets |

    | 🔵 **BLUE** | EPGImporter Settings |

    | 📋 **MENU** | Plugin configuration |


    ### Conversion Screen Controls


    | Button | Action |

    |--------|--------|

    | 🔴 **RED** | Open file browser |

    | 🟢 **GREEN** | Start conversion process |

    | 🟡 **YELLOW** | Open Manual Match Editor |

    | 🔵 **BLUE** | Tools menu (context-aware) |

    | ▶️ **OK** | Play selected channel stream |

    | ⏹️ **STOP** | Stop media playback |

    | ❌ **CANCEL** | Close plugin |


    ### Manual Match Editor Controls


    | Button | Action |

    |--------|--------|

    | 🔴 **RED** | Close editor |

    | 🟢 **GREEN** | Assign selected match |

    | 🟡 **YELLOW** | Reset channel match |

    | 🔵 **BLUE** | Save all changes |

    | ▶️ **OK** | Select channel/match |

    | 🔄 **ARROWS** | Navigate between lists |


    ### Manual Database Editor Controls


    | Button | Action |

    |--------|--------|

    | 🔴 **RED** | Close editor |

    | 🟢 **GREEN** | Toggle Selection Mode |

    | 🟡 **YELLOW** | Delete selected items |

    | 🔵 **BLUE** | Toggle Duplicates View |

    | ▶️ **OK** | Select/Deselect items |

    | ❌ **CANCEL** | Navigate back/Close |


    ## ⚙️ Configuration Options


    ### EPG Settings

    - **EPG Generation**: Enable/disable EPG data attachment

    - **Database Mode**:

    - `Full`: DVB + Rytec + DTT (Complete)

    - `Both`: DVB + Rytec

    - `DVB`: Only DVB services

    - `Rytec`: Only Rytec database

    - `DTT`: Only DVB-T services

    - **EPG Source**: EPGShare or Standard mode

    - **Language**: Country-specific EPG data


    ### Matching Settings

    - **Similarity Threshold**: Global matching sensitivity (20-100%)

    - **Rytec Similarity**: Specific threshold for Rytec database matching

    - **DVB Similarity**: Specific threshold for DVB service matching

    - **Manual Database**: Enable/disable use of manual corrections

Your resource for Enigma2 system utility plugins

Find downloads and support for tools that monitor performance, manage system settings, provide detailed system info, and automate maintenance. Discover essential Enigma2 system utility plugins. Access downloads and support for performance monitors, maintenance tools, and system information managers.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!