Understand Part/Pt. as a synonym for episode

This commit is contained in:
df 2021-01-01 22:33:14 +00:00
parent 2e471129b8
commit 6641b6f458

View File

@ -697,6 +697,14 @@ ts method extract_numbers {} {
regexp -nocase -- {S\.*(\d+),?\s*Ep\.?\s*(\d+)(/(\d+))?} $synopsis \ regexp -nocase -- {S\.*(\d+),?\s*Ep\.?\s*(\d+)(/(\d+))?} $synopsis \
x seriesnum episodenum x episodetot 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} { foreach v {seriesnum episodenum episodetot} {
if {[set $v] eq ""} { if {[set $v] eq ""} {
set $v 0 set $v 0