PAhelper / PhoenixAdult.bundle

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

PublicAgent IndexError: list index out of range #324

Closed ordinarygulp closed 4 years ago

ordinarygulp commented 4 years ago
2019-07-28 01:23:02,260 (1507b44be700) :  INFO (__init__:46) - *******MEDIA TITLE****** Pba 19 07 23 4361390
2019-07-28 01:23:02,261 (1507b44be700) :  INFO (__init__:53) - Getting Search Settings for: Pba 19 07 23 4361390
2019-07-28 01:23:02,261 (1507b44be700) :  INFO (PAsearchSites:888) - mediaTitle w/ possible abbrieviation: Pba 19 07 23 4361390
2019-07-28 01:23:02,271 (1507b44be700) :  INFO (PAsearchSites:1064) - mediaTitle w/ possible abbrieviation fixed: PublicAgent 19 07 23 4361390
2019-07-28 01:23:02,273 (1507b44be700) :  INFO (PAsearchSites:1079) - ^^^^^^^ siteID: 399
2019-07-28 01:23:02,273 (1507b44be700) :  INFO (PAsearchSites:1081) - ^^^^^^^ Shortening Title
2019-07-28 01:23:02,273 (1507b44be700) :  INFO (PAsearchSites:1082) - publicagent  vs public agent
2019-07-28 01:23:02,273 (1507b44be700) :  INFO (PAsearchSites:1088) - 2
2019-07-28 01:23:02,273 (1507b44be700) :  INFO (PAsearchSites:1091) - 3
2019-07-28 01:23:02,273 (1507b44be700) :  INFO (PAsearchSites:1098) - 6
2019-07-28 01:23:02,274 (1507b44be700) :  INFO (PAsearchSites:1134) - searchTitle (before date processing): 19 07 23 4361390
2019-07-28 01:23:02,274 (1507b44be700) :  INFO (__init__:63) - Search Title: 4361390
2019-07-28 01:23:02,274 (1507b44be700) :  INFO (__init__:67) - Search Date: 2019-07-23
2019-07-28 01:23:02,274 (1507b44be700) :  INFO (__init__:72) - 4361390
2019-07-28 01:23:02,275 (1507b44be700) :  INFO (siteFakeHub:9) - SceneID: 4361390
2019-07-28 01:23:02,276 (1507b44be700) :  INFO (siteFakeHub:14) - Scene Title: 
2019-07-28 01:23:02,277 (1507b44be700) :  DEBUG (networking:161) - Fetching 'https://www.fakehub.com/scene/4361390/1' from the HTTP cache
2019-07-28 01:23:02,293 (1507b44be700) :  CRITICAL (agentkit:1014) - Exception in the search function of agent named 'PhoenixAdult', called with keyword arguments {'year': None, 'id': '110347', 'name': 'Pba 19 07 23 4361390'} (most recent call last):
  File "/usr/lib/plexmediaserver/Resources/Plug-ins-359b06978/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/api/agentkit.py", line 1007, in _search
    agent.search(*f_args, **f_kwargs)
  File "/config/Library/Application Support/Plex Media Server/Plug-ins/PhoenixAdult.bundle/Contents/Code/__init__.py", line 504, in search
    results = PAsearchSites.siteFakeHub.search(results,encodedTitle,title,searchTitle,siteNum,lang,searchByDateActor,searchDate, searchSiteID)
  File "/config/Library/Application Support/Plex Media Server/Plug-ins/PhoenixAdult.bundle/Contents/Code/siteFakeHub.py", line 20, in search
    subSite = searchResult.xpath('.//div[@class="sc-11m21lp-2 bKVlBB"]')[0].text_content().strip()
  File "/usr/lib/plexmediaserver/Resources/Plug-ins-359b06978/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
SgtBatten commented 4 years ago

Working fine for me. I think it might be related to the same cache issue clay mentioned in #319

try again and see how it goes