AdvancedProfanityFilter icon indicating copy to clipboard operation
AdvancedProfanityFilter copied to clipboard

flixtor.to audio filtering

Open crunchmasterdeluxe opened this issue 1 year ago • 1 comments

Instructions: This template is written in Markdown. Click the "Preview" tab to see what it will look like when submitted. Fill in the applicable sections (you can erase the examples if you'd like). For more information, please see this page.

:movie_camera: The Site

_Example: www.flixtor.to

:speech_balloon: Subtitle Element/Node

Example:

<div class="jw-text-track-container jw-reset" style="position: absolute; inset: 0px; margin: 1.5%;">
  <div class="jw-text-track-display jw-reset" style="text-align: center; white-space: pre-line; position: absolute; direction: ltr; writing-mode: horizontal-tb; unicode-bidi: plaintext; left: 462.852px; top: 562.156px; bottom: 42.5938px; height: 41.5938px;"> 
    <div class="jw-text-track-cue jw-reset" style="position: relative; padding-left: 0px; padding-right: 0px; left: 0px; top: 0px; bottom: 0px; display: inline; white-space: pre; writing-mode: horizontal-tb; unicode-bidi: plaintext;">
      C****. Motherf*****!
    </div> 
  </div>
</div>

:pencil: Additional notes

Here is the full html body.

My Attempts

I tried the following variations of json to enable audio filtering:

"flixtor.to": {
    "mode": "element",
    "className": "jw-text-track-cue jw-reset",
    "subtitleSelector": "jw-text-track-cue",
    "tagName": "DIV"
  }
"flixtor.to": [{
    "mode": "element",
    "className": "jw-text-track-cue jw-reset",
    "subtitleSelector": "div.jw-text-track-cue",
    "tagName": "DIV",
    "videoSelector": "div.jw-video"
  }]

crunchmasterdeluxe avatar Oct 18 '24 18:10 crunchmasterdeluxe

Hi @crunchmasterdeluxe, thanks for reaching out. Unfortunately I don't have access to this site, so I won't be able to directly check it, but I am happy to help if I can.

{
  "flixtor.to": [
    {
      "mode": "element",
      "className": "jw-text-track-cue",
      "subtitleSelector": "div.jw-text-track-cue",
      "tagName": "DIV",
      "videoSelector": "DIV.jw-video VIDEO"
    }
  ]
}

This is the same as your second attempt, but I removed the second item in "className", because that option should only have a single class name. I also changed the video selector to my best guess without seeing the full page, but it needs to resolve to a VIDEO element.

This will be really dependent on how the captions are added to the page. If you followed the guide for Adding a Custom Site. If you didn't, I have seen other sites use a similar config like this one, which you could also give this a try:

{
  "flixtor.to": [
    {
      "className": "jw-text-track-container",
      "mode": "element",
      "subtitleSelector": "DIV.jw-text-track-cue",
      "tagName": "DIV",
      "videoSelector": "DIV.jw-video VIDEO"
    }
  ]
}

If that still isn't working, let me know and we can figure out what to try next.

richardfrost avatar Oct 30 '24 18:10 richardfrost