Skip to content

Commit

Permalink
#470: Added Upscaled as other property
Browse files Browse the repository at this point in the history
  • Loading branch information
ratoaq2 committed Jul 15, 2017
1 parent 49983b3 commit 46d4c51
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 3 deletions.
1 change: 1 addition & 0 deletions HISTORY.rst
Expand Up @@ -5,6 +5,7 @@ History
------------------

- Added `IMAX` as new `edition` possible value.
- Added `Upscaled` as new `other` possible value.


2.1.4 (2017-06-01)
Expand Down
4 changes: 2 additions & 2 deletions docs/properties.rst
Expand Up @@ -294,6 +294,6 @@ Other properties
``HD``, ``High Quality``, ``High Resolution``, ``Internal``, ``Line Dubbed``, ``Line Audio``, ``Mic Dubbed``,
``Micro HD``, ``Mux``, ``NTSC``, ``Open Matte``, ``Original Aspect Ratio``, ``Original Video``, ``PAL``, ``Preair``,
``Proper``, ``PS Vita``, ``Read NFO``, ``Region 5``, ``Region C``, ``Reencoded``, ``Remux``, ``Retail``, ``Rip``,
``Screener``, ``SECAM``, ``Straight to Video``, ``Sync Fixed``, ``Trailer``, ``Ultra HD``, ``West Coast Feed``,
``Widescreen``, ``XXX``
``Screener``, ``SECAM``, ``Straight to Video``, ``Sync Fixed``, ``Trailer``, ``Ultra HD``, ``Upscaled``,
``West Coast Feed``, ``Widescreen``, ``XXX``

1 change: 1 addition & 0 deletions guessit/rules/properties/other.py
Expand Up @@ -83,6 +83,7 @@ def validate_complete(match):
tags=['streaming_service.prefix', 'streaming_service.suffix'])
rebulk.regex('Ultra-?(?:HD)?', 'UHD', value='Ultra HD', validator=None,
tags=['streaming_service.prefix', 'streaming_service.suffix'])
rebulk.regex('Upscaled?', value='Upscaled')

for value in ('Complete', 'Classic', 'Bonus', 'Trailer', 'Retail',
'Colorized', 'Internal'):
Expand Down
19 changes: 19 additions & 0 deletions guessit/test/movies.yml
Expand Up @@ -1208,3 +1208,22 @@
language: [hindi, english]
release_group: ETRG
type: movie

? The.Martian.2015.4K.UHD.UPSCALED-ETRG
: title: The Martian
year: 2015
screen_size: 2160p
other: [Ultra HD, Upscaled]
release_group: ETRG
type: movie

? Delibal 2015 720p Upscale DVDRip x264 DD5.1 AC3
: title: Delibal
year: 2015
screen_size: 720p
other: [Upscaled, Rip]
source: DVD
video_codec: H.264
audio_codec: Dolby Digital
audio_channels: '5.1'
type: movie
6 changes: 5 additions & 1 deletion guessit/test/rules/other.yml
Expand Up @@ -150,4 +150,8 @@
: other: Converted

? +HDRIP # it's a Rip from non specified HD source
: other: [HD, Rip]
: other: [HD, Rip]

? Upscaled
? Upscale
: other: Upscaled

0 comments on commit 46d4c51

Please sign in to comment.