• 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 Off Topic General Discussion split m3u with tv channels

     
    • 0 Vote(s) - 0 Average

    split m3u with tv channels

    goerdi
    Offline

    Member

    Posts: 110
    Threads: 33
    Joined: 2024 Aug
    Reputation: 1
    Country:Germany
    #1
    2025-05-14, 01:31 PM
    Hi !

    I have a m3u playlist (128 channels)  and i want split it in 128 files with the channel name.

    the m3 looks like
    Code:
    #EXTM3U
    #EXTINF:-1 tvg-logo="http://192.168.66.254:9981/imagecache/19" tvg-id="45a0ee6c8f6c8001f207e5c1d7d1d152" tvg-chno="41",ORF1 HD
    http://192.168.66.254:9981/stream/channelid/1827577925?profile=vaapi_x265
    #EXTINF:-1 tvg-logo="http://192.168.66.254:9981/imagecache/18" tvg-id="3ae7ba457807e9a49defffa7076c1fdf" tvg-chno="42",ORF2T HD
    http://192.168.66.254:9981/stream/channelid/1169876794?profile=vaapi_x265

    so in this case i would like to have 2 files
    with
    e.g. 2nd  file
    Code:
    #EXTM3U
    #EXTINF:-1 tvg-logo="http://192.168.66.254:9981/imagecache/18" tvg-id="3ae7ba457807e9a49defffa7076c1fdf" tvg-chno="42",ORF2T HD
    http://192.168.66.254:9981/stream/channelid/1169876794?profile=vaapi_x265

    and the name of the file should be ORF2T HD.m3u
    How can i mange it with a bash script ?

    Ciao Gerd
    I7-8700 / 32GB Ram
    Intel A380 / Ubuntu 24.04
    16 TB NAS TS-253
    2 TB NVME  / 2 TB SSD
    conor
    Offline

    Junior Member

    Posts: 24
    Threads: 4
    Joined: 2023 Jun
    Reputation: 0
    #2
    2025-05-14, 03:39 PM
    Just put your post above into Grok/ chatgpt and it'll spit something out that will probably work.
    goerdi
    Offline

    Member

    Posts: 110
    Threads: 33
    Joined: 2024 Aug
    Reputation: 1
    Country:Germany
    #3
    2025-05-14, 08:11 PM
    Hi !

    This is exaxct what i do not want to do.. manual work...
    the list can change day by day so to have a bash script called by cron is the best/only solution...
    if i had to do it only once i also could do it manually...

    Ciao Gerd
    I7-8700 / 32GB Ram
    Intel A380 / Ubuntu 24.04
    16 TB NAS TS-253
    2 TB NVME  / 2 TB SSD
    conor
    Offline

    Junior Member

    Posts: 24
    Threads: 4
    Joined: 2023 Jun
    Reputation: 0
    #4
    Yesterday, 01:13 PM
    Grok will write the bash script for you.
    goerdi
    Offline

    Member

    Posts: 110
    Threads: 33
    Joined: 2024 Aug
    Reputation: 1
    Country:Germany
    #5
    Yesterday, 02:12 PM
    Hi !

    Ah thanks...
    Co-Pilot finally did :-)

    Ciao Gerd
    I7-8700 / 32GB Ram
    Intel A380 / Ubuntu 24.04
    16 TB NAS TS-253
    2 TB NVME  / 2 TB SSD
    « 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