javlibrary 0.1.7 → 0.1.8

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
  SHA1:
3
- metadata.gz: 400dc5e350d0e2e374fa93d93ef5fec3b1e0a19c
4
- data.tar.gz: 366327f982fc3af29e393f46b4258cd8e7f6ee93
3
+ metadata.gz: 3204d91fb5359e40005debd6e1a4f6cbd80b65f7
4
+ data.tar.gz: d462b6f6297277771cc49de635002b67b6a66043
5
5
  SHA512:
6
- metadata.gz: b5c5011a04e9e98d51e048b9eef368ee1ebd552403c87a9ce9447693ce2ea5a5218fb7945901414830ae4a7d09278e1f6a4fab3adf680b0c337677e283bdd218
7
- data.tar.gz: c71b8295fa71cdae2a25fb769731b953c9b910a8c949b9a3a101291769cb653338fbbef74fa921062626801e9e6c9ace4071312abd99861c31962acba1f6bf4d
6
+ metadata.gz: 5b3f748cad73da167b527df87ff5af44825e40a92661244f7a80b04746a9ef5ec998f665007fab4ce6e5baf32357a37b681911ea8d0fa49fe2a670c1bafbe54b
7
+ data.tar.gz: 476c945a86260d10a2d956f7805d354c241b4bd83e91d95d0d2a405663aabf6b715d83ac3ddb52e0cda5b8a3b5b0f1e6ebfa6ca0553411128e3cf07454d6db07
data/README.md CHANGED
@@ -1,8 +1,6 @@
1
1
  # Javlibrary
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/javlibrary`. To experiment with that code, run `bin/console` for an interactive prompt.
4
-
5
- TODO: Delete this and the text above, and describe your gem
3
+ Fast, Easy way to download all JAV video info with this gem.
6
4
 
7
5
  ## Installation
8
6
 
@@ -22,7 +20,7 @@ Or install it yourself as:
22
20
 
23
21
  ## Usage
24
22
 
25
- TODO: Write usage instructions here
23
+ Create your own database
26
24
 
27
25
  ## Development
28
26
 
@@ -38,4 +36,3 @@ Bug reports and pull requests are welcome on GitHub at https://github.com/Yuanha
38
36
  ## License
39
37
 
40
38
  The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
41
-
@@ -50,7 +50,6 @@ module Javlibrary
50
50
  end
51
51
 
52
52
  def Javlibrary.video_info_insert(client, index, identifer, actor_hash, genres_hash)
53
- result = downloader(identifer)
54
53
  title, id, date, director, maker, label, cast_tmp, genres_tmp, img_url = downloader(identifer).split('$')
55
54
  cast = cast_tmp.split.reject(&:empty?)
56
55
  genres = genres_tmp.split.reject(&:empty?)
@@ -73,14 +72,14 @@ module Javlibrary
73
72
  end
74
73
 
75
74
  client.query("UPDATE label SET video_download=1 WHERE video_num=#{index}")
76
- return nil
75
+ client.close
77
76
  end
78
77
 
79
78
  def download_all_video
80
79
  client = Javlibrary.client
81
80
  result = client.query("SELECT video_num, video_label FROM label WHERE video_download=0")
82
81
  client.close
83
-
82
+
84
83
  video_array = Array.new
85
84
  result.each do |item|
86
85
  video_array << item
@@ -53,7 +53,7 @@ module Javlibrary
53
53
  client.query("INSERT INTO video (video_id,video_name,license,url,director,label,date,maker)
54
54
  VALUES (#{index},'#{title}','#{id}','#{img_url}','#{director}','#{label}','#{date}','#{maker}')")
55
55
  rescue
56
- return
56
+ return nil
57
57
  end
58
58
  cast.each do |a|
59
59
  a_tmp = actor_hash[a]
@@ -1,3 +1,3 @@
1
1
  module Javlibrary
2
- VERSION = "0.1.7"
2
+ VERSION = "0.1.8"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: javlibrary
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yuanhao Sun
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-05-28 00:00:00.000000000 Z
11
+ date: 2017-05-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler