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 +7 -7
- data/Gemfile.lock +9 -9
- data/README.md +2 -0
- data/plugins/bandcamp.rb +2 -3
- data/plugins/instagram.rb +16 -0
- data/plugins/vimeo.rb +1 -1
- data/plugins/youtube/cipher_io.rb +1 -1
- data/plugins/youtube/ciphers.yml +1 -0
- metadata +91 -72
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
---
|
2
|
-
SHA1:
|
3
|
-
|
4
|
-
|
5
|
-
SHA512:
|
6
|
-
|
7
|
-
|
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.
|
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.
|
15
|
+
mini_portile (0.5.3)
|
16
16
|
minitest (5.2.2)
|
17
|
-
multi_json (1.
|
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
|
24
|
+
track_url = track_data["file"].values.last
|
26
25
|
|
27
26
|
# create a good mp3 name
|
28
|
-
track_name
|
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/
|
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.
|
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
|
data/plugins/youtube/ciphers.yml
CHANGED
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.
|
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
|
-
|
13
|
-
|
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
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
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
|
-
|
37
|
-
requirements:
|
38
|
-
-
|
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
|
-
|
45
|
-
requirements:
|
46
|
-
-
|
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
|
-
|
53
|
-
requirements:
|
54
|
-
-
|
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
|
-
|
61
|
-
requirements:
|
62
|
-
-
|
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
|
-
|
69
|
-
requirements:
|
70
|
-
-
|
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
|
-
|
73
|
-
|
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
|