[GH-ISSUE #7] [Feature request]: Send watch state to TA. #5

Closed
opened 2026-03-23 20:34:31 +00:00 by mirror · 5 comments
Owner

Originally created by @xusiai on GitHub (Apr 24, 2024).
Original GitHub issue: https://github.com/tubearchivist/tubearchivist-jf-plugin/issues/7

Originally assigned to: @DarkFighterLuke on GitHub.

Would it be feasible to add support for sending watched state to TubeArchivist? Since videos can be configured for automatic removal after being set to watched in TA it would be nice if this feature continued to work when the actual media consumption is done in Jellyfin.

Originally created by @xusiai on GitHub (Apr 24, 2024). Original GitHub issue: https://github.com/tubearchivist/tubearchivist-jf-plugin/issues/7 Originally assigned to: @DarkFighterLuke on GitHub. Would it be feasible to add support for sending watched state to TubeArchivist? Since videos can be configured for automatic removal after being set to watched in TA it would be nice if this feature continued to work when the actual media consumption is done in Jellyfin.
mirror 2026-03-23 20:34:31 +00:00
Author
Owner

@Emporea commented on GitHub (May 11, 2024):

Will this include sync back and forth? This would include several things to consider so it doesnt mess up the watched state of either instance.

<!-- gh-comment-id:2105979981 --> @Emporea commented on GitHub (May 11, 2024): Will this include sync back and forth? This would include several things to consider so it doesnt mess up the watched state of either instance.
Author
Owner

@ITSecUK commented on GitHub (Jun 30, 2024):

I would also be keen on this as a way to more easily manage the removal of watched videos. I might just start deleting in Jellyfin after watching, then set a cron for TA to update its metadata (cant set that cron in the settings page).

I was thinking it might be possible to adapt an existing jellyfin music scrobble plugin such as: https://github.com/lyarenei/jellyfin-plugin-listenbrainz but I have not yet had time to look into this further, and dont have experience with C# but just wanted to note down the idea incase anyone else is more familiar with that!

In response to the previous comment from @Emporea, I think bidirectional sync would be much harder, I would be fine with just jellyfin to TA sync personally, that would solve my usecase.

<!-- gh-comment-id:2198546435 --> @ITSecUK commented on GitHub (Jun 30, 2024): I would also be keen on this as a way to more easily manage the removal of watched videos. I might just start deleting in Jellyfin after watching, then set a cron for TA to update its metadata (cant set that cron in the settings page). I was thinking it might be possible to adapt an existing jellyfin music scrobble plugin such as: https://github.com/lyarenei/jellyfin-plugin-listenbrainz but I have not yet had time to look into this further, and dont have experience with C# but just wanted to note down the idea incase anyone else is more familiar with that! In response to the previous comment from @Emporea, I think bidirectional sync would be much harder, I would be fine with just jellyfin to TA sync personally, that would solve my usecase.
Author
Owner

@diablo581 commented on GitHub (Jul 13, 2024):

I might just start deleting in Jellyfin after watching, then set a cron for TA to update its metadata (cant set that cron in the settings page).

Can you elaborate on this some please? This is kind of my use case.

<!-- gh-comment-id:2227037506 --> @diablo581 commented on GitHub (Jul 13, 2024): > I might just start deleting in Jellyfin after watching, then set a cron for TA to update its metadata (cant set that cron in the settings page). Can you elaborate on this some please? This is kind of my use case.
Author
Owner

@ITSecUK commented on GitHub (Jul 13, 2024):

@diablo581 I ended up going a different way and I just use the TA interface instead, the only downside of that is I cant watch on my TV easily.

Under settings > actions there is an option "Rescan filesystem" which will clean up any deleted files, but there are two things I didnt get around to finding out:

  1. If you delete a video, I didn't confirm that its not re-added next time TA scans the channel (hopefully not)
  2. how you can best call that endpoint from cron.

You can either figure out if you can add a new task somehow similar to how the app does it here:
github.com/tubearchivist/tubearchivist@24b57406ab/tubearchivist/config/management/commands/ta_startup.py (L261)

Or worst case you could just hit the API /api/task-name/rescan_filesystem/
as the webapp does:
github.com/tubearchivist/tubearchivist@24b57406ab/tubearchivist/static/script.js (L488)

Good luck!!

<!-- gh-comment-id:2227042651 --> @ITSecUK commented on GitHub (Jul 13, 2024): @diablo581 I ended up going a different way and I just use the TA interface instead, the only downside of that is I cant watch on my TV easily. Under settings > actions there is an option "Rescan filesystem" which will clean up any deleted files, but there are two things I didnt get around to finding out: 1. If you delete a video, I didn't confirm that its not re-added next time TA scans the channel (hopefully not) 2. how you can best call that endpoint from cron. You can either figure out if you can add a new task somehow similar to how the app does it here: https://github.com/tubearchivist/tubearchivist/blob/24b57406ab9700be73eaa900b3920526337ef161/tubearchivist/config/management/commands/ta_startup.py#L261 Or worst case you could just hit the API /api/task-name/rescan_filesystem/ as the webapp does: https://github.com/tubearchivist/tubearchivist/blob/24b57406ab9700be73eaa900b3920526337ef161/tubearchivist/static/script.js#L488 Good luck!!
Author
Owner

@DarkFighterLuke commented on GitHub (Aug 30, 2024):

@ITSecUK your use case has little to do with the main feature request, it's a particular use case not even specifically related to this plugin.
Anyway, the video removal would continue to work if TA deletes watched videos somehow, because the plugin would set those videos as watched.

<!-- gh-comment-id:2321716456 --> @DarkFighterLuke commented on GitHub (Aug 30, 2024): @ITSecUK your use case has little to do with the main feature request, it's a particular use case not even specifically related to this plugin. Anyway, the video removal would continue to work if TA deletes watched videos somehow, because the plugin would set those videos as watched.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
tubearchivist/archived-tubearchivist-jf-plugin#5
No description provided.