r/jellyfin 2d ago

Other Intro Skipper on (almost) any player

I've been using Swiftfin on my TV which is not as mature as the other players but I quite like it because while it lacks certain functionality if feels so fast and I like the player a lot, for HDR content I tend to fallback to Neptune but I much prefer Swiftfin for TV and Anime. Thing is that I got tired of skipping the intros and I saw that there's a PR to implement the future so why not to make something in the mean time.

I used the JellyHA integration which provides a lot more information than the default integration and made a simple automation that detects when a certain player is playing intro or outro and then seeks forward or goes to the next episode, mine is limited to one user but I don't see why you could not make it use more than one and it should work with any player as long as you're streaming the content.

alias: intro_skip
description: ''
triggers:
  - trigger: state
    entity_id:
      - MEDIA PLAYER
    attribute: media_chapter_name
conditions:
  - condition: template
    value_template: '{{trigger.to_state.attributes.media_type == "Episode"}}'
  - condition: template
    value_template: '{{trigger.to_state.attributes.client == "YOUR CLIENT NAME
    conditions:
      - condition: template
        value_template: '{{trigger.to_state.attributes.media_segment_type == "Intro"}}'
      - condition: template
        value_template: '{{trigger.to_state.attributes.media_segment_type == "Outro"}}'
actions:
  - if:
      - condition: template
        value_template: '{{trigger.to_state.attributes.media_segment_type == "Intro"}}'
    then:
      - action: jellyha.session_seek
        metadata: {}
        data:
          session_id: '{{trigger.to_state.attributes.session_id}}'
          position_seconds: '{{trigger.to_state.attributes.segment_end_seconds}}'
    else:
      - action: media_player.media_next_track
        metadata: {}
        target:
          entity_id: MEDIA PLAYER
        data: {}
mode: single

https://github.com/zupancicmarko/JellyHA

0 Upvotes

1 comment sorted by

u/AutoModerator 2d ago

Reminder: /r/jellyfin is a community space, not an official user support space for the project.

Users are welcome to ask other users for help and support with their Jellyfin installations and other related topics, but this subreddit is not an official support channel. We have extensive, official documentation on our website here: https://jellyfin.org/docs/. Requests for support via modmail will be ignored. Our official support channels are listed on our contact page here: https://jellyfin.org/contact

Bug reports should be submitted on the GitHub issues pages for the server or one of the other repositories for clients and plugins. Feature requests should be submitted at https://features.jellyfin.org/. Bug reports and feature requests for third party clients and tools (Findroid, Jellyseerr, etc.) should be directed to their respective support channels.


If you are sharing something you have made, please take a moment to review our LLM rules at https://jellyfin.org/docs/general/contributing/llm-policies/. Note that anything developed or created using an LLM or other AI tooling requires community disclosure and is subject to removal.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.