-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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
[python-api] InfoTagVideo additional methods #13019
Conversation
/// | ||
/// @return [string] Artist name | ||
/// | ||
/// |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
thx! code looks good to me. |
|
||
String InfoTagVideo::getArtist() | ||
{ | ||
return StringUtils::Join(infoTag->m_artist, g_advancedSettings.m_videoItemSeparator); |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
/// | ||
getDuration(); | ||
#else | ||
int getDuration(); |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
return infoTag->m_iTrack; | ||
} | ||
|
||
int InfoTagVideo::getDuration() |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Can you please squash/reorder the commits a bit
You might also want adjust the email address of your commits to the one you use for github that your commits get associated with your github user. If you need assistance just ask. |
function comment getArtist InfoTagVideo.getArtist(): return original String list so it can be consumed as pleased
function comment getAlbum
function comment getTrack
function comment getDuration InfoTagVideo.getDuration(): changed return type to unsigned int
e62a54e
to
ca50183
Compare
Done! |
wrong revision was build |
@ronie good to go? |
yes sure, go ahead :-) |
Exposed more information from InfoTagVideo to the python API.
Description
Added the methods getArtist(), getAlbum(), getTrack() and getDuration() to InfoTagVideo.
Motivation and Context
Mostly useful for musicvideos. For example, thanks to these methods, musicvideos could be scrobbled to Libre.fm/Last.fm or ListenBrainz.
How Has This Been Tested?
Screenshots (if appropriate):
Types of change
Checklist: