Skip to content

Commit

Permalink
Bugfix for PerfectGonzo/AssTraffic
Browse files Browse the repository at this point in the history
  • Loading branch information
PAhelper committed Jan 22, 2019
1 parent 06b0185 commit 0e3bc36
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Contents/Code/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -636,7 +636,7 @@ def update(self, metadata, media, lang):
## ##
##############################################################
if siteID >= 448 and siteID <= 459:
metadata = PAsearchSites.networkPefectGonzo.update(metadata,siteID,movieGenres,movieActors)
metadata = PAsearchSites.networkPerfectGonzo.update(metadata,siteID,movieGenres,movieActors)


##############################################################
Expand Down
3 changes: 1 addition & 2 deletions Contents/Code/networkPornFidelity.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ def search(results,encodedTitle,title,searchTitle,siteNum,lang,searchByDateActor
if searchByDateActor != True:
score = 102 - Util.LevenshteinDistance(searchTitle.lower(), titleNoFormatting.lower())
else:
searchDateCompare = datetime.strptime(searchDate, '%Y-%m-%d').strftime('%b %m, $Y')
score = 102 - Util.LevenshteinDistance(searchDateCompare.lower(), releaseDate.lower())
score = 102 - Util.LevenshteinDistance(searchDate, releaseDate)
titleNoFormatting = titleNoFormatting + " [" + PAsearchSites.getSearchSiteName(siteNum) + "] " + releaseDate
results.Append(MetadataSearchResult(id = curID + "|" + str(siteNum), name = titleNoFormatting, score = score, lang = lang))

Expand Down

0 comments on commit 0e3bc36

Please sign in to comment.