This removes unused code from subliminal_patch's core. Thanks to refining, we don't need extra magic to guess from filenames anymore.pull/1944/head v1.1.1-beta.20
parent
26082780d5
commit
09d1eb78c9
@ -0,0 +1,19 @@
|
||||
from pathlib import Path
|
||||
|
||||
from subliminal_patch import core
|
||||
|
||||
|
||||
def test_scan_video_movie(tmpdir):
|
||||
video_path = Path(tmpdir, "Taxi Driver 1976 Bluray 720p x264.mkv")
|
||||
video_path.touch()
|
||||
|
||||
result = core.scan_video(str(video_path))
|
||||
assert isinstance(result, core.Movie)
|
||||
|
||||
|
||||
def test_scan_video_episode(tmpdir):
|
||||
video_path = Path(tmpdir, "The Wire S01E01 Bluray 720p x264.mkv")
|
||||
video_path.touch()
|
||||
|
||||
result = core.scan_video(str(video_path))
|
||||
assert isinstance(result, core.Episode)
|
Loading…
Reference in new issue