Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filter and default channel number #21

Open
calistouk opened this issue Jul 9, 2018 · 2 comments
Open

Filter and default channel number #21

calistouk opened this issue Jul 9, 2018 · 2 comments

Comments

@calistouk
Copy link

If i set the config file to no filters and "removeIfNotFoundOnFilter": false then i get all the channels in my m3u8 file with them auto channel number starting at 80000 (around 30000 of them) what im trying to work out is how to use the filter function such that i can filter for channels that start UK or USA or CA and have them auto number from eg 80000

I tried a filter of name=UK which returned the right number but said channel undefined

If i try any channel number in the filter it picks up the last match on the filter and gives it that channel only in Plex.

Thanks

@konsumer
Copy link

konsumer commented Jan 30, 2019

I have same issue with filter of US:. I get a single undefined channel. large channel-lists makes plex error (I think it has an issue with >300 channels) so I am thinking of writing a script to download the M3U and generate a filter array for PlexIPTV. Do the channel-numbers matter, or can I just put them in the order of the regexes I match?

something like this:

node filter.js http://[YOURS].tv:8080/get.php?username=[USERNAME]&password=[PASSWORD]&type=m3u_plus&output=ts '^US'

Generates a bunch of these:

[
  {
    "name": "US: CBS 47 \(Jacksonville FL\) \| HD",
    "channel": 1
  }
]

Does this make sense? WIll this work ok with EPGs? Should we add a "use all the matches as any available numbers if channel isn't set" for filter, so this is built in? If this idea works ok, I'd be happy to add a PR.

@konsumer
Copy link

Here is the current script I have. I will tune it and test further.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants