mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-08 17:06:15 -08:00
Extract the file's basename and strip common playlist extensions before passing it as the playlist title when loading from a selected file. This replaces the previous hardcoded "from file" title with a cleaner, context-aware name derived from the file path. - import basename from node:path - compute filename and remove .m3u, .m3u8, .pls, .txt extensions - fall back to "from file" if resulting title is empty This improves UX by giving imported playlists meaningful names.