2010-07-21, 22:07
Firstly, thanks for creating such a great script - it has made things a lot easier for me to get shows into XBMC. I have had problems with tv shows which have an '&' in the tile.
"Law & Order: Special Victims Unit" was being saved as "Law & Order: Special Victims Unit" and "Brothers & Sisters" was being incorrectly matched against "Brothers And Sisters (1979)".
The SVU issue I traced back to the '&' character not being properly
escaped in the SED commands which are supposed to replace '&' with '&'. They currently look like this:
sed s/"&"/"&"/g
but should actually look like this:
sed s/"&"/"\&"/g
The Brothers & Sisters issue related to "&" character not being replaced
with "%26" in the tvdb search url. The result was that TheTVDB was searching for series containing the words "Brothers" and "Sisters", rather than searching for a series with the phrase "Brothers & Sisters". I fixed it by making the following
change:
tvdbshowname=`echo $ShowName | sed s/" "/"%20"/g |sed s/"&"/"%26"/g`
mythicalLibrarian now correctly finds and names both shows.
Could you please make the above changes to the SVN so that I can continue to use the upgrade function?.
Another tweak I have made to my install is to change the permissions of files to allow read/write access to members of the mythtv group. This is because I still need to rename some of the files, but at the moment I need to mess around with either root access or running as the mythtv user in order to rename files (or move files around in directories created by mythicalLibrarian). Can you consider giving 'group' read/write access by default going forward?
Cheers.
"Law & Order: Special Victims Unit" was being saved as "Law & Order: Special Victims Unit" and "Brothers & Sisters" was being incorrectly matched against "Brothers And Sisters (1979)".
The SVU issue I traced back to the '&' character not being properly
escaped in the SED commands which are supposed to replace '&' with '&'. They currently look like this:
sed s/"&"/"&"/g
but should actually look like this:
sed s/"&"/"\&"/g
The Brothers & Sisters issue related to "&" character not being replaced
with "%26" in the tvdb search url. The result was that TheTVDB was searching for series containing the words "Brothers" and "Sisters", rather than searching for a series with the phrase "Brothers & Sisters". I fixed it by making the following
change:
tvdbshowname=`echo $ShowName | sed s/" "/"%20"/g |sed s/"&"/"%26"/g`
mythicalLibrarian now correctly finds and names both shows.
Could you please make the above changes to the SVN so that I can continue to use the upgrade function?.
Another tweak I have made to my install is to change the permissions of files to allow read/write access to members of the mythtv group. This is because I still need to rename some of the files, but at the moment I need to mess around with either root access or running as the mythtv user in order to rename files (or move files around in directories created by mythicalLibrarian). Can you consider giving 'group' read/write access by default going forward?
Cheers.