addic7ed_downloader 1.0.5 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.travis.yml +1 -1
- data/bin/console +1 -1
- data/lib/addic7ed_downloader/common.rb +1 -1
- data/lib/addic7ed_downloader/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2a13fd0d854b5d94f42579104f096c7e07b07896
|
4
|
+
data.tar.gz: fbd7467d1e69fb425bb8e7bf7794735629344787
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5d90811e4b91a93471122955d697082c001d2811ebd238e6d1b585d22036fbf45e76ffd37f1c401436d21d6af95ba293be358c164a5cfadf39af935600129278
|
7
|
+
data.tar.gz: 791a16da0ad28571ccf727f98d0b2da22ffb66b0a5abcc34a09dac0a92037a632f01972fc6161f87607f76eaa02470a68f7f0a5447368815ece2973a09ca6d46
|
data/.travis.yml
CHANGED
data/bin/console
CHANGED
@@ -5,7 +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 = "
|
8
|
+
filename = "It's Always Sunny in Philadelphia s04e01 - Mac & Dennis Manhunters.avi"
|
9
9
|
search = Addic7edDownloader::Search.by_filename(filename)
|
10
10
|
|
11
11
|
# (If you use this, don't forget to add pry to your Gemfile!)
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module Addic7edDownloader
|
2
2
|
# Assuming: "SHOWNAME - SEASON&EPISODE - TAGS"
|
3
3
|
SEASON_EPISODE_REGEXP = /s(?<season>\d{1,2})e(?<episode>\d{1,2})|(?<season>\d{1,2})x(?<episode>\d{1,2})/i
|
4
|
-
SHOWNAME_REGEXP = /(?<showname>[\w\s\.]+?)[\s\.-]*?#{SEASON_EPISODE_REGEXP}/i
|
4
|
+
SHOWNAME_REGEXP = /(?<showname>['\w\s\.]+?)[\s\.-]*?#{SEASON_EPISODE_REGEXP}/i
|
5
5
|
TAGS_REGEXP = /#{SEASON_EPISODE_REGEXP}[\s\.-]?(?<tags>.*)/i # Get the end of file
|
6
6
|
TAGS_FILTER_REGEXP = /(?<!WEB)-(?!DL)|[\.\s\(\)\[\]]+/i # Filter '-', but not 'WEB-DL'
|
7
7
|
|