prismprojectcalendar

package module
v0.0.0-...-4bcdecd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 8, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

README

PRISM Project Calendar

Automatically-generated .ical files from PRISM Project schedule, to allow subscribing from common calendar applications (e.g. Apple Calendar or Google Calendar).

See official schedule at https://schedule.prismproject.jp/.

How to subscribe

URL:

https://c032.github.io/prismproject-calendar/youtube.ical

QR Code:

QR code for iCalendar URL

License

Apache 2.0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultCalendarID string = sha256Hex("github.com/c032/prismproject-calendar")

Functions

This section is empty.

Types

type Feed

type Feed struct {
	Live     []FeedItem `json:"live"`
	Upcoming []FeedItem `json:"upcoming"`
}

func ParseFeed

func ParseFeed(r io.Reader) (*Feed, error)

func (*Feed) Calendar

func (f *Feed) Calendar(calendarID string, calendarName string) (*ical.Calendar, error)

func (*Feed) CalendarString

func (f *Feed) CalendarString(calendarID string, calendarName string) (string, error)

type FeedItem

type FeedItem struct {
	ID           string `json:"id"`
	ChannelID    string `json:"channelId"`
	Title        string `json:"title"`
	Status       string `json:"status"`
	Viewers      int64  `json:"viewers"`
	RawPublished int64  `json:"published"`
	RawScheduled int64  `json:"scheduled"`
}

func (*FeedItem) ChannelURL

func (fi *FeedItem) ChannelURL() (*url.URL, error)

func (*FeedItem) Event

func (fi *FeedItem) Event() (*ical.Event, error)

func (*FeedItem) Published

func (fi *FeedItem) Published() (time.Time, error)

func (*FeedItem) Scheduled

func (fi *FeedItem) Scheduled() (time.Time, error)

func (*FeedItem) URL

func (fi *FeedItem) URL() (*url.URL, error)

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL