anstaendig 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/anstaendig.rb +1 -1
- data/lib/anstaendig/agents/dokustream.rb +18 -0
- metadata +6 -5
data/lib/anstaendig.rb
CHANGED
@@ -0,0 +1,18 @@
|
|
1
|
+
module Anstaendig
|
2
|
+
# Agent for anstaendig to download videos from dokustream.org.
|
3
|
+
class DokuStreamAgent < AbstractAgent
|
4
|
+
AGENTS[ 'dokustream.org' ] = self
|
5
|
+
|
6
|
+
def initialize( uri, quality )
|
7
|
+
require( 'open-uri' )
|
8
|
+
|
9
|
+
doc = open( uri.to_s ).readlines
|
10
|
+
|
11
|
+
title = doc.to_s.match( /<title>DokuStream - (.*)<\/title>/ )[1]
|
12
|
+
id = uri.to_s.match( /id\/([0-9]*)/ )[1]
|
13
|
+
|
14
|
+
@filename = title + '.avi'
|
15
|
+
@url = "http://sv01.dokustream.org/stream-video.php?id=" + id
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: anstaendig
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 31
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 2
|
10
|
+
version: 0.1.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- henning mueller
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-
|
18
|
+
date: 2010-08-17 00:00:00 +02:00
|
19
19
|
default_executable:
|
20
20
|
dependencies: []
|
21
21
|
|
@@ -29,12 +29,13 @@ extra_rdoc_files: []
|
|
29
29
|
|
30
30
|
files:
|
31
31
|
- bin/anstaendig
|
32
|
-
- lib/anstaendig.rb
|
33
32
|
- lib/anstaendig/agents/zdf.rb
|
34
33
|
- lib/anstaendig/agents/ard.rb
|
35
34
|
- lib/anstaendig/agents/3sat.rb
|
36
35
|
- lib/anstaendig/agents/arte.rb
|
36
|
+
- lib/anstaendig/agents/dokustream.rb
|
37
37
|
- lib/anstaendig/abstractagent.rb
|
38
|
+
- lib/anstaendig.rb
|
38
39
|
- README.rdoc
|
39
40
|
has_rdoc: true
|
40
41
|
homepage:
|