Advertisement
Guest User

ttvdb.conf

a guest
Sep 15th, 2012
218
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.56 KB | None | 0 0
  1. [File ttvdb-example.conf]
  2. #-------------------------------------
  3. # Name: ttvdb-example.conf
  4. # Project: ttvdb
  5. # Configuration file
  6. # Author: R.D. Vaughan
  7. # Version: 0.1.0 - Initial alpha release
  8. # Version: 0.8.9 - version changed to match the current ttvdb release number
  9. # Version: 0.9.5 - Changed regex pattern strings to support multi-langiage file names
  10. #
  11. # License:Creative Commons GNU GPL v2
  12. # (http://creativecommons.org/licenses/GPL/2.0/)
  13. #-------------------------------------
  14. #
  15. # START season name overrides section --------------------------------------------------------------
  16. #####
  17. # PURPOSE: TV program sources such as Schedule Direct series names do not always match the series
  18. # names on thetvdb.com. This section allow you to override series names to reduce the
  19. # need for manual interaction and more accurate matching with thetvdb.com TV series wiki.
  20. #
  21. # FORMAT:
  22. # Any line starting with "#" is treated as a comment
  23. # Any blank line is ignored
  24. # All other lines must have two fields in this specific order:
  25. # 1st) The series name or the %TITLE% field as passed by MythTV and a trailing ':' character
  26. # 2nd) The thetvdb.com series id (SID) as specified for the series on thetvdb.com wiki. This will
  27. # override the series name to eliminate the need for manual interaction.
  28. # NOTE: Included here. but disabled are examples of current (2009) TV shows that Schedule Direct
  29. # has different TV series names then what is on thetvdb.com wiki. If you are searching for
  30. # series based on the Schedule Direct names as MythTV does then the wrong TV series will be
  31. # identified. You can pick the correct series by using interactive mode but this does not
  32. # help with unattended processing. This section allows you to specify the correct TV series
  33. # on thetvbd.com despite the name in Schedule Direct. Luckily there are not many TV series
  34. # that require overrides.
  35. #####
  36. [series_name_override]
  37. # Specify recorded "Life On Mars" shows as the US version
  38. #Life on Mars:82289
  39. # For overnight episode updates when a filename is used
  40. #Life on Mars (US):82289
  41.  
  42. # Specify recorded "Eleventh Hour" shows as the US version
  43. #Eleventh Hour:83066
  44. # For overnight episode updates when a filename is used
  45. #Eleventh Hour (US):83066
  46.  
  47. # Specify recorded "Frontline" or "Frontline/World" shows as the "Frontline PBS" version
  48. #Frontline/World:80646
  49. #Frontline:80646
  50.  
  51. # Specify recorded "The Beast" shows are the 2009 version
  52. #The Beast:83805
  53. # For overnight episode updates when a filename is used
  54. #The Beast (2009):83805
  55.  
  56. # Specify recorded "Castle" shows are the 2009 version
  57. #Castle:83462
  58. # For overnight episode updates when a filename is used
  59. #Castle (2009):83462
  60.  
  61. # Specify recorded "Battlestar Galactica" shows are the 2003 version
  62. #Battlestar Galactica:73545
  63. # For overnight episode updates when a filename is used
  64. #Battlestar Galactica (2003):73545
  65. # END season name overrides section --------------------------------------------------------------
  66.  
  67. # START episode name massaging section --------------------------------------------------------------
  68. #####
  69. # PURPOSE: TV program sources such as Schedule Direct episode names do not always match the episode
  70. # names on thetvdb.com. This section allow you to massage episode names to reduce the
  71. # need for manual interaction and more accurate matching with thetvdb.com TV series wiki.
  72. # Alter the episode names for a series to reduce the need for manual interaction
  73. # and more accurate matching with thetvdb.com TV series wiki. See example below.
  74. #
  75. # FORMAT:
  76. # All lines must in the following format:
  77. # 1st) The series name or the %TITLE% field as passed by MythTV and a trailing ':' character
  78. # 2nd) Pairs of values separated by commas. The first value is the search text to match to text within
  79. # the episode name such as the %SUBTITLE% field passed by MythTV and the text to replace the
  80. # matched searched text. If the replacement text contains a space then surround that text with
  81. # the '"' double quotation characters.
  82. # E.g. "24": PM," PM", AM, " AM" will turn the episode name
  83. # "Day 7: 11:00AM to 12:00PM" into "Day 7: 11:00 AM to 12:00 PM"
  84. #
  85. #####
  86. [ep_name_massage]
  87. #24: PM," PM", AM, " AM",M-,"M - "
  88. # END episode name massaging section --------------------------------------------------------------
  89.  
  90. # START regex section------------------------------------------------------------------------------
  91. #####
  92. # NOTE: If you do not understand regex expressions DO NOT USE this section.
  93. # PURPOSE: This section adds regex strings used to parse video file names when extracting
  94. # the following: series name, season number, episode number. Essential when downloading
  95. # metadata from mythtvfrontend->mythvideo when using ttvdb. You only need to add a regex
  96. # string if ttvdb cannot extract the required information from your video file names.
  97. # NOTE: ANY % percent sign in the expression must be doubled (e.g. a % must be changed to %% )
  98. # NOTE: The key value (e.g. "regex##") must be unique for each value.
  99. # NOTE: DO NOT surround the regex pattern string with the traditional ''' three single quotes
  100. #
  101. # "regex01" is an example video file name "foo_S01_12" where:
  102. # series name is "foo", season number starts at "S" and episode number starts after '_'
  103. # foo_[s01]_[e01]
  104. #####
  105. [regex]
  106. # foo_S01_12
  107. regex01: ^(.+?)[ \._\-][Ss]([0-9]+)_([0-9]+)[^\\/]*$
  108. # END regex section------------------------------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement