• 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 Support Troubleshooting Live TV first attempt fails due to wrong user-agent

     
    • 0 Vote(s) - 0 Average

    Live TV first attempt fails due to wrong user-agent

    thymon
    Offline

    Junior Member

    Posts: 48
    Threads: 3
    Joined: 2025 Jan
    Reputation: 0
    Country:France
    #1
    2025-02-10, 05:52 PM (This post was last modified: 2025-02-10, 05:56 PM by thymon. Edited 3 times in total.)
    Hello,

    I'm using Jellyfin's Live TV feature with an M3U playlist, which is proxied through a Docker container named aiptv. I've noticed an issue where the first attempt to start a stream always fails, but the second attempt works perfectly.
    After checking the logs, I found that on the second attempt, Jellyfin correctly uses this user-agent, and the stream works:

    Code:
    Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36
    To fix the issue, I manually set this user-agent in the Live TV settings.

    However, despite this configuration, Jellyfin still uses :
    Code:
    Jellyfin-Server/10.10.5
    on the first connection, which causes the stream to fail.

    Why is Jellyfin not applying the configured user-agent on the first request?


    Logs Analysis
    On the first attempt, Jellyfin makes a request with the default user-agent (Jellyfin-Server/10.10.5), which leads to a failure:
    Code:
    [18:29:23] [INF] [108] Jellyfin.LiveTv.LiveTvMediaSourceProvider: Opening channel stream from Emby, external channel Id: m3u_48befa82a0e2e34bd7396e3c0edc788e3022ce538d29744f03b832863039f1d4
    [18:31:03] [WRN] [135] Jellyfin.LiveTv.TunerHosts.M3UTunerHost: HEAD request to check MIME type failed, shared stream disabled

    However, on the second attempt, Jellyfin now correctly uses the configured user-agent, and the stream starts successfully:
    Code:
    [18:31:06] [INF] [144] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Starting /usr/lib/jellyfin-ffmpeg/ffprobe with args -analyzeduration 3000000 -probesize 1G -user_agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36"
    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


    Messages In This Thread
    Live TV first attempt fails due to wrong user-agent - by thymon - 2025-02-10, 05:52 PM
    RE: Live TV first attempt fails due to wrong user-agent - by theguymadmax - 2025-02-10, 06:28 PM
    RE: Live TV first attempt fails due to wrong user-agent - by thymon - 2025-02-10, 06:45 PM
    RE: Live TV first attempt fails due to wrong user-agent - by thymon - 2025-02-17, 09:41 AM
    RE: Live TV first attempt fails due to wrong user-agent - by theguymadmax - 2025-02-17, 01:12 PM
    RE: Live TV first attempt fails due to wrong user-agent - by gnattu - 2025-02-17, 01:31 PM
    RE: Live TV first attempt fails due to wrong user-agent - by thymon - 2025-02-17, 03:15 PM
    RE: Live TV first attempt fails due to wrong user-agent - by thymon - 2025-02-18, 04:41 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