youtube_dlhelper 2.0.2 → 2.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gemnasium.yml +1 -1
- data/.rubocop.yml +1 -1
- data/.scrutinizer.yml +2 -2
- data/.travis.yml +0 -6
- data/CHANGELOG.md +80 -0
- data/CONTRIBUTING.md +1 -1
- data/Gemfile +8 -12
- data/Gemfile.lock +60 -136
- data/History.rdoc +12 -0
- data/LICENSE.rdoc +1 -1
- data/Manifest.txt +3 -8
- data/README.rdoc +11 -10
- data/Rakefile +11 -17
- data/lib/youtube_dlhelper.rb +3 -15
- data/lib/youtube_dlhelper/change.rb +1 -1
- data/lib/youtube_dlhelper/checker.rb +0 -16
- data/lib/youtube_dlhelper/downloader.rb +1 -14
- data/lib/youtube_dlhelper/import_config.rb +1 -15
- data/lib/youtube_dlhelper/notifier.rb +1 -1
- data/lib/youtube_dlhelper/ripper.rb +2 -16
- data/{test → spec}/lib_spec.rb +26 -44
- data/{test → spec}/spec_helper.rb +1 -1
- metadata +34 -116
- checksums.yaml.gz.sig +0 -2
- data.tar.gz.sig +0 -0
- data/.gemrelease +0 -6
- data/.index +0 -180
- data/Index.yml +0 -64
- data/VERSION +0 -1
- data/circle.yml +0 -16
- data/ruby-lint.yml +0 -2
- metadata.gz.sig +0 -0
data/LICENSE.rdoc
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
(The MIT License)
|
4
4
|
|
5
|
-
Copyright (c) 2015 Sascha Manns <
|
5
|
+
Copyright (c) 2015-2017 Sascha Manns <Sascha.Manns@mailbox.org>
|
6
6
|
|
7
7
|
Permission is hereby granted, free of charge, to any person obtaining
|
8
8
|
a copy of this software and associated documentation files (the
|
data/Manifest.txt
CHANGED
@@ -1,25 +1,21 @@
|
|
1
1
|
.coveralls.yml
|
2
2
|
.gemnasium.yml
|
3
|
-
.gemrelease
|
4
|
-
.index
|
5
3
|
.rspec
|
6
4
|
.rubocop.yml
|
7
5
|
.scrutinizer.yml
|
8
6
|
.travis.yml
|
9
7
|
.yardopts
|
8
|
+
CHANGELOG.md
|
10
9
|
CODE_OF_CONDUCT.md
|
11
10
|
CONTRIBUTING.md
|
12
11
|
Gemfile
|
13
12
|
Gemfile.lock
|
14
13
|
History.rdoc
|
15
|
-
Index.yml
|
16
14
|
LICENSE.rdoc
|
17
15
|
Manifest.txt
|
18
16
|
README.rdoc
|
19
17
|
Rakefile
|
20
|
-
VERSION
|
21
18
|
bin/youtube_dlhelper
|
22
|
-
circle.yml
|
23
19
|
config.reek
|
24
20
|
data/youtube_dlhelper/100px-youtube_dlhelper.png
|
25
21
|
etc/youtube_dlhelper.conf
|
@@ -30,6 +26,5 @@ lib/youtube_dlhelper/downloader.rb
|
|
30
26
|
lib/youtube_dlhelper/import_config.rb
|
31
27
|
lib/youtube_dlhelper/notifier.rb
|
32
28
|
lib/youtube_dlhelper/ripper.rb
|
33
|
-
|
34
|
-
|
35
|
-
test/spec_helper.rb
|
29
|
+
spec/lib_spec.rb
|
30
|
+
spec/spec_helper.rb
|
data/README.rdoc
CHANGED
@@ -1,11 +1,13 @@
|
|
1
1
|
= youtube_dlhelper
|
2
2
|
|
3
|
-
home :: http://saigkill.
|
4
|
-
code :: http://
|
3
|
+
home :: http://saigkill.tuxfamily.org
|
4
|
+
code :: http://github.com/saigkill/youtube_dlhelper
|
5
5
|
rdoc :: http://www.rubydoc.info/gems/youtube_dlhelper
|
6
|
-
|
6
|
+
docs :: https://saigkill.tuxfamily.org/dotclear/docs/youtube_dlhelper/en-US/html/
|
7
|
+
bugs :: https://github.com/saigkill/youtube_dlhelper/issues
|
7
8
|
openhub statistics :: https://www.openhub.net/p/youtube_dlhelper
|
8
9
|
openhatch :: http://www.openhatch.org/projects/youtube_dlhelper
|
10
|
+
min_rubyver :: 2.2.3
|
9
11
|
license :: {<img src="http://img.shields.io/:license-mit-blue.svg" />}[https://gitlab.com/saigkill/youtube_dlhelper/blob/master/LICENSE.rdoc]
|
10
12
|
last public version :: {<img src="https://badge.fury.io/rb/youtube_dlhelper.png" alt="Last Version" />}[http://rubygems.org/gems/youtube_dlhelper]
|
11
13
|
downloads latest :: {<img src="https://img.shields.io/gem/dtv/youtube_dlhelper.svg" alt="Downloads latest version" />}[http://rubygems.org/gems/youtube_dlhelper]
|
@@ -14,14 +16,13 @@ continuous integration :: {<img src="https://secure.travis-ci.org/saigkill/youtu
|
|
14
16
|
continuous integration :: {<img src="https://scrutinizer-ci.com/g/saigkill/youtube_dlhelper/badges/build.png?b=master" />}[https://scrutinizer-ci.com/g/saigkill/youtube_dlhelper/]
|
15
17
|
code quality :: {<img src="https://scrutinizer-ci.com/g/saigkill/youtube_dlhelper/badges/quality-score.png?b=master" />}[https://scrutinizer-ci.com/g/saigkill/youtube_dlhelper/]
|
16
18
|
code quality :: {<img src="https://codeclimate.com/github/saigkill/youtube_dlhelper/badges/gpa.svg" alt="Code Quality" />}[https://codeclimate.com/github/saigkill/youtube_dlhelper]
|
19
|
+
code quality :: {<img src="https://api.codacy.com/project/badge/Grade/4c9b2a8f54d242ec854ccdda9f245d77" alt="Codacy code quality" />}[https://www.codacy.com/app/samannsml/youtube_dlhelper?utm_source=github.com&utm_medium=referral&utm_content=saigkill/youtube_dlhelper&utm_campaign=Badge_Grade]
|
17
20
|
security :: {<img src="https://hakiri.io/github/saigkill/youtube_dlhelper/master.svg" alt="security" />}[https://hakiri.io/github/saigkill/youtube_dlhelper/master]
|
18
21
|
test coverage :: {<img src="https://coveralls.io/repos/saigkill/youtube_dlhelper/badge.png?branch=master" alt="Test Coverage" />}[https://coveralls.io/r/saigkill/youtube_dlhelper?branch=master]
|
19
22
|
dependency check :: {<img src="https://gemnasium.com/saigkill/youtube_dlhelper.svg" alt="Dependency Status" />}[https://gemnasium.com/saigkill/youtube_dlhelper]
|
20
|
-
still maintained? :: {<img src="http://stillmaintained.com/saigkill/youtube_dlhelper.png" alt="Still maintained?" />}[http://stillmaintained.com/saigkill/youtube_dlhelper]
|
21
23
|
documentation quality :: {<img src="http://inch-ci.org/github/saigkill/youtube_dlhelper.svg?branch=master" alt="Documentation Quality" />}[http://inch-ci.org/github/saigkill/youtube_dlhelper]
|
22
24
|
donations :: {<img src="https://pledgie.com/campaigns/29423.png?skin_name=chrome" alt="Donations" />}[https://pledgie.com/campaigns/29423]
|
23
|
-
donations :: {<img src="
|
24
|
-
donations :: {<img src="http://tsv-neuss.de/cms/upload/News-Bilder/amazon1.png" alt="Donations" />}[http://www.amazon.de/registry/wishlist/D75HOEQ00BDD]
|
25
|
+
donations :: {<img src="https://saigkill.tuxfamily.org/dotclear/public/Amazon.png" alt="Donations" />}[http://www.amazon.de/registry/wishlist/D75HOEQ00BDD]
|
25
26
|
|
26
27
|
|
27
28
|
== DESCRIPTION:
|
@@ -53,7 +54,7 @@ Before running the program you have to open the youtube_dlhelper.conf and change
|
|
53
54
|
|
54
55
|
If you like this little program so don't forget to give this GitLab repository a star :-)
|
55
56
|
|
56
|
-
Read the documentation at: https://
|
57
|
+
Read the documentation at: https://saigkill.tuxfamily.org/dotclear/docs/youtube_dlhelper/en-US/html/
|
57
58
|
|
58
59
|
== REQUIREMENTS:
|
59
60
|
|
@@ -75,7 +76,7 @@ The installation is very easy.
|
|
75
76
|
cd /path/to/gem (In case of using RVM ~/.rvm/gems/ruby-2.2.1/gems/youtube_dlhelper)
|
76
77
|
rake setup
|
77
78
|
|
78
|
-
Read the documentation at: https://
|
79
|
+
Read the documentation at: https://saigkill.tuxfamily.org/dotclear/docs/youtube_dlhelper/en-US/html/
|
79
80
|
|
80
81
|
You have to run the setup after each gem update.
|
81
82
|
|
@@ -90,13 +91,13 @@ After checking out the source, run:
|
|
90
91
|
This task will install any missing dependencies, run the tests/specs,
|
91
92
|
and generate the RDoc.
|
92
93
|
|
93
|
-
Read https://
|
94
|
+
Read https://github.com/saigkill/youtube_dlhelper/blob/master/CONTRIBUTING.md
|
94
95
|
|
95
96
|
== LICENSE:
|
96
97
|
|
97
98
|
(The MIT License)
|
98
99
|
|
99
|
-
Copyright (c) 2015 Sascha Manns <
|
100
|
+
Copyright (c) 2015-2017 Sascha Manns <Sascha.Manns@mailbox.org>
|
100
101
|
|
101
102
|
Permission is hereby granted, free of charge, to any person obtaining
|
102
103
|
a copy of this software and associated documentation files (the
|
data/Rakefile
CHANGED
@@ -13,12 +13,10 @@ require 'hoe'
|
|
13
13
|
|
14
14
|
Hoe.plugin :bundler
|
15
15
|
Hoe.plugin :email
|
16
|
-
Hoe.plugin :gemspec
|
17
16
|
# Hoe.plugin :gem_prelude_sucks
|
18
|
-
Hoe.plugins.delete :git
|
17
|
+
#Hoe.plugins.delete :git
|
19
18
|
#Hoe.plugin :git
|
20
19
|
Hoe.plugin :manns
|
21
|
-
Hoe.plugin :packaging
|
22
20
|
Hoe.plugin :rubocop
|
23
21
|
Hoe.plugin :rubygems
|
24
22
|
#Hoe.plugin :seattlerb
|
@@ -27,16 +25,16 @@ Hoe.plugin :version
|
|
27
25
|
###########################################DEVELOPING ZONE##############################################################
|
28
26
|
# rubocop:disable Metrics/LineLength
|
29
27
|
Hoe.spec "youtube_dlhelper" do
|
30
|
-
developer("Sascha Manns", "
|
28
|
+
developer("Sascha Manns", "Sascha.Manns@mailbox.org")
|
31
29
|
license "MIT" # this should match the license in the README
|
32
|
-
require_ruby_version '>= 2.2.
|
30
|
+
require_ruby_version '>= 2.2.3'
|
33
31
|
|
34
32
|
email_to << 'ruby-talk@ruby-lang.org'
|
35
33
|
|
36
34
|
self.history_file = 'History.rdoc'
|
37
35
|
self.readme_file = 'README.rdoc'
|
38
36
|
self.extra_rdoc_files = FileList['*.rdoc'].to_a
|
39
|
-
self.post_install_message = '*** Run rake setup to finish the installation *** Please file bugreports and feature requests on: https://
|
37
|
+
self.post_install_message = '*** Run rake setup to finish the installation *** Please file bugreports and feature requests on: https://github.com/saigkill/youtube_dlhelper/issues'
|
40
38
|
|
41
39
|
dependency 'bundler', '~> 1.11'
|
42
40
|
dependency 'setup', '~> 5.2'
|
@@ -45,25 +43,21 @@ Hoe.spec "youtube_dlhelper" do
|
|
45
43
|
dependency 'rainbow', '~> 2.1'
|
46
44
|
dependency 'addressable', '~> 2.4.0'
|
47
45
|
dependency 'notifier', '~> 0.5'
|
48
|
-
dependency 'youtube-dl.rb', '~> 0.
|
46
|
+
dependency 'youtube-dl.rb', '~> 0.3.1.2016'
|
49
47
|
|
50
48
|
extra_dev_deps << ['coveralls', '~> 0.8']
|
51
|
-
extra_dev_deps << ['
|
52
|
-
extra_dev_deps << ['hoe-bundler', '~> 1.2']
|
53
|
-
extra_dev_deps << ['hoe-gemspec', '~> 1.0']
|
49
|
+
extra_dev_deps << ['hoe-bundler', '~> 1.3']
|
54
50
|
extra_dev_deps << ['hoe-git', '~> 1.6']
|
55
|
-
extra_dev_deps << ['hoe-manns', '~> 1.
|
56
|
-
extra_dev_deps << ['hoe-packaging', '~> 1.1']
|
51
|
+
extra_dev_deps << ['hoe-manns', '~> 1.5']
|
57
52
|
extra_dev_deps << ['hoe-rubocop', '~> 1.0']
|
58
53
|
extra_dev_deps << ['hoe-rubygems', '~> 1.0']
|
59
54
|
extra_dev_deps << ['hoe-seattlerb', '~> 1.3']
|
60
55
|
extra_dev_deps << ['hoe-version', '~> 1.2']
|
61
56
|
extra_dev_deps << ['indexer', '~> 0.3']
|
62
|
-
extra_dev_deps << ['rake', '~>
|
63
|
-
extra_dev_deps << ['rspec', '~> 3.
|
64
|
-
extra_dev_deps << ['rubocop', '~> 0.
|
65
|
-
extra_dev_deps << ['simplecov', '~> 0.
|
66
|
-
extra_dev_deps << ['bundler-audit', '~> 0.4']
|
57
|
+
extra_dev_deps << ['rake', '~> 11.2']
|
58
|
+
extra_dev_deps << ['rspec', '~> 3.5']
|
59
|
+
extra_dev_deps << ['rubocop', '~> 0.42']
|
60
|
+
extra_dev_deps << ['simplecov', '~> 0.12']
|
67
61
|
extra_dev_deps << ['manns_shared', '~> 1.0']
|
68
62
|
#extra_dev_deps << ['mini_portile2', '~> 2.1']
|
69
63
|
end
|
data/lib/youtube_dlhelper.rb
CHANGED
@@ -1,20 +1,7 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
# Youtube converter main class
|
3
3
|
#
|
4
|
-
# Copyright (C) 2013-
|
5
|
-
#
|
6
|
-
# This program is free software: you can redistribute it and/or modify
|
7
|
-
# it under the terms of the GNU General Public License as published by
|
8
|
-
# the Free Software Foundation, either version 3 of the License, or
|
9
|
-
# (at your option) any later version.
|
10
|
-
#
|
11
|
-
# This program is distributed in the hope that it will be useful,
|
12
|
-
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
13
|
-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
14
|
-
# GNU General Public License for more details.
|
15
|
-
#
|
16
|
-
# You should have received a copy of the GNU General Public License
|
17
|
-
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
4
|
+
# Copyright (C) 2013-2017 Sascha Manns <Sascha.Manns@mailbox.org>
|
18
5
|
|
19
6
|
# Dependencies
|
20
7
|
# rubocop:disable Metrics/LineLength
|
@@ -29,13 +16,14 @@ require 'parseconfig'
|
|
29
16
|
require 'addressable/uri'
|
30
17
|
require 'streamio-ffmpeg'
|
31
18
|
require 'rainbow/ext/string'
|
19
|
+
require 'hoe'
|
32
20
|
|
33
21
|
# The main class YoutubeDlhelper
|
34
22
|
class YoutubeDlhelper
|
35
23
|
puts 'Running initialize process...'
|
36
24
|
puts 'Gets version...'
|
37
25
|
# @note Version variable
|
38
|
-
VERSION = '2.0.
|
26
|
+
VERSION = '2.0.4'
|
39
27
|
|
40
28
|
puts 'Gets own process name...'
|
41
29
|
# @note Name of the App
|
@@ -2,7 +2,7 @@
|
|
2
2
|
# Description: Different shared libraries
|
3
3
|
# Work: This Module provides different modules and methods for some standard
|
4
4
|
# tasks
|
5
|
-
# Copyright (C) 2013-
|
5
|
+
# Copyright (C) 2013-2017 Sascha Manns <Sascha.Manns@mailbox.org>
|
6
6
|
#
|
7
7
|
# This program is free software: you can redistribute it and/or modify
|
8
8
|
# it under the terms of the GNU General Public License as published by
|
@@ -5,22 +5,6 @@
|
|
5
5
|
# Work: This Module provides different checker methods
|
6
6
|
# Class Documentation:
|
7
7
|
# http://www.rubydoc.info/github/saigkill/youtube_dlhelper/Checker
|
8
|
-
#
|
9
|
-
# Copyright (C) 2013-2015 Sascha Manns <samannsml@directbox.com>
|
10
|
-
#
|
11
|
-
# This program is free software: you can redistribute it and/or modify
|
12
|
-
# it under the terms of the GNU General Public License as published by
|
13
|
-
# the Free Software Foundation, either version 3 of the License, or
|
14
|
-
# (at your option) any later version.
|
15
|
-
#
|
16
|
-
# This program is distributed in the hope that it will be useful,
|
17
|
-
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
18
|
-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
19
|
-
# GNU General Public License for more details.
|
20
|
-
#
|
21
|
-
# You should have received a copy of the GNU General Public License
|
22
|
-
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
23
|
-
|
24
8
|
|
25
9
|
# Dependencies
|
26
10
|
require 'rainbow/ext/string'
|
@@ -6,20 +6,7 @@
|
|
6
6
|
# Class Documentation:
|
7
7
|
# http://www.rubydoc.info/github/saigkill/youtube_dlhelper/Downloader
|
8
8
|
#
|
9
|
-
# Copyright (C) 2013-
|
10
|
-
#
|
11
|
-
# This program is free software: you can redistribute it and/or modify
|
12
|
-
# it under the terms of the GNU General Public License as published by
|
13
|
-
# the Free Software Foundation, either version 3 of the License, or
|
14
|
-
# (at your option) any later version.
|
15
|
-
#
|
16
|
-
# This program is distributed in the hope that it will be useful,
|
17
|
-
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
18
|
-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
19
|
-
# GNU General Public License for more details.
|
20
|
-
#
|
21
|
-
# You should have received a copy of the GNU General Public License
|
22
|
-
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
9
|
+
# Copyright (C) 2013-2017 Sascha Manns <Sascha.Manns@mailbox.org>
|
23
10
|
|
24
11
|
|
25
12
|
# Dependencies
|
@@ -5,21 +5,7 @@
|
|
5
5
|
# Work: This file contains some standard methods for YoutubeDlhelper
|
6
6
|
# Class Documentation:
|
7
7
|
# http://www.rubydoc.info/github/saigkill/youtube_dlhelper/Import
|
8
|
-
# Copyright (C) 2013-
|
9
|
-
#
|
10
|
-
# This program is free software: you can redistribute it and/or modify
|
11
|
-
# it under the terms of the GNU General Public License as published by
|
12
|
-
# the Free Software Foundation, either version 3 of the License, or
|
13
|
-
# (at your option) any later version.
|
14
|
-
#
|
15
|
-
# This program is distributed in the hope that it will be useful,
|
16
|
-
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
17
|
-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
18
|
-
# GNU General Public License for more details.
|
19
|
-
#
|
20
|
-
# You should have received a copy of the GNU General Public License
|
21
|
-
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
22
|
-
|
8
|
+
# Copyright (C) 2013-2017 Sascha Manns <Sascha.Manns@mailbox.org>
|
23
9
|
|
24
10
|
# Dependencies
|
25
11
|
require 'parseconfig'
|
@@ -6,28 +6,14 @@
|
|
6
6
|
# Class Documentation:
|
7
7
|
# http://www.rubydoc.info/github/saigkill/youtube_dlhelper/Ripper
|
8
8
|
#
|
9
|
-
# Copyright (C) 2013-
|
10
|
-
#
|
11
|
-
# This program is free software: you can redistribute it and/or modify
|
12
|
-
# it under the terms of the GNU General Public License as published by
|
13
|
-
# the Free Software Foundation, either version 3 of the License, or
|
14
|
-
# (at your option) any later version.
|
15
|
-
#
|
16
|
-
# This program is distributed in the hope that it will be useful,
|
17
|
-
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
18
|
-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
19
|
-
# GNU General Public License for more details.
|
20
|
-
#
|
21
|
-
# You should have received a copy of the GNU General Public License
|
22
|
-
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
23
|
-
|
9
|
+
# Copyright (C) 2013-2017 Sascha Manns <Sascha.Manns@mailbox.org>
|
24
10
|
|
25
11
|
# Dependencies
|
26
12
|
require 'streamio-ffmpeg'
|
27
13
|
require 'rainbow/ext/string'
|
28
14
|
|
29
15
|
# Module for all ripping methods
|
30
|
-
|
16
|
+
class Ripper
|
31
17
|
# rubocop:disable Metrics/AbcSize
|
32
18
|
# This method smells of :reek:TooManyStatements
|
33
19
|
# Checking which fileformat is present
|
data/{test → spec}/lib_spec.rb
RENAMED
@@ -1,16 +1,14 @@
|
|
1
1
|
require 'rspec'
|
2
|
-
require File.join(File.dirname(__FILE__), '..', '/
|
2
|
+
require File.join(File.dirname(__FILE__), '..', '/spec/spec_helper')
|
3
3
|
|
4
4
|
# rubocop:disable Metrics/LineLength
|
5
|
-
require File.join(File.dirname(__FILE__), '..', '/lib/youtube_dlhelper/version')
|
6
5
|
require File.join(File.dirname(__FILE__), '..', '/lib/youtube_dlhelper/checker')
|
7
6
|
require File.join(File.dirname(__FILE__), '..', '/lib/youtube_dlhelper/downloader')
|
8
7
|
require File.join(File.dirname(__FILE__), '..', '/lib/youtube_dlhelper/import_config')
|
9
8
|
require File.join(File.dirname(__FILE__), '..', '/lib/youtube_dlhelper/ripper')
|
10
|
-
require File.join(File.dirname(__FILE__), '..', '/lib/youtube_dlhelper/notifier')
|
11
9
|
|
12
|
-
tempfile = '
|
13
|
-
tempfile1 = '
|
10
|
+
tempfile = 'Rainbow_-_Stargazer_Live_in_Nrnberg_1976'
|
11
|
+
tempfile1 = 'Rainbow - Stargazer (Live in Nürnberg 1976)'
|
14
12
|
ffmpeg_binary = '/usr/local/bin/ffmpeg'
|
15
13
|
|
16
14
|
describe 'Checker' do
|
@@ -40,44 +38,35 @@ describe 'Checker' do
|
|
40
38
|
end
|
41
39
|
end
|
42
40
|
|
43
|
-
# describe 'Import' do
|
44
|
-
# describe '.import_config' do
|
45
|
-
# it 'reads in some variables and fill them localy' do
|
46
|
-
# music_dir, ogg_file_accept = Import.import_config
|
47
|
-
# expect(music_dir).equal? 'Musik'
|
48
|
-
# expect(ogg_file_accept).equal? 'true'
|
49
|
-
# end
|
50
|
-
# end
|
51
|
-
# end
|
52
|
-
|
53
41
|
describe 'Downoader' do
|
54
42
|
describe '.get' do
|
55
43
|
it 'downloads a file from youtube' do
|
56
|
-
Downloader.get('http://www.youtube.com/watch?v=aHjpOzsQ9YI')
|
57
|
-
|
44
|
+
#Downloader.get('http://www.youtube.com/watch?v=aHjpOzsQ9YI')
|
45
|
+
Downloader.get('https://www.youtube.com/watch?v=UgdSarGbE0g')
|
46
|
+
expect(File.exist?("#{tempfile}.mp4")).equal? 'true'
|
58
47
|
end
|
59
48
|
end
|
60
49
|
end
|
61
50
|
|
62
|
-
describe 'Ripper' do
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
end
|
51
|
+
# describe 'Ripper' do
|
52
|
+
# describe '.rip_prepare' do
|
53
|
+
# context 'With ogg_file_accept' do
|
54
|
+
# ogg_file_accept = 'true'
|
55
|
+
# it 'should not convert a file from youtube' do
|
56
|
+
# Ripper.rip_prepare(tempfile, ogg_file_accept, ffmpeg_binary)
|
57
|
+
# expect(File.exist?("#{tempfile}.ogg")).equal? 'true'
|
58
|
+
# end
|
59
|
+
# end
|
60
|
+
#
|
61
|
+
# context 'Without ogg_file_accept' do
|
62
|
+
# ogg_file_accept = 'false'
|
63
|
+
# it 'should convert a file from youtube' do
|
64
|
+
# Ripper.rip_prepare(tempfile, ogg_file_accept, ffmpeg_binary)
|
65
|
+
# expect(File.exist?("#{tempfile}.mp3")).equal? 'true'
|
66
|
+
# end
|
67
|
+
# end
|
68
|
+
# end
|
69
|
+
# end
|
81
70
|
|
82
71
|
describe 'Checker' do
|
83
72
|
describe '.cleanup' do
|
@@ -88,14 +77,7 @@ describe 'Checker' do
|
|
88
77
|
File.delete("#{tempfile1}.mp4") if File.exist?("#{tempfile1}.mp4")
|
89
78
|
File.delete("#{tempfile}.mp3") if File.exist?("#{tempfile}.mp3")
|
90
79
|
File.delete("#{tempfile}.ogg") if File.exist?("#{tempfile}.ogg")
|
91
|
-
|
92
|
-
end
|
93
|
-
end
|
94
|
-
|
95
|
-
describe 'Notifier' do
|
96
|
-
describe '.run' do
|
97
|
-
it 'Gives a Notify' do
|
98
|
-
Notifier.run
|
80
|
+
File.delete("#{tempfile}.mkv") if File.exist?("#{tempfile}.mkv")
|
99
81
|
end
|
100
82
|
end
|
101
83
|
end
|
metadata
CHANGED
@@ -1,36 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: youtube_dlhelper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sascha Manns
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
|
-
cert_chain:
|
11
|
-
-
|
12
|
-
-----BEGIN CERTIFICATE-----
|
13
|
-
MIIDhTCCAm2gAwIBAgIBATANBgkqhkiG9w0BAQUFADBEMRIwEAYDVQQDDAlzYW1h
|
14
|
-
bm5zbWwxGTAXBgoJkiaJk/IsZAEZFglkaXJlY3Rib3gxEzARBgoJkiaJk/IsZAEZ
|
15
|
-
FgNjb20wHhcNMTUwOTE1MTAwOTQwWhcNMTYwOTE0MTAwOTQwWjBEMRIwEAYDVQQD
|
16
|
-
DAlzYW1hbm5zbWwxGTAXBgoJkiaJk/IsZAEZFglkaXJlY3Rib3gxEzARBgoJkiaJ
|
17
|
-
k/IsZAEZFgNjb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQChvBUV
|
18
|
-
qkj1as15E6mSt42Vf+bwwn6y5IINU8WyMByK85WPENyWpOTOsrwTSpai3b/fO6JE
|
19
|
-
RzGyC/IDQXy5IcnWAXIRG/lRy4MOHeReShVH0TWP9e63jhsjffb3oiE9WyVMyp6j
|
20
|
-
7mBDsYQlpd9dzIxBjhOuezqHTats1Zx3YmgTKqcxIGagw+91taJE3eXQRh9OTply
|
21
|
-
6nFe4EeEDZIDkpGxgWPdPXhdEOh70z9if0Li0iuwzKD7nI2YDrQPZ6yzohwJSCxJ
|
22
|
-
G1cvwyew70s9xneJ63C+EoBDdSzjYOi9ov08sLYm6XphYmXkansZX9XLvlkm7oNU
|
23
|
-
RauozHFRkVgou2yPAgMBAAGjgYEwfzAJBgNVHRMEAjAAMAsGA1UdDwQEAwIEsDAd
|
24
|
-
BgNVHQ4EFgQU2Z0THCX7uI/mtn0lN5RlIUhQHkMwIgYDVR0RBBswGYEXc2FtYW5u
|
25
|
-
c21sQGRpcmVjdGJveC5jb20wIgYDVR0SBBswGYEXc2FtYW5uc21sQGRpcmVjdGJv
|
26
|
-
eC5jb20wDQYJKoZIhvcNAQEFBQADggEBABcwHO1C0EOos6v4jYYqcxMqryJnGH9O
|
27
|
-
ZOGyesU4BsVuVfKznMZ2hMnb5UW1JgxcZgTdhh4LuZ5NuDUd4DJyUGVKKVIxPFzs
|
28
|
-
T1YreFIygjNZDlF338gY4R8OgzgM7j/k5mxg1gL0/4zgHVNRFsb4lB0xN+b/9iY4
|
29
|
-
OQ2nBbEye41AtFzskC/Qdsj5uvG/g2wy8fMDZ6+VI4nNb/bHJahShz2kqRap461j
|
30
|
-
cEuJ8AWKUjdkdt1Nba7qmareRtc2+pEiITV5ANv24b8vsmq9/8nbxQckdO7+NQRP
|
31
|
-
pTQZhJ4mX28Qe1F9IE4F4UDeo8gQSPHJOttZA33sRLC19sH67dLq4pM=
|
32
|
-
-----END CERTIFICATE-----
|
33
|
-
date: 2016-02-08 00:00:00.000000000 Z
|
10
|
+
cert_chain: []
|
11
|
+
date: 2017-02-23 00:00:00.000000000 Z
|
34
12
|
dependencies:
|
35
13
|
- !ruby/object:Gem::Dependency
|
36
14
|
name: bundler
|
@@ -136,28 +114,14 @@ dependencies:
|
|
136
114
|
requirements:
|
137
115
|
- - "~>"
|
138
116
|
- !ruby/object:Gem::Version
|
139
|
-
version: 0.
|
117
|
+
version: 0.3.1.2016
|
140
118
|
type: :runtime
|
141
119
|
prerelease: false
|
142
120
|
version_requirements: !ruby/object:Gem::Requirement
|
143
121
|
requirements:
|
144
122
|
- - "~>"
|
145
123
|
- !ruby/object:Gem::Version
|
146
|
-
version: 0.
|
147
|
-
- !ruby/object:Gem::Dependency
|
148
|
-
name: rdoc
|
149
|
-
requirement: !ruby/object:Gem::Requirement
|
150
|
-
requirements:
|
151
|
-
- - "~>"
|
152
|
-
- !ruby/object:Gem::Version
|
153
|
-
version: '4.0'
|
154
|
-
type: :development
|
155
|
-
prerelease: false
|
156
|
-
version_requirements: !ruby/object:Gem::Requirement
|
157
|
-
requirements:
|
158
|
-
- - "~>"
|
159
|
-
- !ruby/object:Gem::Version
|
160
|
-
version: '4.0'
|
124
|
+
version: 0.3.1.2016
|
161
125
|
- !ruby/object:Gem::Dependency
|
162
126
|
name: coveralls
|
163
127
|
requirement: !ruby/object:Gem::Requirement
|
@@ -172,48 +136,20 @@ dependencies:
|
|
172
136
|
- - "~>"
|
173
137
|
- !ruby/object:Gem::Version
|
174
138
|
version: '0.8'
|
175
|
-
- !ruby/object:Gem::Dependency
|
176
|
-
name: gem-release
|
177
|
-
requirement: !ruby/object:Gem::Requirement
|
178
|
-
requirements:
|
179
|
-
- - "~>"
|
180
|
-
- !ruby/object:Gem::Version
|
181
|
-
version: '0.7'
|
182
|
-
type: :development
|
183
|
-
prerelease: false
|
184
|
-
version_requirements: !ruby/object:Gem::Requirement
|
185
|
-
requirements:
|
186
|
-
- - "~>"
|
187
|
-
- !ruby/object:Gem::Version
|
188
|
-
version: '0.7'
|
189
139
|
- !ruby/object:Gem::Dependency
|
190
140
|
name: hoe-bundler
|
191
141
|
requirement: !ruby/object:Gem::Requirement
|
192
142
|
requirements:
|
193
143
|
- - "~>"
|
194
144
|
- !ruby/object:Gem::Version
|
195
|
-
version: '1.
|
196
|
-
type: :development
|
197
|
-
prerelease: false
|
198
|
-
version_requirements: !ruby/object:Gem::Requirement
|
199
|
-
requirements:
|
200
|
-
- - "~>"
|
201
|
-
- !ruby/object:Gem::Version
|
202
|
-
version: '1.2'
|
203
|
-
- !ruby/object:Gem::Dependency
|
204
|
-
name: hoe-gemspec
|
205
|
-
requirement: !ruby/object:Gem::Requirement
|
206
|
-
requirements:
|
207
|
-
- - "~>"
|
208
|
-
- !ruby/object:Gem::Version
|
209
|
-
version: '1.0'
|
145
|
+
version: '1.3'
|
210
146
|
type: :development
|
211
147
|
prerelease: false
|
212
148
|
version_requirements: !ruby/object:Gem::Requirement
|
213
149
|
requirements:
|
214
150
|
- - "~>"
|
215
151
|
- !ruby/object:Gem::Version
|
216
|
-
version: '1.
|
152
|
+
version: '1.3'
|
217
153
|
- !ruby/object:Gem::Dependency
|
218
154
|
name: hoe-git
|
219
155
|
requirement: !ruby/object:Gem::Requirement
|
@@ -234,28 +170,14 @@ dependencies:
|
|
234
170
|
requirements:
|
235
171
|
- - "~>"
|
236
172
|
- !ruby/object:Gem::Version
|
237
|
-
version: '1.
|
173
|
+
version: '1.5'
|
238
174
|
type: :development
|
239
175
|
prerelease: false
|
240
176
|
version_requirements: !ruby/object:Gem::Requirement
|
241
177
|
requirements:
|
242
178
|
- - "~>"
|
243
179
|
- !ruby/object:Gem::Version
|
244
|
-
version: '1.
|
245
|
-
- !ruby/object:Gem::Dependency
|
246
|
-
name: hoe-packaging
|
247
|
-
requirement: !ruby/object:Gem::Requirement
|
248
|
-
requirements:
|
249
|
-
- - "~>"
|
250
|
-
- !ruby/object:Gem::Version
|
251
|
-
version: '1.1'
|
252
|
-
type: :development
|
253
|
-
prerelease: false
|
254
|
-
version_requirements: !ruby/object:Gem::Requirement
|
255
|
-
requirements:
|
256
|
-
- - "~>"
|
257
|
-
- !ruby/object:Gem::Version
|
258
|
-
version: '1.1'
|
180
|
+
version: '1.5'
|
259
181
|
- !ruby/object:Gem::Dependency
|
260
182
|
name: hoe-rubocop
|
261
183
|
requirement: !ruby/object:Gem::Requirement
|
@@ -332,107 +254,108 @@ dependencies:
|
|
332
254
|
requirements:
|
333
255
|
- - "~>"
|
334
256
|
- !ruby/object:Gem::Version
|
335
|
-
version: '
|
257
|
+
version: '11.2'
|
336
258
|
type: :development
|
337
259
|
prerelease: false
|
338
260
|
version_requirements: !ruby/object:Gem::Requirement
|
339
261
|
requirements:
|
340
262
|
- - "~>"
|
341
263
|
- !ruby/object:Gem::Version
|
342
|
-
version: '
|
264
|
+
version: '11.2'
|
343
265
|
- !ruby/object:Gem::Dependency
|
344
266
|
name: rspec
|
345
267
|
requirement: !ruby/object:Gem::Requirement
|
346
268
|
requirements:
|
347
269
|
- - "~>"
|
348
270
|
- !ruby/object:Gem::Version
|
349
|
-
version: '3.
|
271
|
+
version: '3.5'
|
350
272
|
type: :development
|
351
273
|
prerelease: false
|
352
274
|
version_requirements: !ruby/object:Gem::Requirement
|
353
275
|
requirements:
|
354
276
|
- - "~>"
|
355
277
|
- !ruby/object:Gem::Version
|
356
|
-
version: '3.
|
278
|
+
version: '3.5'
|
357
279
|
- !ruby/object:Gem::Dependency
|
358
280
|
name: rubocop
|
359
281
|
requirement: !ruby/object:Gem::Requirement
|
360
282
|
requirements:
|
361
283
|
- - "~>"
|
362
284
|
- !ruby/object:Gem::Version
|
363
|
-
version: '0.
|
285
|
+
version: '0.42'
|
364
286
|
type: :development
|
365
287
|
prerelease: false
|
366
288
|
version_requirements: !ruby/object:Gem::Requirement
|
367
289
|
requirements:
|
368
290
|
- - "~>"
|
369
291
|
- !ruby/object:Gem::Version
|
370
|
-
version: '0.
|
292
|
+
version: '0.42'
|
371
293
|
- !ruby/object:Gem::Dependency
|
372
294
|
name: simplecov
|
373
295
|
requirement: !ruby/object:Gem::Requirement
|
374
296
|
requirements:
|
375
297
|
- - "~>"
|
376
298
|
- !ruby/object:Gem::Version
|
377
|
-
version: '0.
|
299
|
+
version: '0.12'
|
378
300
|
type: :development
|
379
301
|
prerelease: false
|
380
302
|
version_requirements: !ruby/object:Gem::Requirement
|
381
303
|
requirements:
|
382
304
|
- - "~>"
|
383
305
|
- !ruby/object:Gem::Version
|
384
|
-
version: '0.
|
306
|
+
version: '0.12'
|
385
307
|
- !ruby/object:Gem::Dependency
|
386
|
-
name:
|
308
|
+
name: manns_shared
|
387
309
|
requirement: !ruby/object:Gem::Requirement
|
388
310
|
requirements:
|
389
311
|
- - "~>"
|
390
312
|
- !ruby/object:Gem::Version
|
391
|
-
version: '0
|
313
|
+
version: '1.0'
|
392
314
|
type: :development
|
393
315
|
prerelease: false
|
394
316
|
version_requirements: !ruby/object:Gem::Requirement
|
395
317
|
requirements:
|
396
318
|
- - "~>"
|
397
319
|
- !ruby/object:Gem::Version
|
398
|
-
version: '0
|
320
|
+
version: '1.0'
|
399
321
|
- !ruby/object:Gem::Dependency
|
400
|
-
name:
|
322
|
+
name: rdoc
|
401
323
|
requirement: !ruby/object:Gem::Requirement
|
402
324
|
requirements:
|
403
325
|
- - "~>"
|
404
326
|
- !ruby/object:Gem::Version
|
405
|
-
version: '
|
327
|
+
version: '4.0'
|
406
328
|
type: :development
|
407
329
|
prerelease: false
|
408
330
|
version_requirements: !ruby/object:Gem::Requirement
|
409
331
|
requirements:
|
410
332
|
- - "~>"
|
411
333
|
- !ruby/object:Gem::Version
|
412
|
-
version: '
|
334
|
+
version: '4.0'
|
413
335
|
- !ruby/object:Gem::Dependency
|
414
336
|
name: hoe
|
415
337
|
requirement: !ruby/object:Gem::Requirement
|
416
338
|
requirements:
|
417
339
|
- - "~>"
|
418
340
|
- !ruby/object:Gem::Version
|
419
|
-
version: '3.
|
341
|
+
version: '3.16'
|
420
342
|
type: :development
|
421
343
|
prerelease: false
|
422
344
|
version_requirements: !ruby/object:Gem::Requirement
|
423
345
|
requirements:
|
424
346
|
- - "~>"
|
425
347
|
- !ruby/object:Gem::Version
|
426
|
-
version: '3.
|
348
|
+
version: '3.16'
|
427
349
|
description: |-
|
428
350
|
The youtube_dlhelper is a short tool for download and manage the downloaded files. You are running the program inside the command line with a Youtube URL. Then it aska for a
|
429
351
|
group name or interpreters name. Now it creates a Subfolder inside your Musicdirectory. Then it makes a MP3 from the downloaded file and moves it to the folder.
|
430
352
|
email:
|
431
|
-
-
|
353
|
+
- Sascha.Manns@mailbox.org
|
432
354
|
executables:
|
433
355
|
- youtube_dlhelper
|
434
356
|
extensions: []
|
435
357
|
extra_rdoc_files:
|
358
|
+
- CHANGELOG.md
|
436
359
|
- CODE_OF_CONDUCT.md
|
437
360
|
- CONTRIBUTING.md
|
438
361
|
- History.rdoc
|
@@ -442,26 +365,22 @@ extra_rdoc_files:
|
|
442
365
|
files:
|
443
366
|
- ".coveralls.yml"
|
444
367
|
- ".gemnasium.yml"
|
445
|
-
- ".gemrelease"
|
446
|
-
- ".index"
|
447
368
|
- ".rspec"
|
448
369
|
- ".rubocop.yml"
|
449
370
|
- ".scrutinizer.yml"
|
450
371
|
- ".travis.yml"
|
451
372
|
- ".yardopts"
|
373
|
+
- CHANGELOG.md
|
452
374
|
- CODE_OF_CONDUCT.md
|
453
375
|
- CONTRIBUTING.md
|
454
376
|
- Gemfile
|
455
377
|
- Gemfile.lock
|
456
378
|
- History.rdoc
|
457
|
-
- Index.yml
|
458
379
|
- LICENSE.rdoc
|
459
380
|
- Manifest.txt
|
460
381
|
- README.rdoc
|
461
382
|
- Rakefile
|
462
|
-
- VERSION
|
463
383
|
- bin/youtube_dlhelper
|
464
|
-
- circle.yml
|
465
384
|
- config.reek
|
466
385
|
- data/youtube_dlhelper/100px-youtube_dlhelper.png
|
467
386
|
- etc/youtube_dlhelper.conf
|
@@ -472,15 +391,14 @@ files:
|
|
472
391
|
- lib/youtube_dlhelper/import_config.rb
|
473
392
|
- lib/youtube_dlhelper/notifier.rb
|
474
393
|
- lib/youtube_dlhelper/ripper.rb
|
475
|
-
-
|
476
|
-
-
|
477
|
-
|
478
|
-
homepage: http://saigkill.github.io
|
394
|
+
- spec/lib_spec.rb
|
395
|
+
- spec/spec_helper.rb
|
396
|
+
homepage: http://saigkill.tuxfamily.org
|
479
397
|
licenses:
|
480
398
|
- MIT
|
481
399
|
metadata: {}
|
482
400
|
post_install_message: "*** Run rake setup to finish the installation *** Please file
|
483
|
-
bugreports and feature requests on: https://
|
401
|
+
bugreports and feature requests on: https://github.com/saigkill/youtube_dlhelper/issues"
|
484
402
|
rdoc_options:
|
485
403
|
- "--main"
|
486
404
|
- README.rdoc
|
@@ -490,7 +408,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
490
408
|
requirements:
|
491
409
|
- - ">="
|
492
410
|
- !ruby/object:Gem::Version
|
493
|
-
version: 2.2.
|
411
|
+
version: 2.2.3
|
494
412
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
495
413
|
requirements:
|
496
414
|
- - ">="
|
@@ -498,7 +416,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
498
416
|
version: '0'
|
499
417
|
requirements: []
|
500
418
|
rubyforge_project:
|
501
|
-
rubygems_version: 2.
|
419
|
+
rubygems_version: 2.6.6
|
502
420
|
signing_key:
|
503
421
|
specification_version: 4
|
504
422
|
summary: The youtube_dlhelper is a short tool for download and manage the downloaded
|