lib/dvdprofiler2xbmc/app_config.rb in royw-dvdprofiler2xbmc-0.1.0 vs lib/dvdprofiler2xbmc/app_config.rb in royw-dvdprofiler2xbmc-0.1.2

- old
+ new

@@ -399,50 +399,50 @@ ':extension will be assigned the second match ([^.]+).', 'Valid tokens are: :title, :year, :resolution, :part, :extension' ].join("\n") @initial.media_parsers = [ # "movie title - yyyy[res].partN.ext" - {:regex => /^\s*(.*\S)\s*\-\s*(\d{4})\s*\[(\S*)\]\s*\.(cd\d+|pt\d+|disk\d+|disc\d+)\.([^.]+)\s*$/, + {:regex => /^\s*(.*\S)\s*\-\s*(0|\d{4})\s*\[(\S*)\]\s*\.(cd\d+|pt\d+|disk\d+|disc\d+)\.([^.]+)\s*$/, :tokens => [:title, :year, :resolution, :part, :extension] }, # "movie title (yyyy)[res].partN.ext" - {:regex => /^\s*(.*\S)\s*\(\s*(\d{4})\s*\)\s*\[(\S*)\]\s*\.(cd\d+|pt\d+|disk\d+|disc\d+)\.([^.]+)\s*$/, + {:regex => /^\s*(.*\S)\s*\(\s*(0|\d{4})\s*\)\s*\[(\S*)\]\s*\.(cd\d+|pt\d+|disk\d+|disc\d+)\.([^.]+)\s*$/, :tokens => [:title, :year, :resolution, :part, :extension] }, # "movie title[res].partN.ext" {:regex => /^\s*(.*\S)\s*\[(\S*)\]\s*\.(cd\d+|pt\d+|disk\d+|disc\d+)\.([^.]+)\s*$/, :tokens => [:title, :resolution, :part, :extension] }, # "movie title - yyyy[res].ext" - {:regex => /^\s*(.*\S)\s*\-\s*(\d{4})\s*\[(\S*)\]\s*\.([^.]+)\s*$/, + {:regex => /^\s*(.*\S)\s*\-\s*(0|\d{4})\s*\[(\S*)\]\s*\.([^.]+)\s*$/, :tokens => [:title, :year, :resolution, :extension] }, # "movie title (yyyy)[res].ext" - {:regex => /^\s*(.*\S)\s*\(\s*(\d{4})\s*\)\s*\[(\S*)\]\s*\.([^.]+)\s*$/, + {:regex => /^\s*(.*\S)\s*\(\s*(0|\d{4})\s*\)\s*\[(\S*)\]\s*\.([^.]+)\s*$/, :tokens => [:title, :year, :resolution, :extension] }, # "movie title[res].ext" {:regex => /^\s*(.*\S)\s*\[(\S*)\]\s*\.([^.]+)\s*$/, :tokens => [:title, :resolution, :extension] }, # "movie title - yyyy.partN.ext" - {:regex => /^\s*(.*\S)\s*\-\s*(\d{4})\s*\.(cd\d+|pt\d+|disk\d+|disc\d+)\.([^.]+)\s*$/, + {:regex => /^\s*(.*\S)\s*\-\s*(0|\d{4})\s*\.(cd\d+|pt\d+|disk\d+|disc\d+)\.([^.]+)\s*$/, :tokens => [:title, :year, :part, :extension] }, # "movie title (yyyy).partN.ext" - {:regex => /^\s*(.*\S)\s*\(\s*(\d{4})\s*\)\s*\.(cd\d+|pt\d+|disk\d+|disc\d+)\.([^.]+)\s*$/, + {:regex => /^\s*(.*\S)\s*\(\s*(0|\d{4})\s*\)\s*\.(cd\d+|pt\d+|disk\d+|disc\d+)\.([^.]+)\s*$/, :tokens => [:title, :year, :part, :extension] }, # "movie title.partN.ext" {:regex => /^\s*(.*\S)\s*\.(cd\d+|pt\d+|disk\d+|disc\d+)\.([^.]+)\s*$/, :tokens => [:title, :part, :extension] }, # "movie title - yyyy.ext" - {:regex => /^\s*(.*\S)\s*\-\s*(\d{4})\s*\.([^.]+)\s*$/, + {:regex => /^\s*(.*\S)\s*\-\s*(0|\d{4})\s*\.([^.]+)\s*$/, :tokens => [:title, :year, :extension] }, # "movie title (yyyy).ext" - {:regex => /^\s*(.*\S)\s*\(\s*(\d{4})\s*\)\s*\.([^.]+)\s*$/, + {:regex => /^\s*(.*\S)\s*\(\s*(0|\d{4})\s*\)\s*\.([^.]+)\s*$/, :tokens => [:title, :year, :extension] }, # "movie title.ext" {:regex => /^\s*(.*\S)\s*\.([^.]+)\s*$/, :tokens => [:title, :extension]