viddl-rb 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
- ---
2
- SHA1:
3
- data.tar.gz: d497fc050ace12babbf349b9a784bc4d25f575b6
4
- metadata.gz: f762d1748ff20ddecf6a8a243934ed8002c2bf7b
5
- SHA512:
6
- data.tar.gz: ec1be57e9dfbb1e44489fa6cca3af761ab3433b012a7e7984a21fa09a1011155b7141939f3770e40a369a3b714f2dba8ac205630e1af9a4a98244422b4cead93
7
- metadata.gz: 584785893e0f19ee4da9b374619e878c726297847cf3f7f2dfbd8cedf18338c1806d68a3d3f6690c9d678ad8b08bcba76de3fb3ca2204394d4bad5eddc06ef99
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 5379af5f32c73c2968f22e9b0b2e13f19898fcb4
4
+ data.tar.gz: 2bb9721f7ab0202c231930d91f3b37c069419186
5
+ SHA512:
6
+ metadata.gz: 92b031a53501f8f0451ed2af7e43c2ae71efb70c4cf0352bc9e1960b15a2c5214d0935213e7077b0a101e1d7a03cadc0899a2ed76c9b35e672eb241057c1043b
7
+ data.tar.gz: b4426d723f18f5dbb1c530fc3875e928b0d5b66201b183c6cf60a7f267c3a033ca5d313b222a3c1c04980a0c212782af818935187bc6c73aa04d71383c2208df
data/Gemfile.lock CHANGED
@@ -1,20 +1,20 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- viddl-rb (0.93)
5
- mime-types
6
- multi_json
7
- nokogiri
8
- progressbar
4
+ viddl-rb (1.0.1)
5
+ mime-types (~> 2.1.0)
6
+ multi_json (~> 1.10.0)
7
+ nokogiri (~> 1.6.0)
8
+ progressbar (~> 0.21)
9
9
 
10
10
  GEM
11
11
  remote: http://rubygems.org/
12
12
  specs:
13
13
  ffi2-generators (0.1.1)
14
14
  mime-types (2.1)
15
- mini_portile (0.5.2)
15
+ mini_portile (0.5.3)
16
16
  minitest (5.2.2)
17
- multi_json (1.8.4)
17
+ multi_json (1.10.0)
18
18
  nokogiri (1.6.1)
19
19
  mini_portile (~> 0.5.0)
20
20
  progressbar (0.21.0)
@@ -231,7 +231,7 @@ PLATFORMS
231
231
  DEPENDENCIES
232
232
  minitest
233
233
  racc
234
- rake
235
- rest-client
234
+ rake (~> 10.1.0)
235
+ rest-client (~> 1.6.7)
236
236
  rubysl (~> 2.0)
237
237
  viddl-rb!
data/README.md CHANGED
@@ -130,6 +130,8 @@ __Co Maintainers:__
130
130
  __Contributors:__
131
131
  * [albertoboni](https://github.com/albertoboni) bandcamp plugin, soundcloud improvements
132
132
  * [divout](https://github.com/divout) aka Ivan K: blip.tv plugin, bugfixes
133
+ * [mbajur](https://github.com/mbajur) aka Mike Bajur: The instagram plugin
133
134
  * Sniper: bugfixes
134
135
  * [Serabe](https://github.com/Serabe) aka Sergio Arbeo: packaging viddl as a binary
135
136
  * [laserlemon](https://github.com/laserlemon): Adding gemnasium images to readme
137
+
data/plugins/bandcamp.rb CHANGED
@@ -19,13 +19,12 @@ class Bandcamp < PluginBase
19
19
 
20
20
  # parse the js object
21
21
  JSON.parse(match).each do |track_data|
22
- track_url = ''
23
22
 
24
23
  # hopefully the last is the best
25
- track_url = track_data["file"].values.last
24
+ track_url = track_data["file"].values.last
26
25
 
27
26
  # create a good mp3 name
28
- track_name = self.make_filename_safe(track_data['title']) + '.mp3'
27
+ track_name = self.make_filename_safe(track_data['title']) + '.mp3'
29
28
 
30
29
  # add to the response
31
30
  url_and_files << {url: track_url, name: track_name}
@@ -0,0 +1,16 @@
1
+ class Instagram < PluginBase
2
+
3
+ #this will be called by the main app to check whether this plugin is responsible for the url passed
4
+ def self.matches_provider?(url)
5
+ url.include?("instagram.com")
6
+ end
7
+
8
+ def self.get_urls_and_filenames(url, options = {})
9
+ video_page = open(url).read
10
+
11
+ download_url = video_page.scan(/video_url":"(http.*.mp4)/).flatten.first.gsub('\/', '/')
12
+
13
+ [{:url => download_url, :name => "#{Time.now.to_i}.mp4"}]
14
+ end
15
+ end
16
+
data/plugins/vimeo.rb CHANGED
@@ -9,7 +9,7 @@ class Vimeo < PluginBase
9
9
  #the vimeo ID consists of 7 decimal numbers in the URL
10
10
  vimeo_id = url[/\d{7,8}/]
11
11
 
12
- video_url = "http://player.vimeo.com/v2/video/#{vimeo_id}"
12
+ video_url = "http://player.vimeo.com/video/#{vimeo_id}"
13
13
  video_page = open(video_url).read
14
14
 
15
15
  info_json = video_page[/a=(\{.+?);/, 1]
@@ -6,7 +6,7 @@ require 'yaml'
6
6
 
7
7
  class CipherIO
8
8
 
9
- CIPHER_YAML_URL = "https://raw.github.com/rb2k/viddl-rb/master/plugins/youtube/ciphers.yml"
9
+ CIPHER_YAML_URL = "https://raw.githubusercontent.com/rb2k/viddl-rb/master/plugins/youtube/ciphers.yml"
10
10
  CIPHER_YAML_PATH = File.join(ViddlRb::UtilityHelper.base_path, "plugins/youtube/ciphers.yml")
11
11
 
12
12
  def initialize
@@ -97,3 +97,4 @@ en_US-vflbJnZqE: w26 s1 w15 w3 w62 w54 w22
97
97
  en_US-vflgd5txb: w26 s1 w15 w3 w62 w54 w22
98
98
  en_US-vflTm330y: w26 s1 w15 w3 w62 w54 w22
99
99
  en_US-vflnwMARr: s3 r w24 s2
100
+ en_US-vflaTh7jt: w46 r s3 w19 r s2 w15
metadata CHANGED
@@ -1,84 +1,107 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: viddl-rb
3
- version: !ruby/object:Gem::Version
4
- version: 1.0.1
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.2
5
5
  platform: ruby
6
- authors:
6
+ authors:
7
7
  - Marc Seeger
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
-
12
- date: 2014-04-27 00:00:00 Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
15
- name: mime-types
16
- prerelease: false
17
- requirement: &id001 !ruby/object:Gem::Requirement
18
- requirements:
19
- - &id002
20
- - ">="
21
- - !ruby/object:Gem::Version
22
- version: "0"
23
- type: :runtime
24
- version_requirements: *id001
25
- - !ruby/object:Gem::Dependency
11
+ date: 2014-07-06 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
26
14
  name: nokogiri
27
- prerelease: false
28
- requirement: &id003 !ruby/object:Gem::Requirement
29
- requirements:
30
- - *id002
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 1.6.0
31
20
  type: :runtime
32
- version_requirements: *id003
33
- - !ruby/object:Gem::Dependency
34
- name: progressbar
35
21
  prerelease: false
36
- requirement: &id004 !ruby/object:Gem::Requirement
37
- requirements:
38
- - *id002
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 1.6.0
27
+ - !ruby/object:Gem::Dependency
28
+ name: progressbar
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '0.21'
39
34
  type: :runtime
40
- version_requirements: *id004
41
- - !ruby/object:Gem::Dependency
42
- name: multi_json
43
35
  prerelease: false
44
- requirement: &id005 !ruby/object:Gem::Requirement
45
- requirements:
46
- - *id002
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '0.21'
41
+ - !ruby/object:Gem::Dependency
42
+ name: multi_json
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: 1.10.0
47
48
  type: :runtime
48
- version_requirements: *id005
49
- - !ruby/object:Gem::Dependency
50
- name: rake
51
49
  prerelease: false
52
- requirement: &id006 !ruby/object:Gem::Requirement
53
- requirements:
54
- - *id002
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: 1.10.0
55
+ - !ruby/object:Gem::Dependency
56
+ name: rake
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: 10.1.0
55
62
  type: :development
56
- version_requirements: *id006
57
- - !ruby/object:Gem::Dependency
58
- name: rest-client
59
63
  prerelease: false
60
- requirement: &id007 !ruby/object:Gem::Requirement
61
- requirements:
62
- - *id002
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: 10.1.0
69
+ - !ruby/object:Gem::Dependency
70
+ name: rest-client
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: 1.6.7
63
76
  type: :development
64
- version_requirements: *id007
65
- - !ruby/object:Gem::Dependency
66
- name: minitest
67
77
  prerelease: false
68
- requirement: &id008 !ruby/object:Gem::Requirement
69
- requirements:
70
- - *id002
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: 1.6.7
83
+ - !ruby/object:Gem::Dependency
84
+ name: minitest
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
71
90
  type: :development
72
- version_requirements: *id008
73
- description: An extendable commandline video downloader for flash video sites. Includes plugins for vimeo, youtube, dailymotion and more
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ description: An extendable commandline video downloader for flash video sites. Includes
98
+ plugins for vimeo, youtube, dailymotion and more
74
99
  email: mail@marc-seeger.de
75
- executables:
100
+ executables:
76
101
  - viddl-rb
77
102
  extensions: []
78
-
79
103
  extra_rdoc_files: []
80
-
81
- files:
104
+ files:
82
105
  - Gemfile
83
106
  - Gemfile.lock
84
107
  - README.md
@@ -96,6 +119,7 @@ files:
96
119
  - plugins/bandcamp.rb
97
120
  - plugins/blip.rb
98
121
  - plugins/dailymotion.rb
122
+ - plugins/instagram.rb
99
123
  - plugins/metacafe.rb
100
124
  - plugins/soundcloud.rb
101
125
  - plugins/veoh.rb
@@ -110,32 +134,27 @@ files:
110
134
  - plugins/youtube/url_resolver.rb
111
135
  - plugins/youtube/video_resolver.rb
112
136
  homepage: https://github.com/rb2k/viddl-rb
113
- licenses:
137
+ licenses:
114
138
  - MIT
115
139
  metadata: {}
116
-
117
140
  post_install_message:
118
141
  rdoc_options: []
119
-
120
- require_paths:
142
+ require_paths:
121
143
  - lib
122
- required_ruby_version: !ruby/object:Gem::Requirement
123
- requirements:
144
+ required_ruby_version: !ruby/object:Gem::Requirement
145
+ requirements:
124
146
  - - ">="
125
- - !ruby/object:Gem::Version
147
+ - !ruby/object:Gem::Version
126
148
  version: 1.9.0
127
- required_rubygems_version: !ruby/object:Gem::Requirement
128
- requirements:
149
+ required_rubygems_version: !ruby/object:Gem::Requirement
150
+ requirements:
129
151
  - - ">="
130
- - !ruby/object:Gem::Version
152
+ - !ruby/object:Gem::Version
131
153
  version: 1.3.4
132
154
  requirements: []
133
-
134
155
  rubyforge_project: viddl-rb
135
156
  rubygems_version: 2.2.2
136
157
  signing_key:
137
158
  specification_version: 4
138
159
  summary: An extendable commandline video downloader for flash video sites.
139
160
  test_files: []
140
-
141
- has_rdoc: false