]> git.lizzy.rs Git - go-anidb.git/commit
misc: Be more cautious when merging partial ranges
authorDiogo Franco (Kovensky) <diogomfranco@gmail.com>
Wed, 17 Jul 2013 17:56:13 +0000 (14:56 -0300)
committerDiogo Franco (Kovensky) <diogomfranco@gmail.com>
Wed, 17 Jul 2013 17:56:13 +0000 (14:56 -0300)
commitf8f4b7f0667280ff1378548accba36d16cb0843c
tree3d5ee65ab38b5e6bcd058c1ffc93e807dbb46720
parent0875d0cbd4f3643928d307b6f1039aa34b224cbe
misc: Be more cautious when merging partial ranges

Change the touch() method to not accept touches where the left side is a
partial episode with unknown number of parts. If the number of parts is
known, then only accept if it's the last part.
misc/episoderange.go
misc/episoderange_test.go