Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Various Changes - New Sites/Cleanup #1833

Merged
merged 7 commits into from
Sep 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions Contents/Code/PAdatabaseActors.py
Original file line number Diff line number Diff line change
Expand Up @@ -1534,6 +1534,7 @@
'Jennifer Stone': ['Jeniffer Stone'],
'Mishelle Klein': ['Molly'],
'Sapphire Blue': ['Sapphire'],
'Siri Dahl': ['Siri'],
},
22: { # Reality Kings
'Agness Miller': ['Agness'],
Expand Down Expand Up @@ -5587,8 +5588,13 @@
'Rose Winters': ['Rose'],
},
56: { # Score Group
'Bess Breast': ['Bess'],
'Gracie Gates': ['Gracie'],
'Leana Lovings': ['Leana'],
'Luna Fae': ['Luna'],
'Mella Megan': ['Mella'],
'Reese Robbins': ['Reese'],
'Siri Dahl': ['Siri'],
},
57: { # Desperate Amateurs
'Stephie Staar': ['Stephie'],
Expand Down
20 changes: 17 additions & 3 deletions Contents/Code/PAsiteList.py
Original file line number Diff line number Diff line change
Expand Up @@ -1837,6 +1837,10 @@
1741: ('Colette', 'https://www.colette.com', '/videos/'),
1742: ('SINematica', 'https://sinematica.com', '/Scene/MemberSearch?q='),
1743: ('Work Me Harder', 'https://www.realitykings.com', 'https://site-api.project1service.com'),
1744: ('ScoreVideos', 'https://www.scorevideos.com', '/porn-videos/'),
1745: ('Bush', 'https://www.cherrypimps.com', '/search.php?query='),
1746: ('Ginger', 'https://www.cherrypimps.com', '/search.php?query='),
1747: ('Divine-DD', 'https://www.divine-dd.com', '/search/'),
}

abbreviations = (
Expand Down Expand Up @@ -1899,6 +1903,15 @@
('^clip ', 'AnalVids '),
('^clubseventeen ', 'ClubSweethearts '),
('^cps ', 'CherryPimps '),
('^cpbush ', 'Bush '),
('^cpbusted ', 'Busted '),
('^cpcheese ', 'Cheese.XXX '),
('^cpconfessions ', 'Confessions.XXX '),
('^cpcucked ', 'Cucked.XXX '),
('^cpfresh ', 'Fresh '),
('^cpginger ', 'Ginger '),
('^cppetite ', 'Petite.XXX '),
('^cptaboo ', 'Taboo '),
('^css ', 'CzechStreets '),
('^cuf ', 'CumFiesta '),
('^cws ', 'CzechWifeSwap '),
Expand All @@ -1912,6 +1925,7 @@
('^dm ', 'DirtyMasseur '),
('^dnj ', 'DaneJones '),
('^dpg ', 'DigitalPlayground '),
('^drilled ', 'Drilled.XXX '),
('^ds ', 'ScrewMeToo '),
('^dsw ', 'DaughterSwap '),
('^dwc ', 'DirtyWivesClub '),
Expand Down Expand Up @@ -2600,7 +2614,7 @@ def getProviderFromSiteNum(siteNum):
provider = networkIntersec

# Cherry Pimps
elif (783 <= siteNum <= 792) or (1052 <= siteNum <= 1056):
elif (783 <= siteNum <= 792) or (1052 <= siteNum <= 1056) or (1745 <= siteNum <= 1746):
provider = networkCherryPimps

# Wicked
Expand Down Expand Up @@ -2900,7 +2914,7 @@ def getProviderFromSiteNum(siteNum):
provider = siteWoodmanCastingX

# ScoreGroup
elif (1012 <= siteNum <= 1021) or (1344 <= siteNum <= 1345):
elif (1012 <= siteNum <= 1021) or (1344 <= siteNum <= 1345) or siteNum == 1744:
provider = networkScoreGroup

# TwoTGirls
Expand Down Expand Up @@ -3167,7 +3181,7 @@ def getProviderFromSiteNum(siteNum):
provider = siteJAVDatabase

# Radical Cash
elif (1675 <= siteNum <= 1685):
elif (1675 <= siteNum <= 1685) or siteNum == 1747:
provider = networkRadicalCash

# Teeny Taboo
Expand Down
2 changes: 1 addition & 1 deletion Contents/Code/network1service.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def search(results, lang, siteNum, searchData):
if req:
searchResults = req.json()['result']
for searchResult in searchResults:
titleNoFormatting = searchResult['title'].replace('�', '\'')
titleNoFormatting = PAutils.parseTitle(searchResult['title'].replace('�', '\''), siteNum)
releaseDate = parse(searchResult['dateReleased']).strftime('%Y-%m-%d')
curID = searchResult['id']
siteName = searchResult['brand'].title()
Expand Down
4 changes: 2 additions & 2 deletions Contents/Code/networkCherryPimps.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def search(results, lang, siteNum, searchData):
req = PAutils.HTTPRequest(url)
searchResults = HTML.ElementFromString(req.text)
for searchResult in searchResults.xpath('//div[contains(@class, "video-thumb") or contains(@class, "item-video")]'):
titleNoFormatting = searchResult.xpath('(.//p[@class="text-thumb"] | .//div[@class="item-title"])/a')[0].text_content().strip()
titleNoFormatting = PAutils.parseTitle(searchResult.xpath('(.//p[@class="text-thumb"] | .//div[@class="item-title"])/a')[0].text_content().strip(), siteNum)
curID = PAutils.Encode(searchResult.xpath('(.//p[@class="text-thumb"] | .//div[@class="item-title"])/a/@href')[0])
subSite = searchResult.xpath('.//p[@class="text-thumb"]/a[@class="badge"] | .//div[@class="item-sitename"]/a')[0].text_content().strip()

Expand Down Expand Up @@ -42,7 +42,7 @@ def update(metadata, lang, siteNum, movieGenres, movieActors, art):
detailsPageElements = HTML.ElementFromString(req.text)

# Title
metadata.title = detailsPageElements.xpath('//*[@class="trailer-block_title"] | //h1')[0].text_content().strip()
metadata.title = PAutils.parseTitle(detailsPageElements.xpath('//*[@class="trailer-block_title"] | //h1')[0].text_content().strip(), siteNum)

# Summary
metadata.summary = detailsPageElements.xpath('//div[@class="info-block"]//p[@class="text"] | //div[@class="update-info-block"]//p')[0].text_content().strip()
Expand Down
19 changes: 8 additions & 11 deletions Contents/Code/networkPornWorld.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def search(results, lang, siteNum, searchData):
dateNotFound = False
for searchResult in searchResults.xpath("//div[contains(concat(' ',normalize-space(@class),' '),' card-scene ')]"):

titleNoFormatting = searchResult.xpath(".//div[@class='card-scene__text']/a")[0].text_content().strip()
titleNoFormatting = PAutils.parseTitle(searchResult.xpath(".//div[@class='card-scene__text']/a")[0].text_content().strip(), siteNum)
sceneDate = searchResult.xpath('.//div[@class="label label--time"]')[1].text_content().strip()
sceneDateObj = dateFromIso(sceneDate)

Expand All @@ -71,12 +71,9 @@ def search(results, lang, siteNum, searchData):
# take off some points if we don't match the title search params
score = score - Util.LevenshteinDistance(searchData.title.lower(), titleNoFormatting.lower())

Log('Scene: %s %s (%s%%)' % (sceneDate, titleNoFormatting, score))
# Log('Scene: %s %s (%s%%)' % (sceneDate, titleNoFormatting, score))

# scene names can be obscure so output the date too
name = '%s %s' % (sceneDate, titleNoFormatting)

results.Append(MetadataSearchResult(id='%s|%d' % (curID, siteNum), name=name, score=score, lang=lang))
results.Append(MetadataSearchResult(id='%s|%d' % (curID, siteNum), name='%s [%s] %s' % (titleNoFormatting, PAsearchSites.getSearchSiteName(siteNum), sceneDate), score=score, lang=lang))

# if we have a date, there's a far better chance of a decent match than the title search, so get out now
return results
Expand All @@ -93,7 +90,7 @@ def search(results, lang, siteNum, searchData):
detailsPageElements = HTML.ElementFromString(req.text)

curID = PAutils.Encode(url)
titleNoFormatting = getTitle(detailsPageElements)
titleNoFormatting = getTitle(detailsPageElements, siteNum)

results.Append(MetadataSearchResult(id='%s|%d' % (curID, siteNum), name=titleNoFormatting, score=100, lang=lang))

Expand All @@ -105,7 +102,7 @@ def search(results, lang, siteNum, searchData):

if not searchResults.xpath('//h1[contains(@class, "section__title")]'):
# if there is only one result returned by the search function it automatically redirects to the video page
titleNoFormatting = getTitle(searchResults)
titleNoFormatting = getTitle(searchResults, siteNum)

url = searchResults.xpath('//a[contains(@class, "__pagination_button--more")]/@href')[0]
curID = PAutils.Encode(url)
Expand Down Expand Up @@ -141,7 +138,7 @@ def update(metadata, lang, siteNum, movieGenres, movieActors, art):
detailsPageElements = HTML.ElementFromString(req.text)

# Title
metadata.title = getTitle(detailsPageElements)
metadata.title = getTitle(detailsPageElements, siteNum)

# Summary
description = detailsPageElements.xpath('//div[text()="Description:"]/following-sibling::div')
Expand Down Expand Up @@ -204,7 +201,7 @@ def update(metadata, lang, siteNum, movieGenres, movieActors, art):
return metadata


def getTitle(htmlElements):
titleNoFormatting = htmlElements.xpath('//title')[0].text_content().strip()
def getTitle(htmlElements, siteNum):
titleNoFormatting = PAutils.parseTitle(htmlElements.xpath('//title')[0].text_content().strip(), siteNum)

return re.sub(r' - PornWorld$', '', titleNoFormatting)
9 changes: 7 additions & 2 deletions docs/sitelist.md
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,7 @@ If you're having difficulty finding the SceneID, double-check [PAsiteList.py](..
- BCM.XXX
- Britney Amber
- Busted
- Bush
- Cheese.XXX
- Cherry Pimps
- Cherry Spot
Expand All @@ -341,6 +342,7 @@ If you're having difficulty finding the SceneID, double-check [PAsiteList.py](..
- Drilled.XXX
- Femme
- Fresh
- Ginger
- Petite.XXX
- Taboo (formerly Family.XXX)
- Wild on Cam
Expand Down Expand Up @@ -424,17 +426,18 @@ If you're having difficulty finding the SceneID, double-check [PAsiteList.py](..
- Scenes
- Movies
- Movie Scene
+ #### DDFNetwork | ✅
+ #### PornWorld | ✅
- Cherry Jul
- DDF Babes
- DDF Hardcore
- DDF Network VR
- DDF Xtreme
- Eve Angel Official
- Hairy Twatter
- PornWorld
- Sandy's Fantasies
- Sex Video Casting
+ #### DDFNetwork Other Sites | ✅
+ #### PornWorld Other Sites | ✅
- 1By-Day
- DDF Busty
- Euro Girls on Girls
Expand Down Expand Up @@ -1189,6 +1192,7 @@ If you're having difficulty finding the SceneID, double-check [PAsiteList.py](..
- Benefit Monkey
- BJRAW
- ComeInside - **Actor Name Only**
- Divine-DD
- GotFilled
- Inserted
- JAV888
Expand Down Expand Up @@ -1503,6 +1507,7 @@ If you're having difficulty finding the SceneID, double-check [PAsiteList.py](..
- Porn Mega Load
- Scoreland
- Scoreland2
- ScoreVideos
- XL Girls
+ #### Thick Cash Network | ✅ - **Actor only, Date Add**
- Ebony Tugs
Expand Down