-
Notifications
You must be signed in to change notification settings - Fork 30
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
[Feature Request]Can MPV get_property
add media-title
choice.
#169
Comments
get_property
add media-title
choice.
Yeah, we probably could do it instead of reading the path. This was my original motivation for choosing path instead of title, since that is something that the user could control (for any media player). But now that we have streaming support from the web, this assumption doesn't hold true. However, I'm not sure on how to fix this without requiring a lot of manual intervention. Some possible solutions-
|
Maybe could combine this with whitelist to choose which path or url to use path or title, or let user to write it to config file to choose title or path, or popup a dialog box to choose which to use when there are two options. |
That is way too intrusive. I would like the scrobbler to not require manual intervention, especially on every file.
Yeah, this seems feasible. Will try implementing it when I get some free time. |
I came to ask about this as well. Apparently when i'm streaming some content it only picks up filename from the IPC socket for scrobble instead of media-title |
As stated above, my main worry with this is making the configuration too manual. But now that #214 has been implemented, we have a pretty powerful way of specifying how to remap raw media info. |
We give priority to title if it is present in title_whitelist. Closes #169
I have implemented an initial version of this feature in the title-extract branch. If the title provided by the media player is present in Install from branch:
Configuration: Now, any media that contains "Some Name" in the title will use that title for metadata. Please give it a try and let me know if everything is working as expected. |
We give priority to title if it is present in title_whitelist. Closes #169
@AlickH @umop3plsdn would appreciate your feedback on the design! |
Sorry didn't see this until today. |
2023-01-12 09:12:32,067 - WARNING - scrobbler - trakt_interface - Invalid trakt id for 1649804033 |
also its still picking up the same thing:
|
echo '{"command": ["get_property", "media-title"]}' |socat - /tmp/mpvsocket |
We give priority to title if it is present in title_whitelist. Closes #169
Sorry, that was a small bug in the code. I've pushed a fix. Please re-install using the instructions above. |
alright reinstalled and it looks like its still pulling off the same location. for the record i double checked that the changes you pushed out were actually present in /home/da5id/.local/pipx/venvs/trakt-scrobbler/lib/python3.10/site-packages/trakt_scrobbler/player_monitors/mpv.py just to double check since it was the same result. Also, to help i tried a youtube vid randomly https://www.youtube.com/watch?v=djA0fYk65yI ➜ trakts test mpv
|
Are you sure you've added that title to |
omg i didn't see that part i am so sorry! i can't believe i missed that entirely wow. Even the install method is easier than how i was doing it locally lol. So would it be trakts config set --add fileinfo.title_whitelist "media-title"? |
Yep |
I did stop/start trakts after for the record and got the same result lol. I tried off the metadata field as well since this is the output i get with socat on mpv socket: {"data":{"major_brand":"isom","minor_version":"512","compatible_brands":"isomiso2avc1mp41","title":"Vinland Saga - S01E20","encoder":"Lavf58.29.100"},"request_id":0,"error":"success"} but i got the same Playing 7c4f45. Could it still be getting it correctly just not outputting the right thing with the test flag? |
You don't add the string "media-title" to whitelist. You need to add the name of the show. For the pic you shared, it would be |
thank you for clarifying! I almost thought it was that but then I second guessed and thought it was the field of choosing. Do I need to put how it shows up for media-title? for example from below "vinland-saga" all lower case or like you said "Vinland Saga"? I tested the below with "Vinland Saga". Also, I can test with another source if you think that might be the issue? Thank you for all the hard work I hope i'm not discouraging you. I'm trying to provide you with as accurate info as I can.
|
Sweet it works on bleach! thanks for all your hard work! also i added whitelist lowercase just vinland one word and that worked too |
Ah thanks for catching that. Maybe we should do case-insensitive comparison for matching titles. |
Sometimes the url stream link did not contain the file name, but mpv can set the media title through m3u list or by
--force-media-title
command.The text was updated successfully, but these errors were encountered: