• Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below
  • Forum
  • Website
  • GitHub
  • Status
  • Translation
  • Features
  • Team
  • Rules
  • Help
  • Feeds
User Links
  • Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below

    Useful Links Forum Website GitHub Status Translation Features Team Rules Help Feeds
    Jellyfin Forum Development Feature Requests Player for android TV and firetv

     
    • 0 Vote(s) - 0 Average

    Player for android TV and firetv

    need ability to turn off subtitles to play a video
    theguymadmax
    Offline

    Community Moderator

    Posts: 1,148
    Threads: 0
    Joined: 2024 Jun
    Reputation: 60
    #23
    2024-08-09, 11:39 PM
    Have you tried adding external subtitles? ATV will load external subs first. If you’re interested in this approach, here’s a quick PowerShell script to create dummy .srt files.

    To run:
    1. Create a new file, paste contents into the file, and name it something with a .ps1 extension, e.g., CreateSRTFiles.ps1
    2. Open PowerShell and run the script by navigating to its location in PowerShell and executing it with .\CreateSRTFiles.ps1.
    3. Enter the path to the directory when prompted. The script will scan through your directory and create a dummy srt file for each mp4 file it finds.

    Code:
    # Prompt the user for a directory
    $directory = Read-Host "Enter the path to the directory you want to scan"

    # Check if the directory exists
    if (-Not (Test-Path $directory)) {
        Write-Host "The directory does not exist. Please check the path and try again."
        exit
    }

    # Get all .mp4 files recursively
    $mp4Files = Get-ChildItem -Path $directory -Recurse -Filter *.mp4

    # Loop through each .mp4 file found
    foreach ($file in $mp4Files) {
        # Define the .en.srt file path
        $srtFilePath = "$($file.DirectoryName)\$($file.BaseName).en.srt"
       
        # Create the .srt file with the specified content
        $content = "1`r`n00:00:00,000 --> 00:00:00,000"
        Set-Content -Path $srtFilePath -Value $content
    }

    Write-Host "Dummy .srt files with content have been created for all .mp4 files in the directory."
    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


    Messages In This Thread
    Player for android TV and firetv - by vince954 - 2024-08-07, 01:47 AM
    RE: Player for android TV and firetv - by TheDreadPirate - 2024-08-07, 02:54 AM
    RE: Player for android TV and firetv - by vince954 - 2024-08-07, 04:47 PM
    RE: Player for android TV and firetv - by TheDreadPirate - 2024-08-07, 05:28 PM
    RE: Player for android TV and firetv - by vince954 - 2024-08-07, 09:03 PM
    RE: Player for android TV and firetv - by TheDreadPirate - 2024-08-07, 09:13 PM
    RE: Player for android TV and firetv - by vince954 - 2024-08-08, 01:28 PM
    RE: Player for android TV and firetv - by theguymadmax - 2024-08-08, 02:30 PM
    RE: Player for android TV and firetv - by vince954 - 2024-08-08, 08:16 PM
    RE: Player for android TV and firetv - by theguymadmax - 2024-08-08, 09:39 PM
    RE: Player for android TV and firetv - by TheDreadPirate - 2024-08-08, 09:44 PM
    RE: Player for android TV and firetv - by theguymadmax - 2024-08-08, 09:49 PM
    RE: Player for android TV and firetv - by TheDreadPirate - 2024-08-08, 09:57 PM
    RE: Player for android TV and firetv - by vince954 - 2024-08-08, 10:15 PM
    RE: Player for android TV and firetv - by theguymadmax - 2024-08-08, 10:26 PM
    RE: Player for android TV and firetv - by TheDreadPirate - 2024-08-08, 10:48 PM
    RE: Player for android TV and firetv - by theguymadmax - 2024-08-09, 02:26 AM
    RE: Player for android TV and firetv - by TheDreadPirate - 2024-08-09, 02:35 AM
    RE: Player for android TV and firetv - by vince954 - 2024-08-09, 10:25 PM
    RE: Player for android TV and firetv - by TheDreadPirate - 2024-08-09, 10:54 PM
    RE: Player for android TV and firetv - by vince954 - 2024-08-09, 11:18 PM
    RE: Player for android TV and firetv - by TheDreadPirate - 2024-08-09, 11:24 PM
    RE: Player for android TV and firetv - by theguymadmax - 2024-08-09, 11:39 PM
    RE: Player for android TV and firetv - by vince954 - 2024-08-11, 02:39 AM
    RE: Player for android TV and firetv - by theguymadmax - 2024-08-11, 06:34 PM
    RE: Player for android TV and firetv - by vince954 - 2024-08-12, 04:03 PM
    RE: Player for android TV and firetv - by theguymadmax - 2024-08-12, 05:41 PM
    RE: Player for android TV and firetv - by vince954 - 2024-08-23, 07:41 PM
    RE: Player for android TV and firetv - by theguymadmax - 2024-08-23, 11:44 PM
    RE: Player for android TV and firetv - by engmaxneto - 2024-08-27, 08:46 PM

    • View a Printable Version
    • Subscribe to this thread
    Forum Jump:

    Home · Team · Help · Contact
    © Designed by D&D - Powered by MyBB
    L


    Jellyfin

    The Free Software Media System

    Linear Mode
    Threaded Mode