Enhancement to the Trailer function in Fen Light to serve only Public Videos and reordering the first two or three 'Official Trailer' results #172
Labels
No labels
Dev Is Brain Dead Sometimes
Information
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
no manners
not planned
pending update
potential bug
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Creepso/tikipeter.github.io#172
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hello Tikipeter,
I hope I find you well.
I figured out two contributions which I think could improve further the Trailer function of Fen Light over the current version 1.0.92. I am posting these for your kind consideration.
For example when I tried to use the trailer function on 'The Lion King (2019)' the first result in the list was a private video, so it just gave out an error when attempting to load the video after pressing 'Trailer'. I was not sure if a YouTube API key would be required to use the status.privacyStatus filter [relevant source: https://developers.google.com/youtube/v3/docs/videos#status.privacyStatus]
I came up with a rudimentary edit of metadata.py and extras.py, and they work pretty well for my Fen Light setup on 1.0.92 to sort the first 3 OT results. I am attaching them with this post if you want to see my rough solution. Edits are in metadata.py line 111, and extras.py lines 352-357. I changed their extension from .py to .txt to upload here:
metadata.txt
extras.txt
I am bringing this up because as it is, the Trailer function is mostly serving 'Official Trailer 2' or even 'Official Trailer 3' (e.g. Wolfs, The Matrix Resurrections, Dune: Part Two) as the first result when you press 'Trailer', and I noticed that the first 'Official Trailer' released gives a better introduction to what a movie is all about, with OT 2 and OT 3 or even Final Official Trailer giving out a lot of spoilers. Then I rechecked back the number of videos loaded before and after my edit and they returned the same number on the movie page, so I am concluding that I am not filtering out any videos with my edits.
Anyways, I am sharing these ideas. Perhaps you can see some value in them if you find some time to include them. Thank-you for your improvements over 1.0.91, I have enjoyed those enhancements quite a lot since you posted them! :)
There's no info provided for that. The info for all the videos come from TMDb. There's no interaction with youtube so as to get that information.
That should be improved for next update.