Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(source): add support for LDRip and Laserdisc #791

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions guessit/rules/properties/source.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,12 @@ def demote_other(match, other): # pylint: disable=unused-argument
rebulk.regex(*build_source_pattern('VIDEO-?TS', 'DVD-?R(?:$|(?!E))', # 'DVD-?R(?:$|^E)' => DVD-Real ...
'DVD-?9', 'DVD-?5'), value='DVD')

# LD also means "Line Dubbed", so we only interpret this as Laserdisc with a Rip suffix.
rebulk.regex(*build_source_pattern('LD', suffix=rip_suffix),
value={'source': 'LD', 'other': 'Rip'})
rebulk.regex(*build_source_pattern('laserdisc', suffix=optional(rip_suffix)),
value={'source': 'LD', 'other': 'Rip'})

rebulk.regex(*build_source_pattern('HD-?TV', suffix=optional(rip_suffix)), conflict_solver=demote_other,
value={'source': 'HDTV', 'other': 'Rip'})
rebulk.regex(*build_source_pattern('TV-?HD', suffix=rip_suffix), conflict_solver=demote_other,
Expand Down
15 changes: 15 additions & 0 deletions guessit/test/movies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1630,6 +1630,21 @@
release_group: MANTESH
type: movie

? Some.Title.1983.LDRip.x264
: title: Some Title
year: 1983
source: LD
other: Rip
video_codec: H.264
type: movie

? Some.Title.1983.Laserdisc.x264
: title: Some Title
year: 1983
source: LD
video_codec: H.264
type: movie

? Family.Katta.2016.1080p.WEB-DL.H263.DD5.1.ESub-DDR
: title: Family Katta
year: 2016
Expand Down
Loading