[PR #7544] Fix DVR error: too long filename #11449

Closed
opened 2026-02-07 06:38:40 +03:00 by OVERLORD · 0 comments
Owner

Original Pull Request: https://github.com/jellyfin/jellyfin/pull/7544

State: closed
Merged: Yes


Changes
This PR will limit the series title to 250 bytes (so file extensions can be added). If the end result is longer, the title will be dropped and only series name is used with the timestamp.

This is an edge case where the XMLTV spec includes a sub-title. The spec guarantees that the title + sub-title is under 255 bytes (filename limit in Linux). However, since Jellyfin does try to add some descriptive metadata to the filename it can lead to exception.

Here is an example from a finnish cable provider Elisa

  <programme start="20220403110000 +0300" stop="20220403123000 +0300" channel="b77236559830a988ed3405ab26ffb30c">
    <title lang="fin">Suuri kokkikisa: Maailma lautasella</title>
    <title lang="swe">Stora kocktävlingen: Världen på tallriken</title>
    <sub-title lang="fin">
    Kausi 1. Jakso 3/10. Vietnam vastaan Kamerun. Team Vietnam kohtaa kaksintaistelussa Team Kamerunin. Molemmat kokkaavat suurella sydämellä ja haluavat olla kunniaksi kulttuurilleen, mutta käyvätkö paineet liian ko
    </sub-title>
    <sub-title lang="swe">
    Säsong 1. Avsnitt 3/10. Vietman vs Kamerun. En australisk realityserie. (63')
    </sub-title>
  <category lang="en">Movie / Drama</category>
</programme>

Error in question:

System.IO.PathTooLongException: The path '/recordings/tv/Suuri kokkikisa: Maailma lautasella/Suuri kokkikisa: Maailma lautasella 2022_04_03_11_00_00 - Kausi 1. Jakso 3 10. Vietnam vastaan Kamerun. Team Vietnam kohtaa kaksintaistelussa Team Kamerunin. Molemmat kokkaavat suurella sydämellä ja haluavat olla kunniaksi kulttuurilleen, mutta käyvätkö paineet liian ko.ts' is too long, or a component of the specified path is too long.

Issues

**Original Pull Request:** https://github.com/jellyfin/jellyfin/pull/7544 **State:** closed **Merged:** Yes --- <!-- Ensure your title is short, descriptive, and in the imperative mood (Fix X, Change Y, instead of Fixed X, Changed Y). For a good inspiration of what to write in commit messages and PRs please review https://chris.beams.io/posts/git-commit/ and our documentation. --> **Changes** This PR will limit the series title to 250 bytes (so file extensions can be added). If the end result is longer, the title will be dropped and only series name is used with the timestamp. This is an edge case where the XMLTV spec includes a `sub-title`. The spec guarantees that the `title + sub-title` is under 255 bytes (filename limit in Linux). However, since Jellyfin does try to add some descriptive metadata to the filename it can lead to exception. Here is an example from a finnish cable provider Elisa ```XML <programme start="20220403110000 +0300" stop="20220403123000 +0300" channel="b77236559830a988ed3405ab26ffb30c"> <title lang="fin">Suuri kokkikisa: Maailma lautasella</title> <title lang="swe">Stora kocktävlingen: Världen på tallriken</title> <sub-title lang="fin"> Kausi 1. Jakso 3/10. Vietnam vastaan Kamerun. Team Vietnam kohtaa kaksintaistelussa Team Kamerunin. Molemmat kokkaavat suurella sydämellä ja haluavat olla kunniaksi kulttuurilleen, mutta käyvätkö paineet liian ko </sub-title> <sub-title lang="swe"> Säsong 1. Avsnitt 3/10. Vietman vs Kamerun. En australisk realityserie. (63') </sub-title> <category lang="en">Movie / Drama</category> </programme> ``` Error in question: ```bash System.IO.PathTooLongException: The path '/recordings/tv/Suuri kokkikisa: Maailma lautasella/Suuri kokkikisa: Maailma lautasella 2022_04_03_11_00_00 - Kausi 1. Jakso 3 10. Vietnam vastaan Kamerun. Team Vietnam kohtaa kaksintaistelussa Team Kamerunin. Molemmat kokkaavat suurella sydämellä ja haluavat olla kunniaksi kulttuurilleen, mutta käyvätkö paineet liian ko.ts' is too long, or a component of the specified path is too long. ``` **Issues** * https://github.com/jellyfin/jellyfin/issues/7395
OVERLORD added the pull-request label 2026-02-07 06:38:40 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/jellyfin#11449