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

tvpassport.com: real movie name is in attribute "showtitle", not in "showname" #2687

Open
titou10titou10 opened this issue Feb 15, 2025 · 0 comments

Comments

@titou10titou10
Copy link

replace

function parseTitle($item) {
return $item('*').data('showname').toString()
}

Example for movie "Mon ami le pingouin":

data-showname="Cinéma" 
data-showtitle="Cinéma - Mon ami le pingouin"

by

function parseTitle($item) {
  // return $item('*').data('showname').toString()
  const showname = $item('*').data('showname').toString()
  if (showname === "Cinéma") {
    const showtitle = $item('*').data('showtitle').toString()
    return showtitle.replace("Cinéma - ", "").trim()
  } else {
    return showname
  }
}

attribute "showtitle" seems to be a good choice also in all cases:

function parseTitle($item) {
  // return $item('*').data('showname').toString()
  return $item('*').data('showtitle').toString()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant