download_tv 2.8.5 → 2.9.1

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
1
  ---
2
2
  SHA256:
3
- metadata.gz: f949ddf2dd0814373780e8b72b0186573f7b255b4704b1df13a4130cd86d0d08
4
- data.tar.gz: 85c530552c796b1ae499a705368290d14108f82931dee5cd867184552adaf8f5
3
+ metadata.gz: 3cdb39e4207086f289d3e0d2dcabe074cf24e4e74bd3aaefaabceb68e4958113
4
+ data.tar.gz: f960d0ef1b358b4d84d4e28cc470b96211f690d22f70e9ad4931e3536944519f
5
5
  SHA512:
6
- metadata.gz: f7cd21e015d34429eda44aed2ba7ebb1565bac83064ef512e634479b65890e46a9ac6e562378e5fe0fe926f00dcd7d07ed1b87e0a0962862db133591af35d9d5
7
- data.tar.gz: fc2f51385747ce6305214bdd5819edaa24d2e288c631d3648d30397d5e4250b9d70a664702a5be10c7f483e552cbed4e2a04e1cf69bb6acfb70f5f8bd97f2969
6
+ metadata.gz: 8de56b35aab493b54e628670c232d9ee920d26ac47afdf217f9a92ad4ef48929916e8964881b75c2e1d0b16237ea47654c26e64187e761233c67a15d2d681c61
7
+ data.tar.gz: '0670878252cc519acd6b8967229998b37ceaae6ce17127ac7a65d14728ae551094e88908cf6873d165d98a56693881288c185666999ed4ba712830116dbeb25a'
data/CHANGELOG.md CHANGED
@@ -2,6 +2,16 @@
2
2
 
3
3
  ## Next (unreleased)
4
4
 
5
+ ## 2.9.1 (2024-09-24)
6
+
7
+ * Grabbers
8
+ * Eztv: update hostname and fix hidden links
9
+
10
+ ## 2.9.0 (2024-09-22)
11
+
12
+ * Improvements
13
+ * Add -e option to edit configuration manually.
14
+
5
15
  ## 2.8.5 (2024-09-22)
6
16
 
7
17
  * Grabbers
data/README.md CHANGED
@@ -33,6 +33,7 @@ Specific options:
33
33
  -p, --pending Show list of pending downloads
34
34
  --clear-pending Clear list of pending downloads
35
35
  -q, --queue SHOW Add show episode to pending downloads list
36
+ -e, --edit Open configuration with $EDITOR
36
37
  -v, --version Print version
37
38
  -h, --help Show this message
38
39
  ```
data/bin/tv CHANGED
@@ -82,6 +82,12 @@ opt_parser = OptionParser.new do |opts|
82
82
  options[:arg] = s
83
83
  end
84
84
 
85
+ opts.on('-e', '--edit', 'Open configuration with $EDITOR') do
86
+ path = DownloadTV::Configuration.new.config_path
87
+ Process.detach(Process.spawn("$EDITOR #{path}"))
88
+ exit
89
+ end
90
+
85
91
  opts.on('-v', '--version', 'Print version') do
86
92
  puts DownloadTV::VERSION
87
93
  exit
@@ -44,6 +44,10 @@ module DownloadTV
44
44
  serialize
45
45
  end
46
46
 
47
+ def config_path
48
+ (content[:path] || default_config_path)
49
+ end
50
+
47
51
  private
48
52
 
49
53
  def content
@@ -127,10 +131,6 @@ module DownloadTV
127
131
  self[:filters][:excludes] = read_and_split_list :upcase
128
132
  end
129
133
 
130
- def config_path
131
- (content[:path] || default_config_path)
132
- end
133
-
134
134
  def default_config_path
135
135
  File.join(ENV['HOME'], '.config', 'download_tv', 'config')
136
136
  end
@@ -5,11 +5,12 @@ module DownloadTV
5
5
  # EZTV.ag grabber
6
6
  class Eztv < LinkGrabber
7
7
  def initialize
8
- super('https://eztv.ag/search/%s')
8
+ super('https://eztvx.to/search/%s')
9
9
  end
10
10
 
11
11
  def get_links(show)
12
12
  raw_data = agent.get(format(@url, show))
13
+ raw_data = raw_data.forms.last.submit # Show links button
13
14
  raw_seeders = raw_data.search('td.forum_thread_post_end').map { |e| e.children[0].text.to_i }
14
15
  raw_links = raw_data.search('a.magnet').sort_by.with_index { |_, index| raw_seeders[index] }.reverse
15
16
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DownloadTV
4
- VERSION = '2.8.5'
4
+ VERSION = '2.9.1'
5
5
  end
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.8.5
4
+ version: 2.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - guille
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-09-22 00:00:00.000000000 Z
11
+ date: 2024-09-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler