2015-09-18, 16:49
Thanks to the change suggest by tyborallall it's working for me again.
Whilst I was updating the default.py I thought I'd figure out why add season to library no longer worked for me. I was finding it was only adding 1 episode and that was for the wrong TV Series. A simple change has fixed it for me - within the definition for addSeasonToLibrary, on the 6th and 8th lines in the code below, I replaced urlMain with urlMainS. So it now looks like this:
Whilst I was updating the default.py I thought I'd figure out why add season to library no longer worked for me. I was finding it was only adding 1 episode and that was for the wrong TV Series. A simple change has fixed it for me - within the definition for addSeasonToLibrary, on the 6th and 8th lines in the code below, I replaced urlMain with urlMainS. So it now looks like this:
Code:
def addSeasonToLibrary(seriesID, seriesTitle, seasonID):
seriesFolderName = (''.join(c for c in seriesTitle if c not in '/\\:?"*|<>')).strip(' .')
seriesDir = os.path.join(libraryFolderTV, seriesFolderName)
if not os.path.isdir(seriesDir):
xbmcvfs.mkdir(unicode(seriesDir).encode("iso-8859-1"))
content = getUnicodePage(urlMainS+"/gp/product/"+seasonID)
matchSeason = re.compile('"seasonNumber":"(.+?)"', re.DOTALL).findall(content)
spl = content.split('href="'+urlMainS+'/gp/product')
for i in range(1, len(spl), 1):