Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add defaultseason attribute to TV Show regex #704

Merged
merged 1 commit into from
Mar 30, 2012

Commits on Mar 19, 2012

  1. Add defaultseason attribute to TV Show regex

    Allow the default season to be set for TV shows. This will be used when
    no season is found in the filename. If no default is set, use 1 as the
    default season for the sake of both backwards compatability and to
    conform with the assumption that season 1 is the standard season, as
    opposed to season 0 (usually used for special episodes).
    
    Use of this feature is through the advancedsettings.xml configuration
    file, under the tvshowmatching tag. An example is as follows.
    
    <tvshowmatching action="append">
       <regexp defaultseason="0">[\._ \-]()S([0-9]{1,3})([^\\/]*)-</regexp>
       <regexp defaultseason="1">[\._ \-]()E([0-9]{1,3})([^\\/]*)-</regexp>
       <regexp>[\._ \-]()X([0-9]{1,3})([^\\/]*)-</regexp>
    </tvshowmatching>
    
    Here are some sample filenames run through these settings.
    
    Filename                XBMC Result  Comment
    'Foo - S001 - X.avi' => 'Foo - 0x1'  (Season forced to 0)
    'Foo - E001 - X.avi' => 'Foo - 1x1'  (Season forced to 1; not needed)
    'Foo - X001 - X.avi' => 'Foo - 1x1'  (Season defaulted to 1)
    Quentangle committed Mar 19, 2012
    Configuration menu
    Copy the full SHA
    71d53c3 View commit details
    Browse the repository at this point in the history