Skip to content

Commit

Permalink
Improved support for updated link scheme.
Browse files Browse the repository at this point in the history
  • Loading branch information
rednoah committed May 3, 2019
1 parent 15a0253 commit 7979aad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion update-mes.groovy
Expand Up @@ -80,7 +80,8 @@ class MyEpisodesScraper {
shows = ['other', 'A'..'Z'].flatten().findResults{ section ->
get("http://myepisodes.com/shows.php?list=${section}").select('a').findResults{ a ->
try {
return [id:a.absUrl('href').match(/showid=(\d+)/).toInteger(), name:a.text().trim()]
// e.g. http://www.myepisodes.com/epsbyshow/491/The%20A-Team
return [id:a.absUrl('href').match(/\/(\d+)\//).toInteger(), name:a.text().trim()]
} catch(e) {
return null
}
Expand Down

0 comments on commit 7979aad

Please sign in to comment.