You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would be awesome if it would be possible to save the found streams to a M3U file, compatible with VLC. An example template of a valid M3U file is the following:
#EXTM3U
#EXTINF:-1 tvg-id="" tvg-name="" tvg-language="" tvg-logo="" tvg-country="" tvg-url="" group-title="",[IP AND CHANNELID HERE FOR NAME]
rtsp://192.168.0.5/route/to/stream/here
#EXTINF:-1 tvg-id="" tvg-name="" tvg-language="" tvg-logo="" tvg-country="" tvg-url="" group-title="",[IP AND CHANNELID HERE FOR THE NEXT NAME HERE]
rtsp://192.168.0.5/route/to/ANOTHER/stream/here
The text was updated successfully, but these errors were encountered:
Hi, thanks for the suggestion! I'm not sure if this is a feature that would be very broadly used, but if you need it feel free to add an option to export the output as an M3U file.
You'd need to make a function that takes the list of streams and writes it on the filesystem. Here are the changes that would be required for this:
Replace func (s *Scanner) PrintStreams(streams []Stream) with a function named OutputStreams that takes the list of streams and an output enum (ConsoleOutput/M3UOutput) and returns an error (in the case where writing on the filesystem fails)
Add an option in the command to switch the output from the default ConsoleOutput to M3UOutput (and maybe one to specify the file path in which to export the results?)
That should be about it! Let me know if you need further help.
Would be awesome if it would be possible to save the found streams to a M3U file, compatible with VLC. An example template of a valid M3U file is the following:
The text was updated successfully, but these errors were encountered: