<commit_before>const fetch = require('node-fetch')
const Serie = require('../models/Serie')

const fetchSeries = serieName => {
  const url = `https://www.tv-subs.com/a_mov.php?reqmov=${serieName}`
  const series = _searchSeries(url)

  return series.then(series =>
    series.movies.map(serie => new Serie(serie.label, serie.value))
  )<commit_msg>Fixed link of the new API<commit_after>const fetch = require('node-fetch')
const Serie = require('../models/Serie')

const fetchSeries = (serieName = '""') => {
  const url = `https://www.tv-subs.com/ajax_search.php?mov=${serieName}`
  const series = _searchSeries(url)

  return series.then(series => {
    return series.map(serie => new Serie(serie.tv, serie.slug))
  })
{'fraction_non_alphanumeric': 0.16920943134535368, 'fraction_numerical': 0.0, 'mean_word_length': 4.511450381679389, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5152580', 'n_tokens_mistral': 237, 'n_tokens_neox': 250, 'n_words': 48}