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

PH tagged stars breaks metadata scrape #246

Open
topKoala1588 opened this issue Nov 15, 2023 · 2 comments · May be fixed by #276
Open

PH tagged stars breaks metadata scrape #246

topKoala1588 opened this issue Nov 15, 2023 · 2 comments · May be fixed by #276

Comments

@topKoala1588
Copy link

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
Copy link

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

@wongsanchez wongsanchez linked a pull request Jun 13, 2024 that will close this issue
@wongsanchez
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants