Skip to content

Commit

Permalink
Fix urls
Browse files Browse the repository at this point in the history
  • Loading branch information
ahobsonsayers committed Dec 19, 2024
1 parent f3919c2 commit be874d4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions listing.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ type TicketListing struct {

// URL of the ticket listing
//
// Format is: https://www.twigots.live/app/block/<ticketId>,<quanitity>
// Format is: https://www.twickets.live/app/block/<ticketId>,<quanitity>
func (l TicketListing) URL() string {
return fmt.Sprintf("https://www.twigots.live/app/block/%s,%d", l.Id, l.NumTickets)
return fmt.Sprintf("https://www.twickets.live/app/block/%s,%d", l.Id, l.NumTickets)
}

// TicketPriceExclFee is price of a single ticket, excluding fee.
Expand Down
4 changes: 2 additions & 2 deletions url.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func init() {
// number of tickets in the listing.
//
// Format is:
// https://www.twigots.live/app/block/<ticketId>,<numTickets>
// https://www.twickets.live/app/block/<ticketId>,<numTickets>
func ListingURL(listingId string, numTickets int) string {
ticketUrl := cloneURL(twicketsUrl)
ticketUrl = ticketUrl.JoinPath("app", "block", fmt.Sprintf("%s,%d", listingId, numTickets))
Expand Down Expand Up @@ -66,7 +66,7 @@ func (f FeedUrlInput) Validate() error {

// FeedUrl gets the url of a feed of ticket listings
//
// Format is: https://www.twigots.live/services/catalogue?q=countryCode=GB&count=100&api_key=<api_key>
// Format is: https://www.twickets.live/services/catalogue?q=countryCode=GB&count=100&api_key=<api_key>
func FeedUrl(input FeedUrlInput) (string, error) {
err := input.Validate()
if err != nil {
Expand Down

0 comments on commit be874d4

Please sign in to comment.