• 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 I can no longer record series

     
    • 0 Vote(s) - 0 Average

    I can no longer record series

    Channel guide no longer working after upgrade to 10.9.6+ubu2204
    theguymadmax
    Offline

    Community Moderator

    Posts: 1,293
    Threads: 0
    Joined: 2024 Jun
    Reputation: 68
    #10
    2024-06-20, 08:19 PM (This post was last modified: 2024-06-20, 08:52 PM by theguymadmax. Edited 2 times in total.)
    Here's a Python script that should help you out until there's a merged fix. It inserts dummy season and episode numbers into the xml file for shows that are missing it, which will allow you to record them as a series. It's not perfect but it should do the job.

    1. Install Python if you don't already have it.
    2. save code as tvguidefix .py
    3. go to the directory and chmod +x tvguidefix.py
    4. excute code ./tvguidefix.py
    5. program will prompt you for location of xml file

    Once you have the new file, go into your dashboard and delete (not refresh) the old xml data. Then re-import it.

    Code:
    #!/usr/bin/env python3

    import xml.etree.ElementTree as ET

    def update_episode_numbers(xml_file):
        tree = ET.parse(xml_file)
        root = tree.getroot()
       
        episode_num_common = 1
        episode_num_xmltv = 1
       
        for programme in root.findall('programme'):
            common_found = False
            xmltv_found = False
           
            for episode_num in programme.findall('episode-num'):
                system = episode_num.get('system')
                if system == 'common':
                    common_found = True
                elif system == 'xmltv_ns':
                    xmltv_found = True
           
            if not common_found:
                new_common = ET.Element('episode-num')
                new_common.set('system', 'common')
                new_common.text = f"S01E{episode_num_common:02}"
                programme.append(new_common)
                episode_num_common += 1
           
            if not xmltv_found:
                new_xmltv = ET.Element('episode-num')
                new_xmltv.set('system', 'xmltv_ns')
                new_xmltv.text = f"01.{episode_num_xmltv:02}."
                programme.append(new_xmltv)
                episode_num_xmltv += 1
       
        tree.write(xml_file, encoding='utf-8', xml_declaration=True)

    if __name__ == "__main__":
        xml_file = input("Enter the path to the XML file: ").strip()
        update_episode_numbers(xml_file)
        print(f"Updated {xml_file} successfully.")
    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


    Messages In This Thread
    I can no longer record series - by grumpycat - 2024-06-20, 01:43 PM
    RE: I can no longer record series - by TheDreadPirate - 2024-06-20, 01:47 PM
    RE: I can no longer record series - by grumpycat - 2024-06-20, 02:08 PM
    RE: I can no longer record series - by TheDreadPirate - 2024-06-20, 02:19 PM
    RE: I can no longer record series - by grumpycat - 2024-06-20, 02:33 PM
    RE: I can no longer record series - by grumpycat - 2024-06-20, 02:48 PM
    RE: I can no longer record series - by theguymadmax - 2024-06-20, 05:06 PM
    RE: I can no longer record series - by grumpycat - 2024-06-20, 05:39 PM
    RE: I can no longer record series - by grumpycat - 2024-06-20, 07:49 PM
    RE: I can no longer record series - by theguymadmax - 2024-06-20, 08:19 PM
    RE: I can no longer record series - by grumpycat - 2024-06-21, 02:19 PM
    RE: I can no longer record series - by theguymadmax - 2024-06-22, 01:29 PM
    RE: I can no longer record series - by grumpycat - 2024-07-19, 07:21 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