forked from hummypkg/webif
Merge pull request 'Understand Part/Pt. as a synonym for episode' (#31) from df/webif:df-partasepisode-patch into master
Reviewed-on: hummypkg/webif#31
This commit is contained in:
commit
907d9d8dcf
|
@ -697,6 +697,14 @@ ts method extract_numbers {} {
|
|||
regexp -nocase -- {S\.*(\d+),?\s*Ep\.?\s*(\d+)(/(\d+))?} $synopsis \
|
||||
x seriesnum episodenum x episodetot
|
||||
|
||||
# (Part 5/10)
|
||||
# (Pt. 5/10)
|
||||
# (Part 5 of 10)
|
||||
# (Pt. 5 of 10)
|
||||
# (Pt5)
|
||||
regexp -nocase -- {P(art|t\.?)\s*(\d+)\s*(of|/)?\s*(\d+)?} $synopsis \
|
||||
x x episodenum x episodetot
|
||||
|
||||
foreach v {seriesnum episodenum episodetot} {
|
||||
if {[set $v] eq ""} {
|
||||
set $v 0
|
||||
|
|
Loading…
Reference in New Issue