download_tv 2.0.4 → 2.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +13 -23
- data/bin/tv +7 -0
- data/lib/download_tv/configuration.rb +7 -1
- data/lib/download_tv/downloader.rb +1 -0
- data/lib/download_tv/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fd88d671bc69dcee56c936d14f317feaaa415760
|
4
|
+
data.tar.gz: 2b807730f5b28367e73c0b9aec62f4ddb485f858
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 83f01a44a0b2395b30c268cada25937f3b16e4134b1b35aff08ddb8312f1ceb7f3cd3c5849c4c261f49b21150931db18f5cdf13ca4c7ceda28a47d175a6609ce
|
7
|
+
data.tar.gz: cd47f6d44228bcc7cd23905fbe7393cff6456930ca1809488a3cb53418d371dcbfb5c48c013b74132d9affd752bfaa29a40f478169d33b58d6d0be4ae20b7e92
|
data/README.md
CHANGED
@@ -1,18 +1,17 @@
|
|
1
1
|
# download_tv
|
2
2
|
|
3
|
-
[](https://travis-ci.org/guille/download_tv)
|
4
|
+
[](https://badge.fury.io/rb/download_tv)
|
4
5
|
|
5
6
|
download_tv is a Ruby command line application that automatically downloads the new episodes from the shows you follow. It grabs the list of shows from your MyEpisodes account.
|
6
7
|
|
7
8
|
### Installation
|
8
9
|
|
9
|
-
|
10
|
-
|
11
|
-
Rename the config_example.rb to config.rb and modify it if needed.
|
10
|
+
`gem install download_tv`
|
12
11
|
|
13
12
|
### Usage
|
14
13
|
|
15
|
-
|
14
|
+
Once installed, you can launch the binary *tv*
|
16
15
|
|
17
16
|
```
|
18
17
|
Usage: tv [options]
|
@@ -21,30 +20,21 @@ Specific options:
|
|
21
20
|
-o, --offset OFFSET Move back the last run offset
|
22
21
|
-f, --file PATH Download shows from a file
|
23
22
|
-d, --download SHOW Downloads given show
|
24
|
-
|
23
|
+
-c, --configure Configures defaults
|
24
|
+
--show-config Show current configuration values
|
25
|
+
--dry-run Don't write to the date file
|
26
|
+
-a, --[no-]auto Automatically find links
|
27
|
+
-s, --[no-]subtitles Download subtitles
|
25
28
|
-h, --help Show this message
|
29
|
+
|
26
30
|
```
|
27
31
|
|
28
|
-
|
32
|
+
Four actions are recognised:
|
29
33
|
|
30
34
|
* By default, it fetches the list of episodes from MyEpisodes that have aired since the program was run for the last time and tries to download them. The -o flag can be used in order to re-download the episodes from previous days.
|
31
35
|
|
32
36
|
* In order to download a single episode, use the -d flag. Example: *tv -d Breaking Bad S04E01*
|
33
37
|
|
34
|
-
*
|
35
|
-
|
36
|
-
### Configuration
|
37
|
-
|
38
|
-
* myepisodes_user: String containing the username that will be used to log in to MyEpisodes. Set to an empty string to have the application ask for it in each execution.
|
39
|
-
|
40
|
-
* auto: Boolean value (true/false). Determines whether the application will try to automatically select a torrent using pre-determined filters or show the list to the user and let him choose.
|
41
|
-
|
42
|
-
* subs: Not implemented yet. Boolean value (true/false). Determines whether the application will try to find subtitles for the shows being downloaded.
|
43
|
-
|
44
|
-
* cookie_path: String containing a path to where the session cookie for MyEpisodes will be stored. Set it to "" to prevent the cookie from being stored.
|
45
|
-
|
46
|
-
* ignored: Array containing names of TV shows you follow in MyEpisodes but don't want to download. The strings should match the name of the show as displayed by MyEpisodes. Example: ["Boring Show 1", "Boring Show 2"],
|
47
|
-
|
48
|
-
* tpb_proxy: Base URL of the ThePirateBay proxy to use.
|
38
|
+
* he -f flag can be used to download a set of episodes. This option takes a text file as an argument. Each line of the file is interpreted as a episode to download. Example: *tv -f /path/to/listofeps*
|
49
39
|
|
50
|
-
*
|
40
|
+
* Finally, with -c you can edit your configuration defaults (your MyEpisodes user, whether to save the auth cookie or the shows you wish to ignore)
|
data/bin/tv
CHANGED
@@ -34,6 +34,10 @@ opt_parser = OptionParser.new do |opts|
|
|
34
34
|
options[:cmd] = "config"
|
35
35
|
end
|
36
36
|
|
37
|
+
opts.on("--show-config", "Show current configuration values") do |n|
|
38
|
+
options[:cmd] = "showconfig"
|
39
|
+
end
|
40
|
+
|
37
41
|
opts.on("--dry-run", "Don't write to the date file") do |n|
|
38
42
|
options[:dry] = n
|
39
43
|
end
|
@@ -65,6 +69,9 @@ begin
|
|
65
69
|
dl.download_from_file(options[:arg])
|
66
70
|
when "config"
|
67
71
|
DownloadTV::Configuration.new true
|
72
|
+
when "showconfig"
|
73
|
+
DownloadTV::Configuration.new.print_config
|
74
|
+
|
68
75
|
end
|
69
76
|
rescue Interrupt
|
70
77
|
puts "Interrupt signal detected. Exiting..."
|
data/lib/download_tv/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: download_tv
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- guille
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-06-
|
11
|
+
date: 2017-06-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|