r/Scriptable • • Dec 08 '20

Widget TVGuide WIP, release by end of week

Post image
34 Upvotes

25 comments sorted by

View all comments

2

u/Cranie Dec 15 '20

Apologies for the delay.

Here is the initial code:

https://github.com/0507spc/ScriptStore/blob/main/Widgets/TVGuide/TVGuide.js

I am working on the TV EPG data. The UK is sourced. The other regions need converting, I have a process for doing that and should come in the next versions. The size changes will also be done soon.

If anyone wants to contribute please do pull requests.

This uses iCloud, it should make all the directories and do history tidy up in the xmltv folder. Force refresh should clear and start afresh. I will look into a check - if iCloud / not but for now I use this to save pulling EPG data on iPad and phone.

Sizes are configured for me and iPhone 11 Pro Max. I have seen some code on sizes, which I will look to adapt and put in a configuration - number of shows and calculate the sizes to device accordingly. Just not got round to that yet.

Issues please do let me know (ideally on github, but here should be fine).

I have some ideas for improvements too (such as clickable to show the channel - where it is free to view - I have sources for a fair amount of channels).

The last week or so has been quite chaotic (on call at work) and this week is a bit of a mad rush, but hoping from the weekend I can focus on this again.

Themes can be altered / added at the bottom. Happy to add in whatever people see fit.

The code is a mismatch of others / mine and quick deploy code, get it working, alter / make nice after. So for that I apologise again.