func (self *Core) doMovieRescraped(media *message.Media) { go func() { mlog.Info("UPDATING MOVIE [%s]", media.Movie.Title) self.Bus.UpdateMovie <- media.Movie }() go func() { mlog.Info("CACHING MEDIA [%s]", media.Movie.Title) media.BasePath = self.Config.DataDir self.Bus.CacheMedia <- media }() }
func (self *Core) doMovieScraped(media *message.Media) { go func() { mlog.Info("STORING MOVIE [%s]", media.Movie.Title) self.Bus.StoreMovie <- media.Movie }() go func() { mlog.Info("CACHING MEDIA [%s]", media.Movie.Title) media.BasePath = self.Config.DataDir self.Bus.CacheMedia <- media self.fsm.Event("scrape", media.Movie) }() }