 # @param [string] url
 # @return id or undefined
 _getEventId = (url) ->
-	id = (new RegExp(/eventbrite\.com\/e\/[A-Za-z0-9-]*-(\d+)+/g)).exec(url)?[1] or= undefined
+	id = (new RegExp(/eventbrite\.com\/e\/[A-Za-z0-9-]*-(\d+)+/g)).exec(url)?[1] 
+	id ?= undefined
 	return id
 
 # Get ID for an eventbrite organiser
 # @param [string] url
 # @return id or undefined
 _getOrganiserId = (url) ->
-	id = (new RegExp(/eventbrite\.com\/o\/[A-Za-z0-9-]*-(\d+)+/g)).exec(url)?[1] or= undefined
+	id = (new RegExp(/eventbrite\.com\/o\/[A-Za-z0-9-]*-(\d+)+/g)).exec(url)?[1] 
+	id ?= undefined
 	return id
 
 # Get events for an organiser

	)

exports.handle = (query) ->
	if id = query.eventId = @_getEventId(query.url)
		_getEvent query
		return true
	else if query.organiserId = @_getOrganiserId(query.url)
		_getOrganiserId query
		return true

	return false 


						title: event.title
						location:
							address: "#{event.venue.address}, #{event.venue.city}, #{event.venue.country}"
							name: event.venue.name
							lon: event.venue.longitude
							lat: event.venue.latitude

			db.set 
				events: events
