IPB

Welcome Guest ( Log In | Register )

> foobar2000 Development Forum Rules

This forum is for developer discussions only. If you have a problem / bug report / idea / feature request that isn't related to foobar2000 SDK, post it in an appropiate forum instead - tech support questions go to support forum, everything else goes to general forum.
All non-developer posts on this forum will be removed. Continued abuse of this forum will result in admin actions (warnings, account suspension).

 
Reply to this topicStart new topic
get filename?
muzehyun
post Mar 24 2012, 09:31
Post #1





Group: Members
Posts: 13
Joined: 18-August 11
Member No.: 93119



I want to get filename when the song doesn't have any tags.

Closest thing I found is "handle->get_path()"
And it returns with directory "file://E:\Music\11-unknown_song.mp3"
I'm looking for a good helper method to extract only filename, without directory and file extension.

Thank you

sean
Go to the top of the page
+Quote Post
fbuser
post Mar 24 2012, 10:07
Post #2





Group: Developer
Posts: 673
Joined: 26-September 07
Member No.: 47369



Try pfc::string_filename(handle->get_path())
Go to the top of the page
+Quote Post
muzehyun
post Mar 24 2012, 11:29
Post #3





Group: Members
Posts: 13
Joined: 18-August 11
Member No.: 93119



Perfect! Thanks!!
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 17th April 2014 - 20:55