Streams export and import using python script

Export and import configuration is implemented through .m3u playlist, done through a Python script.

Python version 3 is required at the path /usr/bin/python3.

Export and import streams through the web interface

In the list of streams, clicking on the Playlist button opens a dialog for exporting streams to an m3u8 playlist. Only those streams that are currently displayed based on the applied list filters are exported.

Settings:

  • Host / IP — the name of the server or address that will be used for forming the stream URL.

  • Protocols — the types of protocols for export.

  • Login — the account that will be used for forming the stream URL.

  • Use Display Names — use stream Display name in m3u8-file instead of Stream name.

The playlist is downloaded as an m3u8 file when you click on the Download button.

When you click on the Import Playlist button, the dialog switches to the mode for importing streams from an m3u8 playlist. When importing streams, existing streams are not deleted. For all imported streams, the import time is recorded in the Note field.

Settings:

  • Playlist — playlist-file for import.

  • Create Outputs — output protocol type for imported streams.

  • Output Ports From — start output port number.

  • Output IP — interface for binding outputs.

  • Tags — tags with which the imported streams will be marked. Useful for group operations, for example, to delete all imported streams.

If a file is specified in the Playlist field for import, the Load Playlist button becomes active. When you click on the Load Playlist button, a preliminary playlist load is performed, the result of parsing the playlist is displayed in the table. After parsing the playlist, the Import Streams button becomes active. When you click on it, streams are imported and outputs are generated for them.