addic7ed_downloader 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/console +1 -2
- data/lib/addic7ed_downloader/search.rb +2 -1
- data/lib/addic7ed_downloader/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: 75ab54a308560262c6b64101a1a3a6923a75eb45
|
4
|
+
data.tar.gz: 4c8e0367c2263a60b306cae98706411a5e5aed00
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9f60200e2a25a75ee0c6c7fa355577fd69916337b5302835f848a905ccb519c7f1f5c11d06fad6d23843fedd1d2d6f68e3fa594fb678b9cdf31e46810d70cad8
|
7
|
+
data.tar.gz: eee2a1988aafb6db4bdb935d1722a77e6a3850e019b92b7292be1d37870bec0e7e83b7a450a959e230ac131eaf93c171881902a121574261f7a204a713e8ae11
|
data/bin/console
CHANGED
@@ -5,8 +5,7 @@ require 'addic7ed_downloader'
|
|
5
5
|
|
6
6
|
# You can add fixtures and/or initialization code here to make experimenting
|
7
7
|
# with your gem easier. You can also use a different console, if you like.
|
8
|
-
filename = "
|
9
|
-
filename = 'Game.of.Thrones.S06E03.Oathbreaker.1080p.WEB-DL.DD5.1.H264-NTb[rartv].mkv'
|
8
|
+
filename = "mr. robot s02e01"
|
10
9
|
search = Addic7edDownloader::Search.by_filename(filename)
|
11
10
|
|
12
11
|
# (If you use this, don't forget to add pry to your Gemfile!)
|
@@ -24,7 +24,8 @@ module Addic7edDownloader
|
|
24
24
|
end
|
25
25
|
|
26
26
|
def initialize(showname, season, episode, options = {})
|
27
|
-
|
27
|
+
# Replace dots with spaces only if not followed by a space (Mr. Robot)
|
28
|
+
@showname = showname.gsub(/\.(\S)/, ' \1')
|
28
29
|
@season = season.to_i
|
29
30
|
@episode = episode.to_i
|
30
31
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: addic7ed_downloader
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Marchante
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-07-
|
11
|
+
date: 2016-07-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|