NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums General General Discussion v
« Previous 1 … 6 7 8 9 10 … 159 Next »
anyone know of a good m3u editor?

 
  • 0 Vote(s) - 0 Average
anyone know of a good m3u editor?
pBS
Offline

Posting Freak

Posts: 4,829
Threads: 182
Joined: Aug 2005
#1
2018-08-07, 07:53 PM (This post was last modified: 2018-08-07, 10:11 PM by pBS.)
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.
Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie
pBS
Offline

Posting Freak

Posts: 4,829
Threads: 182
Joined: Aug 2005
#2
2018-08-08, 03:11 AM
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]

Big Grin
Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie
pBS
Offline

Posting Freak

Posts: 4,829
Threads: 182
Joined: Aug 2005
#3
2018-08-08, 06:45 AM (This post was last modified: 2018-08-08, 07:42 AM by pBS.)
Well after a few hours of learning sed i have a workable solution. Smile
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]
Quote:/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. Smile

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]
Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie
Graham
Offline

Posting Freak

UK
Posts: 4,058
Threads: 102
Joined: Dec 2005
#4
2018-08-08, 09:13 AM
pBS Wrote: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.php?...nnels#toc6
pBS
Offline

Posting Freak

Posts: 4,829
Threads: 182
Joined: Aug 2005
#5
2018-08-08, 06:22 PM
ahh, i thought so...cool...something i won't have to do then..Smile
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
« Next Oldest | Next Newest »

Users browsing this thread: 3 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Windows 8 metro good for HTPC? McBainUK 6 3,487 2013-01-13, 07:28 PM
Last Post: pBS
  Good disk defragmenter? Reddwarf 11 4,756 2012-09-06, 05:26 PM
Last Post: Reddwarf
  what's a good streaming media player program? johnsonx42 2 2,306 2012-08-09, 12:39 PM
Last Post: cncb
  Any good as the next MVP?? stustunz 60 14,640 2012-04-03, 04:41 AM
Last Post: mvallevand
  The all time good newspaper ... ShiningDragon 0 1,366 2011-12-10, 02:54 PM
Last Post: ShiningDragon
  nPVR + Touchscreen, any good? Elmo Putney 10 3,609 2011-01-18, 09:36 PM
Last Post: stustunz
  wanted simple audio editor pBS 2 1,733 2010-11-06, 08:44 PM
Last Post: pBS
  Good simple e-mail/local server program. tieke 12 5,756 2010-02-16, 10:38 PM
Last Post: whurlston
  Video editor for TS files TonyM 4 2,952 2009-12-10, 11:47 AM
Last Post: martint123
  Womble MPEG editor dneprrider 4 2,435 2009-11-23, 02:17 PM
Last Post: Sykor

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode