vore 0.2.4-arm64-linux → 0.2.6-arm64-linux

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: 4b261eae08bf1c5fd0df868ae9f10e3b6b96ebf7830de487eda3d87d9c064b20
4
- data.tar.gz: 26cc826e4e888a8763f06e2707fba63f08266c5b6037550646eac6ecddca6136
3
+ metadata.gz: 72fc70a334c49c0cd3d49fa18a0754e593024555276c128503f6d2897c3bb25a
4
+ data.tar.gz: 47d4b811f806876617702d1d599848eaa3948f4ebae715a686d05919a37a9f1c
5
5
  SHA512:
6
- metadata.gz: c01bc40549d4b542ee4f30b1998ebfba4b440afe18a091a51f4f16f11ead4fdbd058d12a3cfe0d22f022de90dd61b6d4818b9edd1defe7856f45a2d7de1974f3
7
- data.tar.gz: dfd75666b0e4eaed180bedd44f8bc1962a5755d5fdc013eeab6e9021f445354d7e6dbddadaafcd9633025b1bda0971bdf9875927277f3ee69693163a18494967
6
+ metadata.gz: 5b6d5a89270fdf1b4630cc09ea1e7e0e9622b3af61a5965ba48718a2b6b2706d5984f59ffa510a8b192910604e7a1ff79f3b373466f3181d3f69ebd714bad3e3
7
+ data.tar.gz: 9906bcb9a83a4ea7c12de3be523fa3b534a6e0faeb2bf4dcc586a3e097c4efc5fd511d091641a902b4b050be6cff65e25809fb453298b587074aeda8ae3f932d
data/lib/vore/crawler.rb CHANGED
@@ -31,7 +31,7 @@ module Vore
31
31
 
32
32
  output = %x(#{@executable} \
33
33
  --user-agent #{user_agent} \
34
- --delay 3000 \
34
+ --delay 3500 \
35
35
  --url #{website} \
36
36
  download \
37
37
  -t \
@@ -48,16 +48,26 @@ module Vore
48
48
  Dir.glob(File.join(output_dir, "**", "*")).each do |path|
49
49
  next unless File.file?(path)
50
50
 
51
+ results[:pages_visited] += 1
52
+
51
53
  html_file = File.read(path).force_encoding("UTF-8")
52
- rewritten_html_file = @selma.rewrite(html_file)
54
+ rewritten_html_file = ""
53
55
 
54
- results[:pages_visited] += 1
55
- if rewritten_html_file.empty?
56
+ if html_file.empty?
57
+ Vore.logger.warn("HTML file empty: #{path}")
56
58
  results[:pages_unprocessed] += 1
57
59
  results[:unprocessed_pages] << path
58
60
  next
59
61
  end
60
62
 
63
+ begin
64
+ rewritten_html_file = @selma.rewrite(html_file)
65
+ rescue StandardError => e
66
+ Vore.logger.warn("Error rewriting #{path}: #{e}")
67
+ results[:pages_unprocessed] += 1
68
+ next
69
+ end
70
+
61
71
  # drops the first 3 parts of the path, which are "tmp", "vore", and the site name
62
72
  url_path = path.split(FILE_SEPERATOR)[3..].join("/")
63
73
 
data/lib/vore/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Vore
4
- VERSION = "0.2.4"
4
+ VERSION = "0.2.6"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vore
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.6
5
5
  platform: arm64-linux
6
6
  authors:
7
7
  - Garen J. Torikian