• 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 Development Client Development Roku Development Trouble Getting Roku Certification

    Pages (2): « Previous 1 2

     
    • 0 Vote(s) - 0 Average

    Trouble Getting Roku Certification

    A non-pay app failing Static Analysis
    garberfc
    Offline

    Junior Member

    Posts: 10
    Threads: 3
    Joined: 2024 Nov
    Reputation: 0
    Country:United States
    #11
    2026-04-09, 09:57 PM
    Thanks for the help and insights. Yes, the only reason for the fork was for delete functionality.

    I've installed JellyRock and am testing it now...
    garberfc
    Offline

    Junior Member

    Posts: 10
    Threads: 3
    Joined: 2024 Nov
    Reputation: 0
    Country:United States
    #12
    2026-04-10, 01:34 PM (This post was last modified: Yesterday, 05:31 PM by garberfc. Edited 1 time in total.)
    Hey @Kandy & @cewert,

    I've been using JellyRock for a day now and it seems quite solid and provides a lot of delete functionality. Thanks!

    The one extra "nice to have" would be the ability to delete a running show or movie as playback approaches the end. Basically the same time the outro message appears. I have it working in the Jellyfin w/ Delete code.

    The following launches a new thread allowing the UI to remain responsive. 

    The one tricky part of deleting a running video is that it can't be deleted while the file is being read/locked by the underlying OS. The logic I applied was to wait a predetermined about of time before calling the DELETE Jellyfin service. I wrote a reusable or extendable component that will wait for XXms and then call a function.

    Take a look at these files:
    • CallFunctionAfterDelay.xml
    • CallFunctionAfterDelay.bs
    • CallFunctionAfterDelayFunctions.bs

    Here's the code that uses the component:
    Code:
       callFunctionAfterDelay = CreateObject("roSGNode", "CallFunctionAfterDelay")
       callFunctionAfterDelay.control = TaskControl.RUN
       callFunctionAfterDelay.msToWait = 60 * 1000 ' Give the viewer time to click away from the episode
       callFunctionAfterDelay.functionName = "deleteItem"
       callFunctionAfterDelay.functionArguments = { itemID: itemID }

    The one short coming of the code is that the functionName / logic has to be added to the CallFunctionAfterDelayFunctions.bs file. It's actually a short coming of SceneGraph. Components can have zero or more fields defined. Their type is restricted by this XSD file. If a field type is defined assocarray, and that assocarray includes a function reference (or any type not supported by the XSD), that element will be silently removed from the assocarray when it's assigned to the component field. 

    Take a look at the above code, and please add the functionality of deleting a running video...
    Pages (2): « Previous 1 2

    « 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