roflmuffin / node-anime-scraper

Scrapes information from Gogoanime to get Anime, Episode & Video information & urls.
60 stars 15 forks source link

fromName / search never get resolved #14

Closed Numbers11 closed 8 years ago

Numbers11 commented 8 years ago

Try running the example code

var Anime = require('anime-scraper').Anime

// Searches for anime using a POST request & uses first result
Anime.fromName('Sword Art Online').then(function (anime) {
  console.log(anime)
})

// You can also search and then choose manually
Anime.search('Sword Art Online').then(function (results) {
  // Same as above but uses the second search result rather than the first.
  results[1].toAnime().then(function (anime) {
    console.log(anime)
  })
})

The promise is never resolved, no error or anything.

roflmuffin commented 8 years ago

Fixed in 3959adf. Looks like they switched from HTTPS to HTTP.