-
Notifications
You must be signed in to change notification settings - Fork 472
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Does the labels of transmission support variable assignment? #3808
Comments
It's been a while since I looked at it. But I'm almost 100% sure we didn't implement jinja rendering for labels. Id have to look at it again. That being said I don't believe that's implemented at the moment. |
Thanks for your reply. |
Caching I believe is set to 4 hrs. I could be wrong but that sounds about right. So as long as your checking the next day, your pulling fresh information. Implementing this would be similar in fashion to any of the other jinja rendering where we check and call the render function. You can look at many other plugins to check how it's implemented. |
The movie was downloaded on the 29th, but the rating is still 7.3 on the 30th (5.8 on the imdb website), and it has been more than 24 hours. I implemented this function with the filesystem/age/imdb_lookup/imdb/delete plugin. |
The movie whose rating dropped from 7.3 to 5.8 was released in 2023. From the above code, we can see that the cache expiration time is 2 + (2023 - 2023) * 5, which means it takes two days to update the cache. |
That looks right. The ratings updates are the exact reason the cache is shorter for newer movies. Is this not working for you, or you want the cache to be shorter? I'm not exactly sure how your initial request for templating support in the labels would help? What were you going to store in the labels? |
I've solved my current problem using this update function logic, so this problem becomes less urgent for me. But I still hope to support assigning variable values to transmission labels in the future. |
This issue is stale because it has been open 150 days with no activity. Remove stale label or comment or this will be closed in 30 days. |
This was added in #3886 |
I tried the following configurations, all failed:
It doesn't work......
Please help me, thx!
The text was updated successfully, but these errors were encountered: