1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Test cases for extract_season()
# season/label are the expected (u32, String) pair. Omit both for None.
[[]]
= "Show S01"
= 1
= "S1"
[[]]
= "Dr. Stone Season 3"
= 3
= "S3"
[[]]
= "Dr. Stone [Season 3 + Specials]"
= 3
= "S3"
= "brackets are now stripped so Season is visible"
[[]]
= "Show.S02.1080p"
= 2
= "S2"
[[]]
= "Show S01E04 Title"
= 1
= "S1"
[[]]
= "Les Revenants Saison 2"
= 2
= "S2"
[[]]
= "Amadeus 1984 4K HDR"
= "no season"