Skip to content

Commit

Permalink
Fixes The Escapist downloads
Browse files Browse the repository at this point in the history
It seems they change the format somehow, but this commit fixes it.
  • Loading branch information
somini committed Jan 23, 2015
1 parent 376209a commit 7f2552a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gpodder/escapist_videos.py
Expand Up @@ -46,7 +46,7 @@
# This finds the RSS for a given URL
DATA_RSS_RE = re.compile(r'http://www.escapistmagazine.com/rss/videos/list/([1-9][0-9]*)\.xml')
# This matches the flash player's configuration. It's a JSON, but it's always malformed
DATA_CONFIG_RE = re.compile(r'name="flashvars".*config=(http.*\.js)', re.IGNORECASE)
DATA_CONFIG_RE = re.compile(r'flashvars=.*config=(http.*\.js)', re.IGNORECASE)
# This matches the actual MP4 url, inside the "JSON"
DATA_CONFIG_DATA_RE = re.compile(r'http[:/\w.?&-]*\.mp4')
# This matches the cover art for an RSS. We shouldn't parse XML with regex.
Expand Down

0 comments on commit 7f2552a

Please sign in to comment.