[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:41 CEST 2015
vlc/vlc-2.2 | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Jun 11 18:49:27 2015 +0300| [b4bd8778947e4f5a1f9bcfbf709d1fb9197c4aa0] | committer: Rémi Denis-Courmont
filename: episode numbers can have more than 2 digits (fixes #14859)
(cherry picked from commit 9ad76e4f4542b0ff4d20fc6dc0d395112da554b0)
> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.2.git/?a=commit;h=b4bd8778947e4f5a1f9bcfbf709d1fb9197c4aa0
---
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