Skip to content

Commit

Permalink
Adding Fan edition
Browse files Browse the repository at this point in the history
  • Loading branch information
ratoaq2 committed Jul 16, 2017
1 parent b1bd480 commit 6d63341
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 10 deletions.
1 change: 1 addition & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ History
- Added `IMAX` as new `edition` possible value.
- Added `Upscaled` as new `other` possible value.
- Added `Ultimate` as new `edition` possible value.
- Added `Fan` as new `edition` possible value.

2.1.4 (2017-06-01)
------------------
Expand Down
4 changes: 2 additions & 2 deletions docs/properties.rst
Original file line number Diff line number Diff line change
Expand Up @@ -266,8 +266,8 @@ Other properties
Edition of the movie.

- ``Alternative Cut``, ``Collector``, ``Criterion``, ``Deluxe``, ``Director's Cut``, ``Director's Definitive Cut``,
``Extended``, ``Festival``, ``IMAX``, ``Remastered``, ``Special``, ``Limited``, ``Theatrical``, ``Ultimate``,
``Uncensored``, ``Uncut``, ``Unrated``
``Extended``, ``Fan``, ``Festival``, ``IMAX``, ``Remastered``, ``Special``, ``Limited``, ``Theatrical``,
``Ultimate``, ``Uncensored``, ``Uncut``, ``Unrated``


- **film**
Expand Down
2 changes: 2 additions & 0 deletions guessit/rules/properties/edition.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ def edition():
rebulk.string(value, value=value, tags=['has-neighbor', 'release-group-prefix'])
rebulk.string('Festival', value='Festival', tags=['has-neighbor-before', 'has-neighbor-after'])
rebulk.regex('imax', 'imax-edition', value='IMAX')
rebulk.regex('fan-edit(?:ion)?', 'fan-collection', value='Fan')
rebulk.regex('ultimate-edition', value='Ultimate')
rebulk.regex("ultimate-collector'?s?-edition", value=['Ultimate', 'Collector'])
rebulk.regex('ultimate-fan-edit(?:ion)?', 'ultimate-fan-collection', value=['Ultimate', 'Fan'])

return rebulk
5 changes: 5 additions & 0 deletions guessit/test/movies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1342,3 +1342,8 @@
audio_codec: Dolby Digital
release_group: DaDDy
type: movie

? Stargate SG1 Ultimate Fan Collection
: title: Stargate SG1
edition: [Ultimate, Fan]
type: movie
26 changes: 18 additions & 8 deletions guessit/test/rules/edition.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,26 @@
? IMAX Edition
: edition: IMAX

? ULTIMATE EDITION
? -ULTIMATE
? ultimate edition
? -ultimate
: edition: Ultimate

? ULTIMATE COLLECTOR EDITION
? ULTIMATE COLLECTOR'S EDITION
? ULTIMATE COLLECTORS EDITION
? -COLLECTORS EDITION
? -ULTIMATE EDITION
? ultimate collector edition
? ultimate collector's edition
? ultimate collectors edition
? -collectors edition
? -ultimate edition
: edition: [Ultimate, Collector]

? ULTIMATE COLLECTORS EDITION DC
? ultimate collectors edition dc
: edition: [Ultimate, Collector, Director's Cut]

? fan edit
? fan edition
? fan collection
: edition: Fan

? ultimate fan edit
? ultimate fan edition
? ultimate fan collection
: edition: [Ultimate, Fan]

0 comments on commit 6d63341

Please sign in to comment.