viddl-rb 1.0.4 → 1.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/plugins/bandcamp.rb +1 -1
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 836c3fa39b1e7261512b4f0fcd2f6445a3336d54
4
- data.tar.gz: 24e1116e3f418bd66e15d0bd9e20a85593a9ca5c
3
+ metadata.gz: f458e70cdcb02d38e9d58dae9def3f9e2f8024e4
4
+ data.tar.gz: d9a8034ca3cf2cb2e40b1b950dc0b99f9dde15e3
5
5
  SHA512:
6
- metadata.gz: fdaa4138c86f1257a4846dd5e34ac85670bd0d27cf02332e690334cf784b0791fae8c2c66c6ed7e2196b7ddfe2167656587d54741e7a5f90fbcb418748ffce7f
7
- data.tar.gz: 2b378dee1b55e5c5ef5e592192806243fead78a098b236e48a4b9e21a0723aa0dd019cd9c83d52e9b552ad492ce5eda33356755ccf5411ff6ff49ae1f3d3ec1e
6
+ metadata.gz: f4c875d9f2d1f3ba8327d17f884809f982072277f859dcc3808d6ad1708fcb09dc163a0c72c41cdfdfbf171b614872f7ebe180be287e987cc2b51b782f2222d0
7
+ data.tar.gz: 3f8409ba0a9fec178a2851924e787da667c5afc6b89018b78e2cf7aa04f19b7c97848c38c5465f8c63a2fe24cbd54ae5a24b52e43b8c9249f9603a183e03c80a
data/plugins/bandcamp.rb CHANGED
@@ -15,7 +15,7 @@ class Bandcamp < PluginBase
15
15
  url_and_files = []
16
16
  doc = Nokogiri::HTML(open(get_http_url(url)))
17
17
  js = doc.at("script:contains('var TralbumData')").text
18
- match = js[/trackinfo.*(\[.*\])/,1]
18
+ match = /trackinfo\s?:\s?([\s\S]*?\}\])/.match(js)[1]
19
19
 
20
20
  # parse the js object
21
21
  JSON.parse(match).each do |track_data|
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: viddl-rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marc Seeger
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-16 00:00:00.000000000 Z
11
+ date: 2014-10-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri