• 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 General Questions Q: How to export/generate text file with list of unplayed movies/tvshows

     
    • 0 Vote(s) - 0 Average

    Q: How to export/generate text file with list of unplayed movies/tvshows

    bernard
    Offline

    Junior Member

    Posts: 1
    Threads: 1
    Joined: 2024 Mar
    Reputation: 0
    #1
    2024-03-28, 02:53 PM
    When I travel I carry a SSD with media I have not yet played with me to be entertained during transportation. The media files are synced using rsync from my NAS. For rsync I need a list of unplayed media filenames. In earlier days I generated this list from the Kodi library using SQL. Nowadays I am using Jellyfin for Kodi, i.e. I could still use the Kodi library DB to extract that list. However, this seems to be a somewhat indirect approach, as this data gets synced from Jellyfin anyways.

    So I would rather like to extract the list of unplayed movies/tvshows from Jellyfin using the UI, or if that is not possible, using SQL from the Jellyfin library DB.

    Clearly I can generate a list of unplayed movie titles in the UI, but I have not found a way to export the list of these movie titles to a text file. So my first questions are whether this can be done and how. Also: The Titles as shown in the UI do not necessarily match the filenames on disk, so this approach is probably doomed anyway.

    If it is not possible to extract a list of unplayed movie filenames from the UI, where would I find some example SQL queries (or possible queries that would already do exactly what I have described)? 
    Where may I find documentation about the table attributes of the Jellyfin library DB?
    Efficient_Good_5784
    Offline

    Community Moderator

    Posts: 1,167
    Threads: 3
    Joined: 2023 Jun
    Reputation: 50
    #2
    2024-03-28, 04:40 PM
    One workaround that you could do is use nfo files if you have those enabled.

    Each nfo file stores the watched status of their respective video for a user of your choice.

    You could create a bash script that gets all the nfo files in a directory, uses grep on them to look for the unwatched status, then prints out a list of the nfo files it matched as unwatched.

    Then you would have to add some logic to tell the script to get the video file of the nfo and store that in a new list. This is easy with sed if all your video files are in one format (using sed to replace all ".nfo" extensions to ".mkv" as an example). However, if your videos are a mix of video extension types, you'll have to figure out how to get the final list of the video files correctly.

    I don't remember if the nfo files have the exact video file name however, but if it does, it would be helpful here.
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #3
    2024-03-28, 05:56 PM (This post was last modified: 2024-03-28, 05:57 PM by TheDreadPirate.)
    Check out the "Reports" plugin. I believe it also tracks watch status and allows you to generate CSV reports.
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


    • 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