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: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
json2ical command

Jump to

Keyboard shortcuts

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