Skip to content

[Feature]: Search and replace for M3U lists #636

@pgalinanes

Description

@pgalinanes

Is your feature request related to a problem?

Basically, I have an M3U list with links that point to a localhost IP (127.0.0.1), and I want the streams to point to a different IP (192.168.1.200 for example)

So if a M3U list publicly hosted has:

#EXTM3U url-tvg="https://raw.githubusercontent.com/davidmuma/EPG_dobleM/refs/heads/master/guiatv.xml,https://epgshare01.online/epgshare01/epg_ripper_NL1.xml.gz,https://raw.githubusercontent.com/davidmuma/EPG_dobleM/master/guiatv.xml" refresh="3600"
#EXTVLCOPT:network-caching=1000

#EXTINF:-1 tvg-logo="https://github.com/davidmuma/picons_dobleM/blob/master/icon/Channel1.png?raw=true" tvg-id="Channel 1" group-title="A", Channel 1
http://127.0.0.1:6878/ace/getstream?id=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
#EXTINF:-1 tvg-logo="https://github.com/davidmuma/picons_dobleM/blob/master/icon/Channel2.png?raw=true" tvg-id="Channel 2" group-title="A", Channel 2
http://127.0.0.1:6878/ace/getstream?id=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
...

I would like to get it replaced on the refresh process to this:

#EXTM3U url-tvg="https://raw.githubusercontent.com/davidmuma/EPG_dobleM/refs/heads/master/guiatv.xml,https://epgshare01.online/epgshare01/epg_ripper_NL1.xml.gz,https://raw.githubusercontent.com/davidmuma/EPG_dobleM/master/guiatv.xml" refresh="3600"
#EXTVLCOPT:network-caching=1000

#EXTINF:-1 tvg-logo="https://github.com/davidmuma/picons_dobleM/blob/master/icon/Channel1.png?raw=true" tvg-id="Channel 1" group-title="A", Channel 1
http://192.168.1.200:6878/ace/getstream?id=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
#EXTINF:-1 tvg-logo="https://github.com/davidmuma/picons_dobleM/blob/master/icon/Channel2.png?raw=true" tvg-id="Channel 2" group-title="A", Channel 2
http://192.168.1.200:6878/ace/getstream?id=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

So it changed 127.0.0.1 for 192.168.1.200 in every stream

Describe the solution you'd like

It would be awesome if there is a tool or function inside Dispatcharr that searches and replaces inside M3U files, unlike adding profiles for M3Ulists, it would be the option to edit the default profile of the list

Additional context

Nothing Extra

Metadata

Metadata

Assignees

No one assigned

    Labels

    TriageIssues that need to be processed
    No fields configured for Feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions