From 6b2659f2a4411b3a42395bb64c55319490bf35de Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Sat, 29 Mar 2014 02:22:32 +0000 Subject: [PATCH] * update series index --- BuildData.groovy | 5 ++--- website/data/series-mappings.txt | 1 + 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/BuildData.groovy b/BuildData.groovy index 32941744..f9362c3a 100644 --- a/BuildData.groovy +++ b/BuildData.groovy @@ -211,7 +211,6 @@ tvdb.keySet().toList().each{ id -> tvdb.remove(id) } } - tvdb.values().findResults{ it.join('\t') }.join('\n').saveAs(tvdb_txt) @@ -223,7 +222,7 @@ tvdb.values().each{ r -> def rating = r[5] def votes = r[6] - if ((votes >= 5 && rating >= 4) || (votes >= 2 && rating >= 8) || (votes >= 1 && rating >= 10)) { + if ((votes >= 5 && rating >= 4) || (votes >= 2 && rating >= 7) || (votes >= 1 && rating >= 10)) { getNamePermutations([tvdb_name, imdb_name]).each{ n -> thetvdb_index << [tvdb_id, n] } @@ -251,7 +250,7 @@ addSeriesAlias('House of Cards', 'HOC') addSeriesAlias('The Big Bang Theory', 'TBBT') addSeriesAlias('The Walking Dead', 'TWD') addSeriesAlias('@midnight', 'At Midnight') - +addSeriesAlias('The Late Late Show with Craig Ferguson', 'Craig Ferguson') thetvdb_index = thetvdb_index.findResults{ [it[0] as Integer, it[1].replaceAll(/\s+/, ' ').trim()] }.findAll{ !(it[1] =~ /(?i:duplicate)/ || it[1] =~ /\d{6,}/ || it[1].startsWith('*') || it[1].endsWith('*') || it[1].length() < 2) } diff --git a/website/data/series-mappings.txt b/website/data/series-mappings.txt index 8aeba40f..cfaf8e22 100644 --- a/website/data/series-mappings.txt +++ b/website/data/series-mappings.txt @@ -1,5 +1,6 @@ at.midnight @midnight BSG Battlestar Galactica +Craig.Ferguson The Late Late Show with Craig Ferguson CSI(?!.{0,3}(NY|LA|Miami|Academy)) CSI: Crime Scene Investigation epl English Premier League HIMYM How I Met Your Mother