Skip to content

Commit

Permalink
svtplay changed the order of episode and program in the title.
Browse files Browse the repository at this point in the history
  • Loading branch information
0b101010 committed Jul 4, 2012
1 parent 16b2261 commit 82440cc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ruby/svtget.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env ruby
# -*- coding: utf-8 -*-

# SVTGet v0.7.0 in ruby
# SVTGet v0.7.1 in ruby
# Updates can be found at https://github.com/mmn/svtplay
# Support the project with Flattr: https://flattr.com/thing/300374/SVT-Get-a-local-cache-tool-for-SVT-Play

Expand Down Expand Up @@ -86,8 +86,8 @@ def checkIfIntalled( progs )

def getEpisodAndProgramName( html )
title = (html/"[@data-title]").first['data-title']
episod = title[/^(.*)\s+-\s+/,1]
program = title[/\s+-\s+(.*)\s+\|/,1]
program = title[/^(.*)\s+-\s+/,1]
episod = title[/\s+-\s+(.*)\s+\|/,1]
if ! ( episod && program )
program = title[/^(.*):\s+/,1]
episod = title[/:\s+(.*)\s+\|/,1]
Expand Down

0 comments on commit 82440cc

Please sign in to comment.