Skip to content

Commit

Permalink
Added DVD scene support for Devil's Film (and hopefully more) of Gamm…
Browse files Browse the repository at this point in the history
…a Ent
  • Loading branch information
PAhelper committed Jan 21, 2019
1 parent 2148888 commit a644f66
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
18 changes: 13 additions & 5 deletions Contents/Code/networkGammaEnt.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,15 +114,23 @@ def update(metadata,siteID,movieGenres,movieActors):
metadata.tagline = tagline
metadata.collections.add(tagline)
try:
metadata.title = detailsPageElements.xpath('//meta[@name="twitter:title"]')[0].get('content').strip()
dvdTitle = detailsPageElements.xpath('//a[contains(@class,"dvdLink")][1]')[0].get('title').strip()
metadata.collections.add(dvdTitle.replace('#0','').replace('#',''))
except:
metadata.title = detailsPageElements.xpath('//h1')[0].text_content().strip()
pass

try:
dvdLink = detailsPageElements.xpath('//a[contains(@class,"dvdLink")][1]')[0].get('title').strip()
metadata.collections.add(dvdLink)
title = detailsPageElements.xpath('//meta[@name="twitter:title"]')[0].get('content').strip()
except:
pass
title = detailsPageElements.xpath('//h1')[0].text_content().strip()

if dvdTitle == title:
pageTitle = detailsPageElements.xpath('//title')[0].text_content().strip()
alpha = pageTitle.find('Scene')+6
omega = pageTitle.find(' ',alpha)
title = (title + " - Scene " + pageTitle[alpha:omega].strip()).replace('#0','').replace('#','')

metadata.title = title

# Director
metadata.directors.clear()
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ No real error checking is implemented. It was quickly tested on 10+ titles per s
- GloryholeSecrets only searches by their video title, and their title is very structured and limited. Best to just search for girl's first name only e.g. "GloryholeSecrets - Rachele"

## Change Log/Updates
- 2019-01-21 9:00AM CST - Cleaned up the search section of init, a few other bugfixes
- 2019-01-20 5:15PM CST - Merged Dev's code for JulesJordan, Dogfart Network, DDF Network, and the Perfect Gonzo network. Added 21Sextreme network to the existing GammaEnt file.
- 2019-01-15 7:45AM CST - Added 4 new NaughtyAmerica sites: LA Sluts, Slut Stepsister, Teens Love Cream, and Latina Stepmom
- 2019-01-14 7:15PM CST - Bugfix and a few enhancements for Evil Angel
Expand Down Expand Up @@ -428,7 +429,6 @@ No real error checking is implemented. It was quickly tested on 10+ titles per s
- Stepmom Lessons
#### - Gloryhole Secrets *Title Search (includes actress first name)
#### - New Sensations
#### - Pure Taboo
#### - Swallowed / TrueAnal / Nymphos *Title Search (usually includes actress first name)
#### - SexyHub *Title Search
- Dane Jones
Expand Down

0 comments on commit a644f66

Please sign in to comment.