<?xml version="1.0" encoding="UTF-8"?>
<tickets type="array">
  <ticket>
    <assigned-user-id type="integer">24396</assigned-user-id>
    <attachments-count type="integer">0</attachments-count>
    <closed type="boolean">false</closed>
    <created-at type="datetime">2009-11-18T02:46:16+10:30</created-at>
    <creator-id type="integer">46805</creator-id>
    <milestone-due-on type="datetime" nil="true"></milestone-due-on>
    <milestone-id type="integer">40646</milestone-id>
    <number type="integer">67</number>
    <permalink>feature-request-parental-guidelines-support-in-v20</permalink>
    <priority type="integer">16</priority>
    <project-id type="integer">13342</project-id>
    <raw-data type="binary" nil="true" encoding="base64"></raw-data>
    <state>open</state>
    <tag>improvement &quot;parental guidelines&quot; tvdb_api</tag>
    <title>Feature Request: Parental guidelines support in v2.0</title>
    <updated-at type="datetime">2009-11-19T02:55:47+10:30</updated-at>
    <user-id type="integer">24396</user-id>
    <user-name>dbr/Ben</user-name>
    <creator-name>RDV</creator-name>
    <assigned-user-name>dbr/Ben</assigned-user-name>
    <url>http://dbr.lighthouseapp.com/projects/13342/tickets/67</url>
    <milestone-title>2.0</milestone-title>
    <original-body>I just want to make you aware if you are not already that parental guidelines look like they will be made available in the future. See: http://forums.thetvdb.com/viewtopic.php?f=4&amp;t=2112

At least MythTV and I expect other media software incorporate manual and automated parental control. It would be valuable if the tvdb_api v2.0 provided access to this information.</original-body>
    <latest-body>I just want to make you aware if you are not already that parental guidelines look like they will be made available in the future. See: http://forums.thetvdb.com/viewtopic.php?f=4&amp;t=2112

At least MythTV and I expect other media software incorporate manual and automated parental control. It would be valuable if the tvdb_api v2.0 provided access to this information.</latest-body>
    <original-body-html>&lt;div&gt;&lt;p&gt;I just want to make you aware if you are not already that
parental guidelines look like they will be made available in the
future. See: &lt;a href=
&quot;http://forums.thetvdb.com/viewtopic.php?f=4&amp;amp;t=2112&quot;&gt;http://forums.thetvdb.com/viewtopic.php?f=4&amp;amp;amp;t=2112&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;At least MythTV and I expect other media software incorporate
manual and automated parental control. It would be valuable if the
tvdb_api v2.0 provided access to this information.&lt;/p&gt;&lt;/div&gt;</original-body-html>
  </ticket>
  <ticket>
    <assigned-user-id type="integer">24396</assigned-user-id>
    <attachments-count type="integer">0</attachments-count>
    <closed type="boolean">true</closed>
    <created-at type="datetime">2009-11-13T15:29:56+10:30</created-at>
    <creator-id type="integer">62411</creator-id>
    <milestone-due-on type="datetime" nil="true"></milestone-due-on>
    <milestone-id type="integer" nil="true"></milestone-id>
    <number type="integer">66</number>
    <permalink>ability-to-set-file-format-style</permalink>
    <priority type="integer">22529</priority>
    <project-id type="integer">13342</project-id>
    <raw-data type="binary" nil="true" encoding="base64"></raw-data>
    <state>resolved</state>
    <tag>formatting idea tvnamer</tag>
    <title>Ability to set file format style</title>
    <updated-at type="datetime">2009-11-14T06:28:53+10:30</updated-at>
    <user-id type="integer">24396</user-id>
    <user-name>dbr/Ben</user-name>
    <creator-name>kientran (at gmail)</creator-name>
    <assigned-user-name>dbr/Ben</assigned-user-name>
    <url>http://dbr.lighthouseapp.com/projects/13342/tickets/66</url>
    <original-body>I love your tvnamer script and tv_api.  I would love to have a way to easily set the way the file is formatted.  I personally do not like having the extra brackets (eg. [1x01]) around the episode numbers and would like to set it the way I want to in some config file instead.

Thanks again for a great script!</original-body>
    <latest-body>I love your tvnamer script and tv_api.  I would love to have a way to easily set the way the file is formatted.  I personally do not like having the extra brackets (eg. [1x01]) around the episode numbers and would like to set it the way I want to in some config file instead.

Thanks again for a great script!</latest-body>
    <original-body-html>&lt;div&gt;&lt;p&gt;I love your tvnamer script and tv_api. I would love to have a
way to easily set the way the file is formatted. I personally do
not like having the extra brackets (eg. &lt;a href=
&quot;/projects/13342/changesets/1x01&quot; title=
&quot;Changeset [1x01]&quot;&gt;[1x01]&lt;/a&gt;) around the episode numbers and would
like to set it the way I want to in some config file instead.&lt;/p&gt;
&lt;p&gt;Thanks again for a great script!&lt;/p&gt;&lt;/div&gt;</original-body-html>
  </ticket>
  <ticket>
    <assigned-user-id type="integer">24396</assigned-user-id>
    <attachments-count type="integer">0</attachments-count>
    <closed type="boolean">true</closed>
    <created-at type="datetime">2009-10-30T10:17:03+10:30</created-at>
    <creator-id type="integer">24396</creator-id>
    <milestone-due-on type="datetime" nil="true"></milestone-due-on>
    <milestone-id type="integer">40646</milestone-id>
    <number type="integer">65</number>
    <permalink>show-language-in-show-select-dialog-and-url</permalink>
    <priority type="integer">15</priority>
    <project-id type="integer">13342</project-id>
    <raw-data type="binary" nil="true" encoding="base64"></raw-data>
    <state>resolved</state>
    <tag>improvement ui</tag>
    <title>Show language in show-select dialog and URL</title>
    <updated-at type="datetime">2009-11-01T06:33:34+10:30</updated-at>
    <user-id type="integer">24396</user-id>
    <user-name>dbr/Ben</user-name>
    <creator-name>dbr/Ben</creator-name>
    <assigned-user-name>dbr/Ben</assigned-user-name>
    <url>http://dbr.lighthouseapp.com/projects/13342/tickets/65</url>
    <milestone-title>2.0</milestone-title>
    <original-body># Processing dexter (season: 1, episode 1)
    TVDB Search Results:
    1 -&gt; Dexter # http://thetvdb.com/?tab=series&amp;id=79349
    2 -&gt; Dexter # http://thetvdb.com/?tab=series&amp;id=79349
    Enter choice (first number, ? for help):

Show language code next to show name, and the URL should contain the language ID param (numeric).. Should look something like:

    # Processing dexter (season: 1, episode 1)
    TVDB Search Results:
    1 -&gt; Dexter [en] # http://thetvdb.com/?tab=series&amp;id=79349&amp;lid=7
    2 -&gt; Dexter [en] # http://thetvdb.com/?tab=series&amp;id=79349&amp;lid=15</original-body>
    <latest-body># Processing dexter (season: 1, episode 1)
    TVDB Search Results:
    1 -&gt; Dexter # http://thetvdb.com/?tab=series&amp;id=79349
    2 -&gt; Dexter # http://thetvdb.com/?tab=series&amp;id=79349
    Enter choice (first number, ? for help):

Show language code next to show name, and the URL should contain the language ID param (numeric).. Should look something like:

    # Processing dexter (season: 1, episode 1)
    TVDB Search Results:
    1 -&gt; Dexter [en] # http://thetvdb.com/?tab=series&amp;id=79349&amp;lid=7
    2 -&gt; Dexter [en] # http://thetvdb.com/?tab=series&amp;id=79349&amp;lid=15</latest-body>
    <original-body-html>&lt;div&gt;&lt;h1&gt;Processing dexter (season: 1, episode 1)&lt;/h1&gt;
&lt;pre&gt;
&lt;code&gt;TVDB Search Results:
1 -&amp;gt; Dexter # http://thetvdb.com/?tab=series&amp;amp;id=79349
2 -&amp;gt; Dexter # http://thetvdb.com/?tab=series&amp;amp;id=79349
Enter choice (first number, ? for help):&lt;/code&gt;
&lt;/pre&gt;
&lt;p&gt;Show language code next to show name, and the URL should contain
the language ID param (numeric).. Should look something like:&lt;/p&gt;
&lt;pre&gt;
&lt;code&gt;# Processing dexter (season: 1, episode 1)
TVDB Search Results:
1 -&amp;gt; Dexter [en] # http://thetvdb.com/?tab=series&amp;amp;id=79349&amp;amp;lid=7
2 -&amp;gt; Dexter [en] # http://thetvdb.com/?tab=series&amp;amp;id=79349&amp;amp;lid=15&lt;/code&gt;
&lt;/pre&gt;&lt;/div&gt;</original-body-html>
  </ticket>
  <ticket>
    <assigned-user-id type="integer">24396</assigned-user-id>
    <attachments-count type="integer">0</attachments-count>
    <closed type="boolean">false</closed>
    <created-at type="datetime">2009-10-30T10:13:38+10:30</created-at>
    <creator-id type="integer">24396</creator-id>
    <milestone-due-on type="datetime" nil="true"></milestone-due-on>
    <milestone-id type="integer">40646</milestone-id>
    <number type="integer">64</number>
    <permalink>verify-tvdb-language-flag-is-working-correctly</permalink>
    <priority type="integer">14</priority>
    <project-id type="integer">13342</project-id>
    <raw-data type="binary" nil="true" encoding="base64"></raw-data>
    <state>new</state>
    <tag>bug</tag>
    <title>Verify Tvdb language flag is working correctly</title>
    <updated-at type="datetime">2009-10-30T10:13:40+10:30</updated-at>
    <user-id type="integer">24396</user-id>
    <user-name>dbr/Ben</user-name>
    <creator-name>dbr/Ben</creator-name>
    <assigned-user-name>dbr/Ben</assigned-user-name>
    <url>http://dbr.lighthouseapp.com/projects/13342/tickets/64</url>
    <milestone-title>2.0</milestone-title>
    <original-body>&gt; Only one thing, for example for Dexter tv show, now it founds in thetvdb 2 shows with Dexter name, before the code modification only one.
&gt; I tried with both but there is no changes between them.

Seems Dexter isn't finding the non-English data:

    &gt;&gt;&gt; t = tvdb_api.Tvdb(language='it')
    &gt;&gt;&gt; t['dexter']
    &lt;Show Dexter (containing 4 seasons)&gt;
    &gt;&gt;&gt; t['dexter'][1][1]
    &lt;Episode 01x01 - Dexter&gt;

..but there certainly is Italian data, http://thetvdb.com/?tab=series&amp;id=79349&amp;lid=15</original-body>
    <latest-body>&gt; Only one thing, for example for Dexter tv show, now it founds in thetvdb 2 shows with Dexter name, before the code modification only one.
&gt; I tried with both but there is no changes between them.

Seems Dexter isn't finding the non-English data:

    &gt;&gt;&gt; t = tvdb_api.Tvdb(language='it')
    &gt;&gt;&gt; t['dexter']
    &lt;Show Dexter (containing 4 seasons)&gt;
    &gt;&gt;&gt; t['dexter'][1][1]
    &lt;Episode 01x01 - Dexter&gt;

..but there certainly is Italian data, http://thetvdb.com/?tab=series&amp;id=79349&amp;lid=15</latest-body>
    <original-body-html>&lt;div&gt;&lt;blockquote&gt;
&lt;p&gt;Only one thing, for example for Dexter tv show, now it founds in
thetvdb 2 shows with Dexter name, before the code modification only
one. I tried with both but there is no changes between them.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Seems Dexter isn't finding the non-English data:&lt;/p&gt;
&lt;pre&gt;
&lt;code&gt;&amp;gt;&amp;gt;&amp;gt; t = tvdb_api.Tvdb(language='it')
&amp;gt;&amp;gt;&amp;gt; t['dexter']
&amp;lt;Show Dexter (containing 4 seasons)&amp;gt;
&amp;gt;&amp;gt;&amp;gt; t['dexter'][1][1]
&amp;lt;Episode 01x01 - Dexter&amp;gt;&lt;/code&gt;
&lt;/pre&gt;
&lt;p&gt;..but there certainly is Italian data, &lt;a href=
&quot;http://thetvdb.com/?tab=series&amp;amp;id=79349&amp;amp;lid=15&quot;&gt;http://thetvdb.com/?tab=series&amp;amp;amp;id=79349&amp;amp;amp;lid=15&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</original-body-html>
  </ticket>
  <ticket>
    <assigned-user-id type="integer">24396</assigned-user-id>
    <attachments-count type="integer">0</attachments-count>
    <closed type="boolean">true</closed>
    <created-at type="datetime">2009-10-19T11:44:36+10:30</created-at>
    <creator-id type="integer">46805</creator-id>
    <milestone-due-on type="datetime" nil="true"></milestone-due-on>
    <milestone-id type="integer" nil="true"></milestone-id>
    <number type="integer">62</number>
    <permalink>patch-to-fix-crash-when-multiple-instances-of-tvdb_api-are-spawned</permalink>
    <priority type="integer">22526</priority>
    <project-id type="integer">13342</project-id>
    <raw-data type="binary" nil="true" encoding="base64"></raw-data>
    <state>resolved</state>
    <tag nil="true"></tag>
    <title>Patch to fix crash when multiple instances of tvdb_api are spawned</title>
    <updated-at type="datetime">2009-10-19T23:36:35+10:30</updated-at>
    <user-id type="integer">24396</user-id>
    <user-name>dbr/Ben</user-name>
    <creator-name>RDV</creator-name>
    <assigned-user-name>dbr/Ben</assigned-user-name>
    <url>http://dbr.lighthouseapp.com/projects/13342/tickets/62</url>
    <original-body>In the next release of MythTV (0.22) multiple concurrent instances of tv_api are spawned. If the cache directory has not been created there is a chance that one of the instances creates the directory when another instance is checking with os.path.exists. It is split second timing but the os.mkdir can fail. Here is a patch that is being used with MythTV as in this instance the os.path.exists test cannot be trusted. This situation has actually been reported with the beta of the Mythbuntu 9.10 release.
 
Patch:
Index: cache.py
===================================================================
--- cache.py	(revision 22280)
+++ cache.py	(working copy)
@@ -82,8 +82,10 @@
         &quot;&quot;&quot;The location of the cache directory&quot;&quot;&quot;
         self.max_age = max_age
         self.cache_location = cache_location
-        if not os.path.exists(self.cache_location):
+        try:
             os.mkdir(self.cache_location)
+        except OSError:
+            pass
 
     def default_open(self, request):
         &quot;&quot;&quot;Handles GET requests, if the response is cached it returns it</original-body>
    <latest-body>In the next release of MythTV (0.22) multiple concurrent instances of tv_api are spawned. If the cache directory has not been created there is a chance that one of the instances creates the directory when another instance is checking with os.path.exists. It is split second timing but the os.mkdir can fail. Here is a patch that is being used with MythTV as in this instance the os.path.exists test cannot be trusted. This situation has actually been reported with the beta of the Mythbuntu 9.10 release.
 
Patch:
Index: cache.py
===================================================================
--- cache.py	(revision 22280)
+++ cache.py	(working copy)
@@ -82,8 +82,10 @@
         &quot;&quot;&quot;The location of the cache directory&quot;&quot;&quot;
         self.max_age = max_age
         self.cache_location = cache_location
-        if not os.path.exists(self.cache_location):
+        try:
             os.mkdir(self.cache_location)
+        except OSError:
+            pass
 
     def default_open(self, request):
         &quot;&quot;&quot;Handles GET requests, if the response is cached it returns it</latest-body>
    <original-body-html>&lt;div&gt;&lt;p&gt;In the next release of MythTV (0.22) multiple concurrent
instances of tv_api are spawned. If the cache directory has not
been created there is a chance that one of the instances creates
the directory when another instance is checking with
os.path.exists. It is split second timing but the os.mkdir can
fail. Here is a patch that is being used with MythTV as in this
instance the os.path.exists test cannot be trusted. This situation
has actually been reported with the beta of the Mythbuntu 9.10
release.&lt;br&gt;&lt;/p&gt;
&lt;p&gt;Patch:&lt;br&gt;&lt;/p&gt;
&lt;h1&gt;Index: cache.py&lt;/h1&gt;
&lt;p&gt;--- cache.py (revision 22280) +++ cache.py (working copy) @@
-82,8 +82,10 @@&lt;/p&gt;
&lt;pre&gt;
&lt;code&gt;     &quot;&quot;&quot;The location of the cache directory&quot;&quot;&quot;
     self.max_age = max_age
     self.cache_location = cache_location&lt;/code&gt;
&lt;/pre&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;pre&gt;
&lt;code&gt; if not os.path.exists(self.cache_location):&lt;/code&gt;
&lt;/pre&gt;&lt;/li&gt;
&lt;li&gt;
&lt;pre&gt;
&lt;code&gt; try:
     os.mkdir(self.cache_location)&lt;/code&gt;
&lt;/pre&gt;&lt;/li&gt;
&lt;li&gt;
&lt;pre&gt;
&lt;code&gt; except OSError:&lt;/code&gt;
&lt;/pre&gt;&lt;/li&gt;
&lt;li&gt;
&lt;pre&gt;
&lt;code&gt;     pass&lt;/code&gt;
&lt;/pre&gt;
def default_open(self, request):
&lt;pre&gt;
&lt;code&gt; &quot;&quot;&quot;Handles GET requests, if the response is cached it returns it&lt;/code&gt;
&lt;/pre&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</original-body-html>
  </ticket>
  <ticket>
    <assigned-user-id type="integer">24396</assigned-user-id>
    <attachments-count type="integer">0</attachments-count>
    <closed type="boolean">true</closed>
    <created-at type="datetime">2009-10-15T04:35:26+10:30</created-at>
    <creator-id type="integer">46805</creator-id>
    <milestone-due-on type="datetime" nil="true"></milestone-due-on>
    <milestone-id type="integer" nil="true"></milestone-id>
    <number type="integer">63</number>
    <permalink>cachepy-changes-will-only-work-with-python-v26-or-higher</permalink>
    <priority type="integer">22527</priority>
    <project-id type="integer">13342</project-id>
    <raw-data type="binary" nil="true" encoding="base64"></raw-data>
    <state>resolved</state>
    <tag>cache tvdb_api</tag>
    <title>cache.py changes will only work with python v2.6 or higher.</title>
    <updated-at type="datetime">2009-10-15T08:51:10+10:30</updated-at>
    <user-id type="integer">24396</user-id>
    <user-name>dbr/Ben</user-name>
    <creator-name>RDV</creator-name>
    <assigned-user-name>dbr/Ben</assigned-user-name>
    <url>http://dbr.lighthouseapp.com/projects/13342/tickets/63</url>
    <original-body>See user had python v2.5.2 installed:
  File &quot;/usr/local/share/mythtv/mythvideo/scripts/ttvdb/cache.py&quot;, line 68
    except OSError as e:
                     ^
SyntaxError: invalid syntax


just change statement to:

    except OSError, e:

Anyone using python less than v2.6 had a syntax error. One of the MythTV users caught this one.</original-body>
    <latest-body>See user had python v2.5.2 installed:
  File &quot;/usr/local/share/mythtv/mythvideo/scripts/ttvdb/cache.py&quot;, line 68
    except OSError as e:
                     ^
SyntaxError: invalid syntax


just change statement to:

    except OSError, e:

Anyone using python less than v2.6 had a syntax error. One of the MythTV users caught this one.</latest-body>
    <original-body-html>&lt;div&gt;&lt;p&gt;See user had python v2.5.2 installed:&lt;br&gt;
File &quot;/usr/local/share/mythtv/mythvideo/scripts/ttvdb/cache.py&quot;,
line 68&lt;/p&gt;
&lt;pre&gt;
&lt;code&gt;except OSError as e:
                 ^&lt;/code&gt;
&lt;/pre&gt;
&lt;p&gt;SyntaxError: invalid syntax&lt;/p&gt;
&lt;p&gt;just change statement to:&lt;/p&gt;
&lt;pre&gt;
&lt;code&gt;except OSError, e:&lt;/code&gt;
&lt;/pre&gt;
&lt;p&gt;Anyone using python less than v2.6 had a syntax error. One of
the MythTV users caught this one.&lt;/p&gt;&lt;/div&gt;</original-body-html>
  </ticket>
  <ticket>
    <assigned-user-id type="integer">24396</assigned-user-id>
    <attachments-count type="integer">0</attachments-count>
    <closed type="boolean">true</closed>
    <created-at type="datetime">2009-08-07T00:42:42+09:30</created-at>
    <creator-id type="integer">24396</creator-id>
    <milestone-due-on type="datetime" nil="true"></milestone-due-on>
    <milestone-id type="integer">40646</milestone-id>
    <number type="integer">61</number>
    <permalink>remove-tvnamer-stuff-from-tvdb_api</permalink>
    <priority type="integer">8</priority>
    <project-id type="integer">13342</project-id>
    <raw-data type="binary" nil="true" encoding="base64"></raw-data>
    <state>resolved</state>
    <tag>dev tvdb_api tvnamer</tag>
    <title>Remove tvnamer stuff from tvdb_api</title>
    <updated-at type="datetime">2009-08-25T23:49:34+09:30</updated-at>
    <user-id type="integer">24396</user-id>
    <user-name>dbr/Ben</user-name>
    <creator-name>dbr/Ben</creator-name>
    <assigned-user-name>dbr/Ben</assigned-user-name>
    <url>http://dbr.lighthouseapp.com/projects/13342/tickets/61</url>
    <milestone-title>2.0</milestone-title>
    <original-body>Once the separate tvnamer is usable, remove tvnamer's code from tvdb_api</original-body>
    <latest-body>Once the separate tvnamer is usable, remove tvnamer's code from tvdb_api</latest-body>
    <original-body-html>&lt;div&gt;&lt;p&gt;Once the separate tvnamer is usable, remove tvnamer's code from
tvdb_api&lt;/p&gt;&lt;/div&gt;</original-body-html>
  </ticket>
  <ticket>
    <assigned-user-id type="integer">24396</assigned-user-id>
    <attachments-count type="integer">0</attachments-count>
    <closed type="boolean">true</closed>
    <created-at type="datetime">2008-07-21T22:59:19+09:30</created-at>
    <creator-id type="integer">24396</creator-id>
    <milestone-due-on type="datetime" nil="true"></milestone-due-on>
    <milestone-id type="integer">40646</milestone-id>
    <number type="integer">5</number>
    <permalink>deal-with-multiple-episodes-in-one-file</permalink>
    <priority type="integer">1</priority>
    <project-id type="integer">13342</project-id>
    <raw-data type="binary" nil="true" encoding="base64"></raw-data>
    <state>resolved</state>
    <tag>improvement tvnamer</tag>
    <title>Deal with multiple episodes in one file</title>
    <updated-at type="datetime">2009-08-18T09:03:36+09:30</updated-at>
    <user-id type="integer">24396</user-id>
    <user-name>dbr/Ben</user-name>
    <creator-name>dbr/Ben</creator-name>
    <assigned-user-name>dbr/Ben</assigned-user-name>
    <url>http://dbr.lighthouseapp.com/projects/13342/tickets/5</url>
    <milestone-title>2.0</milestone-title>
    <original-body>Deal with files such as:
&quot;Show.name.s01e01e02.avi&quot; or &quot;Show Name - [01x01-02]&quot;</original-body>
    <latest-body>Deal with files such as:
&quot;Show.name.s01e01e02.avi&quot; or &quot;Show Name - [01x01-02]&quot;</latest-body>
    <original-body-html>&lt;div&gt;&lt;p&gt;
Deal with files such as:
&lt;/p&gt;&lt;p&gt;
&quot;Show.name.s01e01e02.avi&quot; or &quot;Show Name - [01x01-02]&quot;
&lt;/p&gt;&lt;/div&gt;</original-body-html>
  </ticket>
  <ticket>
    <assigned-user-id type="integer">24396</assigned-user-id>
    <attachments-count type="integer">0</attachments-count>
    <closed type="boolean">true</closed>
    <created-at type="datetime">2009-07-30T22:58:23+09:30</created-at>
    <creator-id type="integer">24396</creator-id>
    <milestone-due-on type="datetime" nil="true"></milestone-due-on>
    <milestone-id type="integer">40646</milestone-id>
    <number type="integer">60</number>
    <permalink>invalidate-cache-if-its-not-valid-xml</permalink>
    <priority type="integer">13</priority>
    <project-id type="integer">13342</project-id>
    <raw-data type="binary" nil="true" encoding="base64"></raw-data>
    <state>resolved</state>
    <tag>bug tvdb_api</tag>
    <title>Invalidate cache if it's not valid XML</title>
    <updated-at type="datetime">2009-08-07T00:44:15+09:30</updated-at>
    <user-id type="integer">24396</user-id>
    <user-name>dbr/Ben</user-name>
    <creator-name>dbr/Ben</creator-name>
    <assigned-user-name>dbr/Ben</assigned-user-name>
    <url>http://dbr.lighthouseapp.com/projects/13342/tickets/60</url>
    <milestone-title>2.0</milestone-title>
    <original-body>If there's a problem with an XML file, it gets cached, which breaks further requests</original-body>
    <latest-body>If there's a problem with an XML file, it gets cached, which breaks further requests</latest-body>
    <original-body-html>&lt;div&gt;&lt;p&gt;If there's a problem with an XML file, it gets cached, which
breaks further requests&lt;/p&gt;&lt;/div&gt;</original-body-html>
  </ticket>
  <ticket>
    <assigned-user-id type="integer">24396</assigned-user-id>
    <attachments-count type="integer">0</attachments-count>
    <closed type="boolean">true</closed>
    <created-at type="datetime">2009-05-25T02:51:41+09:30</created-at>
    <creator-id type="integer">57805</creator-id>
    <milestone-due-on type="datetime" nil="true"></milestone-due-on>
    <milestone-id type="integer" nil="true"></milestone-id>
    <number type="integer">46</number>
    <permalink>bug-when-season-has-non-numeric-episode-numbers</permalink>
    <priority type="integer">22525</priority>
    <project-id type="integer">13342</project-id>
    <raw-data type="binary" nil="true" encoding="base64"></raw-data>
    <state>resolved</state>
    <tag>bug tvdb_api tvnamer</tag>
    <title>Bug when season has non-numeric episode numbers?</title>
    <updated-at type="datetime">2009-08-07T00:44:15+09:30</updated-at>
    <user-id type="integer">24396</user-id>
    <user-name>dbr/Ben</user-name>
    <creator-name>pulsar</creator-name>
    <assigned-user-name>dbr/Ben</assigned-user-name>
    <url>http://dbr.lighthouseapp.com/projects/13342/tickets/46</url>
    <original-body>I get the following output when trying to rename &quot;Family.Guy.S06E03.PDTV.XviD-XOR.avi&quot;.

####################
# Starting tvnamer
# Processing 1 files
# ..got tvdb mirrors
# Starting to process files
####################
# Processing Family Guy (season: 6, episode 3)
TVDB Search Results:
1 -&gt; Family Guy # http://thetvdb.com/?tab=series&amp;id=75978
Automatically selecting only result
Traceback (most recent call last):
  File &quot;/opt/local/bin/tvnamer&quot;, line 339, in &lt;module&gt;
    main()
  File &quot;/opt/local/bin/tvnamer&quot;, line 334, in main
    processFile(t, opts, cfile)
  File &quot;/opt/local/bin/tvnamer&quot;, line 185, in processFile
    epname = t[ cfile['file_seriesname'] ][ cfile['seasno'] ][ cfile['epno'] ]['episodename']
  File &quot;/opt/local/tvnamer/tvdb_api.py&quot;, line 661, in __getitem__
    sid = self._nameToSid(key)
  File &quot;/opt/local/tvnamer/tvdb_api.py&quot;, line 645, in _nameToSid
    self._getShowData(sid)
  File &quot;/opt/local/tvnamer/tvdb_api.py&quot;, line 613, in _getShowData
    epsEt = self._getetsrc( self.config['url_epInfo'] % (sid) )
  File &quot;/opt/local/tvnamer/tvdb_api.py&quot;, line 397, in _getetsrc
    et = ElementTree.fromstring(src)
  File &quot;&lt;string&gt;&quot;, line 86, in XML
SyntaxError: no element found: line 4033, column 0


Since the error occurs in the tvdb_api file, my guess is, that it has something to do with the non-numeric episode listed on http://thetvdb.com/?tab=series&amp;id=75978 -- Could that be the case?</original-body>
    <latest-body>I get the following output when trying to rename &quot;Family.Guy.S06E03.PDTV.XviD-XOR.avi&quot;.

####################
# Starting tvnamer
# Processing 1 files
# ..got tvdb mirrors
# Starting to process files
####################
# Processing Family Guy (season: 6, episode 3)
TVDB Search Results:
1 -&gt; Family Guy # http://thetvdb.com/?tab=series&amp;id=75978
Automatically selecting only result
Traceback (most recent call last):
  File &quot;/opt/local/bin/tvnamer&quot;, line 339, in &lt;module&gt;
    main()
  File &quot;/opt/local/bin/tvnamer&quot;, line 334, in main
    processFile(t, opts, cfile)
  File &quot;/opt/local/bin/tvnamer&quot;, line 185, in processFile
    epname = t[ cfile['file_seriesname'] ][ cfile['seasno'] ][ cfile['epno'] ]['episodename']
  File &quot;/opt/local/tvnamer/tvdb_api.py&quot;, line 661, in __getitem__
    sid = self._nameToSid(key)
  File &quot;/opt/local/tvnamer/tvdb_api.py&quot;, line 645, in _nameToSid
    self._getShowData(sid)
  File &quot;/opt/local/tvnamer/tvdb_api.py&quot;, line 613, in _getShowData
    epsEt = self._getetsrc( self.config['url_epInfo'] % (sid) )
  File &quot;/opt/local/tvnamer/tvdb_api.py&quot;, line 397, in _getetsrc
    et = ElementTree.fromstring(src)
  File &quot;&lt;string&gt;&quot;, line 86, in XML
SyntaxError: no element found: line 4033, column 0


Since the error occurs in the tvdb_api file, my guess is, that it has something to do with the non-numeric episode listed on http://thetvdb.com/?tab=series&amp;id=75978 -- Could that be the case?</latest-body>
    <original-body-html>&lt;div&gt;&lt;p&gt;I get the following output when trying to rename
&quot;Family.Guy.S06E03.PDTV.XviD-XOR.avi&quot;.&lt;/p&gt;
&lt;p&gt;####################&lt;/p&gt;
&lt;h1&gt;Starting tvnamer&lt;/h1&gt;
&lt;h1&gt;Processing 1 files&lt;/h1&gt;
&lt;h1&gt;..got tvdb mirrors&lt;/h1&gt;
&lt;h1&gt;Starting to process files&lt;/h1&gt;
&lt;p&gt;####################&lt;/p&gt;
&lt;h1&gt;Processing Family Guy (season: 6, episode 3)&lt;/h1&gt;
&lt;p&gt;TVDB Search Results: 1 -&amp;gt; Family Guy # &lt;a href=&quot;http://thetvdb.com/?tab=series&amp;amp;id=75978&quot;&gt;http://thetvdb.com/?tab=series&amp;amp;a...&lt;/a&gt;
Automatically selecting only result Traceback (most recent call
last): File &quot;/opt/local/bin/tvnamer&quot;, line 339, in&lt;/p&gt;
&lt;pre&gt;
&lt;code&gt;main()
&lt;/code&gt;
&lt;/pre&gt;
&lt;p&gt;File &quot;/opt/local/bin/tvnamer&quot;, line 334, in main&lt;/p&gt;
&lt;pre&gt;
&lt;code&gt;processFile(t, opts, cfile)
&lt;/code&gt;
&lt;/pre&gt;
&lt;p&gt;File &quot;/opt/local/bin/tvnamer&quot;, line 185, in processFile&lt;/p&gt;
&lt;pre&gt;
&lt;code&gt;epname = t[ cfile['file_seriesname'] ][ cfile['seasno'] ][ cfile['epno'] ]['episodename']
&lt;/code&gt;
&lt;/pre&gt;
&lt;p&gt;File &quot;/opt/local/tvnamer/tvdb_api.py&quot;, line 661, in
&lt;strong&gt;getitem&lt;/strong&gt;&lt;/p&gt;
&lt;pre&gt;
&lt;code&gt;sid = self._nameToSid(key)
&lt;/code&gt;
&lt;/pre&gt;
&lt;p&gt;File &quot;/opt/local/tvnamer/tvdb_api.py&quot;, line 645, in
_nameToSid&lt;/p&gt;
&lt;pre&gt;
&lt;code&gt;self._getShowData(sid)
&lt;/code&gt;
&lt;/pre&gt;
&lt;p&gt;File &quot;/opt/local/tvnamer/tvdb_api.py&quot;, line 613, in
_getShowData&lt;/p&gt;
&lt;pre&gt;
&lt;code&gt;epsEt = self._getetsrc( self.config['url_epInfo'] % (sid) )
&lt;/code&gt;
&lt;/pre&gt;
&lt;p&gt;File &quot;/opt/local/tvnamer/tvdb_api.py&quot;, line 397, in
_getetsrc&lt;/p&gt;
&lt;pre&gt;
&lt;code&gt;et = ElementTree.fromstring(src)
&lt;/code&gt;
&lt;/pre&gt;
&lt;p&gt;File &quot;&quot;, line 86, in XML SyntaxError: no element found: line
4033, column 0&lt;/p&gt;
&lt;p&gt;Since the error occurs in the tvdb_api file, my guess is, that
it has something to do with the non-numeric episode listed on
&lt;a href=&quot;http://thetvdb.com/?tab=series&amp;amp;id=75978&quot;&gt;http://thetvdb.com/?tab=series&amp;amp;a...&lt;/a&gt;
-- Could that be the case?&lt;/p&gt;&lt;/div&gt;</original-body-html>
  </ticket>
  <ticket>
    <assigned-user-id type="integer">24396</assigned-user-id>
    <attachments-count type="integer">0</attachments-count>
    <closed type="boolean">false</closed>
    <created-at type="datetime">2008-12-20T13:18:56+10:30</created-at>
    <creator-id type="integer">24396</creator-id>
    <milestone-due-on type="datetime" nil="true"></milestone-due-on>
    <milestone-id type="integer">40646</milestone-id>
    <number type="integer">18</number>
    <permalink>test-errors-with-tvdb</permalink>
    <priority type="integer">9</priority>
    <project-id type="integer">13342</project-id>
    <raw-data type="binary" nil="true" encoding="base64"></raw-data>
    <state>new</state>
    <tag>dev tvdb_api</tag>
    <title>Test errors with TVDB</title>
    <updated-at type="datetime">2009-08-07T00:41:36+09:30</updated-at>
    <user-id type="integer">24396</user-id>
    <user-name>dbr/Ben</user-name>
    <creator-name>dbr/Ben</creator-name>
    <assigned-user-name>dbr/Ben</assigned-user-name>
    <url>http://dbr.lighthouseapp.com/projects/13342/tickets/18</url>
    <milestone-title>2.0</milestone-title>
    <original-body>Devise a simple way to test errors with the thetvdb.com's servers - connection errors, error 404/500s, and malformed content</original-body>
    <latest-body>Devise a simple way to test errors with the thetvdb.com's servers - connection errors, error 404/500s, and malformed content</latest-body>
    <original-body-html>&lt;div&gt;&lt;p&gt;Devise a simple way to test errors with the thetvdb.com's
servers - connection errors, error 404/500s, and malformed
content&lt;/p&gt;&lt;/div&gt;</original-body-html>
  </ticket>
  <ticket>
    <assigned-user-id type="integer">24396</assigned-user-id>
    <attachments-count type="integer">0</attachments-count>
    <closed type="boolean">true</closed>
    <created-at type="datetime">2009-07-23T00:01:55+09:30</created-at>
    <creator-id type="integer">24396</creator-id>
    <milestone-due-on type="datetime" nil="true"></milestone-due-on>
    <milestone-id type="integer">40646</milestone-id>
    <number type="integer">58</number>
    <permalink>make-renamer-class-actually-rename-files</permalink>
    <priority type="integer">11</priority>
    <project-id type="integer">13342</project-id>
    <raw-data type="binary" nil="true" encoding="base64"></raw-data>
    <state>resolved</state>
    <tag>dev tvnamer</tag>
    <title>Make Renamer class actually rename files</title>
    <updated-at type="datetime">2009-07-30T15:02:19+09:30</updated-at>
    <user-id type="integer">24396</user-id>
    <user-name>dbr/Ben</user-name>
    <creator-name>dbr/Ben</creator-name>
    <assigned-user-name>dbr/Ben</assigned-user-name>
    <url>http://dbr.lighthouseapp.com/projects/13342/tickets/58</url>
    <milestone-title>2.0</milestone-title>
    <original-body>Make Renamer actually rename files, include old force flag from tvnamer1.0</original-body>
    <latest-body>Make Renamer actually rename files, include old force flag from tvnamer1.0</latest-body>
    <original-body-html>&lt;div&gt;&lt;p&gt;Make Renamer actually rename files, include old force flag from
tvnamer1.0&lt;/p&gt;&lt;/div&gt;</original-body-html>
  </ticket>
  <ticket>
    <assigned-user-id type="integer">24396</assigned-user-id>
    <attachments-count type="integer">0</attachments-count>
    <closed type="boolean">true</closed>
    <created-at type="datetime">2009-02-10T21:32:13+10:30</created-at>
    <creator-id type="integer">24396</creator-id>
    <milestone-due-on type="datetime" nil="true"></milestone-due-on>
    <milestone-id type="integer">40646</milestone-id>
    <number type="integer">35</number>
    <permalink>split-up-tvdb_api-and-tvnamer</permalink>
    <priority type="integer">1</priority>
    <project-id type="integer">13342</project-id>
    <raw-data type="binary" nil="true" encoding="base64"></raw-data>
    <state>resolved</state>
    <tag>dev tvdb_api tvnamer</tag>
    <title>Split up tvdb_api and tvnamer</title>
    <updated-at type="datetime">2009-07-29T19:03:55+09:30</updated-at>
    <user-id type="integer">24396</user-id>
    <user-name>dbr/Ben</user-name>
    <creator-name>dbr/Ben</creator-name>
    <assigned-user-name>dbr/Ben</assigned-user-name>
    <url>http://dbr.lighthouseapp.com/projects/13342/tickets/35</url>
    <milestone-title>2.0</milestone-title>
    <original-body>So you can do..

    easy_install tvdb_api

or...

    easy_isntall tvnamer

..which will install tvdb_api as a dependancy, and install tvnamer</original-body>
    <latest-body>So you can do..

    easy_install tvdb_api

or...

    easy_isntall tvnamer

..which will install tvdb_api as a dependancy, and install tvnamer</latest-body>
    <original-body-html>&lt;div&gt;&lt;p&gt;So you can do..&lt;/p&gt;
&lt;pre&gt;
&lt;code&gt;easy_install tvdb_api
&lt;/code&gt;
&lt;/pre&gt;
&lt;p&gt;or...&lt;/p&gt;
&lt;pre&gt;
&lt;code&gt;easy_isntall tvnamer
&lt;/code&gt;
&lt;/pre&gt;
&lt;p&gt;..which will install tvdb_api as a dependancy, and install
tvnamer&lt;/p&gt;&lt;/div&gt;</original-body-html>
  </ticket>
  <ticket>
    <assigned-user-id type="integer">24396</assigned-user-id>
    <attachments-count type="integer">0</attachments-count>
    <closed type="boolean">true</closed>
    <created-at type="datetime">2009-05-26T04:11:11+09:30</created-at>
    <creator-id type="integer">24396</creator-id>
    <milestone-due-on type="datetime" nil="true"></milestone-due-on>
    <milestone-id type="integer">40646</milestone-id>
    <number type="integer">47</number>
    <permalink>make-sure-tvdb_api-has-an-__init__py</permalink>
    <priority type="integer">2</priority>
    <project-id type="integer">13342</project-id>
    <raw-data type="binary" nil="true" encoding="base64"></raw-data>
    <state>resolved</state>
    <tag>dev tvdb_api</tag>
    <title>Make sure tvdb_api has an __init__.py</title>
    <updated-at type="datetime">2009-07-22T10:49:52+09:30</updated-at>
    <user-id type="integer">24396</user-id>
    <user-name>dbr/Ben</user-name>
    <creator-name>dbr/Ben</creator-name>
    <assigned-user-name>dbr/Ben</assigned-user-name>
    <url>http://dbr.lighthouseapp.com/projects/13342/tickets/47</url>
    <milestone-title>2.0</milestone-title>
    <original-body>So it can be used as submodule</original-body>
    <latest-body>So it can be used as submodule</latest-body>
    <original-body-html>&lt;div&gt;&lt;p&gt;So it can be used as submodule&lt;/p&gt;&lt;/div&gt;</original-body-html>
  </ticket>
  <ticket>
    <assigned-user-id type="integer">24396</assigned-user-id>
    <attachments-count type="integer">0</attachments-count>
    <closed type="boolean">true</closed>
    <created-at type="datetime">2009-05-28T00:18:26+09:30</created-at>
    <creator-id type="integer">24396</creator-id>
    <milestone-due-on type="datetime" nil="true"></milestone-due-on>
    <milestone-id type="integer">40646</milestone-id>
    <number type="integer">55</number>
    <permalink>support-for-anime-filenames-groupshow_name-02a1b2c3mkv</permalink>
    <priority type="integer">9</priority>
    <project-id type="integer">13342</project-id>
    <raw-data type="binary" nil="true" encoding="base64"></raw-data>
    <state>resolved</state>
    <tag>filenames tvnamer</tag>
    <title>Support for Anime filenames, [Group]Show_name-02[A1B2C3].mkv</title>
    <updated-at type="datetime">2009-07-22T10:47:52+09:30</updated-at>
    <user-id type="integer">24396</user-id>
    <user-name>dbr/Ben</user-name>
    <creator-name>dbr/Ben</creator-name>
    <assigned-user-name>dbr/Ben</assigned-user-name>
    <url>http://dbr.lighthouseapp.com/projects/13342/tickets/55</url>
    <milestone-title>2.0</milestone-title>
    <original-body>Examples:

    [Eclipse] Fullmetal Alchemist Brotherhood - 02 (1280x720 h264) [8452C4BF].mkv

    [Shinsen-Subs] Armored Trooper Votoms - Pailsen Files - 01 [9E3F1D1C].avi

    [Shinsen-Subs] Beet - 19 [24DAB497].avi

    [AG-SHS]Victory_Gundam-03_DVD[FC6E3A6F].avi

    [YuS-SHS]Gintama-88(H264)_[52CA4F8B].mp4</original-body>
    <latest-body>Examples:

    [Eclipse] Fullmetal Alchemist Brotherhood - 02 (1280x720 h264) [8452C4BF].mkv

    [Shinsen-Subs] Armored Trooper Votoms - Pailsen Files - 01 [9E3F1D1C].avi

    [Shinsen-Subs] Beet - 19 [24DAB497].avi

    [AG-SHS]Victory_Gundam-03_DVD[FC6E3A6F].avi

    [YuS-SHS]Gintama-88(H264)_[52CA4F8B].mp4</latest-body>
    <original-body-html>&lt;div&gt;&lt;p&gt;Examples:&lt;/p&gt;
&lt;pre&gt;
&lt;code&gt;[Eclipse] Fullmetal Alchemist Brotherhood - 02 (1280x720 h264) [8452C4BF].mkv

[Shinsen-Subs] Armored Trooper Votoms - Pailsen Files - 01 [9E3F1D1C].avi

[Shinsen-Subs] Beet - 19 [24DAB497].avi

[AG-SHS]Victory_Gundam-03_DVD[FC6E3A6F].avi

[YuS-SHS]Gintama-88(H264)_[52CA4F8B].mp4
&lt;/code&gt;
&lt;/pre&gt;&lt;/div&gt;</original-body-html>
  </ticket>
  <ticket>
    <assigned-user-id type="integer">24396</assigned-user-id>
    <attachments-count type="integer">0</attachments-count>
    <closed type="boolean">true</closed>
    <created-at type="datetime">2009-04-18T00:50:04+09:30</created-at>
    <creator-id type="integer">46805</creator-id>
    <milestone-due-on type="datetime" nil="true"></milestone-due-on>
    <milestone-id type="integer">40646</milestone-id>
    <number type="integer">45</number>
    <permalink>tvnamer-parsing-of-multi-languages-filenames-does-not-work</permalink>
    <priority type="integer">3</priority>
    <project-id type="integer">13342</project-id>
    <raw-data type="binary" nil="true" encoding="base64"></raw-data>
    <state>resolved</state>
    <tag>tvnamer</tag>
    <title>tvnamer parsing of multi-languages filenames does not work</title>
    <updated-at type="datetime">2009-05-31T01:26:40+09:30</updated-at>
    <user-id type="integer">24396</user-id>
    <user-name>dbr/Ben</user-name>
    <creator-name>RDV</creator-name>
    <assigned-user-name>dbr/Ben</assigned-user-name>
    <url>http://dbr.lighthouseapp.com/projects/13342/tickets/45</url>
    <milestone-title>2.0</milestone-title>
    <original-body>bbr/Ben: 
When tvnamer is used on unicode filenames the regex strings need to be modified. These new regex strings will still work for regular ascii filenames. tvnamer has other errors when processing unicode filenames that I do not have patches for. I use these regex strings in my own scripts to parse unicode filenames for season and episode numbers. They were originally based on tvnamer file processing.

New regex strings:
config['name_parse'] = [
    # foo_[s01]_[e01]
    re.compile('''^(.+?)[ \._\-]\[[Ss]([0-9]+?)\]_\[[Ee]([0-9]+?)\]?[^\\/]*$'''% (config['valid_filename_chars_regex'])),
    # foo.1x09*
    re.compile('''^(.+?)[ \._\-]\[?([0-9]+)x([0-9]+)[^\\/]*$''' % (config['valid_filename_chars_regex'])),
    # foo.s01.e01, foo.s01_e01
    re.compile('''^(.+?)[ \._\-][Ss]([0-9]+)[\.\- ]?[Ee]([0-9]+)[^\\/]*$''' % (config['valid_filename_chars_regex'])),
    # foo.103*
    re.compile('''^(.+)[ \._\-]([0-9]{1})([0-9]{2})[\._ -][^\\/]*$''' % (config['valid_filename_chars_regex'])),
    # foo.0103*
    re.compile('''^(.+)[ \._\-]([0-9]{2})([0-9]{2,3})[\._ -][^\\/]*$''' % (config['valid_filename_chars_regex'])),
]</original-body>
    <latest-body>bbr/Ben: 
When tvnamer is used on unicode filenames the regex strings need to be modified. These new regex strings will still work for regular ascii filenames. tvnamer has other errors when processing unicode filenames that I do not have patches for. I use these regex strings in my own scripts to parse unicode filenames for season and episode numbers. They were originally based on tvnamer file processing.

New regex strings:
config['name_parse'] = [
    # foo_[s01]_[e01]
    re.compile('''^(.+?)[ \._\-]\[[Ss]([0-9]+?)\]_\[[Ee]([0-9]+?)\]?[^\\/]*$'''% (config['valid_filename_chars_regex'])),
    # foo.1x09*
    re.compile('''^(.+?)[ \._\-]\[?([0-9]+)x([0-9]+)[^\\/]*$''' % (config['valid_filename_chars_regex'])),
    # foo.s01.e01, foo.s01_e01
    re.compile('''^(.+?)[ \._\-][Ss]([0-9]+)[\.\- ]?[Ee]([0-9]+)[^\\/]*$''' % (config['valid_filename_chars_regex'])),
    # foo.103*
    re.compile('''^(.+)[ \._\-]([0-9]{1})([0-9]{2})[\._ -][^\\/]*$''' % (config['valid_filename_chars_regex'])),
    # foo.0103*
    re.compile('''^(.+)[ \._\-]([0-9]{2})([0-9]{2,3})[\._ -][^\\/]*$''' % (config['valid_filename_chars_regex'])),
]</latest-body>
    <original-body-html>&lt;div&gt;&lt;p&gt;bbr/Ben: When tvnamer is used on unicode filenames the regex
strings need to be modified. These new regex strings will still
work for regular ascii filenames. tvnamer has other errors when
processing unicode filenames that I do not have patches for. I use
these regex strings in my own scripts to parse unicode filenames
for season and episode numbers. They were originally based on
tvnamer file processing.&lt;/p&gt;
&lt;p&gt;New regex strings: config['name_parse'] = [&lt;/p&gt;
&lt;pre&gt;
&lt;code&gt;# foo_[s01]_[e01]
re.compile('''^(.+?)[ \._\-]\[[Ss]([0-9]+?)\]_\[[Ee]([0-9]+?)\]?[^\\/]*$'''% (config['valid_filename_chars_regex'])),
# foo.1x09*
re.compile('''^(.+?)[ \._\-]\[?([0-9]+)x([0-9]+)[^\\/]*$''' % (config['valid_filename_chars_regex'])),
# foo.s01.e01, foo.s01_e01
re.compile('''^(.+?)[ \._\-][Ss]([0-9]+)[\.\- ]?[Ee]([0-9]+)[^\\/]*$''' % (config['valid_filename_chars_regex'])),
# foo.103*
re.compile('''^(.+)[ \._\-]([0-9]{1})([0-9]{2})[\._ -][^\\/]*$''' % (config['valid_filename_chars_regex'])),
# foo.0103*
re.compile('''^(.+)[ \._\-]([0-9]{2})([0-9]{2,3})[\._ -][^\\/]*$''' % (config['valid_filename_chars_regex'])),
&lt;/code&gt;
&lt;/pre&gt;
&lt;p&gt;]&lt;/p&gt;&lt;/div&gt;</original-body-html>
  </ticket>
  <ticket>
    <assigned-user-id type="integer">24396</assigned-user-id>
    <attachments-count type="integer">0</attachments-count>
    <closed type="boolean">true</closed>
    <created-at type="datetime">2009-05-26T04:19:46+09:30</created-at>
    <creator-id type="integer">24396</creator-id>
    <milestone-due-on type="datetime" nil="true"></milestone-due-on>
    <milestone-id type="integer">40645</milestone-id>
    <number type="integer">50</number>
    <permalink>deploy-10</permalink>
    <priority type="integer">7</priority>
    <project-id type="integer">13342</project-id>
    <raw-data type="binary" nil="true" encoding="base64"></raw-data>
    <state>resolved</state>
    <tag>dev</tag>
    <title>deploy 1.0!</title>
    <updated-at type="datetime">2009-05-28T07:42:00+09:30</updated-at>
    <user-id type="integer">24396</user-id>
    <user-name>dbr/Ben</user-name>
    <creator-name>dbr/Ben</creator-name>
    <assigned-user-name>dbr/Ben</assigned-user-name>
    <url>http://dbr.lighthouseapp.com/projects/13342/tickets/50</url>
    <milestone-title>1.0</milestone-title>
    <original-body>I wanted ticket #50 to be this..</original-body>
    <latest-body>I wanted ticket #50 to be this..</latest-body>
    <original-body-html>&lt;div&gt;&lt;p&gt;I wanted ticket &lt;a href=&quot;/projects/13342/tickets/50&quot; title=&quot;Ticket #50&quot;&gt;#50&lt;/a&gt; to be this..&lt;/p&gt;&lt;/div&gt;</original-body-html>
  </ticket>
  <ticket>
    <assigned-user-id type="integer">24396</assigned-user-id>
    <attachments-count type="integer">0</attachments-count>
    <closed type="boolean">true</closed>
    <created-at type="datetime">2009-05-26T04:16:45+09:30</created-at>
    <creator-id type="integer">24396</creator-id>
    <milestone-due-on type="datetime" nil="true"></milestone-due-on>
    <milestone-id type="integer">40645</milestone-id>
    <number type="integer">48</number>
    <permalink>ensure-documentation-is-up-to-date</permalink>
    <priority type="integer">6</priority>
    <project-id type="integer">13342</project-id>
    <raw-data type="binary" nil="true" encoding="base64"></raw-data>
    <state>resolved</state>
    <tag>dev tvdb_api tvnamer</tag>
    <title>Ensure documentation is up to date</title>
    <updated-at type="datetime">2009-05-28T07:19:25+09:30</updated-at>
    <user-id type="integer">24396</user-id>
    <user-name>dbr/Ben</user-name>
    <creator-name>dbr/Ben</creator-name>
    <assigned-user-name>dbr/Ben</assigned-user-name>
    <url>http://dbr.lighthouseapp.com/projects/13342/tickets/48</url>
    <milestone-title>1.0</milestone-title>
    <original-body>Should be, the doctests are all passing, but double check</original-body>
    <latest-body>Should be, the doctests are all passing, but double check</latest-body>
    <original-body-html>&lt;div&gt;&lt;p&gt;Should be, the doctests are all passing, but double check&lt;/p&gt;&lt;/div&gt;</original-body-html>
  </ticket>
  <ticket>
    <assigned-user-id type="integer">24396</assigned-user-id>
    <attachments-count type="integer">0</attachments-count>
    <closed type="boolean">true</closed>
    <created-at type="datetime">2009-05-26T04:22:48+09:30</created-at>
    <creator-id type="integer">24396</creator-id>
    <milestone-due-on type="datetime" nil="true"></milestone-due-on>
    <milestone-id type="integer">40645</milestone-id>
    <number type="integer">54</number>
    <permalink>ensure-easy_install-installation-works-on-os-xlinuxwindows</permalink>
    <priority type="integer">2</priority>
    <project-id type="integer">13342</project-id>
    <raw-data type="binary" nil="true" encoding="base64"></raw-data>
    <state>resolved</state>
    <tag>dev tvdb_api tvnamer</tag>
    <title>Ensure easy_install installation works on OS X/Linux/Windows</title>
    <updated-at type="datetime">2009-05-27T08:21:53+09:30</updated-at>
    <user-id type="integer">24396</user-id>
    <user-name>dbr/Ben</user-name>
    <creator-name>dbr/Ben</creator-name>
    <assigned-user-name>dbr/Ben</assigned-user-name>
    <url>http://dbr.lighthouseapp.com/projects/13342/tickets/54</url>
    <milestone-title>1.0</milestone-title>
    <original-body>Ensure `easy_install tvnamer` and `easy_install tvdb_api` work as expected on OS X, Linux and Windows</original-body>
    <latest-body>Ensure `easy_install tvnamer` and `easy_install tvdb_api` work as expected on OS X, Linux and Windows</latest-body>
    <original-body-html>&lt;div&gt;&lt;p&gt;Ensure &lt;code&gt;easy_install tvnamer&lt;/code&gt; and &lt;code&gt;easy_install
tvdb_api&lt;/code&gt; work as expected on OS X, Linux and Windows&lt;/p&gt;&lt;/div&gt;</original-body-html>
  </ticket>
  <ticket>
    <assigned-user-id type="integer">24396</assigned-user-id>
    <attachments-count type="integer">0</attachments-count>
    <closed type="boolean">true</closed>
    <created-at type="datetime">2009-05-26T04:20:33+09:30</created-at>
    <creator-id type="integer">24396</creator-id>
    <milestone-due-on type="datetime" nil="true"></milestone-due-on>
    <milestone-id type="integer">40645</milestone-id>
    <number type="integer">51</number>
    <permalink>test-tvnamer-on-clean-os-x-install</permalink>
    <priority type="integer">3</priority>
    <project-id type="integer">13342</project-id>
    <raw-data type="binary" nil="true" encoding="base64"></raw-data>
    <state>resolved</state>
    <tag>dev tvnamer</tag>
    <title>Test tvnamer on clean OS X install</title>
    <updated-at type="datetime">2009-05-27T08:20:54+09:30</updated-at>
    <user-id type="integer">24396</user-id>
    <user-name>dbr/Ben</user-name>
    <creator-name>dbr/Ben</creator-name>
    <assigned-user-name>dbr/Ben</assigned-user-name>
    <url>http://dbr.lighthouseapp.com/projects/13342/tickets/51</url>
    <milestone-title>1.0</milestone-title>
    <original-body>Ensure all files from ticket #49 are renamed correctly</original-body>
    <latest-body>Ensure all files from ticket #49 are renamed correctly</latest-body>
    <original-body-html>&lt;div&gt;&lt;p&gt;Ensure all files from ticket &lt;a href=&quot;/projects/13342/tickets/49&quot; title=&quot;Ticket #49&quot;&gt;#49&lt;/a&gt; are renamed
correctly&lt;/p&gt;&lt;/div&gt;</original-body-html>
  </ticket>
  <ticket>
    <assigned-user-id type="integer">24396</assigned-user-id>
    <attachments-count type="integer">0</attachments-count>
    <closed type="boolean">true</closed>
    <created-at type="datetime">2009-05-26T04:21:49+09:30</created-at>
    <creator-id type="integer">24396</creator-id>
    <milestone-due-on type="datetime" nil="true"></milestone-due-on>
    <milestone-id type="integer">40645</milestone-id>
    <number type="integer">53</number>
    <permalink>test-tvnamer-on-linux</permalink>
    <priority type="integer">5</priority>
    <project-id type="integer">13342</project-id>
    <raw-data type="binary" nil="true" encoding="base64"></raw-data>
    <state>resolved</state>
    <tag>dev</tag>
    <title>Test tvnamer on Linux</title>
    <updated-at type="datetime">2009-05-27T08:01:21+09:30</updated-at>
    <user-id type="integer">24396</user-id>
    <user-name>dbr/Ben</user-name>
    <creator-name>dbr/Ben</creator-name>
    <assigned-user-name>dbr/Ben</assigned-user-name>
    <url>http://dbr.lighthouseapp.com/projects/13342/tickets/53</url>
    <milestone-title>1.0</milestone-title>
    <original-body>Test files from ticket #49 rename correctly.</original-body>
    <latest-body>Test files from ticket #49 rename correctly.</latest-body>
    <original-body-html>&lt;div&gt;&lt;p&gt;Test files from ticket &lt;a href=&quot;/projects/13342/tickets/49&quot; title=&quot;Ticket #49&quot;&gt;#49&lt;/a&gt; rename correctly.&lt;/p&gt;&lt;/div&gt;</original-body-html>
  </ticket>
  <ticket>
    <assigned-user-id type="integer">24396</assigned-user-id>
    <attachments-count type="integer">0</attachments-count>
    <closed type="boolean">true</closed>
    <created-at type="datetime">2009-05-26T04:20:59+09:30</created-at>
    <creator-id type="integer">24396</creator-id>
    <milestone-due-on type="datetime" nil="true"></milestone-due-on>
    <milestone-id type="integer">40645</milestone-id>
    <number type="integer">52</number>
    <permalink>test-tvnamer-on-clean-windows-install</permalink>
    <priority type="integer">4</priority>
    <project-id type="integer">13342</project-id>
    <raw-data type="binary" nil="true" encoding="base64"></raw-data>
    <state>resolved</state>
    <tag>dev tvnamer</tag>
    <title>Test tvnamer on clean Windows install</title>
    <updated-at type="datetime">2009-05-27T07:09:59+09:30</updated-at>
    <user-id type="integer">24396</user-id>
    <user-name>dbr/Ben</user-name>
    <creator-name>dbr/Ben</creator-name>
    <assigned-user-name>dbr/Ben</assigned-user-name>
    <url>http://dbr.lighthouseapp.com/projects/13342/tickets/52</url>
    <milestone-title>1.0</milestone-title>
    <original-body>Check files from ticket #49 rename correctly</original-body>
    <latest-body>Check files from ticket #49 rename correctly</latest-body>
    <original-body-html>&lt;div&gt;&lt;p&gt;Check files from ticket &lt;a href=&quot;/projects/13342/tickets/49&quot; title=&quot;Ticket #49&quot;&gt;#49&lt;/a&gt; rename correctly&lt;/p&gt;&lt;/div&gt;</original-body-html>
  </ticket>
  <ticket>
    <assigned-user-id type="integer">24396</assigned-user-id>
    <attachments-count type="integer">0</attachments-count>
    <closed type="boolean">true</closed>
    <created-at type="datetime">2009-05-26T04:18:59+09:30</created-at>
    <creator-id type="integer">24396</creator-id>
    <milestone-due-on type="datetime" nil="true"></milestone-due-on>
    <milestone-id type="integer">40645</milestone-id>
    <number type="integer">49</number>
    <permalink>write-script-to-create-test-tv-files</permalink>
    <priority type="integer">1</priority>
    <project-id type="integer">13342</project-id>
    <raw-data type="binary" nil="true" encoding="base64"></raw-data>
    <state>resolved</state>
    <tag>dev tvnamer</tag>
    <title>Write script to create test TV files</title>
    <updated-at type="datetime">2009-05-27T03:08:07+09:30</updated-at>
    <user-id type="integer">24396</user-id>
    <user-name>dbr/Ben</user-name>
    <creator-name>dbr/Ben</creator-name>
    <assigned-user-name>dbr/Ben</assigned-user-name>
    <url>http://dbr.lighthouseapp.com/projects/13342/tickets/49</url>
    <milestone-title>1.0</milestone-title>
    <original-body>For testing on different platforms</original-body>
    <latest-body>For testing on different platforms</latest-body>
    <original-body-html>&lt;div&gt;&lt;p&gt;For testing on different platforms&lt;/p&gt;&lt;/div&gt;</original-body-html>
  </ticket>
  <ticket>
    <assigned-user-id type="integer">24396</assigned-user-id>
    <attachments-count type="integer">0</attachments-count>
    <closed type="boolean">false</closed>
    <created-at type="datetime">2009-01-23T19:48:53+10:30</created-at>
    <creator-id type="integer">24396</creator-id>
    <milestone-due-on type="datetime" nil="true"></milestone-due-on>
    <milestone-id type="integer">40646</milestone-id>
    <number type="integer">29</number>
    <permalink>season-banners-should-be-accessible-via-tshow1</permalink>
    <priority type="integer">4</priority>
    <project-id type="integer">13342</project-id>
    <raw-data type="binary" nil="true" encoding="base64"></raw-data>
    <state>new</state>
    <tag>improvement tvdb_api</tag>
    <title>Season banners should be accessible via t['show'][1]</title>
    <updated-at type="datetime">2009-05-26T04:14:14+09:30</updated-at>
    <user-id type="integer">24396</user-id>
    <user-name>dbr/Ben</user-name>
    <creator-name>dbr/Ben</creator-name>
    <assigned-user-name>dbr/Ben</assigned-user-name>
    <url>http://dbr.lighthouseapp.com/projects/13342/tickets/29</url>
    <milestone-title>2.0</milestone-title>
    <original-body>The current method of retrieving banners is a bit of a mess:

    t['show']['_banners']['fanart'][banners_id]['_bannerpath']

..or something along those lines. Users should be able to do something like..

    &gt;&gt;&gt; t['show']['_banners']['posters']
    [&lt;Banner id:123&gt;, &lt;Banner id:124]
    &gt;&gt;&gt; t['show']['_banners']['posters'][0]['url']
    http://....</original-body>
    <latest-body>The current method of retrieving banners is a bit of a mess:

    t['show']['_banners']['fanart'][banners_id]['_bannerpath']

..or something along those lines. Users should be able to do something like..

    &gt;&gt;&gt; t['show']['_banners']['posters']
    [&lt;Banner id:123&gt;, &lt;Banner id:124]
    &gt;&gt;&gt; t['show']['_banners']['posters'][0]['url']
    http://....</latest-body>
    <original-body-html>&lt;div&gt;&lt;p&gt;The current method of retrieving banners is a bit of a mess:&lt;/p&gt;
&lt;pre&gt;
&lt;code&gt;t['show']['_banners']['fanart'][banners_id]['_bannerpath']
&lt;/code&gt;
&lt;/pre&gt;
&lt;p&gt;..or something along those lines. Users should be able to do
something like..&lt;/p&gt;
&lt;pre&gt;
&lt;code&gt;&amp;gt;&amp;gt;&amp;gt; t['show']['_banners']['posters']
[, &amp;gt;&amp;gt; t['show']['_banners']['posters'][0]['url']
http://....
&lt;/code&gt;
&lt;/pre&gt;&lt;/div&gt;</original-body-html>
  </ticket>
  <ticket>
    <assigned-user-id type="integer">24396</assigned-user-id>
    <attachments-count type="integer">0</attachments-count>
    <closed type="boolean">false</closed>
    <created-at type="datetime">2009-03-25T00:26:21+10:30</created-at>
    <creator-id type="integer">46805</creator-id>
    <milestone-due-on type="datetime" nil="true"></milestone-due-on>
    <milestone-id type="integer">40646</milestone-id>
    <number type="integer">43</number>
    <permalink>top-rated-season-level-graphics</permalink>
    <priority type="integer">3</priority>
    <project-id type="integer">13342</project-id>
    <raw-data type="binary" nil="true" encoding="base64"></raw-data>
    <state>open</state>
    <tag>improvement tvdb_api</tag>
    <title>Top rated season level graphics</title>
    <updated-at type="datetime">2009-05-26T04:13:48+09:30</updated-at>
    <user-id type="integer">24396</user-id>
    <user-name>dbr/Ben</user-name>
    <creator-name>RDV</creator-name>
    <assigned-user-name>dbr/Ben</assigned-user-name>
    <url>http://dbr.lighthouseapp.com/projects/13342/tickets/43</url>
    <milestone-title>2.0</milestone-title>
    <original-body>I there a way to access the top rated poster and banner URL's at the season level? I top rated graphics at the series level is an excellent option I would like to extend to the season level.</original-body>
    <latest-body>I there a way to access the top rated poster and banner URL's at the season level? I top rated graphics at the series level is an excellent option I would like to extend to the season level.</latest-body>
    <original-body-html>&lt;div&gt;&lt;p&gt;I there a way to access the top rated poster and banner URL's at
the season level? I top rated graphics at the series level is an
excellent option I would like to extend to the season level.&lt;/p&gt;&lt;/div&gt;</original-body-html>
  </ticket>
  <ticket>
    <assigned-user-id type="integer">24396</assigned-user-id>
    <attachments-count type="integer">0</attachments-count>
    <closed type="boolean">true</closed>
    <created-at type="datetime">2009-04-18T00:37:54+09:30</created-at>
    <creator-id type="integer">46805</creator-id>
    <milestone-due-on type="datetime" nil="true"></milestone-due-on>
    <milestone-id type="integer" nil="true"></milestone-id>
    <number type="integer">44</number>
    <permalink>slight-error-in-the-gets-series-for-mult-languages</permalink>
    <priority type="integer">22523</priority>
    <project-id type="integer">13342</project-id>
    <raw-data type="binary" nil="true" encoding="base64"></raw-data>
    <state>resolved</state>
    <tag>bug tvdb_api</tag>
    <title>Slight error in the gets series for mult-languages</title>
    <updated-at type="datetime">2009-04-21T04:35:14+09:30</updated-at>
    <user-id type="integer">24396</user-id>
    <user-name>dbr/Ben</user-name>
    <creator-name>RDV</creator-name>
    <assigned-user-name>dbr/Ben</assigned-user-name>
    <url>http://dbr.lighthouseapp.com/projects/13342/tickets/44</url>
    <original-body>dbr/Ben: When you changed tvdb_api to add language you skipped the change:
&gt;         series = urllib.quote(series.encode(&quot;utf-8&quot;))

Adding the encode is essential to make the urllib.quote work.

Please add this change as well. 

Thanks</original-body>
    <latest-body>dbr/Ben: When you changed tvdb_api to add language you skipped the change:
&gt;         series = urllib.quote(series.encode(&quot;utf-8&quot;))

Adding the encode is essential to make the urllib.quote work.

Please add this change as well. 

Thanks</latest-body>
    <original-body-html>&lt;div&gt;&lt;p&gt;dbr/Ben: When you changed tvdb_api to add language you skipped
the change:&lt;/p&gt;
&lt;blockquote&gt;
&lt;pre&gt;
&lt;code&gt;    series = urllib.quote(series.encode(&quot;utf-8&quot;))
&lt;/code&gt;
&lt;/pre&gt;&lt;/blockquote&gt;
&lt;p&gt;Adding the encode is essential to make the urllib.quote
work.&lt;/p&gt;
&lt;p&gt;Please add this change as well.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;/div&gt;</original-body-html>
  </ticket>
  <ticket>
    <assigned-user-id type="integer">24396</assigned-user-id>
    <attachments-count type="integer">0</attachments-count>
    <closed type="boolean">true</closed>
    <created-at type="datetime">2009-03-22T07:08:35+10:30</created-at>
    <creator-id type="integer">46805</creator-id>
    <milestone-due-on type="datetime" nil="true"></milestone-due-on>
    <milestone-id type="integer" nil="true"></milestone-id>
    <number type="integer">42</number>
    <permalink>issues-around-language-and-search</permalink>
    <priority type="integer">22522</priority>
    <project-id type="integer">13342</project-id>
    <raw-data type="binary" nil="true" encoding="base64"></raw-data>
    <state>resolved</state>
    <tag>bug tvdb_api</tag>
    <title>Issues around language and search</title>
    <updated-at type="datetime">2009-04-17T10:25:49+09:30</updated-at>
    <user-id type="integer">24396</user-id>
    <user-name>dbr/Ben</user-name>
    <creator-name>RDV</creator-name>
    <assigned-user-name>dbr/Ben</assigned-user-name>
    <url>http://dbr.lighthouseapp.com/projects/13342/tickets/42</url>
    <original-body>Thanks for adding episode data selection by language it works great! While testing I found out that the despite setting a language code for Tvdb, series searches still expect english series names. I suspect but did not test if episode name searches have the same issue. Is there any chance that multi-language support can be extended to searches? Here is an example: http://thetvdb.com/index.php?tab=series&amp;id=81377&amp;lid=27
Series name search &quot;T&#236;nh Ng&#432;&#7901;i Hi&#7879;n &#272;&#7841;i&quot; fails but &quot;Virtues Of Harmony II&quot; works. Of course a search by SID also works.</original-body>
    <latest-body>Thanks for adding episode data selection by language it works great! While testing I found out that the despite setting a language code for Tvdb, series searches still expect english series names. I suspect but did not test if episode name searches have the same issue. Is there any chance that multi-language support can be extended to searches? Here is an example: http://thetvdb.com/index.php?tab=series&amp;id=81377&amp;lid=27
Series name search &quot;T&#236;nh Ng&#432;&#7901;i Hi&#7879;n &#272;&#7841;i&quot; fails but &quot;Virtues Of Harmony II&quot; works. Of course a search by SID also works.</latest-body>
    <original-body-html>&lt;div&gt;&lt;p&gt;Thanks for adding episode data selection by language it works
great! While testing I found out that the despite setting a
language code for Tvdb, series searches still expect english series
names. I suspect but did not test if episode name searches have the
same issue. Is there any chance that multi-language support can be
extended to searches? Here is an example: &lt;a href=&quot;http://thetvdb.com/index.php?tab=series&amp;amp;id=81377&amp;amp;lid=27&quot;&gt;http://thetvdb.com/index.php?tab...&lt;/a&gt;
Series name search &quot;T&amp;igrave;nh Ng&amp;#432;&amp;#7901;i Hi&amp;#7879;n
&amp;#272;&amp;#7841;i&quot; fails but &quot;Virtues Of Harmony II&quot; works. Of course
a search by SID also works.&lt;/p&gt;&lt;/div&gt;</original-body-html>
  </ticket>
  <ticket>
    <assigned-user-id type="integer">24396</assigned-user-id>
    <attachments-count type="integer">0</attachments-count>
    <closed type="boolean">true</closed>
    <created-at type="datetime">2008-08-10T11:24:39+09:30</created-at>
    <creator-id type="integer">24396</creator-id>
    <milestone-due-on type="datetime" nil="true"></milestone-due-on>
    <milestone-id type="integer" nil="true"></milestone-id>
    <number type="integer">11</number>
    <permalink>aliases-for-show-name-parsing</permalink>
    <priority type="integer">2</priority>
    <project-id type="integer">13342</project-id>
    <raw-data type="binary" nil="true" encoding="base64"></raw-data>
    <state>wontfix</state>
    <tag>idea tvnamer</tag>
    <title>Aliases for show-name parsing</title>
    <updated-at type="datetime">2009-04-13T23:02:39+09:30</updated-at>
    <user-id type="integer">24396</user-id>
    <user-name>dbr/Ben</user-name>
    <creator-name>dbr/Ben</creator-name>
    <assigned-user-name>dbr/Ben</assigned-user-name>
    <url>http://dbr.lighthouseapp.com/projects/13342/tickets/11</url>
    <original-body>Another suggestion would be to test out natbur's tvrenamer for some cool functionality with assigning an alias to a series. So CSINY, CSI New York, and CSI NY all match properly to &quot;CSI NY&quot;. It then remembers these settings the next time I run it. So lets say your app doesn't know if it has a match for &quot;CSI.New.York.S01E02.Whatever.avi&quot;. So you are allowed to enter a search string and bring up a list of series that match &quot;CSI&quot;. I then select &quot;CSI NY&quot; as the proper series and your app adds an entry for &quot;CSI New York&quot; as an alias for &quot;CSI NY&quot; or the seriesid. So next time I run this it now be able to match it to the proper series.

[author:havix # http://forums.thetvdb.com/viewtopic.php?t=908#4781 ]</original-body>
    <latest-body>Another suggestion would be to test out natbur's tvrenamer for some cool functionality with assigning an alias to a series. So CSINY, CSI New York, and CSI NY all match properly to &quot;CSI NY&quot;. It then remembers these settings the next time I run it. So lets say your app doesn't know if it has a match for &quot;CSI.New.York.S01E02.Whatever.avi&quot;. So you are allowed to enter a search string and bring up a list of series that match &quot;CSI&quot;. I then select &quot;CSI NY&quot; as the proper series and your app adds an entry for &quot;CSI New York&quot; as an alias for &quot;CSI NY&quot; or the seriesid. So next time I run this it now be able to match it to the proper series.

[author:havix # http://forums.thetvdb.com/viewtopic.php?t=908#4781 ]</latest-body>
    <original-body-html>&lt;div&gt;&lt;p&gt;Another suggestion would be to test out natbur's tvrenamer for some cool functionality with assigning an alias to a series. So CSINY, CSI New York, and CSI NY all match properly to &quot;CSI NY&quot;. It then remembers these settings the next time I run it. So lets say your app doesn't know if it has a match for &quot;CSI.New.York.S01E02.Whatever.avi&quot;. So you are allowed to enter a search string and bring up a list of series that match &quot;CSI&quot;. I then select &quot;CSI NY&quot; as the proper series and your app adds an entry for &quot;CSI New York&quot; as an alias for &quot;CSI NY&quot; or the seriesid. So next time I run this it now be able to match it to the proper series.&lt;/p&gt;

&lt;p&gt;[author:havix # &lt;a href=&quot;http://forums.thetvdb.com/viewtopic.php?t=908#4781&quot;&gt;http://forums.thetvdb.com/viewto...&lt;/a&gt; ]&lt;/p&gt;&lt;/div&gt;</original-body-html>
  </ticket>
  <ticket>
    <assigned-user-id type="integer">24396</assigned-user-id>
    <attachments-count type="integer">0</attachments-count>
    <closed type="boolean">true</closed>
    <created-at type="datetime">2009-03-20T18:39:10+10:30</created-at>
    <creator-id type="integer">24396</creator-id>
    <milestone-due-on type="datetime" nil="true"></milestone-due-on>
    <milestone-id type="integer" nil="true"></milestone-id>
    <number type="integer">40</number>
    <permalink>correctly-url-escape-show-name</permalink>
    <priority type="integer">19</priority>
    <project-id type="integer">13342</project-id>
    <raw-data type="binary" nil="true" encoding="base64"></raw-data>
    <state>resolved</state>
    <tag>bug tvnamer</tag>
    <title>Correctly URL-escape show-name</title>
    <updated-at type="datetime">2009-03-21T15:55:24+10:30</updated-at>
    <user-id type="integer">24396</user-id>
    <user-name>dbr/Ben</user-name>
    <creator-name>dbr/Ben</creator-name>
    <assigned-user-name>dbr/Ben</assigned-user-name>
    <url>http://dbr.lighthouseapp.com/projects/13342/tickets/40</url>
    <original-body>Reported by midgetspy

&gt; Searching for &quot;Brothers &amp; Sisters&quot; on the website shows the correct result, but doing it through the API gives me the show &quot;Brothers&quot;. Is there maybe some url escaping funny business going on?</original-body>
    <latest-body>Reported by midgetspy

&gt; Searching for &quot;Brothers &amp; Sisters&quot; on the website shows the correct result, but doing it through the API gives me the show &quot;Brothers&quot;. Is there maybe some url escaping funny business going on?</latest-body>
    <original-body-html>&lt;div&gt;&lt;p&gt;Reported by midgetspy&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Searching for &quot;Brothers &amp;amp; Sisters&quot; on the website shows the
correct result, but doing it through the API gives me the show
&quot;Brothers&quot;. Is there maybe some url escaping funny business going
on?&lt;/p&gt;
&lt;/blockquote&gt;&lt;/div&gt;</original-body-html>
  </ticket>
  <ticket>
    <assigned-user-id type="integer">24396</assigned-user-id>
    <attachments-count type="integer">0</attachments-count>
    <closed type="boolean">true</closed>
    <created-at type="datetime">2009-02-15T03:50:00+10:30</created-at>
    <creator-id type="integer">24396</creator-id>
    <milestone-due-on type="datetime" nil="true"></milestone-due-on>
    <milestone-id type="integer" nil="true"></milestone-id>
    <number type="integer">37</number>
    <permalink>basic-tests-for-uis</permalink>
    <priority type="integer">22521</priority>
    <project-id type="integer">13342</project-id>
    <raw-data type="binary" nil="true" encoding="base64"></raw-data>
    <state>wontfix</state>
    <tag>dev tvdb_api</tag>
    <title>Basic tests for UIs</title>
    <updated-at type="datetime">2009-03-21T15:43:41+10:30</updated-at>
    <user-id type="integer">24396</user-id>
    <user-name>dbr/Ben</user-name>
    <creator-name>dbr/Ben</creator-name>
    <assigned-user-name>dbr/Ben</assigned-user-name>
    <url>http://dbr.lighthouseapp.com/projects/13342/tickets/37</url>
    <original-body>Test BaseUI returns correctly, investigate how to test ConsoleUI functionality</original-body>
    <latest-body>Test BaseUI returns correctly, investigate how to test ConsoleUI functionality</latest-body>
    <original-body-html>&lt;div&gt;&lt;p&gt;Test BaseUI returns correctly, investigate how to test ConsoleUI
functionality&lt;/p&gt;&lt;/div&gt;</original-body-html>
  </ticket>
</tickets>
