subfinder 0.0.2.1 → 0.0.2.3

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: 4848f8e63a2a66aabd4879ac43d98feafaf76b979d85e78d1860f07d16a9cc46
4
- data.tar.gz: 7f3521fdb93cd7bcb03c9a0b3fed9bc605599485873e18d2572bd17539e99cbc
3
+ metadata.gz: 610f117bf18b92c7763e1935ef4a93e6db08d7ca50610d6ecb56d37f30c8c110
4
+ data.tar.gz: 5bd457df8a05463939e1fc7a4e04c4bea8382921faa7e49055aab698cb5a74e2
5
5
  SHA512:
6
- metadata.gz: c11fb2f85796730427311234708f9f5177c610b8e0aa7cfa7e0be28ad4071758c1f5698ad116d34adfaf1d6874e81b383bc8a99931907aaec57232046b163f75
7
- data.tar.gz: 6d00f649041b8213438e0c350661a77e2c737d942c66a9c1096f1a830ddcdc890863f4013bdb0c1794f61d950d1a723c66cc758d3c11ff5830fa5b454f9064f4
6
+ metadata.gz: 46b169de707fb2098a55c723d2d19a19ac7279e55a2e6665ca5766182fb08f244e697a04b5575da3f41fbf087b6c9df46bd7452c061319da5251f88ff2ea5f7a
7
+ data.tar.gz: ec816d2c01e1cd8c377fa10df69868f428bb9931e15f0115ac3504b976768f6fb0752b5a0db9962e18afaa38c2e9fd2715c089d36f9ee855f6e359f933922602
data/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
  [![CircleCI](https://circleci.com/gh/sizief/subfinder.svg?style=svg)](https://circleci.com/gh/sizief/subfinder) [![Maintainability](https://api.codeclimate.com/v1/badges/847c36c4319bef81de03/maintainability)](https://codeclimate.com/github/sizief/subfinder/maintainability)
3
3
  [![Gem Version](https://badge.fury.io/rb/subfinder.svg)](https://badge.fury.io/rb/subfinder)
4
4
 
5
-
5
+ **This Gem only works for video files with `S[Number]E[Number]` (i.e., S01E02) format in their names.**
6
6
 
7
7
  # Subfinder
8
8
 
@@ -26,7 +26,8 @@ module Subfinder
26
26
  private
27
27
 
28
28
  def episode_number(video_file)
29
- video_file.scan(/[a-zA-Z]+\d+\d+[a-zA-Z]+\d+\d/).first.downcase
29
+ episode = video_file.scan(/[a-zA-Z]+\d+\d+[a-zA-Z]+\d+\d/)
30
+ episode.empty? ? nil : episode.first.downcase
30
31
  end
31
32
 
32
33
  def subtitle_exists?(video_file)
@@ -1,3 +1,3 @@
1
1
  module Subfinder
2
- VERSION = '0.0.2.1'.freeze
2
+ VERSION = '0.0.2.3'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: subfinder
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2.1
4
+ version: 0.0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - sizief