PAhelper / PhoenixAdult.bundle

Plex Meta-Data Agent for scene videos from multiple adult sites
354 stars 142 forks source link

letsdoeit not matching #483

Closed Spanishu closed 4 years ago

Spanishu commented 4 years ago

Hi

I have seen that letsdoeit is not matching anymore. I guess it must be a formatting thing that has changed on their site. If somebody has a fix would be great

`File "/home/pi/Library/Application Support/Plex Media Server/Plug-ins/PhoenixAdult.bundle/Contents/Code/sitePorndoePremium.py", line 9, in search titleNoFormatting = searchResult.xpath('.//a[@class="main-url"]')[0].get('title') File "/usr/lib/plexmediaserver/Resources/Plug-ins-e67a4e892/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/code/sandbox.py", line $ getitem = lambda x, y: x.getitem(y), IndexError: list index out of range

2019-11-29 10:43:47,777 (-4fa01ba0) : DEBUG (runtime:88) - Sending packed state data (1188 bytes) 2019-11-29 10:43:47,778 (-4fa01ba0) : DEBUG (runtime:924) - Response: [200] str, 16 bytes`

pedrolara-boop commented 4 years ago

Same here

6:01:29,179 (7effc0a11700) :  INFO (__init__:46) - *******MEDIA TITLE****** agirlknows - 72318
2019-12-07 16:01:29,179 (7effc0a11700) :  INFO (__init__:53) - Getting Search Settings for: agirlknows - 72318
2019-12-07 16:01:29,179 (7effc0a11700) :  INFO (PAsearchSites:934) - mediaTitle w/ possible abbrieviation: agirlknows 72318
2019-12-07 16:01:29,197 (7effc0a11700) :  INFO (PAsearchSites:1124) - mediaTitle w/ possible abbrieviation fixed: agirlknows 72318
2019-12-07 16:01:29,199 (7effc0a11700) :  INFO (PAsearchSites:1139) - ^^^^^^^ siteID: 221
2019-12-07 16:01:29,199 (7effc0a11700) :  INFO (PAsearchSites:1141) - ^^^^^^^ Shortening Title
2019-12-07 16:01:29,199 (7effc0a11700) :  INFO (PAsearchSites:1142) - agirlknows 7 vs a girl knows
2019-12-07 16:01:29,200 (7effc0a11700) :  INFO (PAsearchSites:1158) - 3
2019-12-07 16:01:29,200 (7effc0a11700) :  INFO (PAsearchSites:1165) - 7
2019-12-07 16:01:29,200 (7effc0a11700) :  INFO (PAsearchSites:1197) - searchTitle (before date processing): 72318
2019-12-07 16:01:29,201 (7effc0a11700) :  INFO (__init__:63) - Search Title: 72318
2019-12-07 16:01:29,201 (7effc0a11700) :  INFO (__init__:72) - 72318
2019-12-07 16:01:29,204 (7effc0a11700) :  DEBUG (networking:143) - Requesting 'https://letsdoeit.com/search.en.html?q=72318'
2019-12-07 16:01:30,678 (7effc0a11700) :  CRITICAL (agentkit:1014) - Exception in the search function of agent named 'PhoenixAdult', called with keyword arguments {'year': '2019', 'id': '96071', 'name': 'agirlknows - 72318'} (most recent call last):
  File "/volume1/@appstore/Plex Media Server/Resources/Plug-ins-e67a4e892/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/api/agentkit.py", line 1007, in _search
    agent.search(*f_args, **f_kwargs)
  File "/volume1/Plex/Library/Application Support/Plex Media Server/Plug-ins/PhoenixAdult.bundle/Contents/Code/__init__.py", line 385, in search
    results = PAsearchSites.sitePorndoePremium.search(results,encodedTitle,title,searchTitle,siteNum,lang,searchByDateActor,searchDate, searchSiteID)
  File "/volume1/Plex/Library/Application Support/Plex Media Server/Plug-ins/PhoenixAdult.bundle/Contents/Code/sitePorndoePremium.py", line 9, in search
    titleNoFormatting = searchResult.xpath('.//a[@class="main-url"]')[0].get('title')
  File "/volume1/@appstore/Plex Media Server/Resources/Plug-ins-e67a4e892/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/code/sandbox.py", line 108, in <lambda>
    _getitem_           = lambda x, y: x.__getitem__(y),
IndexError: list index out of range

2019-12-07 16:01:30,682 (7effc0a11700) :  DEBUG (runtime:88) - Sending packed state data (3544 bytes)
2019-12-07 16:01:30,682 (7effc0a11700) :  DEBUG (runtime:924) - Response: [200] str, 16 bytes
Spanishu commented 4 years ago

@claygoldfinch any chance to fix this ? Would be really appreciated