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 +4 -4
- data/README.md +1 -1
- data/lib/subfinder/subtitle.rb +2 -1
- data/lib/subfinder/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 610f117bf18b92c7763e1935ef4a93e6db08d7ca50610d6ecb56d37f30c8c110
|
4
|
+
data.tar.gz: 5bd457df8a05463939e1fc7a4e04c4bea8382921faa7e49055aab698cb5a74e2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
|
data/lib/subfinder/subtitle.rb
CHANGED
@@ -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/)
|
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)
|
data/lib/subfinder/version.rb
CHANGED