daniel-widrick / zap2it-GuideScraping

MIT License
61 stars 22 forks source link

Filtering Channels/Output #35

Open frigginbrownie opened 1 year ago

frigginbrownie commented 1 year ago

Hi, great app, works like a charm!

One thing I'm curious about: is it possible to filter the output so it only generates an xmltv of the channels I want, as opposed to all channels? I'd love the ability to mark favorites on the zap2it website then output those to an xmltv file.

It looks like the printGrid API has the ability to filter output with the user token and filter name, but I can't work out the parameters for a filtered output with the grid API. At worst, the XML generation could only output channel IDs listed in the ini file, but it would still have to scrape the entire guide (inefficient).

I can make a pull request for the latter but wanted to list it here incase there's something I'm overlooking.

Thanks!

daniel-widrick commented 1 year ago

I'd be interested in any details you have worked out about the printGrid api.

but it would still have to scrape the entire guide (inefficient)

agreed. The process should only need to run ~once a week though. and a large portion of the workload would skipped on any channel filtered out.

I can make a pull request for the latter but wanted to list it here incase there's something I'm overlooking.

I'd love to see it. I like a locally defined allow/deny list better than relying on settings within zap2it on its face, but am open to the other options.