Skip to content

Commit

Permalink
filter out empty video tags
Browse files Browse the repository at this point in the history
  • Loading branch information
ornicar committed Apr 5, 2015
1 parent a4a06a2 commit c7f47b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/video/src/main/Sheet.scala
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ object Sheet {
def author = `gsx$youtubeauthor`.toString.trim
def title = `gsx$title`.toString.trim
def targets = `gsx$target`.toString.split(';').map(_.trim).toList flatMap parseIntOption
def tags = `gsx$tags`.toString.split(';').map(_.trim.toLowerCase).toList ::: {
def tags = `gsx$tags`.toString.split(';').map(_.trim.toLowerCase).toList.filter(_.nonEmpty) ::: {
if (targets contains 1) List("beginner")
else if (targets contains 3) List("advanced")
else Nil
Expand Down

0 comments on commit c7f47b3

Please sign in to comment.