Results 1 to 5 of 5

Thread: anyone know of a good m3u editor?

  1. #1
    Join Date
    Aug 2005
    Location
    Houston
    Posts
    4,736

    anyone know of a good m3u editor?

    Does anyone know of a 'good' m3u editor? would love if it had command line support for export and easy use for weeding out the 7000 channels i Dont want in my list?
    [would speed up npvr bigtime by lessening load]

    and not an online one as my urls contain my passwords..

    or just filtering out the thousands of foreign channels i don't want, instead of having to do it manually, 1 by 1 in text editor ?!

    or even a regex to remove certain search terms? anything? none found so far that actually work or aren't online.
    Last edited by pBS; 2018-08-07 at 10:11 PM.
    Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie

  2. #2
    Join Date
    Aug 2005
    Location
    Houston
    Posts
    4,736

    sed works...but ugly

    i did find that sed for win lets me edit previous/next lines, but needs tons of expressions to remove all i don't want.
    i will post later when i have some concrete info and examples..

    for now i'm just searching and deleting the line plus next line[url] for stuff i don't want..
    also found out how to extract and separate on-demand stuff [at least for my provider, it uses only .mkv for ondemand so i keep mkv line plus previous]

    Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie

  3. #3
    Join Date
    Aug 2005
    Location
    Houston
    Posts
    4,736

    Lightbulb Remove unwanted iptv channels

    Well after a few hours of learning sed i have a workable solution.
    To remove unwanted channels from a huge list [7000+] i have settled on sed for windows, as it has ability to search and remove a line plus previous or next line.
    My m3u8 contains entries like "UK: BBC ONE HD" and i wanted to get rid of other countries' channels that i'm not interested in..

    To start, get a windows version of sed, don't forget the dependancies [2 files], then download your .m3u8 file to local file..
    Create a new file with commands like this and name it something [i used sedit.sed]
    /UK:/{N;d}
    /AF:/{N;d}
    /IRE:/{N;d}
    /AF:/{N;d}
    Will delete lines containing UK: AF: IRE: and AF: and the line immediately after that contains the url. edit the bold part for your prefs.
    i have about 25 lines, and you can specify exact channel name for individual channels if you want, this was convenient because the country code was appended to names.
    of course add any you want to get rid of..no limit as to how many you can add and it's lightning fast..[like 1 sec]
    it leaves any on-demand entries and new entries that don't match..

    Create batch file and enter something like this: [editing names for your files]
    Code:
    sed -f sedit.sed original.m3u8 >new.m3u8
    And your new.m3u8 will only have the channels you want...[double check] and then point npvr's m3u download to your new file.

    Now I move on to whittle down epg file with only the entries i want..lol
    I may make a single file to put entries in and let both draw from the list, most likely creating dynamically the .sed list from a list of search terms that the epg filter can use..

    i've seen tons of posts online who need this, and no real answers except use filtering on end program [which npvr doesn't have yet] and the few m3u editors don't have any cmd line interface so are not scriptable..

    I believe there is a place to put it in a batch file to be called before m3u updates like the epgupdate.bat [m3uupdate.bat?]

    I also use this to remove the unnecessary USA/CA: from appearing in epg in npvr: [so i get channels showing as "ESPN" instead of "USA/CA:ESPN" in tvguide]
    sqlite3.exe npvr.db3 "UPDATE channel SET name = REPLACE(name, '"USA/CA: ', '');"
    [be careful about use of single v double quotes]
    Last edited by pBS; 2018-08-08 at 07:42 AM.
    Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie

  4. #4
    Join Date
    Dec 2005
    Location
    UK
    Posts
    2,891
    Quote Originally Posted by pBS View Post
    Now I move on to whittle down epg file with only the entries i want..lol
    I don't use IPTV so apologies if I have misunderstood ... There is probably not much to be gained from reducing the size of the epg file ... I assume that it contains XMLTV data. NextPVR goes through the XMLTV file once (per EPG update) and loads only the data into the NextPVR database for each channel that is in NextPVR.

    You can tell NextPVR which entry in the XMLTV file to use in the Details dialog ... http://www.nextpvr.com/nwiki/pmwiki.....Channels#toc6
    i5 750 2.67 GHz, 6 Gig, 1000 Gig, Nvidia N710
    2 x Hauppauge WinTV QuadHD DVB-T2

  5. #5
    Join Date
    Aug 2005
    Location
    Houston
    Posts
    4,736
    ahh, i thought so...cool...something i won't have to do then..
    i actually mix my sd account data with the service data, cuz service data is so short [only 2 days worth] so SD's 3 weeks worth is really nice, plus loads more info in each entry, like actors/directors etc..
    Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •