lib/scraper/vimeo.rb in cyx-scraper-0.3.0 vs lib/scraper/vimeo.rb in cyx-scraper-0.3.1
- old
+ new
@@ -5,10 +5,10 @@
module Scraper
class Vimeo
@@config = {
:valid_host_name => /\A([a-z]+\.)?vimeo\.com\z/,
- :video_id_matcher => /([0-9]+)/,
+ :video_id_matcher => /\A\/?([0-9]+)\z/,
:title_selector => '.title',
:description_selector => "#description",
:thumbnail_selector => ".current.clip .style_wrap img",
:width => 400,
:height => 300,
\ No newline at end of file