[vlc-commits] filename: episode numbers can have more than 2 digits (fixes #14859)

Rémi Denis-Courmont git at videolan.org
Thu Jun 11 17:50:11 CEST 2015


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Jun 11 18:49:27 2015 +0300| [9ad76e4f4542b0ff4d20fc6dc0d395112da554b0] | committer: Rémi Denis-Courmont

filename: episode numbers can have more than 2 digits (fixes #14859)

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9ad76e4f4542b0ff4d20fc6dc0d395112da554b0
---

 share/lua/meta/reader/filename.lua |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/share/lua/meta/reader/filename.lua b/share/lua/meta/reader/filename.lua
index 24c3333f..4b557de 100644
--- a/share/lua/meta/reader/filename.lua
+++ b/share/lua/meta/reader/filename.lua
@@ -42,7 +42,7 @@ function read_meta()
 
     -- Find "Show.Name.S01E12-blah.avi"
     local title, seasonNumber
-    _, _, showName, seasonNumber, episodeNumber = string.find(name, "(.+)S(%d%d)E(%d%d).*")
+    _, _, showName, seasonNumber, episodeNumber = string.find(name, "(.+)S(%d+)E(%d+).*")
     if not showName then
         return
     end



More information about the vlc-commits mailing list