Permalink
Browse files

Such a simple fix but so many headaches

  • Loading branch information...
1 parent 0fc9759 commit 9c557d51758d2f3593f5d5df245c320ef540d02d @CrazyLemon CrazyLemon committed Mar 1, 2017
Showing with 1 addition and 1 deletion.
  1. +1 −1 scripts/url.coffee
View
@@ -9,7 +9,7 @@ module.exports = (bot) ->
bot.fetchHTML url, ($)->
if $
stack = []
- stack.push $("title").text().replace(/\s\s+/g, "").replace(/ /g,'')
+ stack.push $("title").eq(0).text().replace(/\s\s+/g, "").replace(/ /g,'')
opis = $("meta[name=description]").attr("content")
if opis
stack.push opis.replace(/\s\s+/g, "")

0 comments on commit 9c557d5

Please sign in to comment.