DirtyRacer1337 / Jellyfin.Plugin.PhoenixAdult

Jellyfin/Emby Metadata Provider for videos from multiple adult sites
GNU General Public License v2.0
348 stars 46 forks source link

PH tagged stars breaks metadata scrape #246

Open topKoala1588 opened 7 months ago

topKoala1588 commented 7 months ago

Describe the bug On Pornhub, the button for tagged pornstars has been reworked so that the command

string actorName = actorLink.Attributes["data-mxptext"].Value,
                        actorPhotoURL = actorLink.SelectSingleText(".//img[@class='avatar']/@src");

in SitePornhub.cs does not work anymore as the data-mxptext is no longer available. This causes the metadata scrape for any video with a tagged pornstar to return the error shown in the log below. Conversely any video that does not have tagged stars will scrape correctly.

Include

  1. Jellyfin v10.8.12
  2. Plugin v2.7.0.47
  3. Broken Scene (with tagged stars) - https://www.pornhub.com/view_video.php?viewkey=64529bd2448a3
  4. Working Scene (w/out tagged stars) - https://www.pornhub.com/view_video.php?viewkey=6408ad4be62a8
  5. Log File
    [01:17:14] [INF] [64] PhoenixAdult.Plugin: searchInfo.Name: POV Cute Teen Fucks you on Tropical Beach
    [01:17:14] [INF] [64] PhoenixAdult.Plugin: newTitle: Pornhub POV Cute Teen Fucks you on Tropical Beach
    [01:17:14] [INF] [64] PhoenixAdult.Plugin: site: 27:0 (Pornhub)
    [01:17:14] [INF] [64] PhoenixAdult.Plugin: searchTitle: POV Cute Teen Fucks You On Tropical Beach
    [01:17:14] [INF] [64] PhoenixAdult.Plugin: searchDate:
    [01:17:14] [INF] [64] PhoenixAdult.Plugin: provider: PhoenixAdult.Sites.SitePornhub
    [01:17:16] [INF] [31] PhoenixAdult.Plugin: PhoenixAdult ID: 27#0#2bG8xeUEeKp4ZHspsK4pfKWQGWm7J85zv2TQapSQPd4CrJiKVC6
    [01:17:17] [ERR] [31] PhoenixAdult.Plugin: Update error: "System.NullReferenceException: Object reference not set to an instance of an object.
    at PhoenixAdult.Sites.SitePornhub.Update(Int32[] siteNum, String[] sceneID, CancellationToken cancellationToken)
    at PhoenixAdult.Providers.MovieProvider.GetMetadata(MovieInfo info, CancellationToken cancellationToken)"
wongsanchez commented 3 weeks ago

I found it worked best just commenting the actors out completely so the other features still work.

wongsanchez commented 3 weeks ago

It would appear to fix it we would need to add a javascript library.