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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 74c56ee974321b929d25b090c0f2c7d39eff66ef
4
- data.tar.gz: a75f5e61f15dcca89307bde2fb21cf64c032dca1
3
+ metadata.gz: 75ab54a308560262c6b64101a1a3a6923a75eb45
4
+ data.tar.gz: 4c8e0367c2263a60b306cae98706411a5e5aed00
5
5
  SHA512:
6
- metadata.gz: 0a010c634ec2baa9f647378b4cc68e0a7cd18d1dc31023cdbda9fea717220a6fc3e482f93499bae24853db981266669fae7e48f0e0d09c327e0605322f479626
7
- data.tar.gz: 27b29a6f7b542d7902249d22c8e15366e7d72a72df6f0c1d6cb764a2735c945b3570542644e9d3fb338904cc8b423d918f6acb7ba4da88aabe7f41b5c00cc970
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 = "frasier s01e01 Pilot.mkv"
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
- @showname = showname.tr('.', ' ')
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
 
@@ -1,3 +1,3 @@
1
1
  module Addic7edDownloader
2
- VERSION = '1.0.3'.freeze
2
+ VERSION = '1.0.4'.freeze
3
3
  end
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.3
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-06 00:00:00.000000000 Z
11
+ date: 2016-07-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri