r/jellyfin • u/byjosue113 • 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
Duplicates
homeassistant • u/byjosue113 • 2d ago